/* ============================================================
   ETC Elektrotechnik Cichon — Onepager
   Visual language: technical-precise, navy-anchored, mono chrome
   ============================================================ */
@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--etc-blue-700);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--etc-accent-600);
}
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-dark::before { background: var(--etc-accent-500); }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
  margin: 0 0 24px;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--fg-strong);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 880px;
}
.h-section.on-dark { color: #fff; }
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0;
}
.lede.on-dark { color: var(--etc-blue-200); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--etc-accent-600); color: #fff; }
.btn-primary:hover { background: var(--etc-accent-700); }
.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--etc-blue-700);
}
.btn-outline:hover { border-color: var(--etc-blue-700); background: var(--neutral-50); }
.btn-outline-dark {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.btn-ghost { background: transparent; color: var(--etc-blue-700); padding: 10px 14px; }
.btn-ghost:hover { background: var(--neutral-100); }
.btn-lg { padding: 16px 26px; font-size: 15px; }
.btn-xl { padding: 20px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.site-header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  height: 72px;
}
.site-header .logo { display: inline-flex; align-items: center; }
.site-header .logo img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .site-header .logo img {
    height: 30px;
  }
}
.site-header nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 8px 0;
  cursor: pointer;
}
.site-header nav a:hover { color: var(--etc-blue-700); }
.site-header nav a.active { color: var(--etc-blue-700); font-weight: 600; }
.site-header nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--etc-accent-600); border-radius: 1px;
}
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer;
  /* Remove the 300ms tap delay on iOS and ensure the button itself
     (not the inner SVG path) is the touch target. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn > * { pointer-events: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding-top: 16px; padding-bottom: 16px; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.mobile-menu nav a {
  font-size: 15px; font-weight: 500;
  padding: 12px 4px;
  color: var(--fg-strong);
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.mobile-menu nav a:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .site-header .inner { grid-template-columns: auto 1fr auto auto; }
  /* Only hide the desktop nav (direct child of .inner), not the nav inside .mobile-menu. */
  .site-header .inner > nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .site-header .inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-cta { display: none; }
}

/* ---------- Lang switch ---------- */
.lang-switch-wrapper {
  position: relative;
  display: inline-flex;
  justify-self: end;
}

.lang-switch-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.lang-switch-trigger:hover,
.lang-switch-trigger[aria-expanded="true"] {
  color: var(--etc-blue-700);
}

.lang-switch-trigger span {
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.lang-switch-trigger:hover span,
.lang-switch-trigger[aria-expanded="true"] span {
  border-bottom-color: currentColor;
}

.lang-switch-trigger svg:first-of-type {
  color: var(--etc-blue-500);
  transition: color var(--dur-fast) var(--ease-out);
}

.lang-switch-trigger:hover svg:first-of-type,
.lang-switch-trigger[aria-expanded="true"] svg:first-of-type {
  color: var(--etc-blue-700);
}

.lang-switch-trigger svg:last-of-type {
  color: var(--neutral-400);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lang-switch-trigger:hover svg:last-of-type,
.lang-switch-trigger[aria-expanded="true"] svg:last-of-type {
  color: var(--etc-blue-700);
}

.lang-switch-trigger[aria-expanded="true"] svg:last-of-type {
  transform: rotate(180deg);
}

.lang-switch-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn var(--dur-fast) var(--ease-out);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
}

/* Triangular pointer arrow */
.lang-switch-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--border) transparent;
}

.lang-switch-dropdown::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--surface) transparent;
  margin-bottom: -1px;
}

.lang-switch-dropdown .dropdown-item {
  width: 100%;
  padding: 10px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lang-switch-dropdown .dropdown-item:hover {
  background: var(--neutral-50);
  color: var(--etc-blue-700);
}

.lang-switch-dropdown .dropdown-item.active {
  color: var(--etc-blue-700);
  font-weight: 600;
  background: var(--etc-blue-50);
}

/* Footer variant (opens upward, styles for dark bg) */
.site-footer .lang-switch-wrapper {
  justify-self: start;
}

.site-footer .lang-switch-trigger {
  color: var(--etc-blue-200);
  padding: 8px 0;
}

.site-footer .lang-switch-trigger:hover,
.site-footer .lang-switch-trigger[aria-expanded="true"] {
  color: #fff;
}

.site-footer .lang-switch-trigger svg:first-of-type {
  color: var(--etc-blue-400);
}

.site-footer .lang-switch-trigger:hover svg:first-of-type,
.site-footer .lang-switch-trigger[aria-expanded="true"] svg:first-of-type {
  color: #fff;
}

.site-footer .lang-switch-trigger svg:last-of-type {
  color: var(--etc-blue-400);
}

.site-footer .lang-switch-trigger:hover svg:last-of-type,
.site-footer .lang-switch-trigger[aria-expanded="true"] svg:last-of-type {
  color: #fff;
}

.site-footer .lang-switch-dropdown {
  top: auto;
  bottom: 100%;
  transform: translateX(-50%) translateY(-8px);
  animation: dropdownFadeInUp var(--dur-fast) var(--ease-out);
}

@keyframes dropdownFadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
  }
}

.site-footer .lang-switch-dropdown::before {
  bottom: auto;
  top: 100%;
  border-color: var(--border) transparent transparent transparent;
}

.site-footer .lang-switch-dropdown::after {
  bottom: auto;
  top: 100%;
  border-color: var(--surface) transparent transparent transparent;
  margin-top: -1px;
  margin-bottom: 0;
}

/* ---------- Hero (dark, full-bleed, with canvas animation) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--etc-blue-900);
  color: #fff;
}
/* Soft corner darkening on top of canvas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(14, 23, 48, 0.55), transparent 55%),
    radial-gradient(80% 60% at 0% 0%,     rgba(255,255,255,0.04), transparent 60%);
}

/* Canvas background — sits under all content */
.etc-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Bottom fade — animation gracefully blends into the next section's background */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 320px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.02) 10%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.10) 30%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.42) 60%,
    rgba(255, 255, 255, 0.58) 70%,
    rgba(255, 255, 255, 0.75) 80%,
    rgba(255, 255, 255, 0.92) 90%,
    var(--neutral-0)          100%
  );
}

.hero .inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 160px;
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .hero .inner { gap: 28px; padding-top: 72px; padding-bottom: 80px; }
}

.hero-lead { max-width: 920px; }
.hero-lead .eyebrow { margin-bottom: 12px; }
.hero-lead .h-display { margin: 0; }

.hero-body {
  max-width: 920px;
}

.hero-copy .lede { max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Stats strip at hero foot */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 20px;
}
.hero-stats .k {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}
.hero-stats .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
}

/* Display headline inverted for hero */
.h-display.on-dark { color: #fff; }
.lede.on-dark      { color: var(--etc-blue-200); }

/* ---------- Pillars (3 short value props) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--etc-accent-600);
  letter-spacing: 0.12em;
}
.pillar .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--etc-blue-50);
  color: var(--etc-blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pillar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg-strong);
}
.pillar p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Highlights (4 hero tiles) ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- Disciplines (2 big tiles) ---------- */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .disciplines { grid-template-columns: 1fr; } }

.discipline {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.discipline:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--etc-blue-200);
}
.discipline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 4px;
  background: var(--etc-accent-600);
  border-radius: 0 0 4px 0;
}
.discipline .d-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-meta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.discipline .d-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 8px;
}
.discipline .d-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--etc-blue-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discipline h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--fg-strong);
}
.discipline .d-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.discipline .d-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
@media (max-width: 560px) { .discipline .d-list { grid-template-columns: 1fr; } }
.discipline .d-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
}
.discipline .d-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 2px;
  background: var(--etc-accent-600);
}
.discipline .d-list b {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fg-strong);
}
.discipline .d-list small {
  font-size: 12.5px;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.discipline .d-note {
  font-size: 11.5px;
  color: var(--fg-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Tile-style variants apply to disciplines too */
[data-tile-style="filled"] .discipline {
  background: var(--etc-blue-700);
  color: #fff;
  border-color: var(--etc-blue-800);
}
[data-tile-style="filled"] .discipline h3 { color: #fff; }
[data-tile-style="filled"] .discipline .d-desc { color: var(--etc-blue-200); }
[data-tile-style="filled"] .discipline .d-list { border-top-color: rgba(255,255,255,0.12); }
[data-tile-style="filled"] .discipline .d-list b { color: #fff; }
[data-tile-style="filled"] .discipline .d-list small { color: rgba(255,255,255,0.65); }
[data-tile-style="filled"] .discipline .d-note { color: rgba(255,255,255,0.5); border-top-color: rgba(255,255,255,0.12); }
[data-tile-style="filled"] .discipline .d-eyebrow { color: rgba(255,255,255,0.55); }
[data-tile-style="filled"] .discipline .d-icon { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); }
[data-tile-style="filled"] .discipline:hover { border-color: var(--etc-accent-600); }

[data-tile-style="outline"] .discipline { background: transparent; box-shadow: none; }
.highlight {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--etc-blue-200);
}
.highlight .row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.highlight .icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--etc-blue-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.highlight .ref-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-meta);
  letter-spacing: 0.08em;
}
.highlight h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.highlight p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}
.highlight ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 540px) { .highlight ul { grid-template-columns: 1fr; } }
.highlight ul li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--neutral-700);
  position: relative;
  padding-left: 18px;
}
.highlight ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--etc-accent-600);
}

/* ---------- Catalog accordion ---------- */
.catalog {
  margin-top: 40px;
  border-top: 1px solid var(--border-strong);
}
.cat-item {
  border-bottom: 1px solid var(--border);
}
.cat-head {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}
.cat-head:hover { background: var(--neutral-50); }
.cat-head .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--etc-accent-600);
  letter-spacing: 0.04em;
}
.cat-head .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--fg-strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.cat-head .toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--etc-blue-700);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.cat-item.open .cat-head .toggle {
  background: var(--etc-blue-700);
  color: #fff;
  transform: rotate(45deg);
}
.cat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.cat-item.open .cat-body { grid-template-rows: 1fr; }
.cat-body > div { overflow: hidden; }
.cat-body ul {
  list-style: none;
  margin: 0;
  padding: 0 4px 24px 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
@media (max-width: 720px) {
  .cat-head { grid-template-columns: 36px 1fr auto; gap: 14px; }
  .cat-body ul { padding-left: 50px; grid-template-columns: 1fr; }
}
.cat-body li {
  padding-left: 16px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-700);
}
.cat-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 2px;
  background: var(--etc-blue-300);
}
.cat-body li b {
  color: var(--fg-strong);
  font-weight: 600;
  display: block;
}
.cat-body li small {
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 400;
}

/* ---------- Process ---------- */
.process-wrap {
  background: var(--neutral-100);
  border-radius: 24px;
  padding: 56px 48px;
  margin-top: 36px;
}
@media (max-width: 720px) { .process-wrap { padding: 32px 24px; border-radius: 16px; } }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--etc-blue-300) 0 6px, transparent 6px 12px);
  z-index: 0;
}
@media (max-width: 880px) {
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .process-steps::before { display: none; }
}
.process-step { position: relative; z-index: 1; }
.process-step .num {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--etc-blue-700);
  color: var(--etc-blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-strong);
  line-height: 1.25;
}
.process-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
}
.about-facts {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.about-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.about-facts dt, .about-facts dd {
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}
.about-facts dt:first-of-type, .about-facts dd:first-of-type { border-top: none; }
.about-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--neutral-50);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.about-facts dd {
  color: var(--fg-strong);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--etc-blue-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 90% 10%, rgba(0,0,0,0.6), transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 90% 10%, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}
.contact-section::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230,51,18,0.18), transparent 60%);
  pointer-events: none;
}
.contact-section .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
.contact-primary {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px;
}
@media (max-width: 540px) { .contact-primary { padding: 28px; } }
.contact-primary .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.contact-primary .mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.015em;
  color: #fff;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  word-break: break-all;
}
.contact-primary .mail:hover {
  color: var(--etc-accent-500);
  border-bottom-color: var(--etc-accent-500);
}
.contact-primary .hint {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--etc-blue-200);
  max-width: 480px;
}
.contact-primary .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-side .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 0;
}
.contact-side .item .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--etc-blue-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-side .item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact-side .item .v {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
}
.contact-side .item .v a:hover { color: var(--etc-accent-500); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--etc-blue-950);
  color: var(--etc-blue-200);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr 1fr;
  gap: 40px;
}
@media (max-width: 960px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer img.lg { height: 32px; margin-bottom: 18px; }
.site-footer .pitch {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  color: var(--etc-blue-200);
}
.site-footer .col-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--etc-blue-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer li, .site-footer li a {
  font-size: 14px;
  color: #fff;
  transition: color var(--dur-fast) var(--ease-out);
  line-height: 1.5;
}
.site-footer li a { cursor: pointer; }
.site-footer li a:hover { color: var(--etc-accent-500); }
.site-footer .legal-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--etc-blue-300);
  line-height: 1.7;
}
.site-footer .bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--etc-blue-300);
  align-items: center;
}
.site-footer .bot .links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .bot a:hover { color: var(--etc-accent-500); }


/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Header sitting on dark hero — slightly more opaque so chrome reads.
   ============================================================ */
.site-header { background: rgba(255,255,255,0.92); }

/* ============================================================
   FAQ section
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 32px;
  border-top: 1px solid var(--border-strong);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--fg-strong);
  line-height: 1.3;
  letter-spacing: -0.005em;
  transition: background var(--dur-fast) var(--ease-out);
}
.faq details > summary:hover { background: var(--neutral-50); }
.faq details > summary::-webkit-details-marker { display: none; }
.faq details .q-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--etc-accent-600);
  letter-spacing: 0.04em;
}
.faq details .q-tog {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--etc-blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] .q-tog {
  background: var(--etc-blue-700);
  color: #fff;
  transform: rotate(45deg);
}
.faq details > .a {
  padding: 0 4px 24px 68px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--neutral-700);
  max-width: 820px;
}
@media (max-width: 720px) {
  .faq details > summary { grid-template-columns: 32px 1fr auto; gap: 12px; }
  .faq details > .a { padding-left: 44px; }
}

/* ============================================================
   Downloads section
   ============================================================ */
.downloads-section {
  background: var(--neutral-100);
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 720px) { .downloads-grid { grid-template-columns: 1fr; } }
.download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--etc-blue-200);
  box-shadow: var(--shadow-md);
}
.download-card .ftype {
  width: 52px; height: 64px;
  border-radius: 4px;
  background: var(--etc-blue-50);
  border: 1px solid var(--etc-blue-200);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  flex-shrink: 0;
}
.download-card .ftype::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--neutral-100);
  border-bottom: 1px solid var(--etc-blue-200);
  border-left: 1px solid var(--etc-blue-200);
  border-bottom-left-radius: 2px;
}
.download-card .ftype span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--etc-blue-700);
  letter-spacing: 0.06em;
}
.download-card .ftype.pdf span { color: var(--etc-accent-600); }
.download-card .ftype.pdf {
  background: var(--etc-accent-100);
  border-color: var(--etc-accent-200);
}
.download-card .ftype.pdf::before {
  background: var(--neutral-100);
  border-color: var(--etc-accent-200);
}
.download-card .meta {
  min-width: 0;
}
.download-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-strong);
  line-height: 1.35;
}
.download-card .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.download-card .sub b {
  color: var(--neutral-700);
  font-weight: 600;
}
.download-card .act {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--etc-blue-700);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.download-card:hover .act { background: var(--etc-accent-600); }
.download-card.disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}
.download-card.disabled .act {
  background: var(--neutral-200);
  color: var(--fg-meta);
}

[data-show-downloads="false"] .downloads-section { display: none; }
[data-show-faq="false"] .faq-section { display: none; }

/* ============================================================
   SHK teaser block
   ============================================================ */
.shk-teaser {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--etc-blue-700), var(--etc-blue-800));
  color: #fff;
  border-radius: 16px;
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}
.shk-teaser::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(230,51,18,0.16), transparent 60%);
  pointer-events: none;
}
.shk-teaser-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.shk-teaser .eyebrow {
  color: var(--etc-blue-200);
  margin-bottom: 10px;
}
.shk-teaser .eyebrow::before { background: var(--etc-accent-500); }
.shk-teaser h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
  max-width: 580px;
}
.shk-teaser p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--etc-blue-200);
  max-width: 620px;
}
@media (max-width: 720px) {
  .shk-teaser { padding: 24px; }
  .shk-teaser-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Floating contact pill
   ============================================================ */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.fab > * { pointer-events: auto; }
.fab a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--etc-blue-700);
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.fab a:hover {
  background: var(--etc-accent-600);
  transform: translateY(-2px);
}
.fab a .ico {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 540px) {
  .fab { right: 16px; bottom: 16px; }
  .fab a span.label { display: none; }
  .fab a { padding: 12px; }
}
[data-show-fab="false"] .fab { display: none; }
