/* ============================================================
   K&K Ingenieurs Conseils SA - stylesheet
   Theme: Corporate Professional, dark-locked, tech-forward accent
   Fonts: Space Grotesk (display) + Inter (body), self-hosted latin
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-Latin-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Inter-Latin-Variable.woff2') format('woff2');
}

:root {
  --bg: #f3f4f8;
  --bg-elevated: #e9ecf3;
  --surface: #ffffff;
  --border: rgba(13, 30, 60, 0.1);
  --border-strong: rgba(13, 30, 60, 0.2);
  --text: #0f1b2d;
  --text-dim: #4b5668;
  --text-faint: #5b6b80;
  --accent: #0d3e8a;
  --accent-dim: #092c63;
  --accent-soft: rgba(13, 62, 138, 0.08);
  --accent-ink: #ffffff;
  --brand-blue: #0d3e8a;
  --brand-red: #e21e51;
  --brand-red-soft: rgba(226, 30, 81, 0.08);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-float: 0 8px 24px rgba(16, 24, 40, 0.12);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius-card: 14px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --max-w: 1200px;
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  transition: top 160ms var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

section {
  padding: 72px 0;
}

@media (min-width: 1024px) {
  section {
    padding: 104px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1.0625rem;
  max-width: 54ch;
}

.icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

@media (hover: none) and (pointer: coarse) {
  .btn-ghost:hover,
  .btn-primary:hover {
    background: initial;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.site-header[data-scrolled='true'] {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.brand-name {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .brand-name {
    display: block;
  }
}

/* narrow desktop: the full nav needs the room, the logo carries the brand */
@media (min-width: 1024px) and (max-width: 1099px) {
  .brand-name {
    display: none;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .main-nav > a {
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  }

  .main-nav > a:hover {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .nav-item {
    padding: 9px 8px 9px 14px;
    border-radius: var(--radius-pill);
    transition: background-color 160ms var(--ease-out);
  }

  .nav-item > a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 160ms var(--ease-out);
  }

  .nav-item:hover,
  .nav-item:focus-within,
  .nav-item[data-open='true'] {
    background: var(--accent-soft);
  }

  .nav-item:hover > a,
  .nav-item:focus-within > a,
  .nav-item[data-open='true'] > a {
    color: var(--accent);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions > .btn {
  display: none;
}

@media (min-width: 560px) {
  .header-actions > .btn {
    display: inline-flex;
  }
}

/* full desktop nav but not enough room for the CTA too: "Contact" is already in the nav */
@media (min-width: 1024px) and (max-width: 1239px) {
  .header-actions > .btn {
    display: none;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 7px 11px;
  color: var(--text-faint);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.lang-switch a[aria-current='true'] {
  color: var(--accent-ink);
  background: var(--accent);
}

.lang-switch a:not([aria-current='true']):hover {
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle .icon {
  color: var(--text);
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
    visibility 220ms var(--ease-out);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

html[data-nav-open='true'] .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

html[data-nav-open='true'] .nav-toggle .icon-menu {
  display: none;
}

html[data-nav-open='true'] .nav-toggle .icon-close {
  display: block;
}

html[data-nav-open='true'] {
  overflow: hidden;
}

.mobile-nav a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

html[data-nav-open='true'] .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
}

html[data-nav-open='true'] .mobile-nav a:nth-child(1) { transition-delay: 40ms; }
html[data-nav-open='true'] .mobile-nav a:nth-child(2) { transition-delay: 80ms; }
html[data-nav-open='true'] .mobile-nav a:nth-child(3) { transition-delay: 120ms; }
html[data-nav-open='true'] .mobile-nav a:nth-child(4) { transition-delay: 160ms; }

.mobile-nav .btn {
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav a {
    transition: opacity 120ms linear !important;
    transform: none !important;
  }
}

/* ---------- Hero ---------- */

@media (max-width: 767px) {
  section { padding: 48px 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 24px; }
  .hero .wrap { gap: 24px; }
  .hero h1 { font-size: clamp(1.6rem, 1.2rem + 3vw, 3.4rem); }
  .hero-sub { margin-top: 10px; font-size: 0.975rem; }
  .hero-cta { margin-top: 16px; gap: 10px; }
}

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #ffffff;
}

.hero h1 {
  color: #ffffff;
}

.hero .btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.hero .btn-primary:hover {
  background: #c01847;
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--nav-h) + 56px);
    padding-bottom: 56px;
    display: flex;
    align-items: center;
  }
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .wrap {
    gap: 48px;
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  max-width: 16ch;
}

.hero-sub {
  margin-top: 20px;
  color: #ffffff;
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-float);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .hero-visual {
    aspect-ratio: 16 / 11;
  }
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.grid-node {
  fill: #ffffff;
}

.grid-pulse {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.4;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .grid-pulse {
    animation: pulse-ring 3.2s var(--ease-in-out) infinite;
  }

  .grid-node {
    animation: node-glow 3.2s ease-in-out infinite;
  }
}

@keyframes pulse-ring {
  0% { r: 3; opacity: 0.9; stroke-width: 2; }
  80% { r: 34; opacity: 0; stroke-width: 0.5; }
  100% { r: 34; opacity: 0; }
}

@keyframes node-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.firewall-wall {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.firewall-icon {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.packet {
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .net-packets {
    display: none;
  }
}

.trust-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 20px 0;
}

.trust-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.trust-bar strong {
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Services (bento) ---------- */

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--lead {
    grid-column: 1 / -1;
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-float);
}

.service-card--lead {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

@media (min-width: 768px) {
  .service-card--lead {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 40px;
  }
}

.icon-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-input);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.975rem;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.pill-tag--red {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

/* ---------- Passion row ---------- */

.passion-row {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 768px) {
  .passion-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.passion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.passion-item .icon-badge {
  margin-bottom: 14px;
}

.passion-item p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  max-width: 18ch;
}

.lead-visual {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 20px;
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-visual .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.lead-visual .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ---------- Process ---------- */

.process-row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 900px) {
  .process-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-row::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--border);
  }
}

.process-step {
  position: relative;
}

.process-step .icon-badge {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* ---------- About ---------- */

.about-block {
  max-width: 760px;
}

.about-block p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  margin-top: 16px;
}

.about-stats {
  margin-top: 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
}

.about-stats .stat span {
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* ---------- Zone d'intervention ---------- */

.zone-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .zone-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.zone-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.zone-item p {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  filter: grayscale(0.3) contrast(1.05);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* ---------- Coverage map (Swiss cantons) ---------- */

.ch-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.ch-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.ch-canton {
  fill: #dfe4ee;
  stroke: #ffffff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.ch-canton.is-covered {
  transition: fill 700ms var(--ease-out), opacity 600ms var(--ease-out);
  transition-delay: calc(250ms + var(--i) * 140ms);
  cursor: pointer;
}

.ch-lake {
  fill: #ffffff;
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 200ms;
}

.ch-label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  fill: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  transition-delay: calc(700ms + var(--i) * 140ms);
  paint-order: stroke;
  stroke: rgba(9, 44, 99, 0.35);
  stroke-width: 3px;
}

/* label sitting outside its (too small) canton */
.ch-label--out {
  fill: var(--brand-blue);
  stroke: #ffffff;
  stroke-width: 4px;
}

.ch-pin {
  opacity: 0;
  transition: opacity 400ms var(--ease-out) 1.6s;
}

.ch-pin-dot {
  fill: var(--brand-red);
  stroke: #ffffff;
  stroke-width: 3;
}

.ch-pin-pulse {
  fill: var(--brand-red);
  transform-box: fill-box;
  transform-origin: center;
}

.ch-pin-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  fill: var(--text);
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 4px;
}

.ch-map-card.is-visible .ch-canton,
.ch-map-card.is-visible .ch-lake,
.ch-map-card.is-visible .ch-label,
.ch-map-card.is-visible .ch-pin {
  opacity: 1;
}

.ch-map-card.is-visible .ch-canton.is-covered {
  fill: var(--brand-blue);
}

.ch-map-card.is-visible .ch-canton.is-covered.is-active {
  fill: var(--brand-red);
}

.ch-map-card.is-visible .ch-pin-pulse {
  animation: ch-pulse 2.4s var(--ease-out) 2s infinite;
}

@keyframes ch-pulse {
  from { transform: scale(1); opacity: 0.45; }
  to { transform: scale(3.2); opacity: 0; }
}

/* once the staggered intro has played, hover feedback is immediate */
.ch-map-card.is-ready .ch-canton.is-covered {
  transition-delay: 0ms;
  transition-duration: 200ms;
}

.ch-legend {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.ch-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ch-swatch--covered {
  background: var(--brand-blue);
}

.ch-swatch--hq {
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.ch-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.ch-chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.ch-chip:hover,
.ch-chip.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.ch-chip:active {
  transform: scale(0.97);
}

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

@media (max-width: 900px) {
  .ch-map-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .ch-labels {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-canton,
  .ch-lake,
  .ch-label,
  .ch-pin {
    transition: none;
  }

  .ch-map-card.is-visible .ch-pin-pulse {
    animation: none;
  }

  /* no intro animation: show the final map straight away */
  .ch-canton,
  .ch-lake,
  .ch-label,
  .ch-pin {
    opacity: 1;
  }

  .ch-canton.is-covered {
    fill: var(--brand-blue);
  }
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
}

.contact-info-item h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.placeholder-note {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-style: italic;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.field input,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 160ms var(--ease-out);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-error {
  font-size: 0.8rem;
  color: var(--brand-red);
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--brand-red);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  font-size: 0.875rem;
  color: var(--text-dim);
  min-height: 1.2em;
}

.form-status[data-state='success'] {
  color: #34d399;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 32px 0 20px;
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .site-footer { padding: 56px 0 32px; }
  .footer-grid {
    gap: 32px;
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand { grid-column: auto; }
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 160ms var(--ease-out);
}

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

.footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .footer-bottom { margin-top: 48px; padding-top: 24px; gap: 12px; }
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 96px;
}

.legal-page .wrap {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 0.975rem;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-page ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--text);
}

.legal-placeholder {
  color: var(--brand-red);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--accent);
}

.back-link .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

/* ---------- Nav dropdown (A propos) ---------- */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--text-faint);
  padding: 0;
  transition: color 160ms var(--ease-out);
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item[data-open='true'] .nav-caret {
  color: var(--accent);
}

.nav-caret .icon {
  width: 14px;
  height: 14px;
  color: inherit;
  transition: transform 200ms var(--ease-out);
}

.nav-item:hover .nav-caret .icon,
.nav-item:focus-within .nav-caret .icon,
.nav-item[data-open='true'] .nav-caret .icon {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  z-index: 10;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item[data-open='true'] .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.nav-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-nav details {
  border-bottom: 1px solid var(--border);
}

.mobile-nav details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.mobile-nav details summary::-webkit-details-marker {
  display: none;
}

.mobile-nav details summary .icon {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease-out);
}

.mobile-nav details[open] summary .icon {
  transform: rotate(180deg);
}

.mobile-nav details .sub-links {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

.mobile-nav details .sub-links a {
  padding: 10px 4px 10px 16px;
  border-bottom: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  opacity: 1;
  transform: none;
}

/* ---------- Sub-page hero ---------- */

.page-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  max-width: 20ch;
}

.page-hero p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}

.page-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* blue hero over an illustration (e-voting, clients) */
.page-hero--art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 120px;
  border-bottom: 0;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #ffffff;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* the SVG itself fits the scene to the hero height ("meet") and its scenery runs
     past the viewBox, so stretching the box to the hero never zooms or crops it */
  object-fit: fill;
  z-index: -2;
}

/* soft dark pool behind the text so it stays readable over the art */
.page-hero--art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 42%, rgba(6, 26, 60, 0.72) 0%, rgba(6, 26, 60, 0.35) 60%, rgba(6, 26, 60, 0.15) 100%);
}

/* phones: the scene is too wide to sit behind the text, so it becomes a strip under it */
@media (max-width: 767px) {
  .page-hero--art {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: clamp(160px, 40vw, 290px);
  }

  /* whole scene at full width: its height follows the 1600x600 ratio */
  .page-hero--art .hero-art {
    top: auto;
    bottom: 0;
    height: calc(100vw * 600 / 1600);
  }

  .page-hero--art::after {
    background: linear-gradient(to bottom, rgba(6, 26, 60, 0.45) 0%, rgba(6, 26, 60, 0.2) 60%, rgba(6, 26, 60, 0) 72%);
  }

  .page-hero--art h1 {
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.2rem);
  }

  .page-hero--art p {
    font-size: 1rem;
  }

  .page-hero--art .page-hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .page-hero--art .btn {
    justify-content: center;
  }
}

.page-hero--art .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero--art h1 {
  color: #ffffff;
  margin-inline: auto;
}

.page-hero--art p {
  color: rgba(255, 255, 255, 0.92);
  margin-inline: auto;
}

.page-hero--art .page-hero-cta,
.page-hero--art .feature-tags {
  justify-content: center;
}

.page-hero--art .btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.page-hero--art .btn-primary:hover {
  background: #c01847;
}

.page-hero--art .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.page-hero--art .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero--art .pill-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ---------- Partners ---------- */

.partners-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

@media (min-width: 640px) {
  .partners-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 960px) {
  .partners-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-tile {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 84px;
}

.partner-tile span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  line-height: 34px;
  color: var(--text-dim);
  letter-spacing: -0.03em;
  text-align: center;
  transition: color 160ms var(--ease-out);
}

.partner-tile svg {
  height: 34px;
  width: auto;
  max-width: 100%;
  color: var(--text-dim);
  transition: color 160ms var(--ease-out);
}

.partner-tile:hover svg,
.partner-tile:hover span {
  color: var(--accent);
}

/* ---------- Product / SunVote page ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-row .stat {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stat-row .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.stat-row .stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.reason-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .reason-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.reason-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-soft);
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
  margin-bottom: 14px;
  display: block;
}

.reason-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.reason-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.how-it-works {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
  }
}

.how-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.how-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.how-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.quote-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.quote-block cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.cta-band {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #ffffff;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  max-width: 24ch;
  margin: 0 auto 16px;
  color: #ffffff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 28px;
}

.cta-band .btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.cta-band .btn-primary:hover {
  background: #c01847;
}

.cta-band .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-band .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- SunVote installation diagram ---------- */

.setup-card {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .setup-card {
    grid-template-columns: minmax(0, 605px) 1fr;
    gap: 48px;
  }
}

.setup-figure {
  margin: 0;
}

/* the diagram has a light gray backdrop: let it sit on the white card */
.setup-figure img {
  width: 100%;
  max-width: 605px;
  height: auto;
  display: block;
  border-radius: 10px;
}

.setup-card h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.setup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: setup;
  display: grid;
  gap: 14px;
}

.setup-list li {
  counter-increment: setup;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
}

.setup-list li::before {
  content: counter(setup);
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.setup-list strong {
  font-size: 0.95rem;
  color: var(--text);
}

.setup-list span {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---------- Text + photo split ---------- */

.split-media {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split-media {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.split-media-text h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  max-width: 22ch;
}

.split-media-text p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}

.split-media-img {
  position: relative;
  margin: 0;
  aspect-ratio: 526 / 442;
}

.split-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
}

/* e-voting page: Swiss split + testimonial as one block */
.split-section {
  padding-block: clamp(56px, 7vw, 96px);
}

.split-quote {
  position: relative;
  margin: 28px 0 0;
  padding: 24px 24px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-card);
}

.split-quote-mark {
  position: absolute;
  top: -16px;
  right: 20px;
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.9;
}

.split-quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text);
}

.split-quote figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
}

.split-badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.split-badge-flag {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #da291c;
  flex-shrink: 0;
}

.split-badge-flag::before,
.split-badge-flag::after {
  content: '';
  position: absolute;
  background: #ffffff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.split-badge-flag::before {
  width: 12px;
  height: 4px;
}

.split-badge-flag::after {
  width: 4px;
  height: 12px;
}

@media (max-width: 899px) {
  .split-badge {
    left: 12px;
    bottom: 12px;
  }
}

/* ---------- Photo band (landscape background, dark filter) ---------- */

.photo-band {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 18, 38, 0.78) 0%, rgba(6, 18, 38, 0.55) 100%),
    url('/assets/img/banner-alpes.jpg') center 40% / cover no-repeat;
}

.photo-band-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .photo-band-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.photo-band h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  max-width: 18ch;
}

.photo-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 24px;
}

.photo-band .btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.photo-band .btn-primary:hover {
  background: #c01847;
}

.booking-panel {
  display: grid;
  gap: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

@media (min-width: 900px) {
  .booking-panel {
    grid-template-columns: 1fr 1fr;
    padding: 40px;
  }
}

.booking-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
}

.booking-option h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.booking-option p {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Demo booking: blue reassurance column + form ---------- */

.booking-panel--split {
  padding: 0;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

@media (min-width: 900px) {
  .booking-panel--split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    padding: 0;
  }
}

.booking-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #ffffff;
}

.booking-aside h3 {
  color: #ffffff;
  font-size: 1.3rem;
}

.booking-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.booking-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
}

.booking-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.booking-steps strong {
  font-size: 0.98rem;
}

.booking-steps span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.booking-call {
  display: grid;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-call span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.booking-call a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  width: fit-content;
}

.booking-call .icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.booking-call a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-quote {
  margin: auto 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.08);
}

.booking-quote blockquote {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.booking-quote figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.booking-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(24px, 4vw, 44px);
  gap: 20px;
}

/* format picker: the three formats are the radio buttons */
.format-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.format-picker legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding: 0;
}

@media (min-width: 560px) {
  .format-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

.format-option {
  position: relative;
  cursor: pointer;
}

.format-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.format-card {
  position: relative;
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.format-option:hover .format-card {
  border-color: var(--accent);
}

.format-option:active .format-card {
  transform: scale(0.98);
}

.format-card strong {
  font-size: 0.95rem;
  color: var(--text);
}

.format-card small {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.format-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}

.format-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out);
}

.format-option input:checked + .format-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.format-option input:checked + .format-card .format-check {
  opacity: 1;
  transform: scale(1);
}

.format-option input:focus-visible + .format-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-form .field input,
.booking-form .field textarea {
  background: var(--surface);
}

.booking-form .field input:focus,
.booking-form .field textarea:focus {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Contact page: info panel, topic chips, find us ---------- */

.contact-aside-text {
  margin-top: -14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-chip-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-chip-icon .icon {
  color: #ffffff;
}

.contact-list div > span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-list strong {
  display: block;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

.contact-list a {
  color: #ffffff;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-zones span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-zones p {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.form-title {
  font-size: 1.3rem;
}

.topic-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-picker legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding: 0;
}

.topic-chip {
  cursor: pointer;
}

.topic-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-chip span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.topic-chip:hover span {
  border-color: var(--accent);
  color: var(--accent);
}

.topic-chip:active span {
  transform: scale(0.97);
}

.topic-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.topic-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.find-us {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .find-us {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.find-us-card {
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.find-us-card h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.find-us-card p {
  color: var(--text-dim);
  line-height: 1.65;
}

.find-us-card address {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.find-us-card .btn {
  gap: 8px;
  margin-top: auto;
}

.find-us-card .btn .icon {
  color: currentColor;
  width: 18px;
  height: 18px;
}

.find-us-map {
  position: relative;
  min-height: 360px;
  box-shadow: var(--shadow-card);
  background: #eef2f8;
  filter: none;
}

/* ---------- Homepage: about teaser + coverage area ---------- */

.home-about {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .home-about {
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
  }
}

.home-about-text h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  margin: 12px 0 16px;
  max-width: 20ch;
}

.home-about-text > p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 54ch;
}

.home-stats {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
}

@media (min-width: 560px) {
  .home-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-card);
}

.home-stat .fact-icon {
  margin: 0;
  flex-shrink: 0;
}

.home-stat:first-child .fact-icon {
  background: var(--brand-red-soft);
}

.home-stat:first-child .fact-icon .icon {
  color: var(--brand-red);
}

.home-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--accent);
}

.home-stat span:not(.fact-icon) {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-arrowed {
  gap: 10px;
}

.btn-arrowed .btn-arrow,
.zone-cta .btn-arrow {
  color: currentColor;
}

.btn-arrowed:hover .btn-arrow,
.zone-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.home-about-visual {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

/* homepage about visual: blue card with the Lake Geneva scene */
.about-visual-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 440px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-float);
}

/* the scene sits at the bottom, whole ("meet"), its scenery running past the card edges */
.about-visual-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  z-index: -1;
}

.about-visual-since {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about-visual-year {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem);
  line-height: 1;
  margin-top: 4px;
}

.about-visual-place {
  margin-top: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.about-visual-values {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-visual-values li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
}

/* coverage area: blue panel + brand-tinted map */
.zone-panel .booking-aside h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.zone-panel .contact-list strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-tag {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: #ffffff;
}

.zone-panel .contact-list div > span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.zone-cta {
  align-self: flex-start;
  margin-top: auto;
  gap: 10px;
}

.zone-map {
  position: relative;
  min-height: 380px;
  background: #eef2f8;
}

/* homepage: the seven-canton map, without the clients-page card chrome */
.ch-map-card--bare {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ch-map-card--bare .ch-map {
  max-width: 640px;
}

/* custom Lake Geneva map (inline SVG) */
.zone-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.zone-svg text {
  font-family: var(--font-body);
}

.zm-lake {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  fill: #5d82b8;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.zm-country {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: #a6b4c9;
  text-anchor: middle;
}

.zm-minor {
  font-size: 13px;
  fill: #7d8ea8;
}

.zm-city {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  fill: var(--text);
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 4px;
}

.zm-hq-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--brand-red);
}

.zm-route {
  animation: zm-flow 1.4s linear infinite;
}

@keyframes zm-flow {
  to { stroke-dashoffset: -22; }
}

.zm-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: zm-ping 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

@keyframes zm-ping {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(4); opacity: 0; }
}

/* entrance once the block is revealed: cities pop in, then the head office drops */
.zone-panel .zm-c,
.zone-panel .zm-hq {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 500ms var(--ease-out), transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zone-panel .zm-c {
  transform: scale(0.6);
}

.zone-panel .zm-hq {
  transform: translateY(-24px);
  transition-delay: 450ms;
}

.zone-panel .zm-c3 {
  transition-delay: 200ms;
}

.zone-panel.is-visible .zm-c,
.zone-panel.is-visible .zm-hq {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .zm-route,
  .zm-ping {
    animation: none;
  }

  .zone-panel .zm-c,
  .zone-panel .zm-hq {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 899px) {
  .zone-map {
    min-height: 320px;
  }
}

/* main conversion button: brand red, full width, arrow nudges on hover */
.btn-cta {
  background: var(--brand-red);
  color: #ffffff;
  padding-block: 16px;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(226, 30, 81, 0.28);
}

.btn-cta:hover {
  background: #c01847;
  box-shadow: 0 8px 22px rgba(226, 30, 81, 0.34);
}

.btn-block {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  color: currentColor;
  transition: transform 200ms var(--ease-out);
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.form-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

.form-reassure .icon {
  width: 16px;
  height: 16px;
  color: #16a34a;
  flex-shrink: 0;
}

/* ---------- Tech checklist (solid brand block) ---------- */

.tech-block {
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  padding: 40px 28px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .tech-block {
    padding: 56px;
  }
}

.tech-block .eyebrow {
  color: var(--brand-red);
}

.tech-block h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  max-width: 36ch;
}

.tech-checklist {
  margin-top: 32px;
  display: grid;
  gap: 14px 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tech-checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.975rem;
  font-weight: 500;
}

.tech-checklist li strong {
  font-weight: 600;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---------- Clients page ---------- */

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

@media (min-width: 640px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.sector-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.sector-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.size-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.size-banner strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.size-banner p {
  color: var(--text-dim);
  margin-top: 4px;
  font-size: 0.9rem;
}

/* ---------- Team page ---------- */

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Team flip cards ---------- */

.team-card-flip {
  perspective: 1400px;
  transition: transform 220ms var(--ease-out);
}

.team-card-flip:hover {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .team-card-flip {
    transition: none;
  }

  .team-card-flip:hover {
    transform: none;
  }
}

.team-card-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 560ms var(--ease-in-out);
}

.team-card-flip.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.team-card-front {
  justify-content: center;
}

.team-card-back {
  justify-content: flex-start;
  padding-top: 22px;
  transform: rotateY(180deg);
}

.team-photo-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.team-photo-wrap--lg {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.team-photo-wrap--lg .team-avatar {
  font-size: 1.4rem;
}

.team-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.team-card h3,
.team-card-face h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card span,
.team-card-face > span {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.team-card-front .team-flip-hint {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.team-card-flip:hover .team-flip-hint,
.team-card-inner:focus-visible .team-flip-hint {
  opacity: 1;
  transform: translateY(0);
}

.team-bio {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.team-flip-back {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.team-flip-back .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .team-card-inner {
    transition: none;
  }
}

/* front face: the photo takes the whole top of the card */
.team-card-inner {
  min-height: 440px;
}

/* long tags (e.g. EN "Troubleshooting & infrastructure") may wrap: keep them compact */
.team-card-front .pill-tag {
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
}

.team-card-front {
  justify-content: flex-start;
  padding: 0 18px 22px;
}

.team-card-front .team-photo-wrap {
  width: calc(100% + 36px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 -18px 18px;
  overflow: hidden;
}

.team-card-front .team-avatar {
  border-radius: 0;
  font-size: 3rem;
}

.team-card-front .team-photo-img {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  object-position: center 15%;
  transition: transform 500ms var(--ease-out);
}

.team-card-flip:hover .team-card-front .team-photo-img {
  transform: scale(1.04);
}

/* soft fade so the photo melts into the card */
.team-card-front .team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.team-card-front h3 {
  font-size: 1.2rem;
}

.team-card-front .team-flip-hint {
  margin-top: auto;
  padding-top: 12px;
  opacity: 0.75;
  transform: none;
}

.team-card-front .team-flip-hint::after {
  content: '\2192';
  display: inline-block;
  margin-left: 5px;
  transition: transform 200ms var(--ease-out);
}

.team-card-flip:hover .team-card-front .team-flip-hint::after {
  transform: translateX(3px);
}

.team-card-back .team-photo-wrap--lg {
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}

.team-card-back .team-photo-img {
  object-position: center 15%;
  border-width: 3px;
}

@media (max-width: 767px) {
  .team-card-inner {
    min-height: 420px;
  }

  .team-card-back .team-photo-wrap--lg {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 479px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-inner {
    min-height: 460px;
  }

  /* one card per row: a landscape crop keeps name, role and hint inside the card */
  .team-card-front .team-photo-wrap {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Values / mission page ---------- */

.values-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-tint {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* intro: text + key facts */
.about-intro {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .about-intro {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
  }
}

.about-intro-text h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  margin: 12px 0 8px;
}

.about-intro-text p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: 16px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fact-card {
  display: grid;
  gap: 6px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.fact-card:nth-child(2),
.fact-card:nth-child(4) {
  transform: translateY(24px);
}

.fact-card.is-visible:nth-child(2),
.fact-card.is-visible:nth-child(4) {
  transform: translateY(24px);
}

.fact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}

.fact-card:first-child .fact-icon {
  background: var(--brand-red-soft);
}

.fact-card:first-child .fact-icon .icon {
  color: var(--brand-red);
}

.fact-card strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--accent);
}

.fact-card > span:last-child {
  font-size: 0.875rem;
  color: var(--text-dim);
}

@media (max-width: 479px) {
  .fact-card:nth-child(2),
  .fact-card:nth-child(4),
  .fact-card.is-visible:nth-child(2),
  .fact-card.is-visible:nth-child(4) {
    transform: none;
  }
}

/* values: three identical cards */
.value-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), opacity 640ms var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.value-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.value-card .icon-badge {
  color: var(--accent);
}

.value-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* mission & vision side by side */
.mv-grid {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}

@media (min-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mv-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.mv-card .icon-badge {
  color: var(--accent);
}

.mv-card h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 14px;
}

.mv-card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.mv-card .mv-punch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
}

.mv-card--accent {
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-color: transparent;
  color: #ffffff;
}

.mv-card--accent .icon-badge {
  background: rgba(255, 255, 255, 0.14);
}

.mv-card--accent .icon-badge .icon {
  color: #ffffff;
}

.mv-card--accent h2 {
  color: #ffffff;
}

.mv-card--accent p {
  color: rgba(255, 255, 255, 0.88);
}

.mv-card--accent .mv-punch {
  color: #ffffff;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.sunvote-inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .sunvote-inner {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* ---------- Voting remotes illustration ---------- */

.remote-panel {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.remote-scene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.remote {
  position: relative;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, #1c2a42 0%, #0f1b2d 100%);
  border-radius: 26px 26px 34px 34px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg);
}

.remote-led {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.remote-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 8px;
  background: #c9d8c4;
  color: #1f2d1c;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.remote-screen-seat {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.remote-screen-vote {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.remote-keys {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.remote-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.remote-key svg {
  width: 13px;
  height: 13px;
}

.remote-key--yes {
  background: #22c55e;
}

.remote-key--no {
  background: var(--brand-red);
}

.remote-key--abs {
  background: #6b7688;
}

.remote-key.is-pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 2px #0f1b2d, 0 0 0 4px rgba(34, 197, 94, 0.55);
}

.remote-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 6px;
}

.remote-pad span {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.vote-result {
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.vote-result-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.vote-row {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.vote-row strong {
  text-align: right;
  color: var(--text);
  font-family: var(--font-display);
}

.vote-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  overflow: hidden;
}

.vote-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.vote-bar--yes {
  background: #22c55e;
}

.vote-bar--no {
  background: var(--brand-red);
}

.vote-bar--abs {
  background: var(--border-strong);
}

.vote-result-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #15803d;
}

.vote-result-status svg {
  width: 14px;
  height: 14px;
}

.remote-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  max-width: 24ch;
}

.remote-caption strong {
  color: var(--text);
  font-family: var(--font-display);
}


/* ── Form success overlay ──────────────────────────────────── */
.form-success-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fsc-fadein 0.5s cubic-bezier(.22,.68,0,1.1) both;
}
.fsc {
  text-align: center;
  padding: 32px 24px;
}
.fsc-svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
  overflow: visible;
}
.fsc-ring {
  stroke-dasharray: 164;
  stroke-dashoffset: 164;
  animation: fsc-ring 0.65s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}
.fsc-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: fsc-check 0.3s ease 0.7s forwards;
}
.fsc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #0f1b2d);
  margin: 0 0 8px;
}
.fsc-body {
  font-size: 0.925rem;
  color: var(--text-dim, #4b5668);
  margin: 0;
  line-height: 1.55;
}
@keyframes fsc-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fsc-ring {
  to { stroke-dashoffset: 0; }
}
@keyframes fsc-check {
  to { stroke-dashoffset: 0; }
}

/* Bookings iframe */
.booking-iframe-wrap { flex: 1 1 0; min-width: 0; }
.booking-iframe-wrap iframe { display: block; width: 100%; min-height: 660px; border: 0; border-radius: 8px; }

/* Slot picker */
.slot-picker{margin:4px 0 16px;padding:16px;background:var(--bg-elevated,#f3f4f8);border-radius:8px;border:1px solid var(--border,#e2e5eb);}
.sp-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.sp-title{font-size:13px;font-weight:600;color:var(--text,#111827);}
.sp-badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:12px;background:var(--accent,#0d3e8a);color:#fff;}
.sp-days{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;}
.sp-day{padding:7px 10px;border:1.5px solid var(--border,#e2e5eb);border-radius:7px;background:var(--bg,#fff);cursor:pointer;font-size:11px;font-weight:600;color:var(--text,#111827);line-height:1.4;text-align:center;}
.sp-day:hover{border-color:var(--accent,#0d3e8a);}
.sp-day.is-active{border-color:var(--accent,#0d3e8a);background:var(--accent,#0d3e8a);color:#fff;}
.sp-times{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;margin-bottom:4px;}
.sp-time{padding:6px 14px;border:1.5px solid var(--border,#e2e5eb);border-radius:6px;background:var(--bg,#fff);cursor:pointer;font-size:13px;font-weight:500;color:var(--text,#111827);}
.sp-time:hover{border-color:var(--accent,#0d3e8a);color:var(--accent,#0d3e8a);}
.sp-time.is-selected{border-color:var(--accent,#0d3e8a);background:var(--accent,#0d3e8a);color:#fff;}
.sp-hint{font-size:12px;color:var(--text-dim,#6b7a8d);}
.sp-confirm{font-size:13px;color:#16a34a;font-weight:600;margin-top:8px;}

/* ── Staff picker ─────────────────────────────────────── */
.staff-picker-wrap{margin:0 0 20px;}
.staff-picker{border:none;padding:0;margin:0;}
.staff-picker legend{display:block;font-size:13px;font-weight:600;color:var(--text,#0f1b2d);margin-bottom:10px;}
.staff-options{display:flex;gap:10px;}
.staff-option{flex:1;cursor:pointer;position:relative;}
.staff-option input[type="radio"]{position:absolute;opacity:0;width:0;height:0;}
.staff-card{display:flex;flex-direction:column;gap:3px;padding:14px 16px;padding-right:36px;background:var(--bg-elevated,#f3f4f8);border:1.5px solid var(--border,#e0e3eb);border-radius:8px;transition:border-color .15s,box-shadow .15s;cursor:pointer;position:relative;}
.staff-card strong{font-size:14px;color:var(--text,#0f1b2d);line-height:1.3;}
.staff-card small{font-size:12px;color:var(--text-muted,#6b7a8d);}
.staff-check{position:absolute;top:12px;right:12px;width:16px;height:16px;stroke:var(--accent,#0d3e8a);opacity:0;transition:opacity .15s;}
.staff-option input:checked ~ .staff-card{border-color:var(--accent,#0d3e8a);background:#eef3fb;box-shadow:0 0 0 2px rgba(13,62,138,.12);}
.staff-option input:checked ~ .staff-card .staff-check{opacity:1;}
.staff-option:hover .staff-card{border-color:var(--accent,#0d3e8a);}
@media(max-width:420px){.staff-options{flex-direction:column;}}
