@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
}

:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --soft: #e8eef7;
  --ink: #101b2d;
  --muted: #5a6a83;
  --deep: #0d2c5c;
  --deep-soft: #163d78;
  --accent: #29b6e8;
  --border: #ccd7e6;
  --on-dark: #edf2fa;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 78px;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="tab"] {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--deep);
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc(50vw - 590px));
  color: var(--on-dark);
  background: color-mix(in srgb, var(--deep) 94%, transparent);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

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

.brand-name strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-name small {
  margin-top: 5px;
  color: #c9d3e6;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
}

.nav > a:not(.header-cta) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 5px;
}

.nav > a:not(.header-cta):hover {
  text-decoration: underline;
}

.header-cta,
.primary-button,
.outline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease;
}

.button-icon {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.header-cta,
.primary-button {
  color: var(--deep);
  background: var(--accent);
  box-shadow: 0 12px 24px rgb(7 20 43 / 0.2);
}

.header-cta:hover,
.primary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.header-cta:active,
.primary-button:active,
.outline-button:active,
.service-cta:active {
  transform: translateY(1px);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--on-dark);
  background: transparent;
  border: 0;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--deep);
}

.hero-media,
.hero-media::after,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  transform: scaleX(-1);
}

.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgb(13 44 92 / 0.96) 0%, rgb(13 44 92 / 0.78) 34%, rgb(13 44 92 / 0.14) 68%, transparent 90%);
}

.hero-shade {
  background: linear-gradient(0deg, rgb(13 44 92 / 0.55), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(98px, 15vh, 150px);
  padding-bottom: 210px;
}

.eyebrow,
.section-kicker,
.matrix-kicker {
  margin: 0;
  color: #c8d4e8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1060px;
  margin: 24px 0 26px;
  color: #f4f7fb;
  font-family: var(--font-display);
  font-size: clamp(58px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: #cfdcee;
}

.hero-copy {
  max-width: 570px;
  margin: 0;
  color: #d3e0ef;
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: #eef4fb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-context {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 34px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgb(255 255 255 / 0.3);
}

.hero-context p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 14px 18px 0 0;
  color: #e0e9f6;
  font-size: 12px;
}

.hero-context strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-context span {
  color: #cddaeb;
}

.services,
.matrix,
.faq {
  padding-block: 124px;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}

.section-kicker {
  padding-top: 10px;
  color: var(--muted);
}

.section-heading h2,
.method h2,
.about h2,
.contact h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-heading > div > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
}

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

.service-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: var(--soft);
  transform: translateY(-3px);
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 54px 0 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.service-card p {
  max-width: 38ch;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.service-cta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 160ms ease, transform 160ms ease;
}

.service-cta:hover {
  color: var(--deep-soft);
}

.trainings {
  padding: 100px max(24px, calc(50vw - 590px)) 116px;
  color: var(--on-dark);
  background: var(--deep-soft);
}

.trainings-heading .section-kicker {
  color: #c8d4e8;
}

.trainings-heading h2 {
  color: #f2f6fb;
}

.trainings-heading > div > p {
  max-width: 56ch;
  color: #c8d4e8;
}

.trainings-heading .primary-button {
  margin-top: 28px;
}

.trainings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.14);
}

.trainings-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: var(--deep-soft);
  font-size: 13px;
  color: #c8d4e8;
}

.trainings-grid span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 120px max(24px, calc(50vw - 590px));
  color: var(--on-dark);
  background: var(--deep);
}

.method-intro,
.method-list {
  width: 100%;
}

.method .section-kicker {
  margin-bottom: 34px;
  color: #c8d4e8;
}

.method h2 {
  color: #f2f6fb;
}

.method-intro > p:not(.section-kicker) {
  max-width: 48ch;
  margin: 28px 0 36px;
  color: #c8d4e8;
}

.outline-button {
  color: #eef4fb;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.38);
}

.outline-button:hover {
  color: var(--deep);
  background: var(--accent);
  border-color: var(--accent);
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.method-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.method-list li > span {
  color: #a9bdd6;
  font-family: var(--font-mono);
  font-size: 11px;
}

.method-list h3 {
  margin: 0;
  color: #f2f6fb;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.method-list p {
  max-width: 52ch;
  margin: 8px 0 0;
  color: #b6c8e0;
  font-size: 14px;
}

.section-heading.compact {
  margin-bottom: 44px;
}

.matrix-panel {
  background: var(--surface);
  border: 1px solid var(--border);
}

.matrix-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.matrix-tabs button {
  min-height: 58px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.matrix-tabs button:last-child {
  border-right: 0;
}

.matrix-tabs button[aria-selected="true"] {
  color: var(--deep);
  background: var(--accent);
}

.matrix-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
  gap: clamp(44px, 9vw, 130px);
  min-height: 380px;
  padding: 62px;
}

.matrix-kicker {
  color: var(--muted);
}

.matrix-content h3 {
  margin: 20px 0 18px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.matrix-content > div > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.matrix-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.matrix-content li {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}

.matrix-content li span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
  padding: 120px max(24px, calc(50vw - 590px));
  background: var(--soft);
}

.about .section-kicker {
  margin-bottom: 32px;
}

.about-copy .lead {
  margin: 0 0 28px;
  font-size: 23px;
  letter-spacing: -0.01em;
  line-height: 1.42;
}

.about-copy > p:not(.lead) {
  max-width: 56ch;
  color: var(--muted);
}

.about-photo {
  display: flex;
  min-height: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
}

.about-photo img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 24% center;
}

.about-photo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: 56px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 20px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.faq-item button > span:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.faq-item button strong {
  font-size: 17px;
  font-weight: 700;
}

.faq-icon {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.faq-answer {
  padding: 0 76px 28px;
}

.faq-answer p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(48px, 9vw, 130px);
  padding: 100px max(24px, calc(50vw - 590px));
  color: var(--on-dark);
  background: var(--deep);
}

.contact .eyebrow {
  margin-bottom: 28px;
  color: var(--accent);
}

.contact h2 {
  color: #f2f6fb;
}

.contact-action {
  align-self: end;
}

.contact-action p {
  max-width: 42ch;
  margin: 0 0 28px;
  color: #c4d2e6;
}

footer {
  padding: 48px max(24px, calc(50vw - 590px));
  color: #b9c9df;
  background: #081b38;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.footer-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand strong {
  color: #f2f6fb;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-brand p,
.footer-copy,
.footer-legal {
  margin: 2px 0 0;
  font-size: 11px;
}

.footer-copy {
  max-width: 30ch;
  text-align: right;
}

.footer-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 46px 0;
  padding: 24px 0;
  border-block: 1px solid rgb(255 255 255 / 0.14);
}

.footer-details p,
.footer-details a {
  margin: 0;
  font-size: 12px;
}

.footer-details a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-details span {
  display: block;
  margin-bottom: 6px;
  color: #f2f6fb;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal {
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 40px, 760px);
    --header-height: 72px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand-name small {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 14px 20px 20px;
    background: var(--deep);
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
  }

  .nav.is-open {
    display: grid;
    gap: 4px;
  }

  .nav > a:not(.header-cta) {
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }

  .nav .header-cta {
    margin-top: 10px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media img {
    object-position: 68% center;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgb(13 44 92 / 0.97), rgb(13 44 92 / 0.78) 58%, rgb(13 44 92 / 0.22));
  }

  .hero-context {
    right: 20px;
    left: 20px;
  }

  .section-heading {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

  .trainings {
    padding-inline: 20px;
  }

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

  .method,
  .about,
  .contact {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .matrix-content {
    gap: 50px;
    padding: 42px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-media img {
    object-position: 74% center;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgb(13 44 92 / 0.18) 8%, rgb(13 44 92 / 0.8) 50%, rgb(13 44 92 / 0.99));
  }

  .hero .eyebrow {
    color: var(--deep);
  }

  .hero-content {
    padding-top: 86px;
    padding-bottom: 210px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(50px, 16vw, 66px);
    line-height: 0.9;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 28px;
  }

  .hero-actions .primary-button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-context {
    right: 16px;
    bottom: 22px;
    left: 16px;
    display: flex;
    flex-direction: column;
  }

  .hero-context p {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }

  .services,
  .matrix,
  .faq {
    padding-block: 86px;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-heading h2,
  .method h2,
  .about h2,
  .contact h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

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

  .service-card {
    min-height: 350px;
    padding: 24px;
  }

  .trainings {
    padding-block: 86px;
    padding-inline: 16px;
  }

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

  .method,
  .about,
  .contact {
    gap: 50px;
    padding-block: 86px;
    padding-inline: 16px;
  }

  .about {
    align-items: stretch;
  }

  .about-copy {
    order: 1;
  }

  .about-photo {
    display: block;
    order: 2;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-position: center;
  }

  .method-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .matrix-tabs {
    grid-template-columns: 1fr;
  }

  .matrix-tabs button {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .matrix-tabs button:last-child {
    border-bottom: 0;
  }

  .matrix-content {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 28px 22px;
  }

  .matrix-content h3 {
    font-size: 42px;
  }

  .about-copy .lead {
    font-size: 20px;
  }

  .faq-item button {
    min-height: 82px;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .faq-answer {
    padding-right: 0;
    padding-left: 44px;
  }

  .footer-main {
    align-items: start;
    flex-direction: column;
  }

  .footer-copy {
    text-align: left;
  }

  .footer-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
