:root {
  color-scheme: light;
  --ink: #111315;
  --muted: #60646c;
  --line: #d8dbe2;
  --paper: #f5f5f2;
  --white: #ffffff;
  --blue: #214cff;
  --soft-blue: #edf1ff;
  --soft-gray: #ecece8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav .active {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 73px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-copy {
  order: 1;
  max-width: 760px;
}

.hero-visual {
  position: relative;
  order: 2;
  min-height: 520px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(17, 19, 21, 0.07) 1px, transparent 1px),
    var(--white);
  background-size: 32px 32px;
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(17, 19, 21, 0.18);
  content: "";
}

.portfolio-board {
  position: absolute;
  top: 54px;
  left: 42px;
  right: 42px;
  display: grid;
  border-top: 2px solid var(--ink);
  background: var(--white);
}

.board-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
}

.board-row span {
  color: var(--blue);
  font-weight: 900;
}

.board-row strong {
  font-size: clamp(23px, 2.6vw, 36px);
  line-height: 0.95;
}

.board-row small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 800;
}

.board-row.featured {
  background: var(--soft-blue);
}

.knowledge-panel {
  position: absolute;
  right: 28px;
  top: 28px;
  bottom: auto;
  display: grid;
  gap: 5px;
  width: min(180px, calc(100% - 56px));
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.knowledge-panel span,
.knowledge-panel small,
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
}

.knowledge-panel span,
.knowledge-panel small {
  color: rgba(255, 255, 255, 0.72);
}

.knowledge-panel strong {
  font-size: 54px;
  line-height: 0.95;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 900px;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead,
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
}

.section,
.page {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.route-grid,
.work-grid,
.knowledge-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-card,
.work-card,
.knowledge-grid article,
.service-grid article,
.article-list article,
.topic-list article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.route-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  display: grid;
  gap: 14px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.route-card:hover,
.work-card:hover {
  border-color: var(--ink);
  background: var(--soft-blue);
}

.route-card span,
.work-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.route-card strong,
.work-card strong {
  overflow-wrap: anywhere;
  font-size: 21px;
}

.route-card p,
.work-card p,
.topic-list p,
.article-list p,
.knowledge-grid p,
.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.work-card small {
  align-self: end;
  color: var(--blue);
  font-weight: 900;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.contact-strip h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 44px);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 18px;
  padding: 22px;
}

.topic-list article span {
  grid-row: span 2;
  color: var(--blue);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.page {
  display: grid;
  gap: 34px;
}

.page-hero {
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
}

.tool-surface {
  display: grid;
  gap: 18px;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.search-box span {
  display: grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
}

.search-box button {
  min-height: 38px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
}

.knowledge-grid,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-grid article,
.service-grid article {
  min-height: 220px;
  padding: 24px;
}

.knowledge-grid small {
  color: var(--blue);
  font-weight: 900;
}

.knowledge-grid h2,
.service-grid h2,
.article-list h2 {
  margin-top: 12px;
  font-size: 25px;
}

.service-grid strong {
  display: block;
  margin-top: 18px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 24px;
  padding: 24px;
}

.article-list time {
  grid-row: span 2;
  color: var(--blue);
  font-weight: 900;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--ink);
  background: var(--soft-blue);
}

.contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-visual {
    order: initial;
  }

  .hero-visual {
    min-height: 420px;
  }

  .route-grid,
  .work-grid,
  .knowledge-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .footer,
  .contact-band,
  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .portfolio-board {
    top: 28px;
    left: 22px;
    right: 22px;
  }

  .board-row {
    grid-template-columns: 42px 1fr;
    padding: 18px 0;
  }

  .route-grid,
  .work-grid,
  .knowledge-grid,
  .service-grid,
  .article-list article,
  .topic-list article,
  .search-box {
    grid-template-columns: 1fr;
  }

  .article-list time,
  .topic-list article span {
    grid-row: auto;
  }

  .route-card {
    min-height: 0;
  }
}
