:root {
  --bg: #090c0d;
  --bg-rgb: 9, 12, 13;
  --bg-soft: #0d1112;
  --surface: #111617;
  --surface-hover: #151b1c;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.065);
  --text: #f3f6f4;
  --text-rgb: 243, 246, 244;
  --muted: #a3adaa;
  --muted-rgb: 163, 173, 170;
  --muted-dark: #75807d;
  --muted-dark-rgb: 117, 128, 125;
  --accent: #83f36b;
  --accent-rgb: 131, 243, 107;
  --section-bg: rgba(9, 12, 13, 0.76);
  --section-bg-soft: rgba(9, 12, 13, 0.62);
  --card-bg-soft: rgba(17, 22, 23, 0.55);
  --card-bg: rgba(17, 22, 23, 0.68);
  --card-bg-strong: rgba(17, 22, 23, 0.76);
  --footer-bg: #070a0b;
  --font-sans: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1240px;
  --radius: 2px;
}

/* Direct discovery of the statutory information page on every corporate page. */
.site-footer__info { grid-column:1 / -1; margin:0; padding-top:18px; border-top:1px solid var(--line); }
.site-footer__info a { color:var(--text); text-decoration:underline; text-underline-offset:4px; }
.site-nav--with-it { flex-wrap:wrap; justify-content:flex-end; }
.site-nav--with-it .site-nav__it { display:inline-flex; }
.site-header__inner:has(.site-nav--with-it) { gap:12px; }
@media(max-width:780px) {
  .site-nav--with-it { max-width:calc(100vw - 168px); gap:0 16px; }
}
@media(max-width:520px) {
  .site-nav.site-nav--with-it { max-width:calc(100vw - 156px); gap:0 12px; }
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf0eb;
  --bg-rgb: 237, 240, 235;
  --bg-soft: #e6ebe5;
  --surface: #fbfcfa;
  --surface-hover: #f5f8f3;
  --line: rgba(19, 36, 28, 0.16);
  --line-soft: rgba(19, 36, 28, 0.09);
  --text: #17201c;
  --text-rgb: 23, 32, 28;
  --muted: #56635d;
  --muted-rgb: 86, 99, 93;
  --muted-dark: #77837d;
  --muted-dark-rgb: 119, 131, 125;
  --accent: #20853a;
  --accent-rgb: 32, 133, 58;
  --section-bg: rgba(237, 240, 235, 0.84);
  --section-bg-soft: rgba(237, 240, 235, 0.7);
  --card-bg-soft: rgba(255, 255, 255, 0.67);
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-bg-strong: rgba(255, 255, 255, 0.88);
  --footer-bg: #e1e6df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.site-background__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

.site-background__glow {
  position: absolute;
  top: -20vw;
  right: -18vw;
  z-index: 1;
  width: 65vw;
  aspect-ratio: 1;
  border-radius: 50%;
}

.site-background__glow::before,
.site-background__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.site-background__glow::before {
  background: radial-gradient(circle, rgba(131, 243, 107, .08), transparent 67%);
}

.site-background__glow::after {
  background: radial-gradient(circle, rgba(32, 133, 58, .1), transparent 67%);
  opacity: 0;
  transform: scale(.85);
}

html[data-theme="light"] .site-background__glow::before {
  opacity: 0;
  transform: scale(1.12);
}

html[data-theme="light"] .site-background__glow::after {
  opacity: 1;
  transform: scale(1);
}

html.theme-soft-shift *,
html.theme-soft-shift *::before,
html.theme-soft-shift *::after {
  transition-property: color, background-color, border-color, fill, stroke !important;
  transition-duration: 800ms !important;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
}

html.theme-soft-shift .site-background__glow::before,
html.theme-soft-shift .site-background__glow::after {
  transition-property: opacity, transform !important;
  transition-duration: 900ms !important;
}

.theme-ripple {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: clip-path, opacity;
}

.theme-ripple--light {
  background: radial-gradient(circle at var(--wave-x) var(--wave-y), rgba(131, 243, 107, .24), rgba(237, 240, 235, .13) 44%, transparent 73%);
}

.theme-ripple--dark {
  background: radial-gradient(circle at var(--wave-x) var(--wave-y), rgba(131, 243, 107, .16), rgba(9, 12, 13, .3) 44%, transparent 73%);
}

html.theme-wave,
html.theme-wave *,
html.theme-wave *::before,
html.theme-wave *::after {
  transition: none !important;
}

html.theme-wave::view-transition-old(root),
html.theme-wave::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-wave::view-transition-old(root) {
  z-index: 1;
}

html.theme-wave::view-transition-new(root) {
  z-index: 2;
}

.orbital-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand,
.brand__mark {
  display: inline-flex;
  align-items: baseline;
}

.brand {
  padding: 8px 0;
}

.brand__mark {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.brand__nine {
  font-size: 34px;
}

.brand__letters {
  margin-left: 2px;
  color: var(--accent);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-control {
  position: relative;
  z-index: 20;
}

.theme-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 1;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.theme-switch:hover,
.theme-switch:focus-visible {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.theme-switch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 50%;
}

.theme-switch::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -13px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255, 220, 159, .42) 0%,
    rgba(255, 174, 78, .27) 18%,
    rgba(244, 117, 43, .16) 36%,
    rgba(225, 82, 31, .065) 53%,
    rgba(225, 82, 31, 0) 73%);
  opacity: 0;
  transform: scale(.88);
  filter: brightness(1) saturate(1);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

html[data-theme="dark"] .theme-switch {
  color: #ffdb9e;
}

html[data-theme="dark"] .theme-switch::before {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch:hover,
html[data-theme="dark"] .theme-switch:focus-visible {
  color: #fff2d6;
}

html[data-theme="dark"] .theme-switch:hover::before,
html[data-theme="dark"] .theme-switch:focus-visible::before {
  transform: scale(1.35);
  filter: brightness(1.8) saturate(1.25);
}

.theme-switch__icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: filter 420ms ease;
}

html[data-theme="dark"] .theme-switch:hover .theme-switch__icon--light,
html[data-theme="dark"] .theme-switch:focus-visible .theme-switch__icon--light {
  filter: drop-shadow(0 0 5px rgba(255, 186, 94, .85));
}

html[data-theme="dark"] .theme-switch__icon--light,
html[data-theme="light"] .theme-switch__icon--dark {
  display: block;
}

html[data-theme="dark"] .theme-switch__icon--light circle {
  fill: rgba(255, 220, 159, .24);
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch,
  .theme-switch::before,
  .theme-switch__icon {
    transition: none;
  }
}

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  min-height: 100svh;
  padding: 144px 0 58px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 32px;
  font-size: clamp(47px, 5.4vw, 78px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span,
h2 span {
  color: var(--muted-dark);
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 216px;
  min-height: 58px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button svg,
.contact-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--accent);
}

.button:active {
  transform: translateY(0);
}

.hero__footer {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.hero__footer-line {
  width: 70px;
  height: 1px;
  background: var(--line);
}

.section {
  padding: 136px 0;
}

.directions {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: var(--section-bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 80px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(36px, 4.1vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.section-heading__note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.direction-card {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  padding: 34px 36px 32px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-bg-soft);
  transition: background-color 260ms ease;
}

.direction-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  content: "";
  opacity: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(225deg, black, transparent 72%);
  transition: opacity 260ms ease;
}

.direction-card:hover {
  background: var(--surface-hover);
}

.direction-card:hover::before {
  opacity: 1;
}

.direction-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 70px;
}

.direction-card__number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.direction-card__icon {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--muted-dark);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.3;
  transition: stroke 220ms ease, transform 220ms ease;
}

.direction-card:hover .direction-card__icon {
  transform: translateY(-3px);
  stroke: var(--accent);
}

.direction-card h3 {
  max-width: 430px;
  margin-bottom: 17px;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.direction-card p {
  max-width: 480px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.button--outline {
  background: transparent;
  color: var(--accent);
}

.button--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.experience-teaser {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: var(--section-bg-soft);
}

.experience-teaser__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.experience-teaser__panel::after {
  position: absolute;
  right: -150px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px dashed rgba(var(--accent-rgb), 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.experience-teaser__metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  border-right: 1px solid var(--line);
}

.experience-teaser__metric strong {
  color: var(--text);
  font-size: clamp(92px, 10vw, 142px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.85;
}

.experience-teaser__metric strong span,
.experience-badge strong span {
  color: var(--accent);
}

.experience-teaser__metric p {
  max-width: 250px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.experience-teaser__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 58px 64px;
}

.experience-teaser__copy h2 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.experience-teaser__copy > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.contacts {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}

.contacts__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 90px;
  align-items: start;
}

.contacts__copy {
  position: relative;
  z-index: 1;
}

.contacts__copy h2 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.contacts__copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.contacts__links {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  min-height: 102px;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, padding 180ms ease;
}

.contact-link__label {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-link__value {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 520;
  letter-spacing: -0.025em;
}

.contact-link svg {
  color: var(--muted-dark);
  transition: color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
}

.contact-link:hover svg,
.contact-link:focus-visible svg {
  transform: translateX(4px);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 180px 1fr 1.3fr auto;
  gap: 38px;
  align-items: center;
  min-height: 158px;
  color: var(--muted-dark);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.site-footer__brand .brand__nine {
  font-size: 25px;
}

.site-footer__brand .brand__letters {
  font-size: 15px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-footer address {
  max-width: 360px;
  font-style: normal;
}

.site-footer__copyright {
  margin: 0;
  white-space: nowrap;
}
.site-footer__version { display: block; margin-top: 6px; color: var(--muted); font: 11px/1.4 var(--font-mono); letter-spacing: .04em; }

.competencies-hero {
  position: relative;
  padding: 148px 0 122px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 82px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.competencies-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 90px;
  align-items: end;
}

.competencies-hero__copy h1 {
  max-width: 820px;
  margin-bottom: 34px;
}

.competencies-hero__lead {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}

.experience-badge {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg-strong);
}

.experience-badge::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px dashed rgba(var(--accent-rgb), 0.18);
  border-radius: 50%;
}

.experience-badge__label {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-badge strong {
  display: block;
  margin: 38px 0 20px;
  font-size: 94px;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.experience-badge p {
  position: relative;
  z-index: 1;
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.competencies-catalog {
  padding: 128px 0;
  background: var(--section-bg);
}

.competency-group + .competency-group {
  margin-top: 130px;
}

.competency-group__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.competency-group__number,
.competency-card__number {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.competency-group__header h2 {
  max-width: 780px;
  margin: 14px 0 0;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.competency-group__header > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.competency-card {
  position: relative;
  min-height: 300px;
  padding: 34px 36px 38px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
  transition: background-color 220ms ease;
}

.competency-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 76px;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.competency-card:hover {
  background: var(--surface-hover);
}

.competency-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.competency-card h3 {
  max-width: 520px;
  margin: 74px 0 18px;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 580;
  letter-spacing: -0.032em;
  line-height: 1.17;
}

.competency-card p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.competencies-cta {
  padding: 0 0 128px;
  background: var(--section-bg);
}

.competencies-cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding: 66px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.competencies-cta__inner h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .direction-card:nth-child(2) { transition-delay: 70ms; }
.js .direction-card:nth-child(3) { transition-delay: 140ms; }
.js .direction-card:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 1040px) {
  .hero {
    min-height: 820px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 20px;
  }

  .contacts__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .site-footer__inner {
    grid-template-columns: 170px 1fr 1.2fr;
    padding: 34px 0;
  }

  .site-footer__copyright {
    grid-column: 3;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .site-header__inner {
    min-height: 76px;
  }

  .site-nav {
    gap: 20px;
    font-size: 13px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 128px 0 78px;
  }

  .hero__inner {
    display: block;
  }

  h1 {
    max-width: 700px;
    font-size: clamp(43px, 11vw, 66px);
  }

  .hero__lead {
    max-width: 620px;
  }

  .hero__footer {
    display: none;
  }

  .section {
    padding: 100px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 48px;
  }

  .section-heading__note {
    max-width: 470px;
    margin-top: 24px;
  }

  .directions__grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 330px;
  }

  .direction-card__top {
    margin-bottom: 54px;
  }

  .contact-link {
    grid-template-columns: 140px minmax(0, 1fr) 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 22px 34px;
  }

  .site-footer address {
    grid-column: 1 / -1;
    max-width: none;
  }

  .site-footer__copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-nav a:first-child {
    display: none;
  }

  .brand__nine {
    font-size: 30px;
  }

  .brand__letters {
    font-size: 19px;
  }

  .hero {
    padding-top: 118px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(39px, 12vw, 54px);
    line-height: 1.01;
  }

  .hero__lead {
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.55;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2 {
    font-size: 37px;
  }

  .directions__grid {
    margin-right: -1px;
  }

  .direction-card {
    min-height: 310px;
    padding: 27px 24px 25px;
  }

  .direction-card__top {
    margin-bottom: 46px;
  }

  .direction-card h3 {
    font-size: 25px;
  }

  .contacts__inner {
    gap: 48px;
  }

  .contacts__copy h2 {
    font-size: 42px;
  }

  .contacts__copy > p:last-child {
    font-size: 16px;
  }

  .contact-link {
    grid-template-columns: 1fr 22px;
    gap: 8px 12px;
    min-height: 104px;
    padding: 20px 0;
  }

  .contact-link__label {
    grid-column: 1;
  }

  .contact-link__value {
    grid-column: 1;
    font-size: 23px;
  }

  .contact-link svg {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0;
  }

  .site-footer address,
  .site-footer__copyright {
    grid-column: 1;
  }
}

@media (max-width: 1040px) {
  .experience-teaser__panel {
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  }

  .experience-teaser__metric {
    padding: 42px;
  }

  .experience-teaser__copy {
    padding: 50px;
  }

  .competencies-hero__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
  }

  .competency-group__header {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 46px;
  }
}

@media (max-width: 780px) {
  .experience-teaser__panel {
    grid-template-columns: 1fr;
  }

  .experience-teaser__metric {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .experience-teaser__metric p {
    max-width: 320px;
  }

  .competencies-hero {
    padding: 126px 0 92px;
  }

  .back-link {
    margin-bottom: 58px;
  }

  .competencies-hero__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .experience-badge {
    min-height: 280px;
  }

  .competencies-catalog {
    padding: 96px 0;
  }

  .competency-group + .competency-group {
    margin-top: 100px;
  }

  .competency-group__header {
    display: block;
  }

  .competency-group__header > p {
    max-width: 520px;
    margin-top: 24px;
  }

  .competency-grid {
    grid-template-columns: 1fr;
  }

  .competency-card {
    min-height: 280px;
  }

  .competencies-cta {
    padding-bottom: 96px;
  }

  .competencies-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .experience-teaser__metric {
    min-height: 230px;
    padding: 32px 26px 46px;
  }

  .experience-teaser__metric strong {
    font-size: 82px;
  }

  .experience-teaser__metric p {
    margin-top: 22px;
  }

  .experience-teaser__copy {
    padding: 42px 26px;
  }

  .experience-teaser__copy h2 {
    font-size: 38px;
  }

  .competencies-hero {
    padding: 112px 0 78px;
  }

  .back-link {
    margin-bottom: 46px;
  }

  .competencies-hero__copy h1 {
    margin-bottom: 26px;
  }

  .competencies-hero__lead {
    font-size: 17px;
  }

  .experience-badge {
    min-height: 255px;
    padding: 28px 24px;
  }

  .experience-badge strong {
    margin-top: 32px;
    font-size: 80px;
  }

  .competencies-catalog {
    padding: 78px 0;
  }

  .competency-group + .competency-group {
    margin-top: 84px;
  }

  .competency-group__header {
    margin-bottom: 34px;
  }

  .competency-group__header h2 {
    font-size: 36px;
  }

  .competency-card {
    min-height: 270px;
    padding: 28px 24px 32px;
  }

  .competency-card h3 {
    margin-top: 56px;
    font-size: 24px;
  }

  .competency-card p {
    font-size: 14px;
  }

  .competencies-cta {
    padding-bottom: 78px;
  }

  .competencies-cta__inner {
    padding: 54px 0;
  }

  .competencies-cta__inner h2 {
    font-size: 38px;
  }

  .competencies-cta__inner .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Projects */
.project-hero {
  position: relative;
  padding: 148px 0 118px;
  border-bottom: 1px solid var(--line-soft);
}

.project-hero__copy {
  max-width: 900px;
}

.project-hero h1 {
  max-width: 900px;
  margin-bottom: 32px;
}

.project-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}

.project-hero--detail {
  padding-bottom: 134px;
}

.project-list,
.project-summary {
  background: var(--section-bg);
}

.project-tile {
  position: relative;
  display: flex;
  min-height: 475px;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg-soft);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.project-tile::after {
  position: absolute;
  right: -130px;
  bottom: -250px;
  width: 600px;
  height: 600px;
  content: "";
  border: 1px solid rgba(var(--accent-rgb), 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(var(--accent-rgb), 0.025), 0 0 0 180px rgba(var(--accent-rgb), 0.018);
  pointer-events: none;
}

.project-tile:hover,
.project-tile:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: var(--surface-hover);
}

.project-tile__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--accent);
}

.project-tile__index,
.project-tile__more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-tile__top svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  transition: transform 220ms ease;
}

.project-tile:hover .project-tile__top svg,
.project-tile:focus-within .project-tile__top svg {
  transform: translate(3px, -3px);
}

.project-tile__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 74px;
}

.project-tile h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.project-tile p {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.project-tile__more {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.project-tile__more span {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
}

.project-tile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.project-tile__more,
.project-tile__download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-tile__more { position: static; }
.project-tile__more::before { position: absolute; z-index: 2; inset: 0; content: ""; }

.project-tile__download {
  position: relative;
  z-index: 3;
  padding: 9px 14px;
  border: 1px solid currentColor;
}

.project-tile__more:hover,
.project-tile__download:hover,
.project-tile__more:focus-visible,
.project-tile__download:focus-visible { color: var(--text); }

.project-tile__more:focus-visible,
.project-tile__download:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.project-tile__download span { font: 18px/1 var(--font-sans); }

.bear-presentation__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.bear-presentation__actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.bear-presentation__actions a:hover, .bear-presentation__actions a:focus-visible { background: var(--accent); color: var(--section-bg); }
.bear-presentation__slides { display: grid; gap: 28px; }
.presentation-reader-open { min-height:44px; margin:0 0 20px; padding:10px 16px; background:var(--accent); color:var(--bg); border:1px solid var(--accent); font:inherit; cursor:pointer; }
.presentation-reader-active { overflow:hidden; }
.presentation-reader { position:fixed; inset:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; margin:0; padding:0; border:0; background:#090c0d; color:#fff; overflow:hidden; }
.presentation-reader::backdrop { background:#090c0d; }
.presentation-reader[open] { display:grid; grid-template-rows:minmax(0,1fr) auto; }
.presentation-reader .bear-presentation__slides { grid-row:1; min-height:0; }
.presentation-reader__completion { grid-row:2; }
.presentation-reader__completion:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; padding:14px max(16px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); background:var(--surface); color:var(--text); border-top:1px solid var(--line); }
.presentation-reader__completion p { margin:0; flex-basis:100%; text-align:center; }
.presentation-reader__completion a,.presentation-reader__completion button { min-height:44px; padding:10px 16px; border:1px solid var(--accent); background:transparent; color:var(--text); font:inherit; cursor:pointer; }
.presentation-reader__completion a { background:var(--accent); color:var(--bg); text-decoration:none; }
.presentation-reader__completion :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.presentation-reader .bear-presentation__slides { display:flex; gap:0; width:100%; height:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior:contain; scrollbar-width:none; touch-action:pan-x pinch-zoom; }
.presentation-reader .bear-presentation__slides::-webkit-scrollbar { display:none; }
.presentation-reader .bear-presentation__slide { flex:0 0 100%; min-width:0; height:100%; scroll-snap-align:center; scroll-snap-stop:always; display:flex; align-items:center; justify-content:center; }
.presentation-reader .bear-presentation__slide canvas { width:100%; height:100%; object-fit:contain; border:0; background:transparent; }
.presentation-reader figcaption { display:none; }
.presentation-reader__toolbar { position:absolute; z-index:2; left:0; right:0; top:0; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:calc(8px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left)); background:linear-gradient(rgba(0,0,0,.85),rgba(0,0,0,.35)); transition:opacity 200ms; }
.presentation-reader__toolbar button { min-width:44px; min-height:44px; padding:8px; border:1px solid rgba(255,255,255,.4); background:rgba(0,0,0,.5); color:#fff; font:inherit; cursor:pointer; }
.presentation-reader__toolbar button:disabled { opacity:.4; cursor:default; }
.presentation-reader__toolbar button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.presentation-reader__count { white-space:nowrap; font-variant-numeric:tabular-nums; }
.presentation-reader.controls-hidden .presentation-reader__toolbar { opacity:0; pointer-events:none; }
.presentation-reader__hint { position:absolute; z-index:1; bottom:calc(20px + env(safe-area-inset-bottom)); left:16px; right:16px; text-align:center; color:#fff; background:rgba(0,0,0,.65); padding:12px; font-size:13px; pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .presentation-reader__toolbar { transition:none; } }
.bear-presentation__slide { margin: 0; }
.bear-presentation__slide canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--section-bg); }
.bear-presentation__status { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.presentation-download-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--line); background: var(--surface); color: var(--text); overflow: auto; }
.presentation-download-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.presentation-download-dialog h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.presentation-download-dialog p { margin: 0 0 24px; color: var(--muted); }
.presentation-download-dialog__choices { display: grid; gap: 12px; }
.presentation-download-dialog__choices a { display: block; min-height: 48px; padding: 12px 16px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; text-align: center; }
.presentation-download-dialog__choices a:hover, .presentation-download-dialog__choices a:focus-visible { background: var(--accent); color: var(--bg); }
.presentation-download-dialog__cancel { display: block; margin: 20px auto 0; }
.presentation-download-dialog button { min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.presentation-download-dialog button:hover, .presentation-download-dialog button:focus-visible { background: var(--surface-hover); }
.bear-presentation__slide figcaption { padding-top: 9px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-align: right; }
@media (max-width: 520px) { .bear-presentation__slides { gap: 20px; } }

.project-summary__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 9%;
}

.project-summary h2,
.project-map h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.project-summary__steps {
  border-top: 1px solid var(--line);
}

.project-summary__steps > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.project-summary__steps > div span {
  padding-top: 5px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-summary__steps p {
  max-width: 490px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.project-map {
  border-top: 1px solid var(--line-soft);
  background: var(--section-bg-soft);
}

.project-map__heading {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.project-map__freshness { max-width: 340px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.project-map__figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #090d0d;
}

.project-map__monitor-link {
  margin-top: 28px;
}

.project-map__canvas {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 674;
  background-color: #090d0d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 10% 16.67%;
}

.project-map__canvas::before,
.project-map__canvas::after {
  position: absolute;
  z-index: 1;
  width: 19px;
  height: 19px;
  content: "";
  color: #6d7d73;
  opacity: 0.75;
  pointer-events: none;
}

.project-map__canvas::before {
  top: 20px;
  left: 20px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.project-map__canvas::after {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.project-map__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.project-map__regions path {
  fill: none;
  stroke: #83f36b;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 780px) {
  .project-hero {
    padding: 126px 0 92px;
  }

  .project-hero .back-link {
    margin-bottom: 58px;
  }

  .project-tile {
    min-height: 410px;
    padding: 30px;
  }

  .project-summary__layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

}

@media (max-width: 520px) {
  .project-hero {
    padding: 118px 0 82px;
  }

  .project-hero__lead {
    font-size: 17px;
    line-height: 1.55;
  }

  .project-tile {
    min-height: 360px;
    padding: 26px 24px;
  }

  .project-tile h2 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .project-tile__body {
    padding-top: 48px;
  }

  .project-summary__steps > div {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .project-summary__steps p {
    font-size: 16px;
  }

  .project-map__canvas::before {
    top: 10px;
    left: 10px;
  }

  .project-map__canvas::after {
    right: 10px;
    bottom: 10px;
  }

}

/* Bear project: reference-based wireframe with a weight-bearing walk. */
.bear-project-page .project-hero--detail { padding-top: 88px; padding-bottom: 38px; }
.bear-project-page .project-summary { padding-top: 37px; padding-bottom: 70px; }
.bear-project-page .project-map { padding-top: 80px; }
.bear-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  min-height: 420px;
}
.bear-project-page .project-hero__copy { max-width: 610px; }
.bear-stage {
  --bear-line: #56b96b;
  --bear-far: #327542;
  width: 100%;
  aspect-ratio: 1650 / 1010;
  overflow: hidden;
}
html[data-theme="light"] .bear-stage { --bear-line: #23743b; --bear-far: #6a9371; }
.bear-stage__art { display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.bear-scene__animal .bear-scene__body,
.bear-scene__animal .bear-scene__skin { pointer-events: visiblePainted; }
.bear-scene__tracking { opacity: 0; pointer-events: none; }
.bear-stage.is-tracking .bear-scene__tracking { opacity: 1; }
.bear-scene__tracking-box,
.bear-scene__tracking-corners {
  fill: none;
  stroke: var(--bear-line);
  vector-effect: non-scaling-stroke;
}
.bear-scene__tracking-box { stroke-width: 1; opacity: .7; }
.bear-scene__tracking-corners { stroke-width: 2; }
.bear-scene__tracking-tag { fill: var(--bear-line); }
.bear-scene__tracking-text {
  fill: var(--bg);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .6px;
}
.bear-scene__animal, .bear-scene__landscape, .bear-scene__ground {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bear-scene__animal { stroke: var(--bear-line); stroke-width: 2.7; }
.bear-scene__body { fill: var(--bg); stroke-width: 3.8; }
.bear-scene__skin { fill: var(--bg); stroke: none; }
.bear-scene__outline { fill: none; stroke-width: 3.8; }
.bear-scene__mesh { fill: none; opacity: .86; }
.bear-scene__face { fill: none; stroke-width: 3.5; }
.bear-scene__claws { fill: none; stroke-width: 2.6; }
.bear-scene__limb--far { stroke: var(--bear-far); }
.bear-scene__landscape { stroke: var(--muted); stroke-width: 2; }
.bear-scene__mountains { opacity: .23; }
.bear-scene__city { opacity: .27; }
.bear-scene__forest-far { stroke: var(--bear-line); opacity: .18; }
.bear-scene__forest-near { stroke: var(--bear-line); opacity: .31; stroke-width: 2.3; }
.bear-scene__ground { stroke: var(--muted); opacity: .15; stroke-width: 1.6; }
@media (max-width: 780px) {
  .bear-hero__layout { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .bear-stage { max-width: 660px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .bear-project-page .project-hero--detail { padding-top: 80px; padding-bottom: 20px; }
  .bear-project-page .project-summary { padding-top: 10px; }
  .bear-project-page .project-map { padding-top: 72px; }
  .bear-hero__layout { gap: 20px; }
  .bear-stage { width: calc(100% + 32px); max-width: none; margin-left: -16px; }
}

.project-summary__video-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, gap 180ms ease;
}
.project-summary__video-link:hover,
.project-summary__video-link:focus-visible {
  gap: 23px;
  color: var(--text);
}
.project-summary__video-link > span:last-child {
  margin-left: auto;
  font-size: 20px;
}
.project-summary__play {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  padding-left: 2px;
}

.bear-video {
  min-height: calc(100vh - 250px);
  padding-top: 145px;
  background: var(--section-bg);
}
.bear-video .back-link { margin-bottom: 72px; }
.bear-video__heading { max-width: 800px; margin-bottom: 40px; }
.bear-video__heading h1 { margin-bottom: 24px; }
.bear-video__heading > p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}
.bear-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #090c0d;
}
.bear-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.bear-video__fallback {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.bear-video__fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 780px) {
  .bear-video { padding-top: 120px; }
  .bear-video .back-link { margin-bottom: 58px; }
}
@media (max-width: 520px) {
  .project-summary__video-link { font-size: 15px; gap: 12px; }
  .bear-video { padding-top: 112px; }
  .bear-video .back-link { margin-bottom: 48px; }
  .bear-video__heading { margin-bottom: 30px; }
}

/* Compact map on the bear project uses the monitoring register. */
.map-mode-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); background: var(--card-bg); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.map-mode-toggle:hover { border-color: var(--accent); }
.map-mode-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.map-mode-toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-map__heading { margin-bottom: 18px; }
.project-map__controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 15px; margin-bottom: 14px; }
.project-map__controls small { max-width: 330px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.project-map__link { display: block; color: inherit; }
.project-map__link:hover .project-map__open,
.project-map__link:focus-visible .project-map__open { color: #b7ffab; }
.project-map__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-map__open { display: flex; justify-content: space-between; gap: 20px; padding: 19px 26px; border-top: 1px solid rgba(255,255,255,.12); color: #83f36b; font-size: 16px; font-weight: 600; transition: color 180ms ease; }
.project-map__open > span { font-size: 21px; }
.project-map__status { position: absolute; top: 50%; left: 50%; width: min(80%,380px); transform: translate(-50%,-50%); color: #b7c6b9; font-size: 14px; text-align: center; }
.project-map__status[hidden] { display: none; }
#project-incidents-map .project-map__region { fill: #0d1513; stroke: #68c766; stroke-width: .85; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#project-incidents-map .project-map__region[data-level="1"] { fill: #254b31; }
#project-incidents-map .project-map__region[data-level="2"] { fill: #3e8849; }
#project-incidents-map .project-map__region[data-level="3"] { fill: #62c769; }
.project-map__anchor-halo { fill: #f8f6e7; fill-opacity: .08; stroke: #f8f6e7; stroke-opacity: .45; stroke-width: 1.5; }
.project-map__anchor-dot { fill: #f8f6e7; stroke: #09110e; stroke-width: 2; }
.project-map__anchor.is-recent .project-map__anchor-halo { fill: #f2bd73; fill-opacity: .12; stroke: #f2bd73; stroke-opacity: .95; }
.project-map__anchor.is-recent .project-map__anchor-dot { fill: #f2bd73; }
.project-map__anchor-count { fill: #08100c; font: 700 11px var(--font-mono); text-anchor: middle; dominant-baseline: central; }
.project-map__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 19px; color: var(--muted); font-size: 13px; }
.project-map__legend-title { margin-right: auto; }
.project-map__legend > span:not(:first-child) { display: inline-flex; align-items: center; gap: 7px; }
.project-map__legend [hidden] { display: none !important; }
.project-map__legend i { width: 13px; height: 13px; border: 1px solid #f8f6e7; border-radius: 50%; background: #f8f6e7; }
.project-map__legend i[data-kind^="level-"] { border-radius: 0; border-color: #68c766; }
.project-map__legend i[data-kind="level-0"] { background: #0d1513; }
.project-map__legend i[data-kind="level-1"] { background: #254b31; }
.project-map__legend i[data-kind="level-2"] { background: #3e8849; }
.project-map__legend i[data-kind="level-3"] { background: #62c769; }
.project-map__legend i[data-kind="recent"] { border-color: #f2bd73; background: #f2bd73; }
.project-map__news-block { margin-top: 64px; }
.project-map__news-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.project-map__news-heading h3 { margin: 0; font-size: clamp(24px,2.8vw,36px); }
.project-map__news-heading a, .project-map__news-source { color: var(--accent); font-size: 13px; }
.project-map__news-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-map__news { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.project-map__news li { min-width: 0; }
.project-map__news li a { display: flex; min-height: 190px; height: 100%; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--card-bg-soft); transition: border-color 180ms ease; }
.project-map__news li a:hover, .project-map__news li a:focus-visible { border-color: var(--accent); }
.project-map__news-date { color: var(--muted); font: 11px/1.45 var(--font-mono); }
.project-map__news strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 16px; line-height: 1.45; font-weight: 500; }
.project-map__news-source { margin-top: auto; }
@media (max-width: 780px) { .project-map__news { grid-template-columns: 1fr; } .project-map__news li a { min-height: 0; } }
@media (max-width: 780px) { .project-map__heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 24px; } .project-map__freshness { max-width: 100%; } }
@media (max-width: 780px) { .project-map__controls { justify-content: flex-start; } }
@media (max-width: 520px) { .project-map__open { padding: 15px 16px; font-size: 14px; } .project-map__legend-title { flex-basis: 100%; } .project-map__news-block { margin-top: 44px; } }

/* The compact project map follows the same light palette as the monitor map. */
html[data-theme="light"] .project-map__figure { border-color: #bdd7be; background: #f4f8f2; }
html[data-theme="light"] .project-map__canvas {
  background-color: #edf5eb;
  background-image:
    linear-gradient(rgba(54, 113, 67, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 113, 67, .09) 1px, transparent 1px);
}
html[data-theme="light"] .project-map__canvas::before,
html[data-theme="light"] .project-map__canvas::after { color: #7ea88a; }
html[data-theme="light"] #project-incidents-map .project-map__region { fill: #dce9da; stroke: #4e9a60; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="1"] { fill: #bddbbf; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="2"] { fill: #86bf91; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="3"] { fill: #45a75d; }
html[data-theme="light"] .project-map__anchor-halo { fill: #fff; fill-opacity: .52; stroke: #185d38; stroke-opacity: .9; }
html[data-theme="light"] .project-map__anchor-dot { fill: #185d38; stroke: #fff; }
html[data-theme="light"] .project-map__anchor.is-recent .project-map__anchor-halo { fill: #fff5e6; fill-opacity: .65; stroke: #a85e18; }
html[data-theme="light"] .project-map__anchor.is-recent .project-map__anchor-dot { fill: #dc8129; }
html[data-theme="light"] .project-map__anchor-count { fill: #fff; }
html[data-theme="light"] .project-map__status { color: #234833; background: #f4f9f1e8; }
html[data-theme="light"] .project-map__open { border-top-color: #bdd7be; background: #f4f8f2; color: #216f3c; }
html[data-theme="light"] .project-map__link:hover .project-map__open,
html[data-theme="light"] .project-map__link:focus-visible .project-map__open { color: #124f30; }
html[data-theme="light"] .project-map__legend i[data-kind^="level-"] { border-color: #4e9a60; }
html[data-theme="light"] .project-map__legend i[data-kind="level-0"] { background: #dce9da; }
html[data-theme="light"] .project-map__legend i[data-kind="level-1"] { background: #bddbbf; }
html[data-theme="light"] .project-map__legend i[data-kind="level-2"] { background: #86bf91; }
html[data-theme="light"] .project-map__legend i[data-kind="level-3"] { background: #45a75d; }
html[data-theme="light"] .project-map__legend i[data-kind="anchor"] { border-color: #fff; background: #185d38; }
html[data-theme="light"] .project-map__legend i[data-kind="recent"] { border-color: #fff; background: #dc8129; }

/* Fixed count scale shared by both maps: 15-event steps after 15. */
#project-incidents-map .project-map__region[data-level="0"] { fill: #0d1513; }
.project-map__legend i[data-kind="level-0"] { background: #0d1513; border-radius: 0; border-color: #65806b; }
#project-incidents-map .project-map__region[data-level="1"] { fill: #254b31; }
.project-map__legend i[data-kind="level-1"] { background: #254b31; border-radius: 0; border-color: #254b31; }
#project-incidents-map .project-map__region[data-level="2"] { fill: #3e8849; }
.project-map__legend i[data-kind="level-2"] { background: #3e8849; border-radius: 0; border-color: #3e8849; }
#project-incidents-map .project-map__region[data-level="3"] { fill: #a3ba55; }
.project-map__legend i[data-kind="level-3"] { background: #a3ba55; border-radius: 0; border-color: #a3ba55; }
#project-incidents-map .project-map__region[data-level="4"] { fill: #d5c95a; }
.project-map__legend i[data-kind="level-4"] { background: #d5c95a; border-radius: 0; border-color: #d5c95a; }
#project-incidents-map .project-map__region[data-level="5"] { fill: #e9b04d; }
.project-map__legend i[data-kind="level-5"] { background: #e9b04d; border-radius: 0; border-color: #e9b04d; }
#project-incidents-map .project-map__region[data-level="6"] { fill: #efa05a; }
.project-map__legend i[data-kind="level-6"] { background: #efa05a; border-radius: 0; border-color: #efa05a; }
#project-incidents-map .project-map__region[data-level="7"] { fill: #e98b3b; }
.project-map__legend i[data-kind="level-7"] { background: #e98b3b; border-radius: 0; border-color: #e98b3b; }
#project-incidents-map .project-map__region[data-level="8"] { fill: #e87355; }
.project-map__legend i[data-kind="level-8"] { background: #e87355; border-radius: 0; border-color: #e87355; }
#project-incidents-map .project-map__region[data-level="9"] { fill: #d9534f; }
.project-map__legend i[data-kind="level-9"] { background: #d9534f; border-radius: 0; border-color: #d9534f; }
#project-incidents-map .project-map__region[data-level="10"] { fill: #c44045; }
.project-map__legend i[data-kind="level-10"] { background: #c44045; border-radius: 0; border-color: #c44045; }
#project-incidents-map .project-map__region[data-level="11"] { fill: #ad3444; }
.project-map__legend i[data-kind="level-11"] { background: #ad3444; border-radius: 0; border-color: #ad3444; }
#project-incidents-map .project-map__region[data-level="12"] { fill: #7e263e; }
.project-map__legend i[data-kind="level-12"] { background: #7e263e; border-radius: 0; border-color: #7e263e; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="0"] { fill: #dce9da; }
html[data-theme="light"] .project-map__legend i[data-kind="level-0"] { background: #dce9da; border-radius: 0; border-color: #65806b; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="1"] { fill: #bddbbf; }
html[data-theme="light"] .project-map__legend i[data-kind="level-1"] { background: #bddbbf; border-radius: 0; border-color: #bddbbf; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="2"] { fill: #86bf91; }
html[data-theme="light"] .project-map__legend i[data-kind="level-2"] { background: #86bf91; border-radius: 0; border-color: #86bf91; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="3"] { fill: #b9ca72; }
html[data-theme="light"] .project-map__legend i[data-kind="level-3"] { background: #b9ca72; border-radius: 0; border-color: #b9ca72; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="4"] { fill: #e2d276; }
html[data-theme="light"] .project-map__legend i[data-kind="level-4"] { background: #e2d276; border-radius: 0; border-color: #e2d276; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="5"] { fill: #efc069; }
html[data-theme="light"] .project-map__legend i[data-kind="level-5"] { background: #efc069; border-radius: 0; border-color: #efc069; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="6"] { fill: #f2ad76; }
html[data-theme="light"] .project-map__legend i[data-kind="level-6"] { background: #f2ad76; border-radius: 0; border-color: #f2ad76; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="7"] { fill: #ee9855; }
html[data-theme="light"] .project-map__legend i[data-kind="level-7"] { background: #ee9855; border-radius: 0; border-color: #ee9855; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="8"] { fill: #ed8b75; }
html[data-theme="light"] .project-map__legend i[data-kind="level-8"] { background: #ed8b75; border-radius: 0; border-color: #ed8b75; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="9"] { fill: #e17470; }
html[data-theme="light"] .project-map__legend i[data-kind="level-9"] { background: #e17470; border-radius: 0; border-color: #e17470; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="10"] { fill: #d45d65; }
html[data-theme="light"] .project-map__legend i[data-kind="level-10"] { background: #d45d65; border-radius: 0; border-color: #d45d65; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="11"] { fill: #c14c60; }
html[data-theme="light"] .project-map__legend i[data-kind="level-11"] { background: #c14c60; border-radius: 0; border-color: #c14c60; }
html[data-theme="light"] #project-incidents-map .project-map__region[data-level="12"] { fill: #92354e; }
html[data-theme="light"] .project-map__legend i[data-kind="level-12"] { background: #92354e; border-radius: 0; border-color: #92354e; }
.project-map__legend-title { flex-basis: 100%; }
.project-map__legend > span { white-space: nowrap; }

/* Small online tools remain visually secondary to the main product. */
.small-projects { padding-top: 76px; }
.small-projects__heading { margin-bottom: 32px; max-width: 700px; }
.small-projects__heading h2 { margin: 12px 0 18px; font-size: clamp(32px,4vw,50px); letter-spacing: -.04em; }
.small-projects__heading h2 span { color: var(--accent); }
.small-projects__heading > p:last-child { color: var(--muted); line-height: 1.6; }
.small-projects__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.small-project { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--card-bg-soft); transition: border-color 180ms ease, background-color 180ms ease; }
.small-project:hover, .small-project:focus-visible { border-color: var(--accent); background: var(--surface-hover); }
.small-project:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.small-project__preview { padding: 24px 18px; background: var(--section-bg); border-bottom: 1px solid var(--line); }
.small-project__preview svg { display: block; width: 100%; max-height: 180px; fill: none; stroke: var(--accent); stroke-width: 1.3; }
.small-project__preview .small-project__lesson { fill: var(--accent); opacity: .5; stroke: none; }
.small-project__preview .small-project__lesson-alt { fill: #e9b04d; opacity: .6; stroke: none; }
.small-project__body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.small-project__category { color: var(--muted); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .09em; }
.small-project h3 { margin: 16px 0 12px; font-size: 25px; letter-spacing: -.03em; }
.small-project__body > p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.small-project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.small-project__tags span { border: 1px solid var(--line); padding: 6px 9px; color: var(--muted); font-size: 11px; }
.small-project__open { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--accent); font-size: 14px; }
.small-project__body > .small-project__counter { margin: 0 0 20px; color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .small-projects__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .small-projects__grid { grid-template-columns: 1fr; } .small-projects { padding-top: 48px; } }

/* Project examples in the computer-vision direction card. */
.direction-card__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.direction-card__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); font-size: 14px; line-height: 1.5;
  text-decoration: underline; text-underline-offset: 4px;
}
.direction-card__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-map__legend > .project-map__legend-title { min-width: 0; white-space: normal; }
