:root {
  --page: #f3f5f7;
  --ink: #17202a;
  --muted: #66717c;
  --line: #d6dde3;
  --card: #fbfcfd;
  --accent: #2764d8;
  --accent-soft: #e7eefc;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header { padding: 28px 0 22px; }
.site-footer { padding: 26px 0 34px; color: var(--muted); font-size: .82rem; }

.wordmark {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}

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

.top-nav { display: flex; gap: 28px; font-size: .9rem; }
.top-nav a { color: var(--muted); text-decoration: none; transition: color 180ms ease; }
.top-nav a:hover { color: var(--ink); }
.top-nav span { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: 10%;
  min-height: 560px;
  align-items: center;
  padding: 104px 8% 110px 4%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -.085em;
  line-height: .91;
}

h1 span { color: var(--accent); }

.hero-intro {
  max-width: 470px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, gap 180ms ease;
}

.text-link span { color: var(--accent); font-size: 1.2em; }
.text-link:hover { color: var(--accent); gap: 14px; }

.hero-note { align-self: end; padding-bottom: 18px; }
.note-rule { display: block; width: 64px; height: 2px; margin-bottom: 22px; background: var(--accent); }
.note-label { margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.note-text { max-width: 245px; margin: 0; font-size: 1.14rem; line-height: 1.35; }

.projects-section { padding: 30px 0 128px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 22px; }
.section-heading .eyebrow { margin: 0; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.section-description { margin: 0; color: var(--muted); font-size: .92rem; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 46px; }
.project-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  grid-column: span 4;
  padding: 25px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-card:nth-child(1) { grid-column: span 6; min-height: 320px; }
.project-card:nth-child(4) { grid-column: span 5; }
.project-card:nth-child(5) { grid-column: span 7; }
.project-card:hover { border-color: var(--accent); background: #fff; transform: translateY(-4px); }
.project-card:after { position: absolute; right: -22px; bottom: -30px; width: 120px; height: 120px; border: 1px solid var(--accent); border-radius: 50%; opacity: .14; content: ""; transition: transform 300ms ease; }
.project-card:hover:after { transform: scale(1.25); }

.card-top, .card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; }
.card-status { color: var(--accent); font-size: .74rem; font-weight: 600; }
.card-arrow { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.project-card h3 { max-width: 440px; margin: 34px 0 9px; font-size: 1.75rem; font-weight: 600; letter-spacing: -.055em; line-height: 1.04; }
.project-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: .94rem; }
.card-type { color: var(--muted); font-size: .78rem; }

.closing-note { display: flex; align-items: end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding: 44px 0 112px; }
.closing-note p { max-width: 500px; margin: 0; font-size: clamp(1.5rem, 3vw, 2.55rem); letter-spacing: -.055em; line-height: 1.08; }

@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 32px), var(--max-width)); }
  .site-header { padding-top: 22px; }
  .top-nav { gap: 16px; }
  .hero { display: block; min-height: 0; padding: 88px 0 100px; }
  h1 { font-size: clamp(3.45rem, 17vw, 6rem); }
  .hero-note { margin-top: 78px; padding-left: 20%; }
  .section-heading { display: block; }
  .section-heading h2 { margin: 14px 0; }
  .project-grid { display: block; margin-top: 30px; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(4), .project-card:nth-child(5) { min-height: 265px; margin-bottom: 14px; }
  .closing-note { display: block; padding-bottom: 84px; }
  .closing-note .text-link { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
