/* ═══════════════════════════════════════════════════════
   CULTURAL POLICY LAB — Stylesheet
   Typography: Neue Haas Grotesk Text Pro only
   Hierarchy via weight (400/700), size, letter-spacing, text-transform
   ═══════════════════════════════════════════════════════ */

/* ── Web Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Neue Haas Grotesk Text Pro';
  src: url('fonts/NHGTextPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Text Pro';
  src: url('fonts/NHGTextPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ─────────────────────────── */
:root {
  --bg-main: #FAF8F4;
  --bg-soft: #FAF8F4;
  --bg-dark: #1c1e22;
  --text-primary: rgba(28, 30, 34, 0.85);
  --text-muted: rgba(28, 30, 34, 0.55);
  --text-heading: #1c1e22;
  --text-light: rgba(255, 255, 255, 0.9);
  --accent: #0080C8;
  --accent-light: #6DB8D4;
  --border: rgba(28, 30, 34, 0.1);
  --border-dark: rgba(255, 255, 255, 0.15);
  --font: 'Neue Haas Grotesk Text Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 64px;
  --container-max: 1100px;
  --text-body: rgba(28, 30, 34, 0.75);
  --transition: 0.3s ease;

  /* Aicher-Farbpalette */
  --aicher-orange: #E8942A;
  --aicher-blue: #0080C8;
  --aicher-green: #2EA043;
  --aicher-light-blue: #6DB8D4;
  --aicher-warm-white: #FAF8F4;

  /* CI-Farbpalette (bold / G+H Entwürfe) */
  --ci-orange: #F2A340;
  --ci-green: #5CE35C;
  --ci-cyan: #1FB8E3;
  --ci-yellow: #FFE600;
  --ci-magenta: #FF3D8B;
  --ci-grey: #DADADA;
  --ci-ink: #000000;
  --ci-paper: #FFFFFF;
}


/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Disable native scroll-anchoring: when cards shrink (e.g. collapsing
     an expanded card or swapping to a shorter pair), the browser's
     automatic anchor fights with our JS compensation. We handle scroll
     preservation manually in main.js around the news/portfolio swaps. */
  overflow-anchor: none;
}

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

/* Visually hidden but exposed to assistive tech — used to give screen
   readers a clean version of text content that is animated or
   otherwise noisy when announced verbatim. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { opacity: 0.7; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.hidden { display: none !important; }

/* ── Navigation ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--ci-orange);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: none;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-heading);
}
.nav-logo:hover { opacity: 1; }

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ci-ink);
  transition: color var(--transition);
  position: relative;
  opacity: 0.7;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--ci-ink);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ci-ink);
  opacity: 1;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.lang-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  color: var(--ci-ink);
  opacity: 0.7;
  transition: all var(--transition);
}
.lang-btn:hover {
  border-color: var(--ci-ink);
  color: var(--ci-ink);
  opacity: 1;
  background: rgba(0,0,0,0.08);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ci-ink);
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ci-orange);
  backdrop-filter: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-nav-content a {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ci-ink);
}
.mobile-nav-content .lang-btn {
  border-color: var(--ci-ink);
  color: var(--ci-ink);
}

/* ── Hero Section ──────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  position: relative;
}

#hero .container {
  width: 100%;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 960px;
  flex: 1;
}

.hero-logo-animation {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  position: relative;
}

.hero-logo-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.hero-logo-hidden {
  opacity: 0;
}

@media (max-width: 900px) {
  #hero {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 24px) 0 48px;
  }
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-logo-animation {
    width: 180px;
    height: 180px;
    order: -1;
  }
  .hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
  }
  .hero-context {
    font-size: 12px;
    letter-spacing: 1.2px;
  }
}

.hero-tagline {
  font-size: clamp(36px, 6.5vw, 76px);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 16px;
  display: block;
}
.hero-line-static {
  display: block;
  font-weight: 700;
}
/* "old solutions" / "alte Lösungen" — grey, light weight, red strike */
.hero-strike {
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #c0392b;
  text-decoration-thickness: 3px;
}
/* Typewriter rotator: types and deletes phrases character by character,
   landing on "Cultural Policy Lab" as the final resting state. */
.hero-line-rotator {
  display: block;
  position: relative;
  min-height: 1.2em;
  color: var(--text-heading);
  font-weight: 700;
  margin-top: 8px;
}
.hero-typewriter-text {
  /* Inherits bold from .hero-line-rotator. Finale overrides below. */
}
.hero-typewriter-text.is-final {
  font-size: 1.1em;
  letter-spacing: -0.02em;
}
.hero-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  background: currentColor;
  vertical-align: -0.08em;
  margin-left: 0.08em;
  animation: heroCaretBlink 1.1s step-end infinite;
}
@keyframes heroCaretBlink { 50% { opacity: 0; } }

/* Once the finale word is fully typed, fade cursor out after a beat */
.hero-cursor.is-done {
  animation: heroCaretFadeOut 1.6s ease forwards;
}
@keyframes heroCaretFadeOut {
  0%, 60% { opacity: 1; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cursor { animation: none; opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.6;
  margin-top: 20px;
  margin-bottom: 10px;
  max-width: 680px;
}
.hero-context {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* The four disciplines carry real weight in the brand — lift them
   out of the near-invisible "caption" register. */
.hero-affiliation {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

/* Primary CTA: solid dark pill. */
.hero-cta {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--ci-orange);
  background: var(--ci-ink);
  border: 1.5px solid var(--ci-ink);
  border-radius: 28px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}
.hero-cta:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Secondary CTA: minimal underlined text, no button chrome. */
.hero-cta-secondary {
  border: none;
  background: none;
  padding: 14px 0;
  color: var(--text-muted);
  border-radius: 0;
  font-size: 15px;
  letter-spacing: 0.2px;
  position: relative;
  border-bottom: 1px solid var(--text-muted);
}
.hero-cta-secondary:hover {
  border: none;
  border-bottom: 1px solid var(--text-heading);
  background: none;
  color: var(--text-heading);
  opacity: 1;
}

/* ── Section Shared Styles ─────────────────────────── */
.section { padding: 100px 0; }
.bg-soft { background: var(--bg-soft); }

.bg-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.bg-dark .section-label .typewriter { color: #fff; }
.bg-dark .section-label .cursor { color: rgba(255,255,255,0.6); }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 48px;
}

.section-label .line {
  display: none;
}

.section-label .typewriter {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
}

.section-label .cursor {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--text-primary);
  animation: blink 1s step-end infinite;
  opacity: 0.6;
}

@keyframes blink { 0%, 100% { opacity: 0.5; } 50% { opacity: 0; } }

/* About section two-column layout */
.about-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
  overflow: visible;
}

.about-lead .lead-text {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-heading);
  text-align: left;
  margin: 0;
}

.about-logo {
  margin-top: 24px;
  width: 140px;
  position: relative;
  cursor: pointer;
}
.about-logo-face {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.about-logo-face:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
}

.about-details .body-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: left;
  max-width: none;
  margin: 0 0 20px;
  opacity: 0.85;
}

/* ── Manifest ──────────────────────────────────────── */
.manifest {
  margin: 0 0 40px;
}
.manifest-line {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-heading);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.manifest-signature {
  margin-top: 20px;
  animation: cpl-brand-cycle 4.5s cubic-bezier(0.65, 0, 0.35, 1) 1s 3 forwards;
}
@media (prefers-reduced-motion: reduce) {
  .manifest-signature { animation: none; color: var(--text-heading); }
}

/* ── About: New vertical layout with images ────────── */
.about-lead-full {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-heading);
  max-width: 760px;
  margin: 0 0 48px;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 56px;
}
.about-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.about-body-short {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 700px;
  margin: 0;
}

@media (max-width: 900px) {
  .about-images {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .about-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Legacy classes kept for reuse */
.lead-text {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-heading);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
  opacity: 0.8;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.divider {
  width: 60px; height: 1px;
  background: var(--border);
  margin: 48px auto 0;
}

/* ── Services Grid ─────────────────────────────────── */
.services-toggle {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ci-ink);
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 11px 26px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.services-toggle:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.services-grid.services-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.service-card {
  padding: 36px 28px;
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  background: var(--ci-paper);
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* 5th card spans full width */
.service-card-highlight {
  grid-column: 1 / -1;
  border-color: var(--accent);
  border-width: 1px;
  background: linear-gradient(135deg, var(--bg-main) 0%, rgba(123, 138, 110, 0.04) 100%);
}

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  opacity: 0.6;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Portfolio ─────────────────────────────────────── */
.portfolio-filters,
.news-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  color: var(--ci-ink);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ci-ink);
  border-color: var(--ci-ink);
  color: var(--ci-paper);
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-item.portfolio-collapsed { display: none; }

.btn-portfolio-more {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 11px 26px;
  cursor: pointer;
  color: var(--ci-ink);
  display: block;
  margin: 0 auto;
  transition: all var(--transition);
}
.btn-portfolio-more:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.portfolio-item:nth-child(even) { direction: rtl; }
.portfolio-item:nth-child(even) > * { direction: ltr; }

/* Reserve layout space before the image loads — prevents CLS when new
   portfolio pairs slide in. All portfolio images share the same 3:2
   ratio, so a container-level aspect-ratio is the cleanest fix. */
.portfolio-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.portfolio-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.portfolio-info p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.portfolio-links { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 9px 22px;
  transition: all var(--transition);
  display: inline-block;
  cursor: pointer;
  background: none;
  color: var(--ci-ink);
}
.btn-outline:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
  opacity: 1;
}

.btn-sm { padding: 5px 12px; font-size: 10px; }

/* ── Team (Accordion Style) ───────────────────────── */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.team-member-full {
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.team-member-full:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.team-member-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
}

.team-member-header .team-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  transition: width 0.5s ease, height 0.5s ease, border-radius 0.5s ease;
}

.team-member-full.open .team-member-header .team-photo {
  width: 180px;
  height: 240px;
  border-radius: 8px;
}

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

.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: 50%;
}

.team-header-info { flex: 1; }

.team-header-info h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.team-contact-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.team-contact-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  transition: color var(--transition);
}
.team-contact-links a:hover {
  color: var(--text-heading);
  opacity: 1;
}

.team-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}
.team-toggle:hover { border-color: rgba(28,30,34,0.3); }

.toggle-icon {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1;
  transition: transform var(--transition);
}

.team-member-full.open .toggle-icon { transform: rotate(45deg); }

.team-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.team-member-full.open .team-bio {
  max-height: 2000px;
  padding: 0 24px 24px;
}

.team-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.85;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.join-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border: 1.5px solid var(--ci-ink);
  border-radius: 20px;
  text-align: left;
  background: var(--ci-paper);
}
.join-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.join-box p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.85;
  margin-bottom: 20px;
}
.join-box .btn-outline {
  color: var(--text-primary);
  border-color: var(--border);
}
.join-box .btn-outline:hover {
  border-color: var(--text-heading);
  color: var(--text-heading);
}

/* ── Gallery ──────────────────────────────────────── */
.gallery-group-photo { margin-bottom: 48px; }

.gallery-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.gallery-featured-image { max-width: 700px; }

.gallery-placeholder-large {
  aspect-ratio: 3/2;
  background: var(--bg-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.gallery-caption {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Gallery years (collapsible) */
.gallery-years { margin-top: 32px; }

.gallery-year-group {
  border-bottom: 1px solid var(--border);
}

.gallery-year-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: opacity var(--transition);
}
.gallery-year-toggle:hover { opacity: 0.7; }

.gallery-year-label {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
}

.gallery-year-count {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  flex: 1;
}

.gallery-year-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.gallery-year-group.open .gallery-year-icon { transform: rotate(45deg); }

.gallery-year-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.gallery-year-group.open .gallery-year-content {
  max-height: 1600px;
  padding-bottom: 24px;
}

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

.gallery-thumb { border-radius: 4px; overflow: hidden; }

.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.gallery-thumb-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border-radius: 4px;
}

/* ── News Filter Bar ──────────────────────────────── */
.news-filter-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.news-filter-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-year-filters {
  display: flex;
  gap: 6px;
}

.year-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--ci-ink);
  transition: all var(--transition);
}
.year-btn:hover,
.year-btn.active {
  background: var(--ci-ink);
  border-color: var(--ci-ink);
  color: var(--ci-paper);
}

.news-search {
  position: relative;
}
.news-search input {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-main);
  color: var(--text-primary);
  width: 180px;
  transition: border-color var(--transition), width var(--transition);
}
.news-search input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.news-search input:focus {
  border-color: var(--text-heading);
  width: 220px;
}

/* ── News Timeline ─────────────────────────────────── */
.news-timeline {
  position: relative;
  padding-left: 140px;
  margin-bottom: 40px;
}
.news-timeline::before {
  content: '';
  position: absolute;
  left: 128px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.news-item {
  position: relative;
  margin-bottom: 32px;
}

.news-date {
  position: absolute;
  left: -140px;
  top: 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  width: 110px;
  text-align: right;
}

.news-dot {
  position: absolute;
  left: -16px;
  top: 24px;
  width: 8px; height: 8px;
  background: var(--text-heading);
  border-radius: 50%;
}

.news-card {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--ci-ink);
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ci-paper);
}

.news-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.news-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Expandable news cards */
.news-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.news-card.open .news-expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 12px;
}

.news-expanded p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.85;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.news-photo-placeholder {
  width: 100%;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.news-photo-placeholder span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 60px 0;
}
.news-photo-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.news-photo-placeholder:has(img) {
  border: none;
  background: none;
}
.news-photo-placeholder:has(img) span {
  display: none;
}

.news-photo-caption {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.news-photo-credit {
  opacity: 0.6;
}

.news-expand-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 12px;
  display: inline-block;
  transition: color var(--transition);
}
.news-expand-btn:hover { color: var(--text-heading); }
.news-card.open .news-expand-btn { opacity: 0.5; }

/* News link buttons (external links + portfolio refs) */
.news-link-btn,
.news-portfolio-link {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ci-ink);
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 9px 22px;
  display: inline-block;
  margin-top: 16px;
  margin-right: 8px;
  transition: all var(--transition);
}
.news-link-btn:hover,
.news-portfolio-link:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}
.news-portfolio-link {
  border-color: var(--ci-ink);
  color: var(--ci-ink);
}
.news-portfolio-link:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}

/* Collapsed news items (show only 2 latest) */
.news-item.news-collapsed { display: none; }

/* Sticky scroll helper for expanded news */
.news-scroll-helper {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ci-paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--ci-ink);
  border-radius: 24px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: none;
}
.news-scroll-helper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.scroll-helper-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}
.scroll-helper-btn:hover {
  color: var(--text-heading);
}

/* Portfolio scroll helper (same style as news) */
.portfolio-scroll-helper {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ci-paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--ci-ink);
  border-radius: 24px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: none;
}
.portfolio-scroll-helper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.scroll-helper-divider {
  color: var(--border);
  font-size: 14px;
}

.news-read-more {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  margin-top: 12px;
}

.btn-show-more {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  padding: 11px 26px;
  cursor: pointer;
  color: var(--ci-ink);
  transition: all var(--transition);
}
.btn-show-more:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}

/* ── News controls: two buttons side by side ───────── */
.news-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.news-controls .btn-show-more {
  display: inline-block;
  margin: 0;
}
.btn-news-random {
  letter-spacing: 1.5px;
}
.btn-news-random:hover {
  transform: translateY(-1px);
}

/* ── Timeline-aligned rise/sink animations (shared by news + portfolio) ─ */
.news-item.news-hidden,
.portfolio-item.portfolio-hidden { display: none; }

@keyframes cardSinkDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(22px); }
}
@keyframes cardRiseUp {
  0%   { opacity: 0; transform: translateY(44px); }
  100% { opacity: 1; transform: translateY(0); }
}
.news-item.news-swipe-out,
.portfolio-item.portfolio-swipe-out {
  animation: cardSinkDown 240ms ease-in forwards;
  pointer-events: none;
}
.news-item.news-swipe-in,
.news-item.news-swipe-in-random,
.portfolio-item.portfolio-swipe-in,
.portfolio-item.portfolio-swipe-in-random {
  animation: cardRiseUp 460ms cubic-bezier(0.22, 0.9, 0.35, 1) both;
}
/* Stagger: second-in-pair rises just after the first */
.news-item.card-stagger-second,
.portfolio-item.card-stagger-second {
  animation-delay: 90ms;
}

/* Silent pre-reveal state: the new pair is already in the DOM with its
   final height so we can measure and compensate scroll against a stable
   layout, but nothing is visible yet. The user sees no motion during
   this phase — which is exactly when window.scrollBy() fires. */
.news-item.card-prepared,
.portfolio-item.card-prepared {
  opacity: 0;
  pointer-events: none;
  animation: none !important;
}

/* Services get a carousel only on mobile — no desktop window mode,
   so the controls bar stays hidden above the 767px breakpoint. */
.services-controls { display: none; }

/* Infinite-loop clones of the first and last service card live in
   the DOM so native swipes can wrap seamlessly. They're invisible
   on desktop (where the grid is a static 2-column layout). */
.service-card[data-clone] { display: none; }

/* ── Carousel UI (mobile only) ─────────────────────
   Prev/next arrows and the "3 / 24" indicator live in the same
   controls bar as the desktop "Mehr anzeigen" / "Auf gut Glück"
   buttons. By default they're hidden; the mobile media query
   below flips visibility. */
.carousel-only { display: none; }

/* Match .btn-show-more's pill/border/typography so the mobile carousel
   bar reads as one coherent design language. No explicit `display`
   here — that lets the .carousel-only { display: none } default
   actually hide these on desktop; the mobile media query flips them
   back on via .carousel-only { display: inline-flex }. */
.carousel-arrow {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  border: 2px solid var(--ci-ink);
  border-radius: 20px;
  background: none;
  color: var(--ci-ink);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  padding: 9px 14px;
  min-width: 44px;
  font-weight: 700;
}
.carousel-arrow:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-indicator {
  display: none;
}

/* ── Portfolio controls: mirror news layout ───────── */
.portfolio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.portfolio-controls .btn-show-more,
.portfolio-controls .btn-portfolio-more {
  display: inline-block;
  margin: 0;
}

/* ── Mobile: horizontal scroll-snap carousel ─────────
   One card per viewport, native swipe, with prev/next arrows,
   an X / Y indicator and the random button in the controls bar.
   Filter-hidden cards keep display:none so the indicator total
   reflects only what matches the current filter set. */
@media (max-width: 767px) {
  /* Carousel container: horizontal flex, scroll-snap, no scrollbar */
  .portfolio-grid,
  .services-grid,
  .missions-grid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    /* Timeline line + dots don't belong on a horizontal carousel */
  }
  .portfolio-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .missions-grid::-webkit-scrollbar { display: none; }

  /* Each item is one "page" of the carousel */
  .portfolio-item,
  .service-card,
  .mission-card {
    flex: 0 0 calc(100% - 8px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin-bottom: 0 !important;
    min-width: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  }
  /* Highlight card on mobile behaves like any other slide */
  .service-card-highlight { grid-column: auto !important; }
  /* Clones become real, navigable slides on mobile */
  .service-card[data-clone] { display: block; }

  /* Filtered-out cards are removed from the carousel entirely so the
     indicator count stays truthful. */
  .news-item.news-hidden,
  .portfolio-item.portfolio-hidden,
  .mission-card.mission-hidden,
  .news-item[hidden],
  .portfolio-item[hidden] { display: none !important; }

  /* ── News: vertical compact list on mobile (no carousel) ─── */
  .news-timeline {
    padding-left: 0;
  }
  .news-timeline::before { display: none; }
  .news-date { position: static; width: auto; text-align: left; margin-bottom: 8px; }
  .news-dot { display: none; }
  .news-item {
    margin-bottom: 16px;
  }
  /* Hide teaser text on mobile for a compact scannable list */
  .news-item .news-teaser { display: none; }
  /* Items beyond the initial 3 are hidden via JS class */
  .news-item.news-mobile-hidden { display: none !important; }
  /* News carousel controls: hidden on mobile */
  .news-controls { display: none !important; }

  /* Controls bar: show carousel UI, hide the window-mode Text-Button */
  .portfolio-controls,
  .services-controls,
  .missions-controls {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .carousel-only { display: none !important; }
  .window-only { display: none !important; }

  /* Mobile: hide the filter/year/search bars */
  #news .news-filters,
  #news .news-filter-bar,
  #news .news-search,
  #portfolio .portfolio-filters { display: none !important; }

  /* Neutralize any desktop swap-animation leftovers on mobile */
  .news-item.fade-in,
  .portfolio-item.fade-in { opacity: 1; transform: none; }
  .news-item.news-swipe-in,
  .news-item.news-swipe-in-random,
  .news-item.news-swipe-out,
  .news-item.card-stagger-second,
  .news-item.card-prepared,
  .portfolio-item.portfolio-swipe-in,
  .portfolio-item.portfolio-swipe-in-random,
  .portfolio-item.portfolio-swipe-out,
  .portfolio-item.card-stagger-second,
  .portfolio-item.card-prepared {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* ── Contact ───────────────────────────────────────── */
.contact-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-block { margin-bottom: 32px; }

.contact-label {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ci-ink);
  display: block;
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.6;
}
.contact-info a { color: var(--text-heading); }

.contact-ext-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--transition);
}
.contact-ext-link svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.contact-ext-link:hover { color: var(--text-heading); opacity: 1; }
.contact-ext-link:hover svg { opacity: 1; }
.contact-ext-link span { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* ── Partners & Clients (Marquee) — same Orange block as Contact ── */
#partners.partners-section {
  padding: 60px 0;
  background: var(--ci-orange);
  border-bottom: none;
}

.logo-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee {
  overflow: hidden;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
}

.partner-logo {
  height: 80px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease;
  flex-shrink: 0;
}
.partner-logo:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Footer ────────────────────────────────────────── */
/* Plain footer (portfolio detail pages) */
footer:not(.footer-bold) {
  background: var(--ci-ink);
  color: rgba(255,255,255,0.9);
  padding: 32px 0;
  border-top: none;
}
footer:not(.footer-bold) .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer:not(.footer-bold) .footer-logo-img {
  height: 24px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}
footer:not(.footer-bold) .footer-nav {
  display: flex;
  gap: 20px;
}
footer:not(.footer-bold) .footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
footer:not(.footer-bold) .footer-nav a:hover {
  color: var(--ci-yellow);
  opacity: 1;
}
footer:not(.footer-bold) .footer-copy {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.footer-bold {
  background: var(--ci-ink);
  color: rgba(255,255,255,0.9);
  padding: 100px 0 48px;
  border-top: none;
}

.footer-bold .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.footer-brand-bold {
  grid-column: 1;
}
.footer-logo-bold {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.9;
}

.footer-columns {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-self: end;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--ci-yellow);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── Legal & Detail Pages — no bold section borders ── */
.legal-page + footer,
.detail-back + footer { border-top: none; }

/* Pages with only one .section (detail/legal): remove bold border */
body:not(:has(.footer-bold)) .section {
  border-bottom: none;
}

/* ── Legal Pages (Impressum / Datenschutz) ────────── */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 0 80px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 12px;
  max-width: 720px;
}

.legal-page a {
  color: var(--text-heading);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.legal-page a:hover {
  opacity: 1;
  border-color: var(--text-heading);
}

.legal-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  padding-left: 20px;
  position: relative;
}

.legal-page ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.legal-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── Animations ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 900px) {

  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card-highlight { grid-column: auto; }

  .portfolio-item { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-item:nth-child(even) { direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .news-filter-bar { flex-direction: column; }
  .news-filter-row-right { width: 100%; }
  .news-search input { width: 100%; }
  .news-search input:focus { width: 100%; }
  .news-search { flex: 1; }

  .news-timeline { padding-left: 0; }
  .news-timeline::before { display: none; }
  .news-date { position: static; width: auto; text-align: left; margin-bottom: 8px; }
  .news-dot { display: none; }

  .footer-bold .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-columns { grid-column: 1; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-label { margin-bottom: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-member-header { padding: 16px; padding-right: 56px; gap: 14px; position: relative; }
  .team-member-header .team-photo { width: 72px; height: 72px; }
  .team-member-header .team-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-top: 0;
  }
  .team-member-full.open .team-member-header .team-photo { width: 120px; height: 160px; }
  .team-member-full.open .team-member-header {
    flex-wrap: wrap;
  }
  .team-member-full.open .team-header-info {
    flex-basis: 100%;
  }
  .flag-edge { height: 40px; }

  /* ── Hero mobile optimisation ──────────────────────── */
  #hero {
    min-height: 100svh;
    padding: calc(var(--nav-height) + 32px) 0 48px;
    align-items: center;
    justify-content: center;
  }
  .hero-tagline {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .hero-typewriter-text.is-final {
    font-size: 1em;
  }
  .hero-subtitle {
    font-size: 16px;
    margin-top: 16px;
    line-height: 1.5;
  }
  .hero-context {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 24px;
  }
  .hero-ctas {
    gap: 16px;
  }
  .hero-cta {
    font-size: 14px;
    padding: 12px 24px;
  }
  .hero-cta-secondary {
    font-size: 14px;
    padding: 12px 0;
  }
}

/* ═══════════════════════════════════════════════════════
   CI COLOR SCHEME — Mutige Farbblöcke
   Jede Sektion hat eine eigene, kräftige Hintergrundfarbe
   aus der CI-Palette (Entwürfe G + H).
   Karten: weiß mit schwarzen Borders.
   Farbe als Fläche, nicht als Akzent.
   ═══════════════════════════════════════════════════════ */

/* All sections need relative positioning for flag edges.
   margin-bottom: -1px overlaps sections by 1px to prevent white flash
   between coloured sections during fast scrolling on iOS Safari. */
.section { position: relative; z-index: 1; margin-bottom: -1px; }

/* ── Section borders (bold CI style) ── */
/* Removed: thick black section dividers — colour blocks meet directly */
.section {
  border-bottom: none;
}
#hero {
  border-bottom: none;
}

/* ── Shared bold section styles ── */
.section .section-label .typewriter { color: rgba(0,0,0,0.85); }
.section .section-label .cursor { color: rgba(0,0,0,0.5); }

/* ── Hero — Orange ── */
#hero {
  background: var(--ci-orange);
}
#hero .hero-tagline { color: var(--ci-ink); }
#hero .hero-strike { color: rgba(0,0,0,0.4); text-decoration-color: var(--ci-ink); }
#hero .hero-subtitle { color: rgba(0,0,0,0.75); }
#hero .hero-context { color: rgba(0,0,0,0.5); }
#hero .hero-cta { background: var(--ci-ink); color: var(--ci-orange); border-color: var(--ci-ink); }
#hero .hero-cta:hover { opacity: 0.9; }
#hero .hero-cta-secondary {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.5);
  border-radius: 0;
  color: var(--ci-ink);
  padding: 14px 0;
  box-shadow: none;
}
#hero .hero-cta-secondary:hover {
  background: none;
  color: var(--ci-ink);
  border: none;
  border-bottom: 1px solid var(--ci-ink);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* ── About — Grey ── */
#about {
  background: var(--ci-grey);
  padding-top: 120px;
  color: var(--ci-ink);
}
#about .about-lead-full { color: var(--ci-ink); }
#about .about-body-short { color: rgba(0,0,0,0.7); }
#about .manifest-line { color: var(--ci-ink); }
#about .about-images img { border-radius: 8px; }
#about .gallery-thumb { border-radius: 4px; }
#about .gallery-featured-image img { border-radius: 6px !important; }
#about .gallery-year-toggle:hover { opacity: 0.8; }

/* ── News — Grey (neutral, Inhalt steht im Vordergrund) ── */
#news {
  background: var(--ci-grey);
  color: var(--ci-ink);
  padding-top: 120px;
}
#news .news-card {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
}
#news .news-card:hover {
  border-color: var(--ci-ink);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#news .news-card .news-photo-placeholder { border-radius: 6px; }
#news .news-card .news-photo-placeholder img { border-radius: 6px; }
#news .news-tag {
  background: var(--ci-ink);
  color: var(--ci-paper);
  border-radius: 20px;
  font-weight: 700;
}
#news .news-card h3 { color: var(--ci-ink); }
#news .news-card p { color: rgba(0,0,0,0.7); }
#news .news-dot { background: var(--ci-ink); }
#news .news-date { color: rgba(0,0,0,0.7); }
#news .news-timeline::before { background: rgba(0,0,0,0.25); }
#news .filter-btn { border-color: var(--ci-ink); color: var(--ci-ink); }
#news .filter-btn:hover,
#news .filter-btn.active { background: var(--ci-ink); color: var(--ci-paper); }
#news .year-btn { border-color: var(--ci-ink); color: var(--ci-ink); }
#news .year-btn:hover,
#news .year-btn.active { background: var(--ci-ink); color: var(--ci-paper); }
#news .news-search input { background: var(--ci-paper); border-color: var(--ci-ink); color: var(--ci-ink); }
#news .btn-show-more { border-color: var(--ci-ink); color: var(--ci-ink); }
#news .btn-show-more:hover { background: var(--ci-ink); color: var(--ci-paper); }
#news .news-expand-btn { color: rgba(0,0,0,0.5); }
#news .news-expand-btn:hover { color: var(--ci-ink); }
#news .news-link-btn { border-color: var(--ci-ink); color: var(--ci-ink); }
#news .news-link-btn:hover { background: var(--ci-ink); color: var(--ci-paper); }

/* ── Portfolio — Green ── */
#portfolio {
  background: var(--ci-green);
  color: var(--ci-ink);
  padding-top: 120px;
}
#portfolio .portfolio-item {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.15s, box-shadow 0.15s;
}
#portfolio .portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#portfolio .portfolio-image { border-radius: 12px; }
#portfolio .portfolio-image img { border-radius: 12px; }
#portfolio .portfolio-tag { color: var(--ci-ink); font-weight: 700; }
#portfolio .portfolio-placeholder { background: rgba(0,0,0,0.06); }
#portfolio .portfolio-info h3 { color: var(--ci-ink); }
#portfolio .portfolio-info p { color: rgba(0,0,0,0.7); }
#portfolio .filter-btn { border-color: var(--ci-ink); color: var(--ci-ink); }
#portfolio .filter-btn:hover,
#portfolio .filter-btn.active { background: var(--ci-ink); color: var(--ci-green); }
#portfolio .btn-outline { border-color: var(--ci-ink); color: var(--ci-ink); }
#portfolio .btn-outline:hover { background: var(--ci-ink); color: var(--ci-paper); }
#portfolio .btn-show-more { border-color: var(--ci-ink); color: var(--ci-ink); }
#portfolio .btn-show-more:hover { background: var(--ci-ink); color: var(--ci-green); }
#portfolio .services-lead { color: rgba(0,0,0,0.7); }

/* ── Services/Work — Yellow ── */
#services {
  background: var(--ci-yellow);
  color: var(--ci-ink);
}
#services .service-card {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
}
#services .service-card:hover {
  background: var(--ci-paper);
  border-color: var(--ci-ink);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#services .service-card-highlight {
  border-color: var(--ci-ink);
  background: var(--ci-paper);
}
#services .work-headline { color: var(--ci-ink); }
#services .work-intro-text { color: rgba(0,0,0,0.7); }
#services .work-block-title { color: rgba(0,0,0,0.5); }
#services .missions-lead { color: rgba(0,0,0,0.6); }
#services .missions-slogan { color: var(--ci-ink); }
#services .mission-question { color: var(--ci-ink); }
#services .mission-context { color: rgba(0,0,0,0.7); border-top-color: rgba(0,0,0,0.15); }
#services .mission-tags { color: rgba(0,0,0,0.5); }
#services .work-mode-verb { color: var(--ci-ink); }
#services .work-mode-lead { color: rgba(0,0,0,0.7); }
#services .work-mode-io dt { color: rgba(0,0,0,0.5); }
#services .work-mode-io dd { color: rgba(0,0,0,0.75); }
#services .work-mode-io { border-top-color: rgba(0,0,0,0.15); }
#services .work-bridge-btn { border-color: var(--ci-ink); color: var(--ci-ink); }
#services .work-bridge-btn:hover { background: var(--ci-ink); color: var(--ci-yellow); }
#services .work-bridge-output { color: rgba(0,0,0,0.7); }
#services .work-bridge-output strong { color: var(--ci-ink); }
#services .work-cta { border-top-color: rgba(0,0,0,0.15); }
#services .work-cta-line { color: var(--ci-ink); }
#services .work-cta-sub { color: rgba(0,0,0,0.55); }
#services .work-cta-link { color: var(--ci-ink); border-bottom-color: var(--ci-ink); }
.services-lead {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 760px;
  margin-bottom: 40px;
  color: rgba(0,0,0,0.7);
}

/* ── Work / Lab section ─────────────────────────────
   The Services section has been reframed as an exploration of
   how we work + what we're exploring. Three blocks:
     A — work-intro       (positioning)
     B — work-modes       (how we work, 5 cards, expandable)
     C — missions-grid    (what we're exploring, window/carousel)
     D — work-bridge      (random starting point)
     soft CTA             (invitation, not a sales button)
*/

/* Block A — Positioning */
.work-intro {
  max-width: 820px;
  margin: 0 0 56px;
}
.work-intro-text {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text-heading);
  line-height: 1.5;
  max-width: 760px;
  margin-bottom: 16px;
}
.work-intro-sub {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 700px;
}
.work-headline {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.work-lead {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 16px;
}
.work-lead:last-child { margin-bottom: 0; }

/* Block-level title used above work-modes and missions */
.work-block-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Block B — Work modes (reuses .service-card + .services-grid structure) */
.work-mode {
  position: relative;
  display: flex;
  flex-direction: column;
}
.work-mode-verb {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.work-mode-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 16px;
}
.work-mode-question {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-style: italic;
}
.work-mode-expanded {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.work-mode.is-open .work-mode-expanded {
  max-height: 600px;
  opacity: 1;
  margin-top: 4px;
}
.work-mode-io {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin: 0;
}
.work-mode-io dt {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 3px;
  white-space: nowrap;
}
.work-mode-io dd {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}
.work-mode-toggle {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 0 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.work-mode-toggle:hover { color: var(--text-heading); }
.work-mode.is-open .work-mode-toggle::after { content: ""; }

/* Block C — Mission cards */
.missions-intro {
  margin: 88px 0 28px;
}
.missions-lead {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 760px;
}
.missions-slogan {
  font-style: normal;
  font-weight: 700;
  color: var(--text-heading);
}
.mission-card .missions-lead {
  max-width: none;
  font-size: 15px;
  line-height: 1.65;
}
.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 10px;
}
.mission-card {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  padding: 28px 26px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.mission-question {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: -0.005em;
}
.mission-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.mission-card.is-open .mission-detail {
  max-height: 400px;
  opacity: 1;
  margin-top: 16px;
}
.mission-context {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mission-tags {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.mission-tags-label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  opacity: 0.7;
}
.missions-indicator {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}
.mission-card.mission-hidden { display: none; }

.missions-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Block D — Random bridge */
.work-bridge {
  margin: 80px 0 40px;
  text-align: center;
}
.work-bridge-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: 2px solid var(--ci-ink);
  color: var(--ci-ink);
  border-radius: 24px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--transition);
}
.work-bridge-btn:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
}
.work-bridge-output {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--text-body);
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-bridge-output.is-visible { opacity: 1; }
.work-bridge-output strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Soft CTA */
.work-cta {
  margin: 96px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: left;
  max-width: 680px;
}
.work-cta-line {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.work-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.work-cta-link {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-heading);
  border-bottom: 1px solid var(--text-heading);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.work-cta-link:hover { opacity: 0.6; }

/* Missions-grid on tablets/smaller desktops — one column */
@media (max-width: 900px) {
  .missions-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-intro { margin-bottom: 40px; }
  .missions-intro { margin-top: 64px; }
  .work-bridge { margin: 56px 0 32px; }
  .work-cta { margin-top: 72px; padding-top: 36px; }
}

/* ── Team — Cyan (Offenheit, Vertrauen) ── */
#team {
  background: var(--ci-cyan);
  color: var(--ci-ink);
  padding-top: 120px;
}
#team .team-member-full {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
}
#team .team-member-full:hover {
  border-color: var(--ci-ink);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#team .team-header-info h3 { color: var(--ci-ink); }
#team .team-role { color: rgba(0,0,0,0.55); }
#team .team-contact-links a { color: var(--ci-ink); }
#team .team-toggle { border-color: var(--ci-ink); }
#team .toggle-icon { color: var(--ci-ink); }
#team .team-bio p { color: rgba(0,0,0,0.75); }
#team .join-box {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 20px;
}
#team .join-box h3 { color: var(--ci-ink); }

/* ── Gallery — Cyan (same as Team) ── */
#gallery {
  background: var(--ci-cyan);
  padding-top: 120px;
}

/* ── Contact — Orange (einladend, Markenfarbe) ── */
/* Contact, Partners, Bracelet form one seamless Orange block */
#contact {
  background: var(--ci-orange);
  color: var(--ci-ink);
  padding-top: 120px;
  border-bottom: none;
}
#contact .work-lead { color: rgba(0,0,0,0.7); }
#contact .contact-grid {
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.15s, box-shadow 0.15s;
}
#contact .contact-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#contact .contact-label { color: var(--ci-ink); }
#contact .contact-info p { color: rgba(0,0,0,0.8); }
#contact .contact-info a { color: var(--ci-ink); }
#contact .contact-ext-link { color: rgba(0,0,0,0.7); border-bottom-color: rgba(0,0,0,0.15); }
#contact .contact-ext-link:hover { color: var(--ci-ink); }
#contact .contact-ext-link span { color: rgba(0,0,0,0.4); }
#contact .contact-note { color: rgba(0,0,0,0.5); border-top-color: rgba(0,0,0,0.15); }
#contact .btn-outline { border-color: var(--ci-ink); color: var(--ci-ink); }
#contact .btn-outline:hover { background: var(--ci-ink); color: var(--ci-paper); }

/* ── Bracelet Interstitial — same Orange block as Contact ── */
.bracelet-section {
  background: var(--ci-orange);
  color: var(--ci-ink);
  padding: 80px 0;
  border-bottom: none;
}

.bracelet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--ci-paper);
  border: 1.5px solid var(--ci-ink);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bracelet-layout:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.bracelet-image {
  border-radius: 12px;
  overflow: hidden;
}
.bracelet-image img {
  width: 100%;
  height: auto;
  display: block;
}

.bracelet-text h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ci-ink);
}

.bracelet-text p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,0.7);
  margin-bottom: 24px;
}

.bracelet-btn {
  border-color: var(--ci-ink);
  color: var(--ci-ink);
}
.bracelet-btn:hover {
  background: var(--ci-ink);
  color: var(--ci-paper);
  opacity: 1;
}

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

/* ── Flag Edge Dividers — hidden in bold CI mode ── */
.flag-edge {
  display: none;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
.flag-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}
