@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  --ink: #1c2540;
  --muted: #4b5568;
  --line: #dbe1ee;
  --paper: #f4f6fb;
  --white: #ffffff;
  --blue: #1342c3;
  --blue-bright: #3364eb;
  --blue-soft: #e7edfd;
  --shadow: 0 16px 40px rgba(28, 37, 64, 0.06);
  --header: 4.25rem;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: #0d2f8c;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 40;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  color: var(--blue);
}

.mark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: none;
}

.site-nav a,
.nav-disclosure a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.nav-disclosure a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.nav-disclosure summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}

.nav-disclosure summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure nav {
  position: absolute;
  right: 1.25rem;
  top: calc(var(--header) - 0.25rem);
  min-width: 12rem;
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-disclosure a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
}

.nav-disclosure a:hover,
.nav-disclosure a[aria-current="page"] {
  background: var(--blue-soft);
}

.rail-meta {
  display: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.content {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 3.5rem 0 1rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(51, 100, 235, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 100, 235, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(51, 100, 235, 0.35) 1.4px, transparent 0);
  background-size: 40px 40px, 40px 40px, 20px 20px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--blue);
}

.lede {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #0d2f8c;
  color: #fff;
}

.button-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button-ghost:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue-bright);
}

.hero-logo {
  display: none;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding: 2.5rem 0;
}

.page-intro h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.section h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.section-head p,
.page-intro p {
  max-width: 40rem;
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card,
.panel,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
}

.card h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--blue);
}

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

.index {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-layout,
.contact-layout {
  display: grid;
  gap: 1.25rem;
}

.panel,
.contact-card {
  padding: 1.4rem;
}

.role {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.address {
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.45;
}

.page-intro {
  padding-top: 3.25rem;
}

.service {
  scroll-margin-top: 5.5rem;
}

.service + .service {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.service h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.expertise {
  margin: 0;
  padding: 0;
  list-style: none;
}

.expertise li + li {
  border-top: 1px solid var(--line);
}

.expertise a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.expertise a:hover {
  color: var(--blue);
}

.expertise a span {
  color: var(--blue);
  font-weight: 500;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #cfd6e6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
  outline: 2px solid rgba(51, 100, 235, 0.25);
  outline-offset: 1px;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #b42318;
}

.form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

[hidden] {
  display: none !important;
}

.field-error,
.form-alert {
  margin: 0;
  color: #9f1c14;
  font-size: 0.92rem;
}

.form-alert {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #fdecec;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.contact-success h2 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.contact-success .button {
  width: auto;
  margin-top: 0.5rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.site-footer .content {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.copy,
.rail-meta p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
  }

  .site-header {
    position: sticky;
    top: 0;
    align-self: start;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100vh;
    padding: 1.6rem 1.35rem 1.4rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: var(--white);
    backdrop-filter: none;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--blue-soft);
    color: var(--blue);
  }

  .nav-disclosure {
    display: none;
  }

  .rail-meta {
    display: block;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.7fr);
  }

  .hero-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
    margin-inline: auto;
  }

  .content {
    width: min(1080px, calc(100% - 5rem));
  }

  .service {
    scroll-margin-top: 1.5rem;
  }

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

  .about-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .skip-link,
  .actions,
  .form {
    display: none;
  }

  body,
  .site-header {
    background: #fff;
  }

  .shell {
    display: block;
  }
}
