/* ============================================
   LOXUS GMBH — STYLESHEET
   Schweizer Importeur für Beleuchtung und
   Gebäudesystemtechnik
   ============================================ */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- TOKENS ----- */
:root {
  --blue: #1A6B94;
  --blue-dark: #134f6e;
  --yellow: #F5CA37;

  --ink: #14181C;
  --graphite: #333A42;
  --slate: #5E6772;
  --stone: #939BA5;
  --line: #E2E0D9;
  --paper: #F6F4EF;
  --paper-warm: #FBFAF6;
  --white: #FFFFFF;

  --font-display: 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* ----- BASE ----- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.018em;  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-variation-settings: 'wght' 300; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-variation-settings: 'wght' 300; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

p { color: var(--graphite); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--slate);
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* ----- LAYOUT ----- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2.5rem;
}
section { padding-block: clamp(4rem, 8vw, 7.5rem); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 1.25rem; }

/* Skip to content link (accessibility) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-to-content:focus {
  left: 1rem;
}

/* Branded keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Mobile menu critical styles (FOUC prevention) */
.mobile-menu { display: none; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .mobile-menu[hidden] { display: flex; }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  left: 7px; right: 7px;
  height: 3px;
  background: var(--paper);
}
.brand-mark::before { top: 9px; }
.brand-mark::after { bottom: 9px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-text sup {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-left: 3px;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin-left: auto;
  margin-right: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--graphite);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); font-weight: 500; }

/* CTA button in header */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}
.nav-cta::after { content: '→'; transition: transform 0.25s var(--ease-out); }
.nav-cta:hover { background: var(--blue); }
.nav-cta:hover::after { transform: translateX(3px); }

/* Burger toggle - hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
}

/* ============================================
   HERO (Homepage)
   ============================================ */
.hero {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}
.hero-inner {
  max-width: 1000px;
}
.hero .eyebrow { margin-bottom: 2rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 2.25rem;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--slate);
  max-width: 46ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.hero-cta span { transition: transform 0.25s var(--ease-out); }
.hero-cta:hover { background: var(--blue-dark); }
.hero-cta:hover span { transform: translateX(4px); }

/* ----- INDEX BAR ----- */
.index-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.index-item {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--line);
}
.index-item:last-child { border-right: none; }
.index-item .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.index-item .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.5;
}

/* ============================================
   PAGE HEADER (Subpages) — left-aligned, no dead space
   ============================================ */
.page-header {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-header-inner {
  max-width: 880px;
}
.page-header .eyebrow { margin-bottom: 1.75rem; }
.page-header h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.page-header h1 em { font-style: italic; color: var(--blue); }
.page-header .lead {
  max-width: 60ch;
}

/* ============================================
   VALUES
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.value-card .value-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.value-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}
.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}

/* ============================================
   FEATURE (dark section)
   ============================================ */
.feature {
  background: var(--ink);
  color: var(--paper);
}
.feature .eyebrow { color: var(--yellow); }
.feature .eyebrow::before { background: var(--yellow); }
.feature h2 { color: var(--paper); }
.feature .section-head p { color: rgba(246, 244, 239, 0.7); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(246, 244, 239, 0.13);
}
.feature-list li:first-child { border-top: 1px solid rgba(246, 244, 239, 0.13); }
.feature-list .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--yellow);
  padding-top: 0.2rem;
}
.feature-list h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}
.feature-list p {
  font-size: 0.96rem;
  color: rgba(246, 244, 239, 0.7);
  line-height: 1.6;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  color: var(--yellow);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(245, 202, 55, 0.4);
  padding-bottom: 0.3rem;
  transition: border-color 0.2s var(--ease);
}
.feature-link:hover { border-color: var(--yellow); }

.feature-visual {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(245, 202, 55, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(19, 79, 110, 0.5) 0%, transparent 50%);
}
.feature-visual-inner {
  position: relative;
  text-align: center;
  color: var(--paper);
}
.feature-visual-inner .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 200;
  line-height: 1;
}
.feature-visual-inner .cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  opacity: 0.75;
}

/* ============================================
   SECTORS
   ============================================ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector-card {
  background: var(--paper);
  padding: 2.4rem 2rem;
  transition: background 0.25s var(--ease);
}
.sector-card:hover { background: var(--paper-warm); }
.sector-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1.3rem;
}
.sector-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.sector-card p {
  font-size: 0.94rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--blue);
  color: var(--white);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta .eyebrow { color: var(--yellow); }
.cta .eyebrow::before { background: var(--yellow); }
.cta h2 { color: var(--white); margin-block: 1rem 1.25rem; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 48ch; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-light span { transition: transform 0.25s var(--ease-out); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.16); }
.btn-light:hover span { transform: translateX(3px); }
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 0.3rem;
  transition: border-color 0.2s var(--ease);
}
.btn-ghost-light:hover { border-color: var(--white); }

/* ============================================
   CONTENT BLOCKS (Subpages) — single column, generous
   ============================================ */
.prose {
  max-width: 760px;
}
.prose .eyebrow { margin-bottom: 1.75rem; }
.prose h2 { margin-bottom: 1.5rem; }
.prose p {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
  color: var(--graphite);
}
.prose p:last-child { margin-bottom: 0; }
.prose p.intro {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ============================================
   TEAM
   ============================================ */
.team { background: var(--paper-warm); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
}
.team-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--blue-dark));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.9rem;
}
.team-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
}

/* ============================================
   PRODUCT CATEGORIES (Sortiment)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  transition: border-color 0.25s var(--ease);
}
.product-card:hover { border-color: var(--blue); }
.product-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1.5rem;
}
.product-card h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.9rem;
}
.product-card .desc {
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.product-card ul {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.product-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding-block: 0.5rem;
  font-size: 0.96rem;
  color: var(--graphite);
}
.product-card li::before {
  content: '—';
  color: var(--blue);
}

/* ============================================
   PARTNER GRID (Fachpartner)
   ============================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.partner-card {
  background: var(--paper);
  padding: 2.3rem 2rem;
}
.partner-card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
}
.partner-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.partner-card p {
  font-size: 0.94rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ----- PROCESS (dark) ----- */
.process { background: var(--ink); color: var(--paper); }
.process .eyebrow { color: var(--yellow); }
.process .eyebrow::before { background: var(--yellow); }
.process h2 { color: var(--paper); }
.process .section-head p { color: rgba(246, 244, 239, 0.7); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process-step {
  padding-top: 1.5rem;
  border-top: 2px solid var(--yellow);
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.9rem;
}
.process-step h4 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}
.process-step p {
  font-size: 0.92rem;
  color: rgba(246, 244, 239, 0.7);
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-info h2 { margin-bottom: 2rem; font-size: 1.7rem; }
.info-block {
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.info-block:first-of-type { border-top: 1px solid var(--line); }
.info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 0.5rem;
}
.info-value {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
}
.info-value a {
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}
.info-value a:hover { border-color: var(--blue); }

.contact-actions-head { margin-bottom: 2rem; }
.contact-actions-head .eyebrow { margin-bottom: 1.25rem; }
.contact-actions-head h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.contact-actions-head p { color: var(--slate); }

.action-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem 1.7rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.action-card:hover {
  border-color: var(--blue);
  background: var(--white);
  transform: translateX(4px);
}
.action-card .num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  align-self: start;
  padding-top: 3px;
}
.action-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.action-card p {
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.5;
}
.action-card .arrow {
  font-size: 1.2rem;
  color: var(--blue);
  transition: transform 0.25s var(--ease-out);
}
.action-card:hover .arrow { transform: translateX(4px); }

.contact-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--slate);
}
.contact-note a { color: var(--blue); border-bottom: 1px solid var(--blue); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.legal-content { max-width: 740px; }
.legal-content > p:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-of-type { margin-top: 1.5rem; }
.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
.legal-content p { margin-bottom: 1rem; line-height: 1.7; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.4rem; list-style: disc; }
.legal-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.legal-content a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.legal-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--slate);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(246, 244, 239, 0.13);
}
.footer-brand .brand-text { color: var(--paper); }
.footer-brand p {
  color: rgba(246, 244, 239, 0.6);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-top: 1.3rem;
  max-width: 38ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a {
  color: rgba(246, 244, 239, 0.72);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--paper); }
.footer-col address {
  font-style: normal;
  color: rgba(246, 244, 239, 0.72);
  font-size: 0.94rem;
  line-height: 1.7;
}
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: rgba(246, 244, 239, 0.5);
}
.footer-bottom-links { display: flex; gap: 1.75rem; }
.footer-bottom a:hover { color: var(--paper); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease-out) backwards; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }

/* Scroll reveal: only hide when JS is active (progressive enhancement) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE — TABLET (max 1000px)
   ============================================ */
@media (max-width: 1000px) {
  .feature-grid,
  .cta-inner,
  .contact-layout { grid-template-columns: 1fr; }

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

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

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .feature-visual { aspect-ratio: 16 / 9; max-height: 360px; }

  .cta-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* ============================================
   MOBILE NAVIGATION (max 860px)
   Slide-in panel from the right
   ============================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  /* Backdrop — attached to body so it covers the whole page */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 28, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 1050;
  }
  body.menu-open::after {
    opacity: 1;
    pointer-events: auto;
  }

  /* Slide-in panel — override the [hidden] attribute on mobile */
  .mobile-menu,
  .mobile-menu[hidden] {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 380px);
    z-index: 1100;
    background: var(--ink);
    color: var(--paper);
    padding: 0;
    box-shadow: -16px 0 48px rgba(20, 24, 28, 0.3);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.34s var(--ease-out), visibility 0s linear 0.34s;
  }
  .mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.34s var(--ease-out), visibility 0s;
  }

  /* Top bar inside panel — mirrors header height */
  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding-inline: 1.5rem;
    border-bottom: 1px solid rgba(246, 244, 239, 0.12);
    flex-shrink: 0;
  }
  .mobile-menu-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
  }
  /* Close button */
  .mobile-menu-close {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
  }
  .mobile-menu-close::before { transform: rotate(45deg); }
  .mobile-menu-close::after { transform: rotate(-45deg); }

  /* Scrollable body of the menu */
  .mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 2.5rem;
  }

  .mobile-menu-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.4rem;
    display: block;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
  }
  .mobile-menu li {
    border-bottom: 1px solid rgba(246, 244, 239, 0.1);
  }
  .mobile-menu li:first-child { border-top: 1px solid rgba(246, 244, 239, 0.1); }
  .mobile-menu-body a {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding-block: 1.15rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--paper);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .mobile-menu-body a .idx {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--stone);
    letter-spacing: 0.06em;
  }
  .mobile-menu-body a.active { color: var(--yellow); }
  .mobile-menu-body a.active .idx { color: var(--yellow); }

  /* CTA inside overlay */
  .mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius);
  }
  .mobile-menu-cta::after { content: '→'; font-size: 1.1rem; }

  /* Footer area of overlay */
  .mobile-menu-foot {
    margin-top: auto;
    padding-top: 2rem;
  }
  .mobile-menu-foot .mobile-menu-label {
    color: var(--stone);
    display: block;
    margin-bottom: 0.6rem;
  }
  .mobile-menu-foot a {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--yellow);
    display: inline-block;
  }
  .mobile-menu-foot .addr {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(246, 244, 239, 0.5);
    margin-top: 1.1rem;
  }

  body.menu-open { overflow: hidden; }
}

/* ============================================
   GENERAL MOBILE (max 720px)
   ============================================ */
@media (max-width: 720px) {
  :root { --header-h: 64px; }

  body { font-size: 16px; }
  .container { padding-inline: 1.4rem; }
  .nav { padding-inline: 1.4rem; }
  section { padding-block: 3.75rem; }

  h1, h2, h3 { overflow-wrap: break-word; }

  /* Eyebrow labels — larger, clearly readable */
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }
  .eyebrow::before { width: 18px; }

  /* Section headings — calmer, less bulky */
  h2 { font-size: clamp(1.7rem, 6vw, 2.05rem); }
  .lead { font-size: 1.08rem; line-height: 1.6; }

  /* --- HERO --- */
  .hero { padding-block: 2.75rem 3.25rem; }
  .hero .eyebrow {
    margin-bottom: 1.4rem;
    line-height: 1.5;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.1;
    margin-bottom: 1.6rem;
  }
  .hero-text {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
    padding-top: 1.9rem;
  }
  .hero-text p { font-size: 1.1rem; line-height: 1.62; }
  .hero-cta {
    width: 100%;
    justify-content: center;
    padding-block: 1.1rem;
  }

  /* --- INDEX BAR --- */
  .index-bar { grid-template-columns: 1fr 1fr; }
  .index-item {
    padding: 1.6rem 1.3rem;
  }
  .index-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .index-item:nth-child(even) { border-right: none; }
  .index-item:nth-child(1),
  .index-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .index-item .num { font-size: 2rem; margin-bottom: 0.55rem; }
  .index-item .label { font-size: 0.64rem; letter-spacing: 0.1em; line-height: 1.5; }

  /* --- SECTION HEADS --- */
  .section-head { margin-bottom: 2.25rem; }
  .section-head .eyebrow { margin-bottom: 1.1rem; }
  .section-head h2 { margin-bottom: 1rem; }

  /* --- GRIDS collapse --- */
  .values-grid,
  .sector-grid,
  .partner-grid,
  .process-grid,
  .team-grid,
  .products-grid { grid-template-columns: 1fr; }

  .values-grid { gap: 2.5rem; }
  .value-card h3 { font-size: 1.32rem; }
  .value-card p { font-size: 1rem; }

  /* --- FEATURE --- */
  .feature-grid { gap: 2.25rem; }
  .feature-visual { aspect-ratio: 3 / 2; max-height: 280px; }
  .feature-visual-inner .big { font-size: 4.5rem; }
  .feature-list li { padding-block: 1.4rem; }

  /* --- SECTORS --- */
  .sector-card { padding: 2rem 1.6rem; }
  .sector-card h4 { font-size: 1.28rem; }

  /* --- CTA --- */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn-light { justify-content: center; }
  .btn-ghost-light { text-align: center; justify-content: center; }

  /* --- PAGE HEADER (subpages) --- */
  .page-header { padding-block: 2.75rem 2.25rem; }
  .page-header .eyebrow { margin-bottom: 1.1rem; }
  .page-header h1 { font-size: clamp(2rem, 8vw, 2.5rem); }

  /* --- PROSE --- */
  .prose p.intro { font-size: 1.2rem; line-height: 1.5; }
  .prose p { font-size: 1.05rem; }

  /* --- CONTACT --- */
  .contact-layout { gap: 2.75rem; }
  .action-card {
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    padding: 1.4rem 1.5rem;
    align-items: start;
  }
  .action-card .num {
    grid-column: 1;
    grid-row: 1;
  }
  .action-card > div {
    grid-column: 2;
    grid-row: 1;
  }
  .action-card h4 {
    font-size: 1.14rem;
    display: inline;
  }
  .action-card h4::after {
    content: ' →';
    color: var(--blue);
    font-family: var(--font-body);
    font-weight: 400;
  }
  .action-card p { font-size: 0.95rem; }
  .action-card .arrow { display: none; }
  .action-card:hover { transform: none; }

  /* --- TEAM / PRODUCT cards --- */
  .team-card { padding: 1.7rem; gap: 1.15rem; }
  .team-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .product-card { padding: 1.7rem; }

  /* --- FOOTER --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.75rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* --- LEGAL --- */
  .legal-content h2 { font-size: 1.4rem; }
}

/* ============================================
   SMALL PHONES (max 360px)
   ============================================ */
@media (max-width: 360px) {
  .container { padding-inline: 1.15rem; }
  .nav { padding-inline: 1.15rem; }
  .brand-text { font-size: 1.28rem; }
  .hero h1 { font-size: 1.92rem; }
  .index-bar { grid-template-columns: 1fr; }
  .index-item:nth-child(odd) { border-right: none; }
  .index-item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .mobile-menu-body a { font-size: 1.6rem; }
}
