:root {
  --slate: #485e88;
  --slate-deep: #33456a;
  --lavender: #9b95c9;
  --charcoal: #404041;
  --mist: #eef0f6;
  --white: #ffffff;
  --bar: clamp(14px, 2.2vw, 28px);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--charcoal);
  font: 400 17px/1.65 'Red Hat Text', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Red Hat Display', system-ui, sans-serif; color: var(--slate-deep); margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand span { font: 500 15px/1 'Red Hat Display', sans-serif; letter-spacing: .32em; color: var(--charcoal); }
nav { display: flex; gap: 32px; font-size: 15px; }
nav a { text-decoration: none; color: var(--charcoal); }
nav a:hover { color: var(--slate); }
@media (max-width: 720px) {
  header .wrap { flex-wrap: wrap; row-gap: 18px; }
  nav { width: 100%; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px solid #dde1ec; }
}
.nav-cta { color: var(--slate) !important; font-weight: 500; }

/* Hero: the logo's open frame, drawn at page scale */
.hero { position: relative; margin-top: 24px; padding: clamp(56px, 9vw, 120px) clamp(40px, 7vw, 104px) clamp(96px, 12vw, 150px); }
.hero .f { position: absolute; background: var(--slate); }
.hero .f-top { top: 0; left: 0; right: 0; height: var(--bar); }
.hero .f-left { top: 0; bottom: 0; left: 0; width: var(--bar); }
.hero .f-right { top: 0; right: 0; width: var(--bar); height: 38%; }
.hero .f-bottom { bottom: 0; left: 0; width: 60%; height: var(--bar); clip-path: polygon(0 0, calc(100% - var(--bar)) 0, 100% 100%, 0 100%); }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; max-width: 12ch; }
.hero p { font-size: clamp(18px, 1.6vw, 21px); max-width: 38em; margin: 28px 0 0; }
.hero-cta {
  position: absolute; right: 0; bottom: 0;
  background: var(--lavender); color: var(--white); text-decoration: none;
  font: 500 18px/1 'Red Hat Display', sans-serif;
  padding: 28px 40px; display: inline-block;
}
.hero-cta:hover { background: #8a84bd; }
@media (max-width: 720px) {
  .hero { padding-bottom: 130px; }
  .hero .f-bottom { width: 40%; }
  .hero-cta { padding: 22px 26px; font-size: 16px; }
}

/* Pillars */
.pillars { padding-block: clamp(80px, 11vw, 140px) 40px; }
.intro { max-width: 34em; font-size: 20px; margin: 0 0 64px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; gap: 64px; } }
.pillar { position: relative; padding: 30px 0 0 30px; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-top: 6px solid var(--slate); border-left: 6px solid var(--slate); }
.pillar h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.pillar .lead { font-size: 19px; color: var(--slate); font-weight: 500; margin: 10px 0 16px; line-height: 1.4; }
.pillar p { margin: 0 0 20px; }
.pillar ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dde1ec; }
.pillar li { padding: 12px 0 12px 22px; border-bottom: 1px solid #dde1ec; position: relative; font-size: 16px; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--lavender); }

/* Process */
.process { padding-block: 100px; }
.process h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding-right: 28px; }
.step .n { font: 700 15px/1 'Red Hat Display', sans-serif; color: var(--lavender); display: block; padding-bottom: 14px; border-bottom: 6px solid var(--slate); margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 16px; }

/* Principles band */
.band { background: var(--slate); color: #e9ecf4; padding: 100px 0; }
.band .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; gap: 40px; } }
.band h2 { color: var(--white); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.band dl { margin: 0; display: grid; gap: 28px; }
.band dt { font: 700 20px/1.3 'Red Hat Display', sans-serif; color: var(--white); }
.band dd { margin: 6px 0 0; }

/* Closing */
.close { padding: 120px 0; }
.close .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.close h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.025em; line-height: 1.05; max-width: 14ch; }
.btn { display: inline-block; background: var(--slate); color: var(--white); text-decoration: none; padding: 20px 34px; font: 500 17px/1 'Red Hat Display', sans-serif; }
.btn:hover { background: var(--slate-deep); }
footer { border-top: 1px solid #dde1ec; padding: 32px 0; font-size: 14px; color: #6d6d70; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Navigation state */
nav a[aria-current="page"] { color: var(--slate); box-shadow: inset 0 -2px 0 var(--lavender); }

/* Page hero: the open frame at a smaller scale for inner pages */
.page-hero { position: relative; margin-top: 24px; padding: clamp(48px, 7vw, 88px) clamp(40px, 7vw, 104px) clamp(64px, 8vw, 104px); }
.page-hero .f { position: absolute; background: var(--slate); }
.page-hero .f-top { top: 0; left: 0; right: 0; height: var(--bar); }
.page-hero .f-left { top: 0; bottom: 0; left: 0; width: var(--bar); }
.page-hero .f-right { top: 0; right: 0; width: var(--bar); height: 38%; }
.page-hero .f-bottom { bottom: 0; left: 0; width: 60%; height: var(--bar); clip-path: polygon(0 0, calc(100% - var(--bar)) 0, 100% 100%, 0 100%); }
.page-hero .eyebrow { font: 500 14px/1 'Red Hat Display', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--lavender); margin: 0 0 20px; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; max-width: 16ch; }
.page-hero p { font-size: clamp(18px, 1.6vw, 21px); max-width: 38em; margin: 24px 0 0; }

/* Jump links */
.jump { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 48px 0 0; padding: 0; list-style: none; font-size: 15px; }
.jump a { text-decoration: none; color: var(--slate); font-weight: 500; }
.jump a:hover { color: var(--slate-deep); text-decoration: underline; }

/* Shared square-bullet list */
.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dde1ec; }
.ticks li { padding: 12px 0 12px 22px; border-bottom: 1px solid #dde1ec; position: relative; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--lavender); }

/* Industry rows */
.rows { padding-block: clamp(64px, 9vw, 120px) 40px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: 56px 0; border-top: 1px solid #dde1ec; scroll-margin-top: 24px; }
.row:last-child { border-bottom: 1px solid #dde1ec; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 24px; } }
.row-head { position: relative; padding: 30px 0 0 30px; }
.row-head::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-top: 6px solid var(--slate); border-left: 6px solid var(--slate); }
.row-head h2 { font-size: clamp(28px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.row-head .lead { font-size: 19px; color: var(--slate); font-weight: 500; margin: 12px 0 0; line-height: 1.4; }
.row-body p { margin: 0 0 20px; }
.row-body .tags { margin: 20px 0 0; font-size: 15px; color: #6d6d70; }
.row-body .tags a { color: var(--slate); font-weight: 500; text-decoration: none; }
.row-body .tags a:hover { text-decoration: underline; }

/* Expertise areas */
.area { padding-block: clamp(64px, 9vw, 110px); border-bottom: 1px solid #dde1ec; scroll-margin-top: 24px; }
.area:last-of-type { border-bottom: 0; }
.area-top { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .area-top { grid-template-columns: 1fr; gap: 24px; } }
.area .n { font: 700 15px/1 'Red Hat Display', sans-serif; color: var(--lavender); display: block; padding-bottom: 14px; border-bottom: 6px solid var(--slate); margin-bottom: 24px; max-width: 64px; }
.area h2 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.02em; line-height: 1.05; }
.area .lead { font-size: 20px; color: var(--slate); font-weight: 500; margin: 14px 0 0; line-height: 1.4; }
.area-top p { margin: 0 0 20px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 56px; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }
.cap { border-top: 6px solid var(--slate); padding-top: 18px; }
.cap h3 { font-size: 20px; margin-bottom: 8px; }
.cap p { margin: 0; font-size: 16px; }

/* Home: teaser links */
.more { display: inline-block; margin-top: 24px; color: var(--slate); font: 500 16px/1 'Red Hat Display', sans-serif; text-decoration: none; }
.more:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 14px 22px; border: 2px solid var(--slate); color: var(--slate-deep); text-decoration: none; font: 500 16px/1 'Red Hat Display', sans-serif; }
.chips a:hover { background: var(--slate); color: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 72px; } }
.teaser h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.teaser p { margin: 18px 0 0; max-width: 34em; }
.teasers { padding-bottom: 0; }

/* Small phones: keep long headline words inside the frame */
@media (max-width: 520px) {
  .hero, .page-hero { padding-left: calc(var(--bar) + 20px); padding-right: calc(var(--bar) + 20px); }
  .hero h1, .page-hero h1 { font-size: min(40px, calc((100vw - 120px) / 7)); }
}
