:root {
  --paper: #FFFFFF;
  --surface: #F7F7F8;
  --ink: #101114;
  --muted: #626873;
  --blue: #002FA7;
  --blue-soft: #E9EEFB;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header,
main,
.page-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.back-link:hover { color: var(--blue); }

.case-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 100px); }
.eyebrow,
.section-label { margin: 0; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1,
h2,
h3,
p { overflow-wrap: anywhere; }
h1 { max-width: 1050px; margin: 24px 0 30px; font-size: clamp(3rem, 7.8vw, 7rem); font-weight: 720; letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
.hero-lede { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65; }
.delivery-note { width: fit-content; max-width: 100%; margin: 28px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .92rem; line-height: 1.5; }
.delivery-note strong { margin-right: .3rem; color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border-radius: 999px; font-size: .92rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #FFFFFF; }
.button-secondary { background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--blue-soft); color: var(--blue); }
.button:focus-visible,
.back-link:focus-visible,
.brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.project-window { margin: 0 0 clamp(92px, 12vw, 170px); }
.project-window picture { display: block; overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: 0 34px 90px rgba(16, 17, 20, .12); }
.project-window img { width: 100%; height: auto; display: block; }
.project-window figcaption { margin-top: 15px; color: var(--muted); font-size: .8rem; }

.section-grid { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: clamp(32px, 7vw, 100px); }
.section-grid > div { max-width: 780px; }
.section-label { padding-top: 10px; }
h2 { margin: 0 0 28px; font-size: clamp(2.25rem, 5.2vw, 4.8rem); font-weight: 720; letter-spacing: -.055em; line-height: 1; text-wrap: balance; }
h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.03em; }
.section-grid p:not(.section-label),
.journey p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.intro,
.certificate-feature,
.result { padding-bottom: clamp(96px, 12vw, 170px); }

.experience { margin-bottom: clamp(96px, 12vw, 170px); padding: clamp(64px, 9vw, 110px); border-radius: 28px; background: var(--surface); }
.section-heading { margin-bottom: 56px; }
.journey { margin: 0; padding: 0; list-style: none; }
.journey li { display: grid; grid-template-columns: minmax(72px, 130px) minmax(0, 1fr); gap: 28px; padding: 28px 0; }
.journey li + li { box-shadow: 0 -1px 0 rgba(16, 17, 20, .09); }
.journey li > span { color: var(--blue); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 780; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.journey p { max-width: 680px; margin-bottom: 0; }

.facts { margin: 36px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; margin-bottom: 16px; padding-left: 27px; color: var(--ink); font-size: .97rem; font-weight: 650; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

.case-cta { margin-bottom: 70px; padding: clamp(48px, 8vw, 96px); border-radius: 28px; background: var(--blue); color: #FFFFFF; }
.case-cta .eyebrow { color: #BFCFFF; }
.case-cta h2 { max-width: 860px; margin: 24px 0 0; }
.case-cta .button-primary { background: #FFFFFF; color: var(--blue); }
.case-cta .button-secondary { background: rgba(255,255,255,.13); color: #FFFFFF; }

.page-footer { padding: 22px 0 46px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .82rem; }
.page-footer a { color: var(--ink); font-weight: 800; text-decoration: none; }

@media (max-width: 760px) {
  .site-header,
  main,
  .page-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 74px; }
  .back-link { font-size: .78rem; }
  .case-hero { padding-top: 72px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.8rem); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .project-window picture { border-radius: 16px; }
  .section-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-label { padding-top: 0; }
  .experience { margin-inline: -16px; padding: 56px 24px; border-radius: 0; }
  .section-heading { margin-bottom: 32px; }
  .journey li { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 26px 0; }
  .journey li > span { font-size: 2.1rem; }
  .case-cta { margin-inline: -16px; padding: 54px 24px; border-radius: 0; }
  .page-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .back-link { transition: none; }
}
