/* =========================================================
   VAIRA DESIGN SYSTEM v2.0 — BLOCK 1/4
   FOUNDATIONS: Reset, Tokens, Typography, Wrappers, Sections
   ========================================================= */

/* ------------------------------
   Modern Reset (clean, minimal)
   ------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--text-light);
  line-height: 1.7;
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

/* Remove list styles globally */
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* Anchor defaults */
a {
  color: var(--primary-mid);
  text-decoration: none;
}
a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

/* Email & Address Protection */
.no-js .protected-email::after {
  content: "info [at] vaira [dot] ch";
}

.protected-address {
  display: inline-flex;
  flex-direction: column;
}

.protected-address br {
  display: block;
}

.addr-char {
  display: inline-block;
  position: relative;
}

.addr-char::after {
  content: attr(data-noise);
  opacity: 0;
  pointer-events: none;
}

.reveal-address {
  cursor: pointer;
  color: var(--primary-mid);
  text-decoration: underline;
  opacity: 0.85;
}

.reveal-address:hover {
  opacity: 1;
}

/* ------------------------------
   Brand Tokens
   ------------------------------ */

:root {
  --primary: #2B4E5A;
  --primary-mid: #5F8A8E;
  --primary-light: #C9DCDC;
  --primary-dark: #084442;

  --primary-mid-soft: rgba(95,138,142,0.35);
  --primary-light-soft: rgba(201,220,220,0.55);

  --text-dark: #0E1514;
  --text-light: #FFFFFF;

  --bg-light: #F4F7F7;
  --bg-lighter: #FAFCFC;

  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.12);

  --shadow-light: rgba(0,0,0,0.12);
  --shadow-strong: rgba(0,0,0,0.18);

  --footer-accent: rgba(184,212,208,0.15);

  /* Unified vertical spacing system */
  --section-space: 7rem;
}

/* ------------------------------
   Typography
   ------------------------------ */

h1, h2, h3 {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}

h1 {
  font-size: 46px;
  line-height: 1.22;
}

h2 {
  font-size: 32px;
  line-height: 1.28;
  margin-bottom: var(--section-space);
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--primary-mid);
  border-radius: 2px;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
}

p {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ------------------------------
   Layout Wrappers
   ------------------------------ */

.content-wrapper {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

.wrapper--narrow {
  max-width: 960px;
}

.wrapper--wide {
  max-width: 1280px;
}

#who-we-work-with .wrapper--narrow {
  max-width: 1040px;
}

/* ------------------------------
   Sections & Global Rhythm
   ------------------------------ */

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--text-light);
}

.section ul {
  list-style: disc;
  padding-left: 20px;
}

.section--alt {
  background: var(--primary-light);
  padding-top: calc(var(--section-space) - 12px);
}

.section--lighter {
  background: var(--bg-lighter);
}

.section--gradient {
  background: linear-gradient(180deg, var(--text-light), var(--bg-light));
}

.section--accent-left {
  border-left: 6px solid var(--primary-mid);
  padding-left: 32px;
}

/* Ensure no accidental stacking gaps */
.section + .section {
  margin-top: 0;
}

/* Paragraph → grid/list/split spacing */
.section p + .card-grid,
.section p + .why-grid,
.section p + .split,
.section p + ul {
  margin-top: var(--section-space);
}

/* Base list rhythm */
.section ul li {
  margin-bottom: 8px;
  line-height: 1.45;
}

/* Fix vertical spacing in "How We Create Impact" */
.section--accent-left .section-title {
  margin-bottom: 24px !important;
}

.split--usecases .split-left-top {
  margin-bottom: 0;
}

/* =========================================================
   VAIRA DESIGN SYSTEM v2.0 — BLOCK 2/4
   LAYOUT SYSTEMS: Grids, Splits, Alternation, Rhythm
   ========================================================= */

/* ------------------------------
   Core Grid Utilities
   ------------------------------ */

.grid {
  display: grid;
  gap: 32px;
}

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

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

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

/* ------------------------------
   Split Layout (Technical Balanced)
   ------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding-left: 0;
}

.split-left {
  max-width: 480px;
  align-self: center;
}

.split-right {
  align-self: center;
  display: flex;
  flex-direction: column;
}

.split-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  max-width: 420px;
  align-self: center;
}

/* Uniform title → paragraph spacing */
.section h2,
.wrapper--narrow h2,
.split h2,
.split-left h2,
.section-title {
  margin-bottom: 32px;
}

/* Paragraph → list spacing */
.split-left p + ul,
.split-left p + .checklist {
  margin-top: 24px;
}

/* List item rhythm */
.split-left ul li {
  margin-bottom: 10px;
  line-height: 1.55;
}

/* ------------------------------
   Manual Alternation System
   ------------------------------ */

.split--reverse .split {
  grid-template-columns: 0.8fr 1.2fr;
}

.split--reverse .split-left {
  order: 2;
}

.split--reverse .split-right {
  order: 1;
}

/* ------------------------------
   Mobile Behavior
   ------------------------------ */

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split > div {
    order: 1;
  }

  .split-image {
    order: 2;
    max-width: 100%;
  }

  .split--reverse .split > div:first-child {
    order: 1;
  }

  .split--reverse .split > div:last-child,
  .split--reverse .split-image {
    order: 2;
  }
}

/* =========================================================
   VAIRA DESIGN SYSTEM v2.0 — BLOCK 3/4
   COMPONENTS: Cards, Feature Blocks, CTA, Hero, Header, Footer
   ========================================================= */

/* ------------------------------
   Cards
   ------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  padding: 28px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(95,138,142,0.15);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  background: rgba(201,220,220,0.35);
  border-color: rgba(95,138,142,0.35);
  transform: translateY(-2px);
}

/* Services cards */
#services .card {
  background: rgba(201,220,220,0.45);
}

#services .card:hover {
  background: white;
  border-color: rgba(95,138,142,0.45);
}

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

#services .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

#services .card-header .card-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 2.5;
}

/* Contact cards */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 32px;
}

.contact-card {
  background: white;
  border: 1px solid rgba(95,138,142,0.15);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px var(--shadow-light);
  border-color: rgba(95,138,142,0.35);
}

.contact-card .card-icon svg {
  width: 40px;
  height: 40px;
}

/* ------------------------------
   Feature Blocks (Why VAIRA)
   ------------------------------ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(95,138,142,0.15);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  margin-bottom: 32px;
}

.feature-block:hover {
  background: rgba(201,220,220,0.35);
  border-color: rgba(95,138,142,0.35);
  transform: translateY(-2px);
}

.feature-block h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-block p {
  margin: 0;
  line-height: 1.55;
}

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

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cta-btn--primary {
  background: var(--primary-mid);
  color: var(--text-light);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.cta-btn--primary:hover {
  background: var(--primary-mid);
  color: var(--text-light);
  border: 1px solid;
  box-shadow: 0 8px 24px var(--shadow-strong);
  text-decoration: none;
}

.cta-btn--secondary {
  border: 1px solid var(--primary-mid);
  background: var(--primary);
  color: var(--text-light);
}

.cta-btn--secondary:hover {
  background: var(--primary-mid);
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid;
}

/* CTA section spacing refinements */
.section--cta h2 {
  margin-bottom: 16px;
}

.section--cta h2 + p {
  margin-bottom: 32px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background-color: var(--primary);
  color: var(--text-light);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 66px 66px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero > .content-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.22;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 12px;
  margin-bottom: 36px;
}

.hero h1,
.hero .hero-title,
.hero h2,
.hero .hero-sub {
  color: var(--text-light) !important;
}

#hero:not(.hero--clean) .hero-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

#hero:not(.hero--clean) .hero-left {
  align-self: center;
}

#hero:not(.hero--clean) .hero-right {
  align-self: center;
}

#hero:not(.hero--clean) .hero-right svg {
  width: 115%;
  transform: translateY(-6px);
}

#hero.hero--clean {
  padding: 56px 0 40px !important;
}

#hero.hero--clean .hero-sub {
  font-size: 20px;
  opacity: 0.92;
}

/* ------------------------------
   Header & Navigation (CLEAN)
   ------------------------------ */

.site-header {
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

.brand-and-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav ul.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-logo img {
  height: 64px;
  border-radius: 8px;
}

.nav a {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 2px;
  color: var(--text-dark);
  transition: color 0.2s;
}

/* Underline animation */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-mid);
  transition: width 0.25s;
}

.nav a:hover {
  color: var(--primary-mid);
  text-decoration: none;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--primary-mid);
}

.nav a.active::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--primary-mid);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--bg-light);
  color: var(--primary);
}

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

.site-footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 48px 0 32px;
  font-size: 15px;
  border-top: 1px solid var(--footer-accent);
}

.site-footer a {
  color: var(--primary-light);
}

.footer-brand {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-tagline {
  margin-bottom: 16px;
  opacity: 0.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.footer-col--center {
  text-align: center;
}

.footer-col--right {
  text-align: right;
}

.footer-legal {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.75;
}

.footer-legal-bar {
  text-align: center;
  font-size: 13px;
  opacity: 0.55;
  margin-top: 48px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   VAIRA DESIGN SYSTEM v2.0 — BLOCK 4/4
   PAGE BLOCKS + RESPONSIVE SYSTEM
   ========================================================= */

/* ------------------------------
   Industries Page Blocks
   ------------------------------ */

#industries-why.section {
  padding-top: 80px;
  padding-bottom: 72px;
}

.industries-why-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 48px;
  align-items: start;
}

.industries-why-text {
  max-width: 560px;
}

.industries-why-text h2 {
  margin-bottom: 28px;
}

.industries-why-illustration svg {
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* ------------------------------
   Use Cases — Alternating Backgrounds
   ------------------------------ */

.use-cases .section:nth-of-type(odd) {
  background: var(--text-light);
}

.use-cases .section:nth-of-type(even) {
  background: var(--bg-lighter);
}

#use-cases-where.section {
  background: var(--primary-light);
}

/* ------------------------------
   Use Cases — Selected Use Cases Blocks
   ------------------------------ */

.use-cases-selected .wrapper--narrow > h2 {
  margin-bottom: 72px;
}

.use-cases-selected .usecase-block {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.use-cases-selected .usecase-item {
  margin-bottom: 32px;
}

.use-cases-selected .usecase-item:last-child .usecase-block {
  padding-bottom: 0;
  border-bottom: none;
}

/* Micro-illustrations */
.use-cases-selected .micro-illustration {
  width: 48px;
  margin-bottom: 16px;
  opacity: 0.75;
}

.use-cases-selected .micro-illustration svg {
  width: 64px;
  height: 64px;
}

/* Typography inside blocks */
.use-cases-selected .usecase-block h3 {
  margin-bottom: 28px;
}

.use-cases-selected .usecase-block p {
  margin-bottom: 18px;
}

.use-cases-selected .usecase-block ul {
  margin-bottom: 28px;
}

/* ------------------------------
   Contact Page — Blueprint Background
   ------------------------------ */

.section--lighter.contact-blueprint {
  position: relative;
}

.section--lighter.contact-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(95,138,142,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(95,138,142,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}


/* =========================================================
   VAIRA Industries Page — Mobile Enhancements
   ========================================================= */

@media (max-width: 600px) {
  .hero-sub {
    font-size: 17px;
    line-height: 1.55;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #services .card {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .feature-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px;
  }

  .feature-block-icon {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .industries-why-inner {
    grid-template-columns: 1fr !important;
    row-gap: 40px;
  }

  .industries-why-illustration {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* =========================================================
   VAIRA Industries Page — Desktop Enhancements
   ========================================================= */

@media (min-width: 1200px) {
  .hero-sub {
    max-width: 680px;
  }
}

@media (min-width: 1200px) {
  #services .card {
    padding: 32px;
  }
}

@media (min-width: 1200px) {
  .feature-block {
    padding: 28px 32px;
    min-height: 180px;
  }

  .feature-block-icon svg {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1200px) {
  .industries-why-illustration {
    max-width: 380px;
    margin-top: 8px;
  }

  .industries-why-text {
    max-width: 540px;
  }
}

@media (min-width: 1200px) {
  h2 {
    max-width: 720px;
  }
}

@media (min-width: 1200px) {
  .feature-block p {
    max-width: 420px;
  }
}

@media (min-width: 1200px) {
  .section {
    padding-top: calc(var(--section-space) * 1.2);
    padding-bottom: calc(var(--section-space) * 1.2);
  }
}

/* =========================================================
   VAIRA Industries Page — Fix for overflowing text in cards
   ========================================================= */

#industries-list .why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#industries-list .feature-block {
  overflow-wrap: break-word;
  word-break: break-word;
}

#industries-list .feature-block-icon {
  width: 64px;
  flex-shrink: 0;
}

/* =========================================================
   VAIRA Industries Page — Fix for overflow in Value Cards
   ========================================================= */

.services-page #services .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.industries-page #services .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 768px) {
  #services .card-grid {
    grid-template-columns: 1fr !important;
  }
}

#services .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

#services .card ul {
  flex-grow: 1;
}

/* =========================================================
   VAIRA ABOUT PAGE — tighter vertical rhythm
   ========================================================= */

.about-page .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1200px) {
  .about-page .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

#about-how .card-grid {
  grid-template-columns: 1fr !important;
}

#about-experience ul {
  margin-bottom: 32px;
}

#about-experience p:last-of-type {
  margin-top: 24px;
  opacity: 0.9;
}

.closing-line {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 720px;
  opacity: 0.9;
}

#about-leadership ul {
  margin-top: 36px;
}

/* =========================================================
   VAIRA CONTACT PAGE — tighter vertical rhythm
   ========================================================= */

.contact-page .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1200px) {
  .contact-page .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.contact-page #hero.hero--clean {
  padding-top: 56px !important;
  padding-bottom: 40px !important;
}

.contact-page .hero-sub {
  max-width: 720px;
}

@media (min-width: 1100px) {
  .contact-page .hero-sub {
    white-space: nowrap;
  }
}

/* =========================================================
   VAIRA PRIVACY PAGE — improved text rhythm
   ========================================================= */

.privacy-page h1 {
  margin-bottom: 24px;
}

.privacy-page h2 {
  margin-top: 56px;
  margin-bottom: 20px;
}

.privacy-page h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-page p {
  margin-bottom: 16px;
}

.privacy-page ul {
  margin-top: 4px;
  margin-bottom: 16px;
  padding-left: 20px;
}

.privacy-page ul li {
  margin-bottom: 4px;
  line-height: 1.55;
}

.privacy-page p + ul {
  margin-top: 0 !important;
}

.privacy-page .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1200px) {
  .privacy-page .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* =========================================================
   VAIRA IMPRESSUM PAGE — improved text rhythm
   ========================================================= */

.impressum-page h1 {
  margin-bottom: 24px;
}

.impressum-page h2 {
  margin-top: 56px;
  margin-bottom: 20px;
}

.impressum-page p {
  margin-bottom: 16px;
  line-height: 1.55;
}

.impressum-page p + p {
  margin-top: -4px;
}

.impressum-page .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1200px) {
  .impressum-page .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.use-cases #hero.hero--clean {
  padding-top: 56px !important;
  padding-bottom: 40px !important;
}

/* =========================================================
   USE-CASES PAGE — CONSOLIDATED DESIGN SYSTEM
   ========================================================= */

@media (min-width: 1100px) {
  .use-cases-page .hero-sub {
    white-space: nowrap !important;
  }
}

.use-cases-page .section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.use-cases-page .section-title {
  margin-bottom: 48px !important;
}

.use-cases-page .use-cases-selected .section-title--usecases-list {
  margin-bottom: 64px !important;
}

.use-cases-page .section--accent-left .split {
  align-items: start;
}

.split--usecases .split-left-top {
  margin-bottom: 0px;
}

.use-cases-page .section--accent-left .illustration-wrapper svg {
  width: 85%;
  height: auto;
  transform: translateY(-24px);
}

/* =========================================================
   USE CASE BLOCKS — PREMIUM ENGINEERED DESIGN
   ========================================================= */

.micro-illustration-tile {
  width: 88px;
  height: 88px;
  padding: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.micro-illustration-tile svg {
  width: 64px;
  height: 64px;
}

.micro-illustration-tile svg * {
  stroke-width: 1.75 !important;
}

.usecase-block {
  border-left: 3px solid var(--accent-color);
  padding: 0 32px 0 28px !important;
  background: rgba(0,0,0,0.065);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.usecase-block:hover {
  background: rgba(0,0,0,0.10);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.usecase-block::before {
  content: "";
  display: block;
  height: 3px;
  width: 48px;
  margin-bottom: 16px;
}

.usecase-item {
  position: relative;
  margin-bottom: 48px;
}

.usecase-item::before {
  content: attr(data-case);
  position: absolute;
  top: -12px;
  left: -56px;
  font-size: 72px;
  font-weight: 600;
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.usecase-item + .usecase-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 48px;
  margin-top: 48px;
}

.usecase-label,
.usecase-outcome-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.50);
  margin-bottom: 4px;
}

.usecase-block h3 {
  margin-bottom: 12px;
}

.usecase-block p {
  margin-bottom: 20px;
}

.usecase-block ul {
  margin: 16px 0 20px 0;
  padding-left: 28px;
  line-height: 1.55;
}

.usecase-block li {
  margin-bottom: 8px;
}

.usecase-block li strong {
  font-weight: 600;
  color: var(--text);
}

.use-cases-page .use-cases-selected .usecase-block p + ul {
  margin-top: 20px !important;
}

.use-cases-selected .usecase-item:first-of-type {
  padding-top: 48px;
  margin-top: 48px;
}

.usecase-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 45%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.25;
  pointer-events: none;
}

/* ---------------------------------------------
   SPLIT LAYOUT ALIGNMENT
--------------------------------------------- */

.split--usecases {
  align-items: start;
}

.split--usecases .split-left {
  display: flex;
  flex-direction: column;
}

.split--usecases .split-right .illustration-wrapper svg {
  display: block;
  margin-top: 0;
}

/* =========================================================
   WHERE THESE USE CASES APPLY — FINAL SYSTEM
   ========================================================= */

#use-cases-where.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

#use-cases-where .section-title {
  margin-bottom: 56px;
}

#use-cases-where .why-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

#use-cases-where .why-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 48px;
  margin-top: 16px;
}

.why-grid .why-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  background: rgba(0,0,0,0.025);
  border-radius: 10px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  text-align: left;
}

.why-grid .why-item:hover {
  background: rgba(0,0,0,0.055);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


/* =========================================================
   HEADER — DESKTOP LAYOUT
   ========================================================= */

@media (min-width: 769px) {
  .site-header {
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
  }

  .brand-and-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  nav ul.nav {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .hamburger,
  .mobile-menu {
    display: none !important;
  }
}

   /* =========================================================
   WHERE THESE USE CASES APPLY — RESTORE ORIGINAL DESIGN
   ========================================================= */

/* Icon sizing + micro-animation */
.why-icon svg {
  width: 52px;
  height: 52px;
}

.why-icon svg * {
  stroke-width: 2.1;
  transition: stroke-width 0.18s ease;
}

.why-grid .why-item:hover svg * {
  stroke-width: 2.2;
}

/* Desktop 2×2 grid */
@media (min-width: 900px) {
  #use-cases-where .why-grid {
    grid-template-columns: repeat(2, 420px);
    justify-content: center;
    gap: 48px 48px;
  }
}

/* Mobile refinements */
@media (max-width: 600px) {
  #use-cases-where .why-grid-wrapper {
    padding: 0 20px;
  }

  #use-cases-where .why-grid {
    row-gap: 48px;
  }

  .why-grid .why-item {
    padding: 24px;
  }

  .why-item-inner h3 {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .why-grid .why-item p {
    max-width: 100%;
  }
}


   /* FOOTER — MOBILE STACKING */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .footer-col--center,
  .footer-col--right {
    text-align: left;
  }
}

   /* WHERE THESE USE CASES APPLY — ICONS */
.why-icon svg {
  width: 52px;
  height: 52px;
}

.why-icon svg * {
  stroke-width: 2.1;
  transition: stroke-width 0.18s ease;
}

.why-grid .why-item:hover svg * {
  stroke-width: 2.2;
}

/* WHERE THESE USE CASES APPLY — GRID */
#use-cases-where .why-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 32px;
}

@media (min-width: 900px) {
  #use-cases-where .why-grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 48px 48px;
  }
}

/* Mobile refinements for those cards */
@media (max-width: 600px) {
  #use-cases-where .why-grid-wrapper {
    padding: 0 20px;
  }

  #use-cases-where .why-grid {
    row-gap: 48px;
  }

  .why-grid .why-item {
    padding: 24px;
  }

  .why-item-inner h3 {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .why-grid .why-item p {
    max-width: 100%;
  }
}
.why-item-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   WHERE THESE USE CASES APPLY — ICONS + GRID
   ========================================================= */

.why-icon svg {
  width: 52px;
  height: 52px;
}

.why-icon svg * {
  stroke-width: 2.1;
  transition: stroke-width 0.18s ease;
}

.why-grid .why-item:hover svg * {
  stroke-width: 2.2;
}

@media (min-width: 900px) {
  #use-cases-where .why-grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 48px 48px;
  }
}


/* =========================================================
   HOMEPAGE HERO — MOBILE FULL-WIDTH + BACKGROUND ILLUSTRATION
   ========================================================= */

@media (max-width: 768px) {

  /* Collapse grid into a single column */
  .home-page #hero .hero-grid {
    display: block;
  }

  /* Full-width text */
  .home-page #hero .hero-left {
    width: 100%;
    max-width: 100%;
  }

  .home-page #hero .hero-title,
  .home-page #hero .hero-sub {
    max-width: 100%;
    text-align: left;
  }

  /* Hide the separate illustration column */
  .home-page #hero .hero-right {
    display: none;
  }


#hero.hero--bg-illustration {
  position: relative;
  z-index: 0; /* creates stacking context */
}

#hero.hero--bg-illustration::after {
  content: "";
  position: absolute;
  top: -120px;      /* move up */
  right: -105px;     /* move right */
  width: 140%;
  height: 500px;
  background-image: url("/assets/img/hero-illustration.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-blend-mode: screen;
  pointer-events: none;
  z-index: -1; /* sits behind content but above ::before grid */
}

#hero .hero-grid {
  position: relative;
  z-index: 1; /* ensures content stays above both layers */
}

}

/* =========================================================
   HOW WE WORK — MOBILE STACKED LAYOUT
   ========================================================= */

@media (max-width: 768px) {

  #how-we-work .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Image first */
  #how-we-work .split-right {
    order: 1;
    width: 100%;
  }

  /* Text second */
  #how-we-work .split-left {
    order: 2;
    width: 100%;
  }

  #how-we-work .split-left p {
    max-width: 100%;
  }
}

/* =========================================================
   HEADER — MOBILE LAYOUT (FINAL, CONSOLIDATED)
   ========================================================= */

@media (max-width: 768px) {

  /* Hide desktop nav */
  nav ul.nav {
    display: none !important;
  }

  /* Header container */
  .site-header .header-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 5%;
    gap: 16px;
  }

  /* Logo + brand */
  .brand-and-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Right cluster: language + hamburger */
  .header-right {
    display: flex;
    align-items: center;
    gap: 28px; /* premium spacing */
  }

  .language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .lang-btn {
    padding: 5px 12px;     /* lighter footprint */
    font-size: 13px;       /* balanced with hamburger */
    border-radius: 10px;   /* more engineered geometry */
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 36px;           /* increased presence */
    height: 26px;
    cursor: pointer;
  }

  .hamburger span {
    height: 3.5px;         /* stronger visual weight */
    width: 100%;
    background: var(--text-dark);
    border-radius: 999px;
  }

  /* Mobile menu — right-aligned dropdown */
  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;     /* right-align items */
    text-align: right;         /* right-align text */
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 5%;
    width: auto;               /* shrink to content */
    margin-left: auto;         /* push to right */
    max-width: 260px;          /* elegant width */
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
  }
}

/* =========================================================
   FOOTER — MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .footer-col--center,
  .footer-col--right {
    text-align: left;
  }
}

/* =========================================================
   SUBPAGE HERO — MOBILE FULL-WIDTH + BACKGROUND ILLUSTRATION
   ========================================================= */

/* SUBPAGE HERO — MOBILE */
@media (max-width: 768px) {

  body.subpage #hero.hero--bg-illustration {
    position: relative;
    z-index: 0;
  }

  body.subpage #hero.hero--bg-illustration::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -120px;
    width: 420px;
    height: 420px;
    background-image: url("/assets/img/subpage-hero-illustration.svg");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
  }

  body.subpage .cad-hero-shape {
    display: none;
  }

  body.subpage #hero .hero-grid {
    position: relative;
    z-index: 1;
  }
}
