:root {
  --ink: #071521;
  --navy: #0f2940;
  --blue: #086b9c;
  --blue-dark: #055477;
  --ice: #eaf3f7;
  --mist: #f5f8fa;
  --white: #ffffff;
  --line: #cbd8df;
  --muted: #526672;
  --success: #176b55;
  --danger: #a32620;
  --shadow: 0 24px 70px rgba(15, 41, 64, 0.13);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(8, 107, 156, .35); outline-offset: 3px; }
::selection { background: #b9dced; color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.mono {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .06em;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font: 600 .75rem/1.3 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.kicker { color: var(--blue-dark); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(203, 216, 223, .82);
  backdrop-filter: blur(14px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 7px solid var(--blue);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
}
.brand-name { display: grid; line-height: 1; }
.brand-name strong { font-size: .94rem; letter-spacing: .08em; }
.brand-name span { margin-top: 5px; color: var(--muted); font-size: .61rem; letter-spacing: .12em; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.desktop-nav a { font-size: .92rem; font-weight: 650; text-decoration: none; }
.desktop-nav a:not(.btn)::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms var(--ease);
}
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.langswitch { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.langswitch a {
  display: inline-flex;
  min-width: 25px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 4px;
  color: var(--muted);
  font: 700 .68rem/1 "Cascadia Mono", Consolas, monospace;
  text-decoration: none;
}
.langswitch a[aria-current="true"] { color: var(--blue-dark); background: var(--ice); }
.menu-button {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 120ms ease-out;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms var(--ease);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { color: var(--blue-dark); background: var(--ice); border-color: var(--blue); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--ice); border-color: var(--ice); }
.btn-text { min-height: auto; padding: 0; border: 0; background: none; color: var(--blue-dark); }
.btn-text:hover { background: none; color: var(--ink); }
.arrow { font-family: Arial, sans-serif; transition: transform 180ms var(--ease); }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, var(--white) 0 70%, var(--mist) 70%); }
.hero-grid {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  align-items: stretch;
}
.hero-copy { align-self: center; padding: 72px 7vw 72px 0; }
.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 4.5vw, 5.4rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 680px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media { position: relative; min-width: 0; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.84) contrast(1.03); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(7, 21, 33, .7)); pointer-events: none; }
.hero-caption { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 1; color: var(--white); font-size: .86rem; }

.page-hero { padding: 92px 0 72px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr); gap: 8vw; align-items: end; }
.page-hero h1 { max-width: 920px; margin: 0; font-size: clamp(2.75rem, 5.8vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
.page-hero p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: .84rem; }
.breadcrumb a { color: var(--blue-dark); }

.section { padding-block: 112px; }
.section-compact { padding-block: 76px; }
.section-mist { background: var(--mist); }
.section-ice { background: var(--ice); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .muted { color: #c2d0d8; }
.section-heading { display: grid; gap: 18px; max-width: 800px; margin-bottom: 52px; }
.section-heading h2, .split-copy h2, .cta-band h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p, .split-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.pathways { display: grid; grid-template-columns: 7fr 5fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pathway { position: relative; min-width: 0; min-height: 520px; padding: clamp(28px, 5vw, 64px); background: var(--white); overflow: hidden; }
.pathway:nth-child(2) { background: var(--mist); }
.pathway-index { color: var(--blue-dark); font-size: .75rem; }
.pathway h3 { max-width: 520px; margin: 130px 0 18px; font-size: clamp(2.25rem, 4vw, 4.6rem); line-height: .95; letter-spacing: -.045em; }
.pathway p { max-width: 520px; color: var(--muted); }
.pathway .btn-text { margin-top: 22px; }

.media-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.media-split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.media-split.reverse .media-frame { order: 2; }
.media-frame { position: relative; min-width: 0; background: var(--mist); border: 1px solid var(--line); overflow: hidden; }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame.contain img { object-fit: contain; padding: 24px; background: var(--white); }
.media-frame figcaption { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.split-copy { min-width: 0; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy .btn { margin-top: 28px; }

.spec-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: minmax(160px, 4fr) minmax(0, 8fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 650; }
.boundary { margin-top: 28px; padding: 18px 20px; background: var(--ice); border-left: 3px solid var(--blue); color: var(--navy); }

.route-list { border-top: 1px solid var(--line); }
.route-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 34px;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.route-number { color: var(--blue-dark); font-size: .72rem; }
.route-item h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.15; }
.route-item p { margin: 0; color: var(--muted); }
.route-arrow { color: var(--blue); font-size: 1.4rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-step { min-width: 0; min-height: 260px; padding: 28px; background: var(--white); }
.process-step .mono { display: block; margin-bottom: 74px; color: var(--blue-dark); font-size: .72rem; }
.process-step h3 { margin: 0 0 12px; font-size: 1.25rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .94rem; }

.decision-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.decision-item { grid-column: span 4; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.decision-item:nth-child(1), .decision-item:nth-child(4) { grid-column: span 7; }
.decision-item:nth-child(2), .decision-item:nth-child(3) { grid-column: span 5; }
.decision-item h3 { margin: 0 0 12px; }
.decision-item p { margin: 0; color: var(--muted); }

.cta-band { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr); gap: 50px; align-items: end; padding: 56px; background: var(--navy); color: var(--white); }
.cta-band p { max-width: 680px; margin: 18px 0 0; color: #c8d6dd; }
.cta-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

.contact-grid { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(40px, 8vw, 110px); }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { color: var(--blue-dark); font-weight: 700; }
.rfq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #9fb1bb;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 20px; margin: 5px 0 0; color: var(--danger); font-size: .82rem; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.form-status { grid-column: 1 / -1; min-height: 24px; font-weight: 700; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; }

.article-section { background: var(--white); }
.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); gap: clamp(44px, 7vw, 96px); align-items: start; }
.article-main { min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 26px; color: var(--blue-dark); font: 600 .75rem/1.4 "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.article-main > .media-frame { margin: 0 0 46px; }
.article-main > .media-frame img { aspect-ratio: 16/9; }
.article-prose { max-width: 800px; font-size: 1.04rem; line-height: 1.82; }
.article-prose h2 { margin: 58px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(1.65rem, 3vw, 2.35rem); }
.article-prose h3 { margin: 32px 0 10px; font-size: 1.25rem; }
.article-prose p { margin: 0 0 22px; }
.article-prose ul { margin: 0 0 26px; padding-left: 1.25rem; }
.article-prose li + li { margin-top: 9px; }
.article-prose a { color: var(--blue-dark); font-weight: 700; text-underline-offset: 3px; }
.article-aside { position: sticky; top: 108px; padding: 28px; background: var(--mist); border-top: 3px solid var(--blue); }
.article-aside h2 { margin: 10px 0 14px; font-size: 1.4rem; }
.article-aside p:not(.eyebrow) { color: var(--muted); }
.article-aside .btn { margin-top: 10px; }

.site-footer { padding: 64px 0 30px; background: #081b2a; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 5fr) repeat(3, minmax(140px, 2fr)); gap: 50px; }
.footer-intro { max-width: 470px; color: #bbcad2; }
.footer-heading { margin: 0 0 15px; color: #9bb2bf; font: 600 .72rem/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: #9bb2bf; font-size: .82rem; }

.not-found { min-height: calc(100dvh - 76px); display: grid; place-items: center; padding: 70px 0; background: var(--mist); }
.not-found h1 { margin: 0; font-size: clamp(5rem, 14vw, 12rem); line-height: .8; letter-spacing: -.08em; color: var(--blue); }
.not-found h2 { margin: 26px 0 12px; font-size: 2rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .btn:hover .arrow, .btn-text:hover .arrow, .route-item:hover .route-arrow { transform: translateX(4px); }
  .pathway:hover { z-index: 1; box-shadow: var(--shadow); }
  .route-item:hover h3 { color: var(--blue-dark); }
  .langswitch a:hover { color: var(--blue-dark); background: var(--mist); }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .nav-shell { gap: 14px; }
  .desktop-nav { gap: 17px; }
  .desktop-nav .btn { padding-inline: 14px; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .langswitch { margin-left: auto; }
  .menu-button { display: block; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 76px;
    display: grid;
    gap: 0;
    padding: 16px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 41, 64, .12);
    overscroll-behavior: contain;
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 220ms var(--ease), visibility 0s linear 220ms;
  }
  .mobile-nav.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
  .mobile-nav .btn { margin-top: 16px; border-bottom: 0; }
  .hero { background: var(--white); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 0 64px; }
  .hero-media { min-height: 56vw; }
  .page-hero-grid, .media-split, .media-split.reverse, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .page-hero p { margin-top: 12px; }
  .media-split.reverse .media-frame { order: 0; }
  .article-aside { position: static; }
  .pathways { grid-template-columns: 1fr; }
  .pathway { min-height: 400px; }
  .pathway h3 { margin-top: 80px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .site-header, .nav-shell { min-height: 104px; }
  .nav-shell { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .menu-button { margin-left: auto; }
  .langswitch { order: 3; width: 100%; justify-content: center; margin-left: 0; padding: 5px 0 8px; }
  .mobile-nav { top: 104px; }
  .brand-name span { display: none; }
  .hero-copy { padding: 62px 0 50px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .hero-media { min-height: 72vw; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .page-hero { padding: 64px 0 52px; }
  .section { padding-block: 72px; }
  .section-compact { padding-block: 56px; }
  .section-heading { margin-bottom: 36px; }
  .route-item { grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 12px; }
  .route-item p { grid-column: 2 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 220px; }
  .process-step .mono { margin-bottom: 42px; }
  .decision-grid { display: block; }
  .decision-item + .decision-item { margin-top: 14px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-band { padding: 32px 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .rfq-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .menu-button { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .section-compact { padding: 30px 0; }
}
