/* ============================================================
   Quantum9 Design System — style.css
   Brand: #6DCBD8 cyan | #4F6A8D blue | #121B1E dark | #E2E6ED light
   Font: Manrope (Google Fonts)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand palette */
  --q9-cyan: #6DCBD8;
  --q9-blue: #4F6A8D;
  --q9-dark-1: #121B1E;
  --q9-dark-2: #1C1F24;
  --q9-dark-3: #172433;
  --q9-light-blue: #A1B9D9;
  --q9-light-gray: #E2E6ED;
  --q9-black: #000610;

  /* Light theme (default) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F6F8;
  --bg-tertiary: #E2E6ED;
  --bg-dark: #1C1F24;
  --bg-card: #1C1F24;
  --text-primary: #121B1E;
  --text-secondary: #4F6A8D;
  --text-muted: #6B7B8D;
  --text-on-dark: #E2E6ED;
  --text-on-card: #FFFFFF;
  --border-color: #D0D5DD;
  --border-light: #E2E6ED;
  --accent: #6DCBD8;
  --accent-hover: #5BB8C5;
  --footer-bg: #1D2121;
  --footer-text: #A1B9D9;
  --cta-bg: #172433;
  --cta-text: #F3F4F1;
  --section-grey: #F3F4F1;
  --btn-bg: #F3F4F1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-tertiary: #1C1F24;
  --bg-dark: #0D1117;
  --bg-card: #172433;
  --text-primary: #E2E6ED;
  --text-secondary: #A1B9D9;
  --text-muted: #6B7B8D;
  --text-on-dark: #E2E6ED;
  --text-on-card: #E2E6ED;
  --border-color: #2D333B;
  --border-light: #21262D;
  --accent: #6DCBD8;
  --accent-hover: #8AD8E3;
  --footer-bg: #010409;
  --footer-text: #A1B9D9;
  --cta-bg: #121B1E;
  --cta-text: #FFFFFF;
  --section-grey: #161B22;
  --btn-bg: #1C242E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

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

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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--q9-dark-1);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.5rem 0 4rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 4.17vw, 3.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 2.5rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #172433;
  margin-bottom: 2.5rem;
}
.section-label::after {
  content: '';
  flex: 0 0 5rem;
  height: 1px;
  background: rgba(23,36,51,0.8);
}
[data-theme="dark"] .section-label { color: var(--text-secondary); }
[data-theme="dark"] .section-label::after { background: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  background: var(--btn-bg);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s;
}
.btn .arrow svg { display: block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--light {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--q9-dark-3);
}
.btn--light:hover {
  background: #E2E6ED;
  border-color: #E2E6ED;
  color: var(--q9-dark-3);
}

.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent);
  color: var(--q9-dark-1);
}

.btn--filled {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--q9-dark-1);
}
.btn--filled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--dark {
  background: var(--q9-dark-2);
  border-color: var(--q9-dark-2);
  color: #FFFFFF;
}
.btn--dark:hover {
  background: var(--q9-dark-1);
  border-color: var(--q9-dark-1);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--q9-dark-2);
  border-bottom: none;
}

/* Utility bar - always dark */
.utility-bar {
  background: #1E2121;
  border-bottom: none;
  padding: 1.4rem 0;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-bar__logo svg,
.utility-bar__logo img {
  height: 46px;
  width: auto;
}
.utility-bar__center {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(109,203,216,0.4);
  border-radius: 18px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  transition: all 0.2s;
  margin-right: 0.5rem;
}
.brochure-btn:hover {
  background: var(--accent);
  color: var(--q9-dark-1);
}
.utility-icons {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.utility-icons a {
  color: var(--accent);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  opacity: 0.7;
}
.utility-icons a:hover { opacity: 1; }
.utility-icons svg { width: 24px; height: 24px; }
.utility-icons img { height: 34px; width: auto; display: block; }

/* Navigation - light warm gray background per mockup */
.nav {
  padding: 0;
  background: #F3F4F1;
  border-bottom: 1px solid #E2E3E0;
}
[data-theme="dark"] .nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__links {
  display: flex;
  gap: 0;
}
.nav__links a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark mode toggle - on light nav */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #3D4550;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
}
.theme-toggle .toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  color: #A1B9D9;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', sans-serif;
  -webkit-text-stroke: 0;
  text-rendering: geometricPrecision;
}
.toggle-icon--sun { right: 5px; }
.toggle-icon--moon { left: 5px; }

[data-theme="dark"] .theme-toggle {
  background: var(--accent);
}
[data-theme="dark"] .theme-toggle::before {
  transform: translateX(16px);
  background: var(--q9-dark-1);
}

/* Language selector - on dark header */
.lang-select {
  position: relative;
}
.lang-select__btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--q9-dark-1);
  border: 1px solid var(--q9-dark-1);
  border-radius: 16px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-select__btn .globe {
  color: var(--accent);
  font-size: 14px;
}
.lang-select__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}
.lang-select__dropdown.open { display: block; }
.lang-select__dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.15s;
}
.lang-select__dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 3.5rem 0 1rem;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: stretch;
}
.hero__content { }
.hero__subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-primary);
  margin: 0 0 2rem;
}
.hero__text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1E2121;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Photo strips */
.hero__photos {
  display: flex;
  gap: 0.75rem;
  align-self: stretch;
  min-height: 460px;
  overflow: hidden;
  border-radius: 0 0 70px 0;
}
.hero__photos img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
.hero__photos img:last-child {
  border-radius: 0 0 70px 0;
}
.hero__photos img:hover { transform: scale(1.05); }

/* Hero fills the first screen exactly; photo strips stretch to the fold */
@media (min-width: 769px) {
  .hero .container {
    display: flex;
    flex-direction: column;
    min-height: min(calc(100vh - 245px), 660px);
  }
  .hero__grid { flex: 1; }
}
@media (min-width: 769px) and (max-height: 920px) {
  .hero { padding-top: 2rem; }
  .hero .container { min-height: min(calc(100vh - 184px), 660px); }
  .hero-title { margin-bottom: 2rem; }
  .hero__subtitle { margin-bottom: 1.25rem; }
  .hero__text { margin-bottom: 1.8rem; }
}

/* Dark hero variant (services page) — per mockup */
.hero--dark {
  background: var(--q9-dark-3);
  padding: 4.5rem 0 5rem;
}
.hero--dark .container {
  display: grid;
  grid-template-columns: minmax(380px, 486px) 604px;
  justify-content: space-between;
  gap: 4rem;
  align-items: start;
  min-height: 0;
}
@media (min-width: 769px) {
  .hero--dark .container { min-height: 0; display: grid; }
}
.hero--dark .hero-title {
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 3.5rem;
  color: #F3F4F1;
}
.hero--dark .hero__subtitle { color: #FFFFFF; }
.hero--dark .hero__text {
  color: #F3F4F1;
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}
.hero--dark .hero__ctas { margin-top: 3rem; }
.hero--dark .hero__photos {
  display: flex;
  gap: 9px;
  height: 400px;
  min-height: 0;
  align-self: start;
  border-radius: 0;
  overflow: hidden;
}
.hero--dark .hero__photos img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero--dark .hero__photos img:last-child { border-radius: 0 0 60px 0; }

/* Outlined button (Download Brochure / View All Projects) */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(161,185,217,0.45);
  color: #E2E6ED;
}
.btn--outline:hover {
  background: rgba(226,230,237,0.1);
  border-color: rgba(161,185,217,0.8);
  color: #FFFFFF;
}
.btn--outline-light {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn--outline-light:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Plain (white) variant of services band */
.services-section.services-section--plain { background: var(--bg-primary); }
.services-section--plain.section { padding: 2rem 0 2.5rem; }
.services-section--plain .section-label { margin-bottom: 1.5rem; }
.services-section--plain .services-grid { gap: 0.5rem; }
.services-section--plain .service-card,
.services-section--plain .service-card__body { min-height: 340px; }
.services-section--plain .service-card--photo { aspect-ratio: 7 / 10; min-height: 0; }
.services-section--plain .service-card--photo .service-card__body { min-height: 0; }

/* Cards with real photos */
.service-card--photo { aspect-ratio: 7 / 10; min-height: 0; }
.service-card--photo .service-card__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.service-card--photo .service-card__body {
  background: none;
}
/* Images already contain baked-in text+CTA — hide HTML overlay permanently */
.service-card--photo .service-card__title,
.service-card--photo .service-card__link { color: transparent !important; pointer-events: none; }
.service-card--photo .service-card__link .arrow { opacity: 0 !important; }
.service-card--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Hero buttons on dark hero — per mockup */
.hero--dark .hero__ctas { flex-wrap: nowrap; gap: 2rem; }
.hero--dark .hero__ctas .btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  gap: 0.7rem;
  border-radius: 12px;
}
.hero--dark .hero__ctas .btn--outline {
  text-transform: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  gap: 0.85rem;
}

/* ---------- Service Cards (What We Build / Our Services) ---------- */
.services-section {
  background: var(--section-grey);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 400px;
  display: block;
  background: #808080;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__img {
  display: none;
}
.service-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 400px;
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-card__title {
  font-size: 2rem;
  font-weight: 600;
  color: #F3F4F1;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 4.5rem;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-card);
  opacity: 1;
  transition: opacity 0.2s, gap 0.2s;
}
.service-card__link:hover {
  opacity: 1;
  gap: 0.75rem;
}
.service-card__cat {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-card--photo .service-card__cat { color: transparent !important; }

/* ---------- Production Capabilities ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.cap-item { text-align: left; }
.cap-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 2.2rem;
  color: #172433;
}
[data-theme="dark"] .cap-item__icon {
  color: var(--text-primary);
}
.cap-item__rule {
  border-top: 1px solid var(--text-primary);
  margin-bottom: 1.25rem;
}
.cap-item__icon svg {
  width: 100%;
  height: 100%;
}
.cap-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #172433;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.cap-item__desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #1E2121;
}

/* ---------- Workflow Section (dark, per mockup) ---------- */
.workflow-section {
  background: var(--q9-dark-3);
  border: none;
}
.workflow-section .section-label { color: #E2E6ED; }
.workflow-section .section-label::after { background: rgba(226,230,237,0.65); }
.workflow-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 330px) 1fr;
  gap: 3rem;
  align-items: start;
}
.workflow-heading {
  font-size: 2rem;
  font-weight: 400;
  color: #E1E5EC;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  max-width: 24ch;
}
.workflow-section.section { padding: 5rem 0 4rem; }
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
  gap: 0.75rem;
}
.workflow-step {}
.workflow-step__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
  padding-bottom: 0;
  border-bottom: none;
}
.workflow-step__number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  opacity: 1;
}
.workflow-step__icon {
  height: 62px;
  width: auto;
  color: #8FA4BE;
}
.workflow-step__icon svg,
.workflow-step__icon img { width: auto; height: 100%; display: block; }
.workflow-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #FFFFFF;
  padding-top: 22px;
}
.workflow-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #E1E5EC;
  margin-bottom: 1.2rem;
  line-height: 1.35;
}
.workflow-step__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #8C8F92;
}

/* ---------- Projects Section ---------- */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.projects-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25;
  color: #172433;
  max-width: none;
}
[data-theme="dark"] .projects-header__title { color: var(--text-primary); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.project-card {
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card__img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  border-radius: 0;
  background: #808080;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.1rem;
}
.project-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #172433;
  margin-bottom: 0.35rem;
}
[data-theme="dark"] .project-card__name { color: var(--text-primary); }
.project-card__type {
  font-size: 0.95rem;
  color: #4A545E;
}
[data-theme="dark"] .project-card__type { color: var(--text-muted); }

/* ---------- Project Detail / Gallery ---------- */
.project-detail-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.project-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}
.project-detail-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}
.project-detail-hero__cat {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project-detail-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.project-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.project-detail-back:hover { color: #fff; }
.project-detail-back svg { transform: rotate(180deg); }

.project-detail-body {
  padding: 4rem 0;
}
.project-detail-body .container {
  max-width: 900px;
}
.project-detail-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.project-gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.project-gallery-grid .gallery-full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-detail-hero {
    height: 35vh;
    min-height: 250px;
  }
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--cta-bg);
  padding: 5rem 0;
}
.cta-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-section__title {
  font-size: clamp(2.2rem, 4.17vw, 3.75rem);
  font-weight: 500;
  color: var(--cta-text);
  line-height: 1.2;
}
.cta-section__sub {
  font-size: 2rem;
  color: #848484;
  margin-top: 0.6rem;
  font-weight: 400;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  padding: 3.5rem 0 2rem;
  color: var(--footer-text);
}
.footer .container {}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer__brand {}
.footer__logo {
  margin-bottom: 1.25rem;
}
.footer__logo img { width: 207px; height: auto; }
.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #808080;
  transition: all 0.2s;
}
.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer__social svg { width: 20px; height: 20px; }

.footer__col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #848484;
  margin-bottom: 1rem;
}
.footer__links a {
  display: block;
  font-size: 0.875rem;
  color: #848484;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__legal {
  font-size: 0.875rem;
  color: #848484;
  margin-bottom: 0.3rem;
}
.footer__legal-sub {
  font-size: 0.875rem;
  color: #848484;
  margin-bottom: 0.3rem;
}
.footer__bottom {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
}
.footer__bottom a {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--q9-dark-2);
  color: #FFFFFF;
  padding: 1.25rem 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.show { display: flex; }
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cookie-banner__text {
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.cookie-btn--accept {
  background: var(--accent);
  color: var(--q9-dark-1);
  border-color: var(--accent);
}
.cookie-btn--accept:hover { background: var(--accent-hover); }
.cookie-btn--decline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.3);
}
.cookie-btn--decline:hover { border-color: #FFFFFF; }

/* ---------- Privacy Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.modal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}
.modal p, .modal li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.modal__close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.25rem;
  line-height: 1;
}
.modal__close:hover { color: var(--text-primary); }

/* Download Brochure button - filled dark */
.btn--brochure {
  background: rgba(28, 31, 36, 0.85);
  border-color: rgba(161, 185, 217, 0.3);
  color: #E2E6ED;
}
.btn--brochure:hover {
  background: var(--q9-dark-2);
  border-color: rgba(161, 185, 217, 0.5);
  color: #FFFFFF;
}

/* ---------- Project Filters ---------- */
.project-filters {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E1E5EC;
  margin-bottom: 2.5rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.project-filters__tab {
  padding: 1rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.project-filters__tab:first-child {
  padding-left: 0;
}
.project-filters__tab.active {
  color: #172433;
  border-bottom-color: #000610;
  font-weight: 700;
}
.project-filters__tab:hover {
  color: #172433;
}
[data-theme="dark"] .project-filters__tab.active,
[data-theme="dark"] .project-filters__tab:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.project-filters__sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0 1rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #172433;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.sort-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 140px;
  overflow: hidden;
}
.sort-dropdown.open { display: block; }
.sort-dropdown button {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  text-align: left;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  color: #172433;
  text-transform: none;
  letter-spacing: 0;
}
.sort-dropdown button:hover { background: #f0f3f6; }
[data-theme="dark"] .sort-dropdown { background: #1a2533; border-color: #2a3a4d; }
[data-theme="dark"] .sort-dropdown button { color: #e0e8f0; }
[data-theme="dark"] .sort-dropdown button:hover { background: #243040; }

/* ---------- Expanded Project Cards (dark panel, per mockup) ---------- */
.section--grey { background: #FFFFFF; }
.projects-grid--expanded {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.project-card-exp {
  display: flex;
  flex-direction: column;
  background: #1E2121;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card-exp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card-exp__img {
  width: 100%;
  height: 300px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 0;
  background: #808080;
  background-size: cover;
  background-position: center;
  margin-bottom: 0;
}
.project-card-exp__body {
  padding: 1rem 2.1rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-exp__category {
  font-size: 1rem;
  font-weight: 400;
  color: #8C8F92;
  margin-bottom: 1rem;
}
.project-card-exp__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.project-card-exp__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #8C8F92;
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-exp__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: auto;
  transition: gap 0.2s;
}
.project-card-exp:hover .project-card-exp__link {
  gap: 0.9rem;
}

/* ---------- Capabilities page (mockup page 4) ---------- */
.hero--cap { padding: 3rem 0 5rem; }
.hero--cap .hero__content { padding-top: 2rem; }
.hero--cap .hero__photos { height: 322px; }

.capx-section { background: #121B1E; padding: 2.2rem 0 2.4rem; }
.capx-section .section-label { color: #E2E6ED; }
.capx-section .section-label::after { background: rgba(226,230,237,0.65); }
.capx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.capx-card { background: #1E2121; display: flex; flex-direction: column; }
.capx-card__img { height: 213px; background: #808080; flex: 0 0 auto; width: 100%; object-fit: cover; display: block; }
.capx-card__body { padding: 1rem 2.1rem 2.2rem; }
.capx-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.7rem; }
.capx-card__num { font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.capx-card__icon { width: 56px; height: 56px; color: #808080; }
.capx-card__icon svg { width: 100%; height: 100%; }
.capx-card__title { font-size: 1.125rem; font-weight: 600; color: #F3F4F1; margin-bottom: 1.5rem; }
.capx-card__desc { font-size: 0.98rem; line-height: 1.5; color: #8C8F92; margin-bottom: 1.5rem; }
.capx-card__specs { font-size: 0.98rem; line-height: 1.55; color: #E1E5EC; margin-bottom: 1.6rem; }
.capx-card__rule { border-top: 1px solid #808080; width: 57%; margin-bottom: 1.6rem; }
.capx-card__more { font-size: 0.98rem; line-height: 1.5; color: #8C8F92; }
.capx-cta { text-align: center; margin-top: 2.5rem; }

/* Materials & Systems */
.materials-section { background: #1B2A38; padding: 4.2rem 0; }
.materials-section .section-label { color: #E2E6ED; }
.materials-section .section-label::after { background: rgba(226,230,237,0.65); }
.materials-wrap { position: relative; padding: 0 3rem; }
.materials-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.materials-row::-webkit-scrollbar { display: none; }
.material-tile { flex: none; width: 222px; }
.material-tile__ph { height: 140px; background: #808080; margin-bottom: 1.1rem; }
.material-tile__img { width: 100%; height: 140px; object-fit: cover; display: block; margin-bottom: 1.1rem; }
.material-tile__name { font-size: 1.1rem; color: #8C8F92; font-weight: 400; }
.materials-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 2;
}
.materials-arrow--prev { left: 0; }
.materials-arrow--next { right: 0; }

/* Production environment */
.prodenv-section { background: #1E2121; padding: 4.5rem 0; }
.prodenv-section .section-label { color: #E2E6ED; }
.prodenv-section .section-label::after { background: rgba(226,230,237,0.65); }
.prodenv-wrap { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 6rem; align-items: start; }
.prodenv-heading { font-size: 2.1rem; font-weight: 400; color: #E1E5EC; line-height: 1.3; margin: 1.6rem 0 2rem; }
.prodenv-text { font-size: 1.05rem; line-height: 1.5; color: #8C8F92; margin-bottom: 2.6rem; }
.prodenv-mosaic {
  display: grid;
  grid-template-columns: 265px 1fr;
  grid-template-rows: 274px;
  gap: 1.5rem;
}
.prodenv-mosaic .ph { background: #808080; }
.prodenv-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA uppercase variant */
.cta-section--caps .cta-section__title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 30ch;
}


/* ---------- About page (About_LP mockup) ---------- */
.hero--light { background: var(--bg-primary); }
.hero--light .hero-title { color: #172433; font-size: 2.2rem; line-height: 1.1; }
.hero--light .hero__text { color: #1E2121; }
.hero--light.hero--cap .hero-title { margin-bottom: 1.7rem; }
.hero--light .container { grid-template-columns: minmax(380px, 580px) 604px; gap: 1.5rem; }

.about-heading {
  font-size: 2.1rem;
  font-weight: 600;
  color: #1E2121;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.about-text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #55595B;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.about-text--strong { color: #1E2121; font-weight: 700; }

.mindset-section { background: var(--section-grey); padding: 2.5rem 0 2.5rem; }
.mindset-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 0.5rem;
}
.mindset-text { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.mindset-photos { display: flex; gap: 8px; }
.mp { min-width: 0; overflow: hidden; }
.mp--render { flex: 6; }
.mp--render img { width: 100%; height: auto; display: block; }
.mp--event  { flex: 4; position: relative; min-height: 0; }
.mp--event img  { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mindset-img { width: 100%; height: 304px; object-fit: cover; display: block; }

.about-feats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.feat { position: relative; }
.feat + .feat::before {
  content: '';
  position: absolute;
  left: -1rem;
  bottom: 0;
  height: 62px;
  width: 1px;
  background: #C4C6C3;
}
.feat__icon img { height: 56px; width: auto; display: block; color: #8A8C8E; }
.feat__cap {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #77797B;
  margin-top: 1.6rem;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(420px, 590px) 1fr;
  gap: 6rem;
  align-items: center;
}
.infra-tiles {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: 24px;
  justify-content: end;
}
.infra-tiles .ph { height: 304px; background: #808080; }
.team-section.section { padding-top: 4rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  margin: 0.5rem 0 2.8rem;
}
.member img { width: 100%; aspect-ratio: 97 / 145; object-fit: cover; display: block; }
.member__name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #172433;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 0.7rem;
}
.member__role { font-size: 0.66rem; color: #77797B; margin-top: 0.15rem; line-height: 1.3; }
.team-text { max-width: none; }

.cta-section--upper .cta-section__title { text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); white-space: nowrap; }
.cta-section--upper .btn { border-radius: 28px; }

@media (max-width: 1024px) {
  .mindset-wrap, .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: repeat(6, 1fr); }
  .infra-tiles, .team-tiles { justify-content: start; }
  .about-feats { grid-template-columns: repeat(2, 1fr); }
  .feat + .feat::before { display: none; }
}
@media (max-width: 600px) {
  .about-feats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .feat {
    background: #f5f6f7;
    border-radius: 10px;
    padding: 1.4rem 1rem;
    text-align: center;
  }
  .feat__icon { display: flex; justify-content: center; }
  .feat__icon img { height: 48px; margin: 0 auto; }
  .feat__cap { font-size: 0.88rem; margin-top: 0.8rem; }
  .infra-tiles { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-tiles { grid-template-columns: 1fr; }
}
[data-theme="dark"] .feat { background: #1a2533; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .capx-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .workflow-heading { margin-top: 0; }
  .hero--dark .container {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .hero--dark .hero__photos { height: 380px; }
  .footer__top {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid--expanded {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Mobile menu */
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .nav__links.open a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
  }
  .nav .container { position: relative; }

  /* About — Mindset section mobile */
  .mindset-text { grid-template-columns: 1fr; gap: 1.5rem; }
  .mindset-photos { flex-direction: column; gap: 12px; }
  .mp--event { min-height: 220px; }
  .mindset-section { padding: 2rem 0; }

  .hero__grid,
  .hero--dark .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero__photos {
    height: 240px;
    min-height: 0;
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workflow-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workflow-arrow { display: none; }
  .workflow-heading { margin-top: 0; }
  .hero--dark .hero__photos { height: 300px; }
  .hero--dark .hero__ctas { flex-wrap: wrap; gap: 1rem; }
  .hero--dark .hero__ctas .btn { font-size: 0.85rem; padding: 0.65rem 1.2rem; }

  .capx-grid { grid-template-columns: 1fr; }
  .materials-row { /* flex carousel on mobile too */ }
  .materials-wrap { padding: 0 2rem; }
  .prodenv-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .prodenv-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; }
  .prodenv-mosaic .ph--tall { grid-row: span 1; }
  .cta-section--caps .cta-section__title { max-width: none; }

  .project-filters {
    gap: 0;
    padding-bottom: 0;
  }

  .cta-section .container {
    flex-direction: column;
    text-align: center;
  }
  /* CTA button mobile — compact, readable, clearly a button */
  .cta-section .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.7rem 1.6rem;
    max-width: 280px;
  }
  .cta-section--upper .cta-section__title {
    white-space: normal;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .utility-bar__center { display: none; }
  .utility-bar__right { gap: 0.8rem; }
  .utility-icons a { flex-shrink: 0; }
  .utility-icons img { height: 26px; }
  .theme-toggle { flex-shrink: 0; }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contact page mobile — full-width fields, hide sidebar */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-form-row {
    grid-template-columns: 1fr !important;
  }
  .contact-sidebar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid--expanded { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__photos { height: 180px; }

  /* Utility bar — compact on small phones */
  .utility-bar__logo img,
  .utility-bar__logo svg { height: 32px; }
  .utility-bar__right { gap: 0.5rem; }
  .brochure-btn { font-size: 0.7rem; padding: 0.25rem 0.65rem; margin-left: 0.3rem; }
  .utility-icons { gap: 0.5rem; }
  .utility-icons a { flex-shrink: 0; }
  .utility-icons svg { width: 18px; height: 18px; }
  .utility-icons img { height: 22px; }
  .theme-toggle { flex-shrink: 0; }

  /* Hero CTA buttons stack on small phones */
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero--dark .hero__ctas { flex-direction: column; align-items: flex-start; }

  /* Mindset — smaller spacing */
  .mp--event { min-height: 180px; }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Animations ---------- */
/* Content visible by default — animations only activate when JS is ready */
.fade-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js-anim .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Logo swap ---------- */
/* Utility bar shows cyan logo, hide others */
.logo-cyan { display: none; }
.header .logo-dark { display: none !important; }
.header .logo-light { display: none !important; }
.header .logo-cyan { display: block !important; }

/* Body content uses theme-appropriate logo */
.logo-dark { display: block; }
.logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: block; }

/* Footer always shows light logo */
.footer .logo-dark { display: none !important; }
.footer .logo-light { display: block !important; }

/* ---------- Dark Mode — comprehensive overrides ---------- */
/* Hero text */
[data-theme="dark"] .hero__text { color: var(--text-secondary); }
[data-theme="dark"] .hero__subtitle { color: var(--text-primary); }

/* Capabilities section */
[data-theme="dark"] .cap-item__title { color: var(--text-primary); }
[data-theme="dark"] .cap-item__desc { color: var(--text-secondary); }
[data-theme="dark"] .cap-item__rule { border-top-color: var(--border-color); }

/* About page — hero & headings */
[data-theme="dark"] .hero--light { background: var(--bg-primary); }
[data-theme="dark"] .hero--light .hero-title { color: var(--text-primary); }
[data-theme="dark"] .hero--light .hero__text { color: var(--text-secondary); }
[data-theme="dark"] .about-heading { color: var(--text-primary); }
[data-theme="dark"] .about-text { color: var(--text-secondary); }
[data-theme="dark"] .about-text--strong { color: var(--text-primary); }

/* Mindset section */
[data-theme="dark"] .mindset-section { background: var(--bg-secondary); }

/* About features row */
[data-theme="dark"] .feat__cap { color: var(--text-muted); }
[data-theme="dark"] .feat + .feat::before { background: var(--border-color); }

/* Team section */
[data-theme="dark"] .member__name { color: var(--text-primary); }
[data-theme="dark"] .member__role { color: var(--text-muted); }

/* About split / infra */
[data-theme="dark"] .about-split { color: var(--text-primary); }

/* Project filters & sort */
[data-theme="dark"] .project-filters { border-bottom-color: var(--border-color); }
[data-theme="dark"] .project-filters__sort { color: var(--text-primary); }

/* Section grey background */
[data-theme="dark"] .section--grey { background: var(--bg-secondary); }

/* Services section background */
[data-theme="dark"] .services-section { background: var(--bg-secondary); }

/* Buttons on light bg */
[data-theme="dark"] .btn { background: var(--btn-bg); border-color: var(--border-color); color: var(--text-primary); }
[data-theme="dark"] .btn:hover { background: var(--text-primary); color: var(--bg-primary); }

/* Contact page form labels & inputs */
[data-theme="dark"] .contact-info__title { color: var(--text-primary); }
[data-theme="dark"] .contact-info__text { color: var(--text-secondary); }
[data-theme="dark"] .form-group label { color: var(--text-primary); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Nav hamburger on dark */
[data-theme="dark"] .nav__hamburger span { background: var(--text-primary); }
