@font-face {
  font-family: Geist;
  src: url('./fonts/geist.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #202734;
  --slate: #36415a;
  --green: #b7d894;
  --mint: #e0f8c7;
  --text: #f5f6f1;
  --muted: #bdc6d3;
  --line: #ffffff20;
  --surface: #272f3f;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(2.25rem, 6.5vw, 6rem);
}

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

html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 1rem/1.6 Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 2 * var(--gutter)), 1200px); margin-inline: auto; }
.conveyor-page { position: relative; }
@media screen {
  html { scroll-padding-block-start: var(--site-header-height, 75px); }
  .site-header { position: sticky; top: 0; z-index: 3; }
  body.has-conveyor-travel .conveyor-page { position: sticky; top: var(--conveyor-pin-top); }
  body.has-conveyor-travel::after { content: ''; display: block; height: var(--conveyor-travel); }
}
.conveyor-route { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 1; }
.conveyor-route canvas { position: absolute; display: block; }
.conveyor-load { will-change: transform; }
@media print { .conveyor-route { display: none; } }
.skip-link {
  position: fixed;
  z-index: 4;
  inset: .75rem auto auto .75rem;
  transform: translateY(-160%);
  padding: .5rem .85rem;
  background: var(--mint);
  color: var(--ink);
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: #1d2430;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: .65rem;
}
.menu-toggle { display: none; }
.header-menu { display: contents; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .72rem;
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  width: 35px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #b7d8945e;
  border-radius: 6px;
  background: #b7d89410;
  color: var(--mint);
  font: 700 .79rem/1 var(--font-mono);
  letter-spacing: -.05em;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .32rem clamp(.8rem, 1.6vw, 1.6rem); }
.site-nav a {
  padding: .25rem 0;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 530;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current='page'], .site-nav .nav-selected { color: var(--mint); }
.language-switch {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  font: 650 .74rem/1 var(--font-mono);
}
.language-switch a { padding: 8px 9px; border-radius: 3px; color: var(--muted); }
.language-switch a:hover { color: var(--mint); }
.language-switch a[aria-current='true'] { background: var(--green); color: var(--ink); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 78% 54%, #36415a5e, transparent 64%), var(--ink);
}
.hero-inner {
  min-height: 536px;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  padding-block: 34px var(--crossing-clearance);
}
.hero-copy { position: relative; z-index: 1; padding-block: 25px; }
.eyebrow {
  color: var(--green);
  font: 560 .73rem/1.5 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-role { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.15rem; text-transform: none; }
.hero-role > span { flex: 0 0 19px; margin-top: .55em; height: 1px; background: var(--green); }
.hero h1 {
  font-size: clamp(3.5rem, 6.1vw, 5.65rem);
  line-height: .99;
  font-weight: 645;
  letter-spacing: -.062em;
  text-wrap: initial;
}
.hero h1 em { display: block; font-style: normal; color: var(--green); }
:lang(en) .hero h1 { font-size: clamp(3.4rem, 5.7vw, 5.4rem); }
.hero-lead {
  max-width: 50ch;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.46vw, 1.11rem);
  line-height: 1.65;
}
.hero-lead p + p, .industry-intro p + p { margin-top: .75em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.15;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button-outline { border-color: #ffffff38; background: #2027346b; }
.button-outline:hover { border-color: var(--green); color: var(--mint); }
.arrow { font-family: system-ui, sans-serif; font-size: 1em; line-height: 1; }

.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-width: 0;
  aspect-ratio: 1.4;
}
.hero-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -7% 1% -7%;
  background-image: linear-gradient(#b7d89415 1px, transparent 1px), linear-gradient(90deg, #b7d89415 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, #000 27%, transparent 76%);
}
.hero-canvas { display: block; width: 100%; height: auto; aspect-ratio: 620 / 440; }
.model-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: min(78%, 360px);
  min-height: 41px;
  margin: -5px auto 0;
  padding-left: .85rem;
  padding-right: .25rem;
  border: 1px solid #ffffff24;
  border-radius: 5px;
  background: #202734d9;
  color: #c7d0d9;
  font: 540 .68rem/1.2 var(--font-mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.model-name { display: flex; align-items: center; gap: .65rem; }
.model-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px #b7d89477; }
.motion-toggle {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--mint);
  cursor: pointer;
}
.motion-toggle { width: 33px; height: 32px; flex: 0 0 33px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--line); background: var(--slate); }
.motion-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.motion-toggle.is-paused .motion-icon {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

body[data-page='home'] { --crossing-clearance: clamp(3rem, 5.5vw, 5.5rem); }
.competency-group { padding-block: var(--crossing-clearance); background: #232b39; }
.competency-group--background { background: var(--ink); }
.competency-group--industries { background: #202a31; }
.industry-intro { max-width: 68ch; margin-bottom: 1.55rem; color: var(--muted); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 2rem; margin-bottom: 1.55rem; }
.section-heading h2, .footer-content h2 {
  font-weight: 630;
  font-size: clamp(2.05rem, 3.65vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.047em;
}
.footer-content p { color: var(--muted); font-size: .96rem; }
.section-heading .motion-toggle { width: 40px; height: 40px; flex-basis: 40px; border-color: var(--line); }
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.45rem);
}
.competency-card {
  min-width: 0;
  overflow: hidden;
  background: #283142;
  border: 1px solid #ffffff24;
  border-radius: 9px;
}
.competency-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.98;
  background: radial-gradient(ellipse at 50% 60%, #36415a, #262f3f 74%);
  border-bottom: 1px solid var(--line);
}
.competency-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background-image: linear-gradient(#b7d89417 1px, transparent 1px), linear-gradient(90deg, #b7d89417 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 16%, transparent 76%);
}
.competency-art canvas { display: block; width: 100%; height: 100%; }
.competency-copy { padding: clamp(1.1rem, 1.9vw, 1.55rem); hyphens: auto; overflow-wrap: break-word; }
.competency-copy h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.16; font-weight: 615; letter-spacing: -.038em; }
.competency-copy p { margin-top: .75rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.competency-group--industries .competency-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.8rem, 1.4vw, 1.1rem);
}
.competency-group--industries .competency-copy { padding: clamp(1rem, 1.4vw, 1.2rem); }
.competency-group--industries .competency-copy h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }

.competency-group--core .competency-card {
  border-color: #b7d89452;
  border-top: 2px solid var(--green);
}
.competency-group--core .competency-copy h3 { color: var(--mint); }

.content-page { padding-block: clamp(2.8rem, 7.6vw, 6.7rem) clamp(3rem, 7vw, 6rem); }
.content-page-header { max-width: 53rem; padding-bottom: clamp(2rem, 5vw, 3.7rem); }
.content-page-header::before {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.2rem;
  background: var(--green);
  content: '';
}
.content-page h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  font-weight: 645;
  line-height: 1.03;
  letter-spacing: -.062em;
  text-wrap: initial;
  overflow-wrap: anywhere;
}
.content-page-intro { max-width: 61ch; margin-top: 1.2rem; color: var(--muted); font-size: clamp(1.05rem, 1.75vw, 1.24rem); }
.content-page-section { max-width: 47rem; border-top: 1px solid var(--line); padding-block: clamp(1.25rem, 3vw, 2rem); }
.content-page-section h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.04em; }
.content-page-section p, .content-page-section ul { max-width: 68ch; margin-top: .65rem; color: var(--muted); }
.content-page-section ul { margin-bottom: 0; padding-inline-start: 1.5em; }
.content-page-link { color: var(--mint); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.content-page-section[data-conveyor-crossing] { padding-top: clamp(2.45rem, 4.6vw, 4.2rem); }
.content-page-section:has(+ [data-conveyor-crossing]) { padding-bottom: clamp(2.45rem, 4.6vw, 4.2rem); }

.contact-label {
  width: fit-content;
  max-width: 100%;
  margin-top: .65rem;
  border: 1px solid #b7d89462;
  border-radius: 5px;
  background: var(--surface);
}
.contact-label summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.5rem;
  padding: .38rem .75rem;
  color: var(--mint);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.contact-label summary::-webkit-details-marker { display: none; }
.contact-label summary:hover { background: #b7d89412; }
.contact-label summary::before {
  content: '';
  flex: 0 0 1.4rem;
  height: .95rem;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 6px, transparent 6px 8px);
}
.contact-label summary::after {
  content: '';
  flex: 0 0 .45rem;
  height: .45rem;
  margin-inline-start: auto;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.contact-label[open] summary::after { transform: rotate(225deg); }
.contact-label address {
  display: grid;
  gap: .35rem;
  padding: .6rem .75rem;
  border-top: 1px dashed var(--line);
  color: var(--text);
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contact-label-postal { white-space: pre-line; }

.site-footer { border-top: 1px solid var(--line); background: #1d2430; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: clamp(2.55rem, 5vw, 4rem); }
.footer-content h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: .5rem; }
.home-contact-copy { max-width: 65ch; }
.home-contact-copy p + p { margin-top: .65rem; }
.home-contact-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.home-contact-email summary { cursor: pointer; list-style: none; }
.home-contact-email summary::-webkit-details-marker { display: none; }
.footer-email { margin-top: .65rem; overflow-wrap: anywhere; }
.footer-email a { color: var(--mint); text-decoration: underline; text-underline-offset: .18em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding-block: 1rem; border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); }
.footer-bottom a:hover, .footer-legal a[aria-current="page"] { color: var(--mint); }
.footer-legal, .footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }

body[data-page='home'] .footer-content { padding-block: var(--crossing-clearance); }
.footer-bottom[data-conveyor-crossing] {
  border-top: 0;
  padding-block: var(--crossing-clearance) clamp(1rem, 2vw, 2rem);
}

@media (max-width: 940px) {
  .hero-inner { min-height: 462px; grid-template-columns: 47% 53%; }
  .hero h1 { font-size: clamp(3.15rem, 6.7vw, 4.2rem); }
  :lang(en) .hero h1 { font-size: clamp(3rem, 6vw, 4rem); }
}

@media screen and (max-width: 1000px) {
  html { scroll-padding-block-start: .5rem; }
  .site-header { position: relative; }
  .header-inner { min-height: 56px; grid-template-columns: 1fr auto; gap: 0 .75rem; padding-block: .35rem; }
  .menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--mint);
    cursor: pointer;
  }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: var(--green); }
  .menu-toggle[aria-expanded="false"] .menu-close,
  .menu-toggle[aria-expanded="true"] .menu-bars,
  .menu-toggle:not([hidden])[aria-expanded="false"] + .header-menu { display: none; }
  .header-menu {
    display: grid;
    grid-column: 1 / -1;
    gap: .5rem;
    margin-top: .35rem;
    padding-block: .35rem .65rem;
    border-top: 1px solid var(--line);
  }
  .site-nav { display: grid; justify-content: stretch; gap: 0; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; }
  .language-switch { justify-self: start; }
  .language-switch a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
}

@media (max-width: 720px) {
  .hero-inner { display: block; min-height: auto; padding-block-start: 2.6rem; }
  .hero-copy { padding: 0; }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(3rem, 11.2vw, 5rem); }
  .hero-lead { margin-top: 1.1rem; }
  .hero-visual { max-width: 520px; margin: .75rem auto 0; }
}

@media (max-width: 500px) {
  .section-heading { column-gap: .5rem; }
  .section-heading h2 { font-size: clamp(1.5rem, 7.6vw, 2.05rem); hyphens: auto; overflow-wrap: anywhere; }
  .hero h1, :lang(en) .hero h1 { font-size: clamp(2.35rem, 16vw - .8rem, 3.5rem); }
  .hero-role { font-size: clamp(.61rem, 2.8vw, .73rem); }
  .button { padding-inline: .8rem; font-size: .84rem; }
  .model-caption { width: min(92%, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
