/* ============================================================
   DAI Infrastruktur GmbH — Homepage
   Design system: "Chart Line" — nautical chart / engineering
   blueprint language, tying hero → journey → milestones together
   via a single recurring route-line motif.
   ============================================================ */

:root {
  --ink-navy: #0b1d30;
  --chart-blue: #12304a;
  --chart-blue-light: #1c3f5e;
  --parchment: #ede7d9;
  --parchment-dim: #e2dbc9;
  --brass: #b98a3d;
  --brass-light: #d4a856;
  --rust: #9c4a34;
  --ink-text: #101820;
  --paper-text: #4a5568;
  --white: #ffffff;

  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-display: var(--font-body); /* unified with subheading font per request — was "Fraunces", Georgia, serif */
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--paper-text);
}

section { padding: 100px 0; position: relative; }

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(11, 29, 48, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 3px;
}

.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--brass-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 5px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.lang-btn span { display: inline-block; }
.flag-icon { flex: 0 0 auto; border-radius: 1px; display: block; filter: brightness(0.8); }
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.lang-btn.is-active {
  color: var(--brass-light);
  border-color: rgba(212,168,86,0.4);
  background: rgba(212,168,86,0.08);
}

@media (max-width: 900px) {
  .lang-switch .lang-btn span { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}
.nav-toggle:focus { outline: none; }
.nav-toggle-icon { display: inline-block; pointer-events: none; }

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--chart-blue) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: brightness(1.25);
}

.hero-bg-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,29,48,0.55) 0%, rgba(11,29,48,0.92) 100%);
}

.hero-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 42px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink-navy);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }

.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------------- Hero index (right-hand location list) ---------------- */

.hero-index {
  position: absolute;
  right: 48px;
  bottom: 130px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hi-item::before {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.hi-item.active {
  color: var(--brass-light);
}

.hi-item.active::before {
  width: 22px;
  background: var(--brass-light);
}

.hi-num { opacity: 0.7; }

@media (max-width: 900px) {
  .hero-index { display: none; }
}

/* ---------------- Intro / Our Story ---------------- */

.intro { background: var(--parchment); padding: 100px 0 70px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-grid h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.intro-copy p {
  font-size: 17px;
  color: var(--paper-text);
  max-width: 480px;
}

@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------- Location blocks ---------------- */

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.location.reverse { direction: rtl; }
.location.reverse > * { direction: ltr; }

.location-figure {
  position: relative;
  background: var(--chart-blue-light);
  overflow: hidden;
  min-height: 340px;
}

.location-figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.location-figure .ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}

.location-copy {
  background: var(--ink-navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 72px;
}

.location-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.location-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.location-copy p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 420px;
}

@media (max-width: 800px) {
  .location, .location.reverse { grid-template-columns: 1fr; direction: ltr; }
  .location-copy { padding: 48px 32px; }
}

/* ---------------- Cinematic 90-second journey (reel) ---------------- */

.reel {
  position: relative;
  padding: 0;
  height: 100vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background: var(--ink-navy);
}

.reel-frame { position: relative; width: 100%; height: 100%; }

.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.reel-slide.is-active { opacity: 1; }

.reel-bg { position: absolute; inset: 0; }
.reel-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--ink-navy);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.reel-shot.is-shot-active { opacity: 1; }

.img-contain {
  object-fit: contain !important;
  background: var(--ink-navy);
}

.reel-bg .ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--chart-blue-light);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
}

.reel-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,29,48,0.55) 0%, rgba(11,29,48,0.35) 45%, rgba(11,29,48,0.92) 100%);
  z-index: 1;
}

.reel-content {
  position: absolute;
  left: 0; right: 0;
  bottom: 110px;
  z-index: 2;
  color: var(--white);
}

.reel-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 22px;
}

.reel-caption {
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  max-width: 640px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.reel-caption.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.reel-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.reel-caption h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 10px;
}

.reel-caption p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
}

.reel-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.reel-play {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.reel-play:hover { border-color: var(--brass-light); }
.reel-play svg { fill: currentColor; }

.reel-progress {
  flex: 1;
  display: flex;
  gap: 6px;
}

.reel-seg {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.reel-seg-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--brass-light);
  border-radius: 2px;
}

.reel-seg.is-done .reel-seg-fill { width: 100%; transition: none; }
.reel-seg.is-current .reel-seg-fill { width: 0%; transition: width linear; }

@media (max-width: 720px) {
  .reel { height: 100vh; min-height: 480px; max-height: none; }
  .reel-content { bottom: 90px; }
  .reel-caption { left: 20px; right: 20px; }
  .reel-controls { left: 20px; right: 20px; bottom: 22px; }
}

/* ---------------- Regional map ---------------- */

.network {
  margin-bottom: 72px;
  padding: 40px 20px 8px;
}

.region-map-wrap {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 900 / 600;
}

.region-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.rm-graticule line {
  stroke: rgba(255,255,255,0.09);
  stroke-width: 1;
}

.rm-tick {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: rgba(255,255,255,0.32);
}

.rm-land {
  fill: rgba(237,231,217,0.06);
  stroke: rgba(237,231,217,0.1);
  stroke-width: 1;
}

.rm-region {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: rgba(255,255,255,0.32);
}

.rm-links line {
  stroke: #B98A3D;
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.6;
}

/* City pins — plain HTML, positioned by percentage over the map */

.rm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 120px;
  text-align: center;
  pointer-events: none;
}

.rm-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chart-blue-light);
  border: 1.5px solid rgba(237,231,217,0.5);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.rm-pin-hub .rm-photo {
  width: 60px;
  height: 60px;
  border: 2px solid var(--brass-light);
}

.rm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.rm-pin-hub .rm-name {
  color: var(--brass-light);
  font-weight: 500;
}

.rm-role {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 640px) {
  .rm-region { font-size: 9.5px; }
  .rm-photo { width: 56px; height: 56px; }
  .rm-pin-hub .rm-photo { width: 64px; height: 64px; }
  .rm-name { font-size: 10.5px; }
  .rm-role { font-size: 9.5px; }

  /* Below this width the geographic pin layout starts to overlap
     (London/Frankfurt and Athens/Cairo sit too close together on a
     narrow viewport for their photo circles + labels not to collide).
     Rather than hand-tuning new percentage coordinates — which would
     then no longer line up with the SVG connector lines drawn in the
     900x600 coordinate space — the decorative map background (grid,
     landmasses, dashed connector lines) is hidden here, and the pins
     switch from absolutely-positioned (geographic) to a plain static
     2x2 grid. Clean and overlap-proof at any width, at the cost of
     the literal geographic arrangement below this breakpoint only. */
  .region-map { display: none; }
  .region-map-wrap {
    aspect-ratio: unset;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
    padding: 8px 0 16px;
  }
  .rm-pin {
    position: static;
    transform: none;
    width: auto;
  }
}

/* ---------------- City detail cards ---------------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}

.city-card {
  background: var(--chart-blue);
  padding: 36px 38px;
}

.city-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
}

.city-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.city-card > p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 22px;
}

.city-focus-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.city-focus {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.city-focus li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 16px;
  position: relative;
}

.city-focus li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--brass);
}

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

/* ---------------- Journey ---------------- */

.journey {
  background: var(--ink-navy);
  color: var(--white);
  padding: 110px 0 90px;
}

.journey .section-head h2, .journey .eyebrow { color: var(--white); }
.journey .section-head p { color: rgba(255,255,255,0.65); }

.journey-track {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.journey-track::-webkit-scrollbar { height: 5px; }
.journey-track::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 4px; }
.journey-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }

.journey-stop {
  flex: 0 0 240px;
  scroll-snap-align: start;
  position: relative;
  padding-right: 28px;
}

.journey-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 108px;
  right: 0;
  width: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 11px);
}

.journey-figure {
  width: 100%;
  height: 150px;
  border-radius: 3px;
  background: var(--chart-blue-light);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  border: 1px solid rgba(185,138,61,0.35);
}

.journey-figure img { width: 100%; height: 100%; object-fit: cover; }

.journey-figure .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 12px;
}

.journey-waypoint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.journey-stop h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 600;
}

.journey-stop p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}

/* ---------------- Capabilities ---------------- */

.capabilities { background: var(--parchment); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(16,24,32,0.12);
  border: 1px solid rgba(16,24,32,0.12);
}

.cap-card {
  background: var(--parchment);
  padding: 40px 32px;
  transition: background 0.25s ease;
}

.cap-card:hover { background: var(--parchment-dim); }

.cap-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.cap-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.cap-icon {
  width: 42px; height: 42px;
  margin-bottom: 22px;
  color: var(--brass);
}

.cap-icon svg { width: 100%; height: 100%; }

.cap-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 600;
}

.cap-card p {
  font-size: 14.5px;
  color: var(--paper-text);
}

/* ---------------- Global platform ---------------- */

.platform { background: var(--chart-blue); color: var(--white); }
.platform .section-head h2, .platform .eyebrow { color: var(--white); }
.platform .section-head p { color: rgba(255,255,255,0.65); }

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

.platform-card {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 32px 24px;
  border-radius: 3px;
  position: relative;
}

.platform-city {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.platform-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.platform-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
}

/* ---------------- Project Ra ---------------- */

.project-ra {
  background: var(--ink-navy);
  color: var(--white);
  background-image:
    radial-gradient(ellipse 700px 400px at 85% 20%, rgba(185,138,61,0.14), transparent);
}

.ra-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.ra-figure {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--chart-blue-light);
  border: 1px solid rgba(185,138,61,0.35);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.ra-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ra-figure .ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4);
  text-align: center; padding: 20px;
}

.ra-copy .eyebrow { color: var(--brass-light); }

.ra-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 20px;
  line-height: 1.18;
}

.ra-copy p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
  font-size: 16px;
}

.ra-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.ra-fact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 6px;
}

.ra-fact-value {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
}

/* ---------------- Milestones (inside Project Ra) ---------------- */

.ra-milestones {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.ra-milestones .eyebrow { color: var(--brass-light); }

.ra-milestones h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--white);
  margin-bottom: 32px;
}

.timeline {
  position: relative;
  padding-left: 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.5) 0 6px, transparent 6px 12px);
  opacity: 0.4;
}

.t-item {
  display: grid;
  grid-template-columns: 128px 40px 1fr;
  gap: 0;
  position: relative;
  padding-bottom: 40px;
}

.t-item:last-child { padding-bottom: 0; }

.t-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding-top: 3px;
}

.t-marker {
  display: flex;
  justify-content: center;
  position: relative;
}

.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--chart-blue-light);
  border: 2px solid var(--ink-navy);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
  margin-top: 4px;
  z-index: 1;
}

.t-item.highlight .t-dot {
  width: 17px; height: 17px;
  background: var(--brass-light);
  box-shadow: 0 0 0 1px var(--brass-light), 0 0 0 6px rgba(212,168,86,0.22);
  margin-top: 0;
}

.t-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.t-item.highlight .t-content h3 {
  font-size: 20px;
  color: var(--brass-light);
}

.t-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  max-width: 560px;
}

/* thumbnail-style photo on a regular milestone entry */
.t-item.has-photo .t-content {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.t-photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.18);
}

.t-logo {
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}

.t-text { flex: 1; min-width: 0; }

/* full-width featured photo on the highlighted milestone */
.t-photo-feature {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 18px;
  border: 1px solid rgba(212,168,86,0.4);
}

@media (max-width: 640px) {
  .t-item.has-photo .t-content { flex-direction: column; }
  .t-photo { width: 100%; height: 160px; }
}

.t-content h3 a {
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.t-content h3 a:hover { color: var(--brass-light); border-color: var(--brass-light); }

.t-item.highlight .t-content h3 a { border-color: rgba(212,168,86,0.5); }
.t-item.highlight .t-content h3 a:hover { border-color: var(--brass-light); }

.t-item.highlight .t-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,168,86,0.4);
  padding: 18px 22px;
  border-radius: 3px;
}

/* ---------------- Maritime / Posidonia ---------------- */

.maritime {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: var(--chart-blue-light);
  color: var(--white);
  overflow: hidden;
}

.maritime-bg {
  position: absolute; inset: 0;
}

.maritime-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; opacity: 0.35; }

.maritime-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,29,48,0.92) 10%, rgba(11,29,48,0.25) 75%);
}

.maritime .container {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
}

.maritime-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brass-light);
  text-transform: uppercase;
  border: 1px solid rgba(185,138,61,0.5);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.maritime h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 620px;
  margin-bottom: 14px;
}

.maritime p {
  max-width: 520px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.news-card {
  background: rgba(11,29,48,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 3px;
  padding: 24px 26px;
  backdrop-filter: blur(2px);
}

.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card h3 a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.news-card h3 a:hover { color: var(--brass-light); border-color: var(--brass-light); }

.news-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  max-width: none;
}

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

/* ---------------- Insights ---------------- */

.insights { background: var(--parchment); }

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

/* Both special-case layouts below are wrapped to only apply above the
   existing mobile breakpoint (980px, see the "max-width: 980px" rule
   further down that stacks .insights-grid to a single column). This
   guarantees they can never interfere with that confirmed-working
   mobile layout, regardless of card count. */
@media (min-width: 981px) {
  /* With exactly 4 cards, the default 3-column grid wraps to "3 then
     1 alone" on its own row (left-aligned, two empty columns beside
     it) — switch to a balanced 2x2 layout instead. Uses :has() to
     detect the count purely in CSS, no JS needed; automatically
     reverts to 3 (or any other count) if the number of cards changes
     later. */
  .insights-grid:has(.insight-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
  }

  /* With exactly 5 cards: row one keeps 3 side by side, and the last
     2 are centered on row two with equal empty space either side —
     not achievable with simple column centering, since CSS Grid
     doesn't center an individual incomplete row on its own. Instead,
     this uses a 6-column grid where every card spans 2 columns (so 3
     cards still fill a row exactly as before), then explicitly places
     the 4th and 5th cards starting one column in from each edge —
     leaving exactly one empty track on the left and right of row two. */
  .insights-grid:has(.insight-card:nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr);
  }
  .insights-grid:has(.insight-card:nth-child(5):last-child) .insight-card {
    grid-column: span 2;
  }
  .insights-grid:has(.insight-card:nth-child(5):last-child) .insight-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .insights-grid:has(.insight-card:nth-child(5):last-child) .insight-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.insight-card {
  border: 1px dashed rgba(16,24,32,0.3);
  border-radius: 3px;
  padding: 32px 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-card .li-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.insight-card p {
  color: var(--paper-text);
  font-size: 14.5px;
}

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

.contact { background: var(--ink-navy); color: var(--white); }
.contact .section-head h2, .contact .eyebrow { color: var(--white); }
.contact .section-head p { color: rgba(255,255,255,0.65); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 56px;
}

.contact-card {
  position: relative;
  background: var(--ink-navy);
  padding: 30px 26px;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: grayscale(30%) contrast(1.05);
  z-index: 0;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,48,0.35) 0%, var(--ink-navy) 92%);
  z-index: 0;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card-frankfurt::before { background-image: url('images/frankfurt.jpg?v=12'); }
.contact-card-london::before { background-image: url('images/london.jpg?v=12'); }
.contact-card-athens::before { background-image: url('images/athens.jpg?v=12'); }
.contact-card-cairo::before { background-image: url('images/cairo.jpg?v=12'); }

.contact-city {
  font-family: var(--font-display);
  font-size: 21px;
  margin-bottom: 12px;
}

.contact-detail {
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 40px;
}

.contact-cta p { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 440px; }

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

footer {
  background: var(--ink-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-links a:hover { color: var(--brass-light); }

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .cap-grid, .cap-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.14); }
  .platform-card { background: var(--chart-blue); }
  .ra-grid { grid-template-columns: 1fr; gap: 40px; }
  .ra-figure { max-width: 420px; }
  .insights-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11,29,48,0.97);
    padding: 20px 32px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
  section { padding: 70px 0; }
  .cap-grid, .cap-grid-4 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .t-item { grid-template-columns: 96px 26px 1fr; }
  .timeline::before { left: 96px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Legal pages (Impressum / Datenschutz) ---------------- */

.legal-hero {
  background: var(--ink-navy);
  color: var(--white);
  padding: 160px 0 60px;
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
}

.legal-body {
  background: var(--parchment);
  padding: 70px 0 100px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16,24,32,0.15);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-text);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  color: var(--ink-text);
}

.legal-content li {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: rgba(156,74,52,0.4);
}
.legal-content a:hover { text-decoration-color: var(--rust); }

.legal-content strong { font-weight: 600; }

.legal-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------------- Project Ra video ---------------- */

.ra-video {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 900px;
}

.ra-video .eyebrow { color: var(--brass-light); }

.ra-video h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--white);
  margin-bottom: 10px;
}

.ra-video > p {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 24px;
}

.ra-video video {
  width: 100%;
  border-radius: 3px;
  border: 1px solid rgba(185,138,61,0.35);
  background: var(--chart-blue-light);
  display: block;
}

.video-frame {
  position: relative;
}

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  transition: transform 0.2s ease;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn.is-hidden { display: none; }

/* ---------------- Legal pages (Impressum / Datenschutz) ---------------- */

.legal-hero {
  background: linear-gradient(180deg, var(--ink-navy) 0%, var(--chart-blue) 100%);
  color: var(--white);
  padding: 160px 0 60px;
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 10px;
}

.legal-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}

.legal-body {
  background: var(--parchment);
  padding: 70px 0 100px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block h2 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16,24,32,0.14);
}

.legal-block p {
  font-size: 15px;
  color: var(--ink-text);
  margin-bottom: 14px;
}
.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
  list-style: none;
  margin-bottom: 14px;
}

.legal-block ul li {
  font-size: 15px;
  color: var(--ink-text);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.legal-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 1px;
  background: var(--brass);
}

.legal-block a {
  color: var(--rust);
  border-bottom: 1px solid rgba(156,74,52,0.35);
}
.legal-block a:hover { border-color: var(--rust); }

.legal-address {
  font-size: 15px;
  color: var(--ink-text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 12px 22px;
  border: 1px solid rgba(16,24,32,0.3);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-text);
  transition: all 0.2s ease;
}
.legal-back:hover {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: var(--white);
}

/* ---------------- News & Events (paginated LinkedIn-style feed) ---------------- */

.events { background: var(--parchment); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  display: flex;
  flex-direction: column;
}

.event-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  background: var(--chart-blue-light);
  margin-bottom: 16px;
  border: 1px solid rgba(16,24,32,0.12);
}

.event-image img {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-image .ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 10px;
}

.event-image.is-logo img {
  object-fit: contain;
  background: var(--white);
  padding: 16px;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}

.event-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.event-card h3 a {
  color: var(--ink-text);
  border-bottom: 1px solid rgba(16,24,32,0.2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.event-card h3 a:hover { color: var(--rust); border-color: var(--rust); }

.event-excerpt {
  font-size: 14px;
  color: var(--paper-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.events-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.events-nav {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(16,24,32,0.25);
  background: transparent;
  color: var(--ink-text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s ease;
}
.events-nav:hover:not(:disabled) { background: var(--ink-navy); border-color: var(--ink-navy); color: var(--white); }
.events-nav:disabled { opacity: 0.3; cursor: default; }

.events-page-indicator {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-text);
}

.events-page { display: none; }
.events-page.is-active { display: block; }

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