:root {
  --navy: #071127;
  --navy-2: #101b31;
  --blue: #173d70;
  --red: #d71910;
  --yellow: #dfbd09;
  --paper: #f3f1eb;
  --paper-2: #eae8e1;
  --white: #ffffff;
  --text: #172033;
  --muted: #6c7380;
  --line: rgba(7,17,39,.15);
  --mono: "IBM Plex Mono", monospace;
  --heading: "IBM Plex Sans", sans-serif;
  --body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; width: 100%; }
a { text-decoration: none; }

.site-header {
  background: rgba(243,241,235,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar { min-height: 78px; }

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--heading);
  font-size: .95rem;
  color: var(--navy);
}

.brand-copy span {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-link {
  font-size: .78rem;
  color: var(--navy) !important;
  padding: .65rem .8rem !important;
}

.header-search,
.header-contact {
  font-size: .72rem;
  font-family: var(--mono);
}

.header-search {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.header-contact {
  color: var(--navy);
}

.side-rail {
  position: fixed;
  top: 78px;
  left: 0;
  bottom: 0;
  width: 56px;
  z-index: 30;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-right: 1px solid var(--line);
  background: rgba(243,241,235,.9);
}

.side-rail > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.side-rail nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.side-rail a {
  font-family: var(--mono);
  font-size: .58rem;
  color: var(--muted);
}

main {
  padding-top: 78px;
}

.hero-section,
.service-section,
.search-section,
.training-section,
.project-section,
.insight-section,
.relationship-section,
.contact-section {
  margin-left: 0;
}

@media (min-width: 1200px) {
  .hero-section,
  .service-section,
  .topic-section,
  .search-section,
  .training-section,
  .project-section,
  .insight-section,
  .relationship-section,
  .contact-section,
  .site-footer {
    padding-left: 56px;
  }
}

.hero-section {
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.hero-shell {
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-copy {
  min-height: 710px;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-code,
.section-code,
.training-meta,
.pub-id,
.pub-main > span {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-copy h1 {
  max-width: 930px;
  margin: 2rem 0;
  font-family: var(--heading);
  font-size: clamp(4rem, 7vw, 7.7rem);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 500;
  color: var(--navy);
}

.hero-copy > p {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-link,
.secondary-link {
  font-size: .78rem;
  font-weight: 600;
}

.primary-link {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

.secondary-link {
  color: var(--muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 1.4rem 1.4rem 0 0;
  display: flex;
  flex-direction: column;
}

.hero-facts strong {
  font-family: var(--heading);
  font-size: 1.25rem;
  color: var(--navy);
}

.hero-facts span {
  margin-top: .35rem;
  font-family: var(--mono);
  font-size: .58rem;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-visual {
  min-height: 710px;
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.68) contrast(1.04);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,17,39,.52), transparent 48%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .4;
}

.visual-note,
.visual-index {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.82);
}

.top-note { top: 1.5rem; left: 1.5rem; }
.bottom-note { left: 1.5rem; bottom: 1.5rem; }
.visual-index { right: 1.5rem; bottom: 1.5rem; }

.service-section,
.training-section,
.project-section,
.insight-section,
.contact-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: end;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-heading h2,
.topic-section h2,
.search-shell h2,
.relationship-shell h2,
.contact-grid h2 {
  margin: .9rem 0 0;
  font-family: var(--heading);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 500;
  color: var(--navy);
}

.section-heading p,
.topic-section p,
.search-shell p,
.contact-grid p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: .2s ease;
}

.service-item:hover {
  padding-left: 1rem;
  padding-right: 1rem;
  background: var(--white);
}

.service-no {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted);
}

.service-main h3 {
  margin: 0 0 .6rem;
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
}

.service-main p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
}

.related-topics {
  margin-top: .7rem;
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--blue);
}

.service-item > a {
  justify-self: end;
  color: var(--navy);
  font-size: .76rem;
}

.topic-section {
  padding: 8rem 0;
  background: var(--navy);
  color: #fff;
}

.section-code.light {
  color: var(--yellow);
}

.topic-section h2 {
  color: #fff;
}

.topic-section p {
  color: rgba(255,255,255,.58);
}

.light-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: #fff;
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

.topic-index {
  border-top: 1px solid rgba(255,255,255,.13);
}

.topic-index a {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr 30px;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.topic-index span,
.topic-index small {
  font-family: var(--mono);
  font-size: .62rem;
  color: rgba(255,255,255,.45);
}

.topic-index strong {
  font-size: 1.1rem;
  font-weight: 500;
}

.topic-index b {
  font-weight: 400;
}

.search-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  padding: 3rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.search-shell h2 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
}

.search-box input {
  min-width: 0;
  padding: 1rem 1.2rem;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: .75rem;
}

.search-box button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
  padding: 0 1.5rem;
  font-family: var(--mono);
  font-size: .7rem;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.training-grid article {
  min-height: 320px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.35);
}

.training-grid h3 {
  margin: 2rem 0 1rem;
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
}

.training-grid p {
  margin: 0;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
}

.training-grid a {
  margin-top: auto;
  color: var(--navy);
  font-size: .76rem;
}

.project-section {
  background: var(--white);
}

.featured-project {
  border: 1px solid var(--line);
}

.project-image {
  min-height: 560px;
  position: relative;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.68);
}

.project-image-label {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  font-family: var(--mono);
  font-size: .64rem;
  color: #fff;
  letter-spacing: .08em;
}

.project-copy {
  padding: 4rem;
  background: var(--navy);
  color: #fff;
}

.project-copy > span,
.project-tags {
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-copy > span {
  color: var(--yellow);
}

.project-copy h3 {
  margin: 1.2rem 0;
  font-family: var(--heading);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 1;
  font-weight: 500;
}

.project-tags {
  color: rgba(255,255,255,.55);
}

.project-copy p {
  margin: 2rem 0;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(255,255,255,.58);
}

.project-copy a {
  color: #fff;
  font-size: .76rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-list article {
  min-height: 220px;
  padding: 1.6rem;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-list span {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
}

.project-list h4 {
  margin: 3rem 0 .5rem;
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--navy);
}

.project-list p {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted);
}

.project-list a {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--navy);
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-list article {
  display: grid;
  grid-template-columns: 100px 1fr 140px 70px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-main h3 {
  margin: .55rem 0;
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
}

.pub-main p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

.pub-meta {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted);
}

.publication-list article > a {
  color: var(--navy);
  font-size: .76rem;
}

.relationship-section {
  padding: 2rem 0;
}

.relationship-shell {
  padding: 4rem;
  background: var(--navy);
  color: #fff;
}

.relationship-shell h2 {
  color: #fff;
}

.relationship-map {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.relationship-map div {
  min-height: 120px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.15);
}

.relationship-map small {
  font-family: var(--mono);
  font-size: .58rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}

.relationship-map strong {
  font-weight: 500;
}

.relationship-map > span {
  color: var(--yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: end;
}

.contact-grid a {
  display: inline-block;
  margin-top: 2rem;
  color: var(--navy);
  font-size: .78rem;
  border-bottom: 1px solid var(--navy);
}

.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #050b17;
  color: rgba(255,255,255,.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  font-family: var(--mono);
  font-size: .62rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--heading);
  font-size: .84rem;
}

.footer-brand span {
  margin-top: .25rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: rgba(255,255,255,.58);
}

@media (max-width: 1199.98px) {
  .hero-copy {
    min-height: auto;
  }

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

@media (max-width: 991.98px) {
  .brand-copy span {
    display: none;
  }

  .hero-copy {
    padding: 4rem 2rem;
  }

  .section-heading,
  .search-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 70px 1fr 90px;
  }

  .topic-index a {
    grid-template-columns: 80px 1fr 30px;
  }

  .topic-index small {
    grid-column: 2;
  }

  .training-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .publication-list article {
    grid-template-columns: 85px 1fr 60px;
  }

  .pub-meta {
    grid-column: 2;
  }

  .publication-list article > a {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .relationship-map {
    grid-template-columns: 1fr;
  }

  .relationship-map > span {
    transform: rotate(90deg);
    justify-self: start;
  }

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

@media (max-width: 767.98px) {
  .hero-copy {
    padding: 3rem 1.2rem;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

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

  .service-section,
  .training-section,
  .project-section,
  .insight-section,
  .contact-section,
  .topic-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .service-item {
    grid-template-columns: 52px 1fr 30px;
    gap: 1rem;
  }

  .service-main h3 {
    font-size: 1.35rem;
  }

  .service-item > a {
    font-size: 0;
  }

  .service-item > a::after {
    content: "↗";
    font-size: .9rem;
  }

  .topic-index a {
    grid-template-columns: 68px 1fr 25px;
  }

  .search-shell,
  .relationship-shell {
    padding: 2.5rem 1.2rem;
  }

  .project-copy {
    padding: 3rem 1.2rem;
  }

  .publication-list article {
    grid-template-columns: 1fr 40px;
  }

  .pub-id,
  .pub-meta {
    grid-column: 1;
  }

  .pub-main {
    grid-column: 1;
  }

  .publication-list article > a {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}
