/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --subtle: #F1F5F9;
  --ink: #0F172A;
  --muted: #475569;
  --muted-light: #64748B;
  --border: rgba(15, 23, 42, 0.11);
  --accent: #B4532A;
  --accent-hover: #96411E;
  --container: 1080px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 50;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background-color: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-header.is-scrolled .brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brand svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  opacity: 1;
}

.site-header.is-scrolled .nav-desktop a:hover,
.site-header.is-scrolled .nav-desktop a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled .menu-toggle {
  border-color: var(--border);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Mobile Drawer ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(248, 249, 250, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 40px) 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.mobile-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.mobile-nav-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mobile-nav-links a span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.12em;
}

.mobile-nav-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: max(620px, 100svh);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  background-color: #0F172A;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 68% 42% at 50% 44%, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.08) 65%, transparent 100%),
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.46) 0%,
      rgba(15, 23, 42, 0.20) 38%,
      rgba(15, 23, 42, 0.34) 66%,
      rgba(15, 23, 42, 0.80) 100%
    );
  pointer-events: none;
}

.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('kdyne-map.svg') center / cover no-repeat;
  opacity: 0.65;
  mask-image: radial-gradient(
    ellipse 88% 84% at 50% 50%,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.92) 50%,
    rgba(0, 0, 0, 0.14) 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 88% 84% at 50% 50%,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.92) 50%,
    rgba(0, 0, 0, 0.14) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 96px;
  padding-bottom: clamp(24px, 4vw, 44px);
}

.hero-center {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(36px, 6vh, 72px);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 9.2vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(15, 23, 42, 0.28);
  animation: heroReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 16px rgba(15, 23, 42, 0.32);
  animation: heroReveal 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* ── Main Editorial Sections ── */
.section {
  padding-block: clamp(56px, 8vw, 104px);
  scroll-margin-top: 92px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px 48px;
  align-items: start;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 6px;
}

.section-body {
  min-width: 0;
}

.lead {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 34ch;
}

.prose {
  margin: 22px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.28);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.facts-grid {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.fact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact-note {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── Route Section ── */
.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.route-intro {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.metrics-strip {
  margin-top: 28px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.metrics-strip > div {
  flex: 1 0 auto;
}

.metric-val {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-key {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.prop-list {
  margin: 8px 0 0;
}

.prop-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 6px 28px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}

.prop-row dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 3px;
}

.prop-row dd {
  margin: 0;
  color: var(--muted);
}

.prop-row dd strong {
  color: var(--ink);
  font-weight: 500;
}

.prop-note {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted-light);
}

.route-map-box {
  margin-top: 14px;
  border: 1px solid var(--border);
  background-color: var(--subtle);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.route-map-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-map-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.route-map-sub {
  font-size: 0.875rem;
  color: var(--muted-light);
}

.route-map-graphic {
  color: var(--muted-light);
  flex-shrink: 0;
}

.route-dummy-note {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-light);
  letter-spacing: 0.04em;
}

/* ── Registration Panel ── */
.reg-panel {
  background-color: var(--subtle);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
}

.reg-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.reg-panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.reg-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.reg-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: 44px;
  scroll-margin-top: 92px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-meta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.footer-meta small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-email {
  color: var(--ink);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prop-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

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