:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #1f2528;
  --muted: #667075;
  --line: #dde1df;
  --soft: #eef2ef;
  --accent: #cc0000;
  --accent-strong: #263f43;
  --gold: #b8843d;
  --rose: #c77d73;
  --blue: #6d8fa3;
  --green: #78926d;
  --shadow: 0 18px 50px rgba(37, 45, 48, 0.08);
  --display: "Roboto Slab", "Clarendon", "Rockwell", "Georgia", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.accent {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(221, 225, 223, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible,
.brand:active {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a:active {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section[id] {
  scroll-margin-top: 104px;
}

.hero {
  display: block;
  padding-top: 96px;
  padding-bottom: 28px;
}

.section-tight {
  padding-top: 28px;
}

.section-tight + .section {
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 4.75rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

p {
  margin: 0;
}

.lead {
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.portrait-panel,
.image-area {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.portrait-panel {
  aspect-ratio: 4 / 5;
}

.portrait-panel img,
.image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  min-height: 150px;
  padding: 28px;
  background: var(--paper);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  max-width: 740px;
  margin-top: 16px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.capability-grid .card {
  min-height: auto;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.case-grid .card {
  min-height: auto;
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.card-body {
  padding: 24px;
}

.card p {
  color: var(--muted);
}

.card h3 + p {
  margin-top: 12px;
}

.capability-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.capability-list li + li {
  margin-top: 8px;
}

.case-card {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-card:hover h3,
.case-card:focus-visible h3,
.case-card:active h3 {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.thumb {
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta,
.card .meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  padding-top: 72px;
  padding-bottom: 42px;
}

.page-hero .lead {
  max-width: 760px;
}

.case-hero {
  padding-top: 56px;
}

.case-subhead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.image-area {
  aspect-ratio: 16 / 11;
  margin-top: 36px;
}

.case-content {
  padding-top: 54px;
}

.case-section {
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.case-section + .case-section {
  padding-top: 38px;
}

.case-section p {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-hero {
  padding-bottom: 28px;
}

.contact-section {
  padding-top: 28px;
}

.contact-form {
  max-width: 720px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-form label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #0022CC;
  outline-offset: 2px;
}

.form-note {
  margin-top: 18px;
  color: var(--muted);
}

.form-note a {
  font-weight: 700;
  text-decoration: none;
}

.form-note a:hover,
.form-note a:focus-visible,
.form-note a:active {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 40px;
}

.pager a {
  min-height: 76px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}

.pager-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pager .next {
  justify-content: flex-end;
  text-align: right;
}

.chevron {
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 0.8;
  transform: translateY(-0.08em);
}

.pager-title {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.2;
}

.pager-link:hover .pager-title,
.pager-link:focus-visible .pager-title,
.pager-link:active .pager-title {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.94rem;
}

.footer a {
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.footer a + a {
  margin-left: 28px;
}

.footer a:hover,
.footer a:focus-visible,
.footer a:active {
  color: #0022CC;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding: 52px 0;
  }

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

  .hero {
    min-height: auto;
    gap: 32px;
  }

  .portrait-panel {
    max-height: 520px;
  }

  .intro-strip,
  .capability-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .pager .next {
    text-align: left;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 10px;
  }
}
