:root {
  --cream: #fbf5ce;
  --cream-deep: #f3ecb9;
  --rail-blue: #0a456f;
  --rail-blue-dark: #08395d;
  --dark-navy: #1b2a44;
  --text-blue: #0a456f;
  --text-soft: #365f7a;
  --muted: #6b6238;
  --muted-blue: #547b94;
  --orange: #ff9d00;
  --teal: #12c2ca;
  --pink: #ff4f78;
  --line: rgba(27, 42, 68, 0.14);
  --light-line: rgba(247, 241, 222, 0.28);
  --max: 1120px;
  --gutter: clamp(24px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-blue);
  font-family: Archivo, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--rail-blue-dark);
}

.site-shell {
  min-height: 100vh;
}

.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 48px;
  min-height: 100vh;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--rail-blue);
}

.rail-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.rail-bars span {
  display: block;
  height: 3px;
}

.rail-bars span:nth-child(1) { background: var(--orange); }
.rail-bars span:nth-child(2) { background: var(--teal); }
.rail-bars span:nth-child(3) { background: var(--pink); }

.rail-name {
  writing-mode: vertical-rl;
  font-family: Newsreader, Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.rail-line {
  width: 1px;
  height: 56px;
  background: rgba(247, 241, 222, 0.4);
}

main {
  margin-left: 48px;
}

.hero {
  position: relative;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
}

.hero-stripes {
  position: absolute;
  inset: 0 0 0 auto;
  width: 30%;
  display: flex;
}

.hero-stripes span:nth-child(1) { flex: 3; background: var(--cream-deep); }
.hero-stripes span:nth-child(2) { flex: 1; background: var(--orange); }
.hero-stripes span:nth-child(3) { flex: 2; background: var(--teal); }
.hero-stripes span:nth-child(4) { flex: 1; background: var(--pink); }

.hero-inner {
  position: relative;
  max-width: min(820px, 62%);
  margin-left: 48px;
}

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

.hero h1 {
  margin-bottom: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(52px, 8.2vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text-blue);
}

.hero em {
  font-style: italic;
  font-weight: 300;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-blue);
}

.hero-link {
  margin-top: 56px;
}

.text-link span {
  font-size: 16px;
}

.logo-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px var(--gutter);
}

.logo-bar-inner,
.section-inner,
.testimonial-inner,
.about-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.logo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 48px;
}

.logo-bar p,
.section-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Newsreader, Georgia, serif;
  font-size: 22px;
  color: var(--text-blue);
}

.services {
  padding: 88px var(--gutter) 96px;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 98px 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Newsreader, Georgia, serif;
  font-size: 19px;
  color: var(--text-blue);
}

.service-number span {
  width: 22px;
  height: 3px;
  background: var(--text-blue);
}

.service-row h3 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-row p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.testimonial {
  background: var(--cream-deep);
  padding: 96px var(--gutter);
}

.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: 56px;
  align-items: start;
}

.quote-source {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.quote-source > span {
  width: 40px;
  height: 2px;
  background: var(--pink);
}

.quote-source h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-blue);
}

.quote-source p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-blue);
}

blockquote {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.about {
  padding: 96px var(--gutter) 104px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.about h2 {
  margin: 0 0 36px;
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.about .section-kicker {
  margin-bottom: 20px;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-top: 6px solid var(--text-blue);
  background: #eae2a8;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 52px;
}

.about-copy p {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--text-soft);
}

.final-cta {
  background: var(--dark-navy);
  color: var(--cream);
  padding: 104px var(--gutter) 96px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.final-cta h2 {
  max-width: 20ch;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.final-cta p {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(247, 244, 215, 0.82);
}

.text-link.light {
  border-bottom-color: var(--orange);
  color: var(--cream);
  white-space: nowrap;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 88px;
  padding-top: 26px;
  border-top: 1px solid var(--light-line);
  font-size: 13px;
  color: rgba(247, 241, 222, 0.72);
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
}

footer a {
  color: var(--cream);
}

@media (max-width: 860px) {
  .brand-rail {
    position: static;
    width: auto;
    min-height: 0;
    height: 46px;
    padding: 0 18px;
    flex-direction: row;
  }

  .rail-name {
    writing-mode: initial;
    font-size: 13px;
  }

  .rail-line {
    width: 48px;
    height: 1px;
  }

  main {
    margin-left: 0;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-stripes {
    width: 100%;
    height: 18px;
    bottom: auto;
  }

  .hero-inner {
    max-width: 100%;
    margin-left: 0;
  }

  .service-row,
  .testimonial-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-row {
    padding: 32px 0;
  }

  .about-copy {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .logo-bar ul {
    gap: 10px 22px;
    font-size: 20px;
  }

  .hero-link {
    margin-top: 40px;
  }

  .cta-row {
    align-items: flex-start;
  }

  footer,
  footer nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
