:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5d6a78;
  --night: #0b1524;
  --night-2: #111c2b;
  --line: #d8e1e8;
  --paper: #f6f8fb;
  --white: #ffffff;
  --teal: #2fb7a6;
  --gold: #d99a2b;
  --red: #c84b4b;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(9, 20, 34, .16);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 251, .9);
  border-bottom: 1px solid rgba(16, 32, 51, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-identity {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: clamp(.9rem, 3vw, 1rem);
  font-weight: 800;
  text-decoration: none;
  white-space: normal;
  line-height: 1.1;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 6px solid var(--night);
  border-right-color: var(--teal);
  transform: rotate(45deg);
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-size: .95rem;
  color: #2c3d50;
}

.header-profile {
  justify-self: start;
  color: var(--gold);
  font-size: clamp(.84rem, 1.45vw, .98rem);
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-underline-offset: 4px;
}

.header-profile:hover {
  color: #1b7f76;
  text-decoration: underline;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

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

.section,
.section-band {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  background:
    linear-gradient(135deg, rgba(11, 21, 36, .98), rgba(16, 28, 43, .96)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, .05) 49px 50px);
  color: var(--white);
  overflow: hidden;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: .78rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #d7e2ea;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #06151f;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .34);
}

.hero-graphic svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .25));
}

.barrier-arm {
  transform-box: view-box;
  -webkit-transform-origin: 166px 224px;
  transform-origin: 166px 224px;
  -webkit-animation: barrier 5.6s ease-in-out infinite;
  animation: barrier 5.6s ease-in-out infinite;
}

.bollards {
  transform-box: view-box;
  -webkit-animation: bollards 5.6s ease-in-out infinite;
  animation: bollards 5.6s ease-in-out infinite;
}

.led {
  -webkit-animation: led-blink 1.05s steps(2, end) infinite;
  animation: led-blink 1.05s steps(2, end) infinite;
}

.dash {
  animation: dash 8s linear infinite;
}

.signal,
.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes barrier {
  0%, 12%, 100% { transform: rotate(0deg); }
  35%, 62% { transform: rotate(-90deg); }
  78% { transform: rotate(0deg); }
}

@-webkit-keyframes barrier {
  0%, 12%, 100% { -webkit-transform: rotate(0deg); }
  35%, 62% { -webkit-transform: rotate(-90deg); }
  78% { -webkit-transform: rotate(0deg); }
}

@keyframes bollards {
  0%, 14%, 100% { transform: translateY(0); }
  35%, 62% { transform: translateY(106px); }
  78% { transform: translateY(0); }
}

@-webkit-keyframes bollards {
  0%, 14%, 100% { -webkit-transform: translateY(0); }
  35%, 62% { -webkit-transform: translateY(106px); }
  78% { -webkit-transform: translateY(0); }
}

@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}

@-webkit-keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}

@keyframes dash {
  to { stroke-dashoffset: -112; }
}

@keyframes pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.section-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.competence-grid,
.tool-grid,
.area-grid,
.question-grid {
  display: grid;
  gap: 16px;
}

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

.competence-grid article,
.question-grid p,
.tool-grid a,
.area-grid span,
.selector,
.calculator,
.contact-band,
.accordion,
.checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 32, 51, .06);
}

.competence-grid article {
  min-height: 210px;
  padding: 22px;
}

.competence-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 900;
}

.competence-grid p,
.question-grid p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
  display: grid;
  gap: 12px;
}

.process-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--night);
  color: var(--white);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  counter-increment: item;
}

.process-list li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.tool-section {
  max-width: none;
  background: #e8eef3;
}

.tool-section .section-head,
.tool-section .selector {
  max-width: 1168px;
  margin-left: auto;
  margin-right: auto;
}

.selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 24px;
  padding: 24px;
}

.selector-controls,
.config-panel {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  font-weight: 800;
  color: #34465a;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bcc9d4;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.selector-result {
  display: grid;
  align-content: center;
  padding: 24px;
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius);
}

.selector-result strong {
  color: var(--gold);
  font-size: 1.25rem;
}

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

.question-grid p {
  min-height: 156px;
  padding: 20px;
  font-weight: 750;
  color: var(--ink);
}

.accordion {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  float: right;
  color: var(--teal);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.accordion-panel {
  padding: 0 24px 22px;
  color: var(--muted);
}

.timeline-section {
  max-width: none;
  background: var(--night);
  color: var(--white);
}

.timeline-section .section-head,
.timeline {
  max-width: 1168px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-section .section-head p:not(.eyebrow) {
  color: #d7e2ea;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}

.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

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

.area-grid span,
.tool-grid a {
  padding: 18px;
  font-weight: 800;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr);
  gap: 28px;
  padding: 28px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #34465a;
  font-weight: 750;
}

output {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  background: #edf5f4;
  color: #123c3a;
  font-weight: 800;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f5f8fa;
  font-weight: 750;
}

.tools {
  max-width: none;
  background: #edf1f4;
}

.tools .section-head,
.tools .tool-grid {
  max-width: 1168px;
  margin-left: auto;
  margin-right: auto;
}

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

.tool-grid a {
  min-height: 96px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.tool-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.contact-band {
  background: var(--night);
  color: var(--white);
  padding: clamp(28px, 5vw, 52px);
}

.contact-band p:not(.eyebrow) {
  color: #d7e2ea;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #07101d;
  color: #c5d2dc;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .competence-grid,
  .question-grid,
  .timeline,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    justify-content: flex-start;
  }

  .hero,
  .split,
  .selector,
  .calculator {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-graphic {
    order: -1;
  }

  .competence-grid,
  .question-grid,
  .timeline,
  .area-grid,
  .tool-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .question-grid p,
  .competence-grid article,
  .timeline li {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.34rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.55rem;
  }

  .brand {
    font-size: .82rem;
  }

  .button,
  .tool-grid a,
  .area-grid span {
    font-size: .94rem;
  }
}
