:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #e4e4e7;
  --charcoal: #27272a;
  --muted: #656565;
  --soft: #f5f5f5;
  --blue: #1796c9;
  --max: 1240px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

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

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.section-title {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-title em {
  color: var(--muted);
  font-weight: 400;
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--blue {
  border-color: var(--blue);
  background: var(--blue);
}

.btn--light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: var(--paper);
}

.topbar.scrolled {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 164px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.mobile-panel {
  display: none;
}

.service-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 42px);
  align-items: center;
  overflow: hidden;
  padding: 132px 0 72px;
  isolation: isolate;
}

.service-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.service-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 47%, rgba(255, 255, 255, 0.76) 67%, rgba(255, 255, 255, 0.08) 100%);
  content: "";
}

.hero-content {
  width: min(740px, 68%);
}

.hero-index {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-index span {
  color: var(--blue);
}

.service-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 74px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.service-hero h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--charcoal);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
  font-size: 12px;
  font-weight: 700;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.result-band {
  background: var(--ink);
  color: var(--paper);
}

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

.result-item {
  min-height: 148px;
  padding: 30px 34px;
  border-left: 1px solid var(--charcoal);
}

.result-item:last-child {
  border-right: 1px solid var(--charcoal);
}

.result-item span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.result-item strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.letter {
  padding: 138px 0;
}

.letter-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 112px;
  align-items: start;
}

.letter-heading {
  position: sticky;
  top: 116px;
}

.letter-heading .section-title {
  font-size: 58px;
}

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

.long-copy .opening {
  margin: 0 0 35px;
  font-family: var(--serif);
  font-size: 37px;
  line-height: 1.08;
}

.long-copy p {
  margin: 0 0 24px;
  color: var(--charcoal);
  font-size: 18px;
}

.long-copy h2,
.long-copy h3 {
  margin: 60px 0 20px;
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
}

.long-copy strong {
  color: var(--ink);
}

.pullquote {
  padding: 88px 0;
  background: var(--blue);
  color: var(--paper);
}

.pullquote blockquote {
  max-width: 1060px;
  margin: 0;
  font-family: var(--serif);
  font-size: 62px;
  line-height: 0.98;
}

.pullquote p {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: 17px;
}

.breakdown {
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
}

.breakdown .section-title em,
.breakdown .lead {
  color: #b8b8bd;
}

.breakdown-list {
  margin-top: 70px;
  border-top: 1px solid var(--charcoal);
}

.breakdown-row {
  display: grid;
  min-height: 164px;
  grid-template-columns: 70px 0.86fr 1.14fr;
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid var(--charcoal);
}

.breakdown-row > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.breakdown-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.breakdown-row p {
  margin: 0;
  color: #b8b8bd;
  font-size: 15px;
}

.scope {
  padding: 134px 0;
}

.scope-grid {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
}

.scope-item {
  min-height: 230px;
  padding: 32px 38px 32px 0;
  border-bottom: 1px solid var(--line);
}

.scope-item:nth-child(even) {
  padding-right: 0;
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.scope-item svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.scope-item h3 {
  margin: 28px 0 11px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.scope-item p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.process {
  padding: 132px 0;
  background: var(--soft);
}

.process-list {
  margin-top: 70px;
  border-top: 1px solid var(--ink);
}

.process-step {
  display: grid;
  min-height: 145px;
  grid-template-columns: 70px 0.8fr 1.2fr 28px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.process-step > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.process-step h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.process-step svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.measurement {
  padding: 116px 0;
  background: var(--paper);
}

.measurement-grid {
  display: grid;
  margin-top: 62px;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--ink);
}

.measurement-item {
  min-height: 210px;
  padding: 32px;
  border-left: 1px solid var(--line);
}

.measurement-item:last-child {
  border-right: 1px solid var(--line);
}

.measurement-item span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.measurement-item strong {
  display: block;
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.measurement-item p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fit {
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
}

.fit-column {
  border-top: 1px solid var(--paper);
  padding-top: 30px;
}

.fit-column h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
}

.fit-column h2 em {
  color: var(--blue);
  font-weight: 400;
}

.fit-column ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.fit-column li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--charcoal);
  color: #d4d4d8;
}

.fit-column li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--blue);
}

.faq {
  padding: 132px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 95px;
}

.faq-layout .section-title {
  font-size: 56px;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: var(--blue);
  font-size: 26px;
  font-weight: 400;
  content: "+";
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 720px;
  margin: -6px 0 28px;
  color: var(--muted);
}

.related {
  padding: 118px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.related-grid {
  display: grid;
  margin-top: 54px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.related-link {
  display: grid;
  min-height: 132px;
  grid-template-columns: 1fr 24px;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.related-link:nth-child(3n + 1) {
  border-left: 1px solid var(--line);
}

.related-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.related-link span {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.related-link svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.final-cta {
  padding: 96px 0;
  background: var(--blue);
  color: var(--paper);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.final-cta h2 {
  max-width: 890px;
  margin: 0;
  font-family: var(--serif);
  font-size: 65px;
  font-weight: 400;
  line-height: 0.98;
}

.final-cta p {
  max-width: 650px;
  margin: 20px 0 0;
}

.footer {
  padding: 58px 0 30px;
  background: var(--ink);
  color: var(--paper);
}

.footer .brand-logo {
  filter: brightness(0) invert(1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--charcoal);
}

.footer-brand p {
  max-width: 470px;
  margin: 17px 0 0;
  color: #b8b8bd;
  font-size: 14px;
}

.footer-services {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 30px;
  font-size: 13px;
}

.footer-services a:hover,
.footer-bottom a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 27px;
  color: #a1a1aa;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

@media (max-width: 1040px) {
  .service-hero h1 {
    font-size: 62px;
  }

  .hero-content {
    width: min(700px, 76%);
  }

  .section-title {
    font-size: 58px;
  }

  .letter-layout,
  .faq-layout {
    gap: 62px;
  }

  .breakdown-row,
  .process-step {
    grid-template-columns: 54px 0.88fr 1.12fr;
  }

  .process-step svg {
    display: none;
  }

  .final-cta h2 {
    font-size: 56px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .brand-logo {
    width: 146px;
  }

  .mobile-panel {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 110px 24px 44px;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .mobile-panel.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-panel a:not(.btn) {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 35px;
  }

  .service-hero {
    min-height: calc(100svh - 30px);
    padding-top: 122px;
  }

  .service-hero::before {
    background-position: 65% center;
  }

  .service-hero::after {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 67%, rgba(255, 255, 255, 0.55) 100%);
  }

  .hero-content {
    width: 88%;
  }

  .service-hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .result-grid,
  .letter-layout,
  .scope-grid,
  .fit-grid,
  .faq-layout,
  .final-cta-inner,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .result-item,
  .result-item:last-child {
    min-height: 118px;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--charcoal);
    border-left: 0;
  }

  .letter,
  .breakdown,
  .scope,
  .process,
  .measurement,
  .fit,
  .faq,
  .related {
    padding: 94px 0;
  }

  .letter-layout {
    gap: 52px;
  }

  .letter-heading {
    position: static;
  }

  .scope-item,
  .scope-item:nth-child(even) {
    min-height: auto;
    padding: 28px 0;
    border-left: 0;
  }

  .measurement-grid {
    grid-template-columns: 1fr;
  }

  .measurement-item,
  .measurement-item:last-child {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

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

  .related-link:nth-child(3n + 1) {
    border-left: 0;
  }

  .related-link:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .final-cta-inner {
    align-items: start;
  }
}

@media (max-width: 560px) {
  .service-hero {
    min-height: calc(100svh - 12px);
    align-items: flex-start;
    padding: 118px 0 48px;
  }

  .service-hero::before {
    background-position: 72% center;
  }

  .service-hero::after {
    background: rgba(255, 255, 255, 0.9);
  }

  .hero-content {
    width: 100%;
  }

  .hero-index {
    margin-bottom: 22px;
  }

  .service-hero h1 {
    font-size: 43px;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    margin-top: 27px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    margin-top: 25px;
  }

  .section-title,
  .letter-heading .section-title,
  .faq-layout .section-title {
    font-size: 45px;
  }

  .lead {
    font-size: 17px;
  }

  .long-copy .opening {
    font-size: 31px;
  }

  .long-copy p {
    font-size: 16px;
  }

  .long-copy h2,
  .long-copy h3 {
    font-size: 36px;
  }

  .pullquote {
    padding: 66px 0;
  }

  .pullquote blockquote {
    font-size: 44px;
  }

  .breakdown-list,
  .scope-grid,
  .process-list,
  .measurement-grid {
    margin-top: 48px;
  }

  .breakdown-row,
  .process-step {
    grid-template-columns: 34px 1fr;
    gap: 15px;
    padding: 24px 0;
  }

  .breakdown-row h3,
  .process-step h3 {
    font-size: 31px;
  }

  .breakdown-row p,
  .process-step p {
    grid-column: 2;
  }

  .fit-grid {
    gap: 58px;
  }

  .fit-column h2 {
    font-size: 38px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-link,
  .related-link:nth-child(odd) {
    min-height: 108px;
    border-left: 0;
  }

  .final-cta {
    padding: 72px 0;
  }

  .final-cta h2 {
    font-size: 46px;
  }

  .footer-services {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 360px) {
  .service-hero {
    padding: 102px 0 28px;
  }

  .hero-index {
    margin-bottom: 18px;
  }

  .service-hero h1 {
    font-size: 39px;
    line-height: 0.94;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 21px;
  }

  .hero-proof {
    gap: 8px;
    margin-top: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
