/* Site-specific styles layered on top of eripm.css design tokens */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* --- Layout primitives --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font: var(--t-small);
  font-weight: 500;
  color: var(--fg-strong);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #111;
  padding: 10px 18px;
  border-radius: var(--radius-2);
  font: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--dur-2) var(--ease-standard), transform var(--dur-1);
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-cta:active { transform: translateY(1px); }
/* Language picker — a compact dropdown so 4+ languages stay space-light:
   the collapsed toggle shows only the current code; the menu lists all. */
.nav-lang {
  position: relative;
  font: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.nav-lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  padding: 6px 8px;
  border: 1px solid var(--border-1); border-radius: var(--radius-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-lang-toggle:hover { color: var(--fg-strong); border-color: var(--fg-2); }
.nav-lang-globe { opacity: 0.7; }
.nav-lang-current { font-weight: 600; color: var(--fg-strong); }
.nav-lang-caret { opacity: 0.6; transition: transform 0.18s ease; }
.nav-lang.open .nav-lang-caret { transform: rotate(180deg); }
.nav-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  margin: 0; padding: 4px; list-style: none;
  min-width: 156px;
  background: var(--bg-1);
  border: 1px solid var(--border-1); border-radius: var(--radius-2);
  box-shadow: var(--shadow-3);
}
.nav-lang-menu[hidden] { display: none; }
.nav-lang-opt {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: none;
  text-align: left;
  padding: 8px 10px; border-radius: var(--radius-1);
}
.nav-lang-opt b {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  min-width: 22px; color: var(--fg-strong);
}
.nav-lang-opt span { color: var(--fg-2); font-size: 12px; }
.nav-lang-opt:hover { background: var(--bg-3); }
.nav-lang-opt.active { background: var(--fg-strong); }
.nav-lang-opt.active b, .nav-lang-opt.active span { color: #fff; }

/* current page highlight in nav */
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}
.nav-mobile-links a.is-active { color: var(--accent); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  background: #0b0a09;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 720px;
  display: flex;
  align-items: stretch;
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url(../assets/cover-machined-parts.jpg);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.55);
  z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.55) 100%);
}
/* orange wedge — brand corner motif */
.hero-wedge {
  position: absolute; z-index: 2;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  width: 100%;
  padding: 96px 32px 72px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: end;
  max-width: 1240px; margin: 0 auto;
  width: 100%;
  flex: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: ""; display: block;
  width: 32px; height: 2px; background: var(--accent);
}
.hero h1 {
  font: 88px/0.98 var(--font-display);
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 28px;
  font-weight: 500;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-lead {
  font: var(--t-lead);
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-2);
  border: 1px solid transparent;
  transition: all var(--dur-2) var(--ease-standard);
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-light {
  background: var(--fg-strong); color: #fff;
}
.btn-light:hover { background: #1a1a1a; color: #fff; }
.btn-arrow { font-size: 14px; }

/* hero side-rail: data card */
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 28px;
  border-radius: var(--radius-3);
  align-self: end;
}
.hero-card h4 {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 20px;
}
.hero-card-row {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
.hero-card-stat {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-card-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card-num {
  font: 36px/1 var(--font-display);
  color: #fff;
  font-weight: 500;
  min-width: 80px;
}
.hero-card-label {
  font: var(--t-small);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

/* ==========================================================
   SECTION SCAFFOLD
   ========================================================== */
section.sec { padding: 120px 0; }
.sec-header { margin-bottom: 64px; max-width: 720px; }
.sec-header.gallery-header { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.sec-eyebrow::before {
  content: ""; width: 32px; height: 2px; background: var(--accent);
}
.sec-title {
  font: 56px/1.05 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin: 0 0 20px;
  font-weight: 500;
}
.sec-title em { color: var(--accent); font-style: italic; }
.sec-lead {
  font: var(--t-lead);
  color: var(--fg-1);
  max-width: 60ch;
  margin: 0;
}

/* ==========================================================
   STAT STRIP (just below hero)
   ========================================================== */
.stat-strip {
  background: var(--fg-strong);
  color: #fff;
  padding: 24px 0;
  overflow: hidden;
}
.stat-strip-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 32px 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative;
  min-height: 0;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font: 44px/1 var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex; align-items: baseline; gap: 6px;
}
.stat-num sup {
  font: 16px/1 var(--font-body);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stat-label {
  font: var(--t-small);
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ==========================================================
   CAPABILITY TILES (4 services)
   ========================================================== */
.cap-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  overflow: hidden;
}
.cap-tile {
  background: #fff;
  padding: 48px 40px;
  display: flex; flex-direction: column;
  gap: 24px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-2) var(--ease-standard);
  min-height: 380px;
}
.cap-tile:hover { background: var(--bg-3); }
.cap-tile-num {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--fg-2);
}
.cap-tile-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--fg-strong);
  border-radius: var(--radius-2);
  color: var(--fg-strong);
  flex-shrink: 0;
  transition: all var(--dur-2) var(--ease-standard);
}
.cap-tile:hover .cap-tile-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cap-tile h3 {
  font: 28px/1.15 var(--font-display);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.cap-tile p {
  font: var(--t-body);
  color: var(--fg-1);
  margin: 0;
  flex: 1;
}
.cap-tile-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* full-width "signature" tile (5th discipline — Finition) */
.cap-tile-wide { grid-column: 1 / -1; min-height: 0; }
@media (min-width: 721px) {
  .cap-tile-wide { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
  .cap-tile-wide .cap-tile-wide-body { display: flex; flex-direction: column; gap: 10px; }
  .cap-tile-wide h3 { margin: 0; }
  .cap-tile-wide p { margin: 0; max-width: 70ch; }
}

/* ==========================================================
   CAPABILITY DEEP DIVE (alternating rows)
   ========================================================== */
.cap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding: 96px 0;
  border-bottom: 1px solid var(--border-1);
}
.cap-row:last-child { border-bottom: 0; }
.cap-row.reverse { direction: ltr; }
.cap-row.reverse > *:first-child { order: 2; }
.cap-row.reverse > *:last-child { order: 1; }
.cap-row-img {
  position: relative;
  border-radius: var(--radius-3);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-2);
}
.cap-row-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-standard);
}
.cap-row-img:hover img { transform: scale(1.03); }
.cap-row-img-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  font: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-1);
}
.cap-row-num {
  font: 14px/1 var(--font-body);
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.cap-row h2 {
  font: 44px/1.1 var(--font-display);
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  font-weight: 500;
}
.cap-row .promise {
  font: var(--t-lead);
  font-style: italic;
  color: var(--fg-strong);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 0 0 24px;
  max-width: 52ch;
}
.cap-row p { color: var(--fg-1); margin: 0 0 16px; max-width: 52ch; }
.cap-row ul {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.cap-row ul li {
  font: var(--t-small);
  color: var(--fg-1);
  position: relative;
  padding-left: 18px;
}
.cap-row ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 1px; background: var(--accent);
}

/* ==========================================================
   MATERIALS MATRIX
   ========================================================== */
.mat-bg { background: var(--bg-3); }
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  margin-top: 64px;
}
.mat-cell {
  background: #fff;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
  color: inherit; text-decoration: none;
  transition: background var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard);
}
.mat-cell-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-1);
}
.mat-cell-num {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
}
.mat-cell h4 {
  font: 14px/1.2 var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-strong);
  margin: 0;
}
.mat-cell-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.mat-tag {
  display: inline-block;
  padding: 5px 10px;
  background: var(--bg-2);
  color: var(--fg-1);
  border-radius: var(--radius-1);
  font: 12px/1.2 var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Black treatment applied on hover (replaces the old permanent is-feature). */
.mat-cell:hover { background: var(--fg-strong); color: #fff; }
.mat-cell:hover h4 { color: #fff; }
.mat-cell:hover .mat-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
.mat-cell:hover .mat-cell-num { color: var(--accent); }
.mat-cell:hover .mat-cell-head { border-color: rgba(255,255,255,0.16); }
.mat-cell-body { font: var(--t-small); color: var(--fg-2); margin: 0; }
.mat-cell:hover .mat-cell-body { color: rgba(255,255,255,0.78); }

/* clickable material card (opens the "what it brings" modal) */
.mat-cell[data-matkey] { cursor: pointer; }
.mat-cell[data-matkey]:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.mat-cell-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font: var(--t-small); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
.mat-cell:hover .mat-cell-more { color: var(--accent); }
.mat-seo { display: none; }

/* single-column text modal (materials detail) */
.modal.modal-text {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
}
.modal.modal-text .modal-body { max-height: 90vh; }
.modal.modal-text .modal-lead {
  font: var(--t-lead); font-style: italic; color: var(--fg-strong);
  border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 20px;
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: 48px;
}
.gal-item-overlay { z-index: 1; }
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3);
  background: var(--bg-2);
  cursor: pointer;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-standard);
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  opacity: 0; transition: opacity var(--dur-3) var(--ease-standard);
}
.gal-item:hover .gal-item-overlay { opacity: 1; }
.gal-item-overlay-tag {
  font: 11px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.gal-item-overlay-title {
  font: 22px/1.2 var(--font-display);
  font-weight: 500;
  margin: 0;
}
.gal-tag-static {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--fg-strong);
  font: 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-1);
  z-index: 1;
}

/* gallery item sizes */
.gal-12-2 { grid-column: span 6; grid-row: span 2; }
.gal-6-1  { grid-column: span 4; grid-row: span 1; }
.gal-6-2  { grid-column: span 3; grid-row: span 2; }
.gal-4-1  { grid-column: span 3; grid-row: span 1; }
.gal-8-1  { grid-column: span 5; grid-row: span 1; }

/* ==========================================================
   PROJECT MODAL
   ========================================================== */
.gal-item { border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.gal-item:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 10, 9, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fadeIn 200ms var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-3);
  width: min(1100px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: modalIn 240ms var(--ease-out) both;
}
.modal-image {
  position: relative;
  background: var(--bg-2);
  min-height: 320px;
}
.modal-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.modal-body {
  padding: 48px 44px;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-body h3 {
  font: 32px/1.15 var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
}
.modal-lead {
  font: var(--t-lead);
  color: var(--fg-1);
  margin: 0 0 28px;
}
.modal-section { margin: 24px 0; padding-top: 24px; border-top: 1px solid var(--border-1); }
.modal-section h5,
.modal-meta h5 {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
  margin: 0 0 14px;
}
.modal-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.modal-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font: var(--t-small);
  color: var(--fg-1);
}
.modal-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
  margin-top: 24px;
}
.modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--fg-strong);
  border: 1px solid var(--border-1);
}
.btn-ghost-dark:hover {
  border-color: var(--fg-strong);
  background: var(--bg-3);
  color: var(--fg-strong);
}
/* prev / next navigation arrows (lightbox) */
.modal-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 101;
  width: 52px; height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-1);
  color: var(--fg-strong);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-2) var(--ease-standard), color var(--dur-2), transform var(--dur-2);
}
.modal-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-prev { left: 24px; }
.modal-next { right: 24px; }
@media (max-width: 860px) {
  .modal-nav { top: auto; bottom: 16px; transform: none; width: 46px; height: 46px; }
  .modal-prev { left: 16px; }
  .modal-next { right: 16px; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: var(--radius-2);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-1);
  color: var(--fg-strong);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-2) var(--ease-standard);
}
.modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .modal { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-image { min-height: 240px; max-height: 280px; }
  .modal-body { padding: 32px 24px; }
  .modal-meta { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; }
}

/* ==========================================================
   PROCESS / WORKFLOW
   ========================================================== */
.proc-bg { background: #0b0a09; color: #fff; }
.proc-bg .sec-title { color: #fff; }
.proc-bg .sec-lead { color: rgba(255,255,255,0.75); }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
.proc-grid::before {
  content: ""; position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(226,69,18,0.4) 12%, rgba(226,69,18,0.4) 88%, transparent);
}
.proc-step {
  position: relative;
  padding-top: 64px;
}
.proc-step-marker {
  position: absolute;
  top: 14px; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 14px/1 var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  border: 3px solid #0b0a09;
  box-shadow: 0 0 0 1px var(--accent);
}
.proc-step h4 {
  font: 22px/1.2 var(--font-display);
  font-weight: 500;
  margin: 0 0 12px;
  color: #fff;
}
.proc-step p {
  font: var(--t-small);
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-3);
  padding: 48px;
  box-shadow: var(--shadow-2);
}
.contact-card h3 {
  font: 32px/1.15 var(--font-display);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 600;
}
.field input, .field textarea {
  font: var(--t-body);
  color: var(--fg-strong);
  padding: 12px 14px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2);
  background: #fff;
  transition: border var(--dur-1), box-shadow var(--dur-1);
  font-family: var(--font-body);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info {
  display: flex; flex-direction: column; gap: 32px;
}
.info-block {
  display: flex; align-items: flex-start; gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-1);
}
.info-block:last-child { border-bottom: 0; }
.info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--fg-strong);
  border-radius: var(--radius-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-strong);
}
.info-block h5 {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-2);
  margin: 0 0 8px;
}
.info-block p, .info-block a {
  font: var(--t-body);
  color: var(--fg-strong);
  margin: 2px 0;
  text-decoration: none;
}
.info-block a:hover { color: var(--accent); }

/* Social links (contact pages) — neutral border works on light & dark */
.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(127,127,127,0.4); border-radius: var(--radius-2); color: inherit; text-decoration: none; transition: background var(--dur-2) var(--ease-standard), color var(--dur-2) var(--ease-standard), border-color var(--dur-2) var(--ease-standard); }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-links svg { width: 18px; height: 18px; }

.contact-map-sec { padding-top: 0; }
.contact-map {
  overflow: hidden;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
}
.contact-map iframe { filter: grayscale(0.2); }

.contact-loc-sec { padding-bottom: 0; }
.contact-building {
  margin: 40px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
}
.contact-building img { display: block; width: 100%; height: auto; }

.cap-figure {
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
}
.cap-figure img { display: block; width: 100%; height: auto; }

/* Five-métiers image band (home services section) */
.metiers-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.metiers-band figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.metiers-band img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-3); display: block; }
.metiers-band figcaption { font: var(--t-small); font-weight: 600; color: var(--fg-strong); text-align: center; }
@media (max-width: 900px) { .metiers-band { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .metiers-band { grid-template-columns: repeat(2, 1fr); } }

/* "Pourquoi nous choisir" tiles (icon image + title + line) — inherits text colour so it works on light & dark themes */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; }
.why-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.why-tile img { width: 76px; height: 76px; object-fit: contain; }
.why-tile h4 { font: var(--t-h4); font-weight: 700; margin: 0; color: inherit; }
.why-tile p { font: var(--t-small); margin: 0; color: inherit; opacity: 0.72; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* About page — testimonials + logo wall */
.about-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.about-quote { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-3); padding: 32px; box-shadow: var(--shadow-2); }
.about-quote p { font: var(--t-lead); color: var(--fg-strong); font-style: italic; margin: 0 0 16px; }
.about-quote cite { font: var(--t-small); color: var(--accent); font-style: normal; font-weight: 700; letter-spacing: 0.02em; }
.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 108px; gap: 1px; background: var(--border-1); border: 1px solid var(--border-1); border-radius: var(--radius-3); overflow: hidden; margin-top: 40px; }
.logo-wall span { background: #fff; padding: 20px; display: flex; align-items: center; justify-content: center; }
.logo-wall img { max-width: 150px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 700px) { .about-quotes { grid-template-columns: 1fr; } .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* Machine park tiles */
.machine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.machine-card { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-3); padding: 16px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-2); }
.machine-card > img { order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-2); display: block; background: var(--bg-3); }
.machine-card h4 { font: var(--t-h4); font-weight: 700; color: var(--fg-strong); letter-spacing: -0.01em; margin: 0 4px; }
.machine-card ul { margin: 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.machine-card li { font: var(--t-small); color: var(--fg-1); position: relative; padding-left: 16px; }
.machine-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 1000px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .machine-grid { grid-template-columns: 1fr; } }

/* Legal / mentions légales prose */
.legal { max-width: 760px; }
.legal h2 {
  font: 24px/1.2 var(--font-display); font-weight: 500; color: var(--fg-strong);
  margin: 40px 0 12px; letter-spacing: -0.01em;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font: var(--t-body); color: var(--fg-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal ul li { padding: 4px 0 4px 18px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--accent); }
.legal strong { color: var(--fg-strong); }
.legal .legal-todo { color: var(--accent); font-style: italic; }
.footer-legal-wrap a { color: inherit; text-decoration: underline; }

/* ==========================================================
   CONTACT FORM — dropzone, chips, progress, status (contact-form.js)
   ========================================================== */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dropzone {
  position: relative; border: 1.5px dashed var(--border-1); border-radius: var(--radius-3);
  background: #fff; padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease-standard), background var(--dur-2);
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dz-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-prompt { pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-2); font: var(--t-small); }
.dz-prompt svg { width: 26px; height: 26px; color: var(--accent); }
.dz-prompt .dz-text b { color: var(--accent); font-weight: 700; }
.dz-hint { pointer-events: none; display: block; color: var(--fg-3); font: var(--t-micro); margin-top: 6px; }
.dz-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.dz-chip { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--border-1); border-radius: var(--radius-2); padding: 8px 12px; font: var(--t-small); }
.dz-chip .dz-ic svg { width: 18px; height: 18px; color: var(--fg-2); display: block; }
.dz-chip .dz-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-strong); }
.dz-chip .dz-size { color: var(--fg-3); font: var(--t-micro); flex-shrink: 0; }
.dz-chip .dz-rm { border: 0; background: transparent; padding: 4px; cursor: pointer; color: var(--fg-2); display: inline-flex; }
.dz-chip .dz-rm:hover { color: var(--accent); }
.dz-chip .dz-rm svg { width: 16px; height: 16px; }
.dz-error { color: #c0392b; font: var(--t-small); margin: 8px 0 0; }
.form-progress { height: 6px; background: var(--bg-2); border-radius: var(--radius-pill); overflow: hidden; margin: 14px 0; }
.form-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 180ms linear; }
.form-status { margin: 12px 0 0; font: var(--t-small); font-weight: 600; }
.form-status.is-ok { color: #2e7d32; }
.form-status.is-error { color: #c0392b; }
button.is-loading { opacity: 0.75; pointer-events: none; }

/* dark (drone / Milvus) contact form */
[data-theme="drone"] .dropzone { background: #1b1917; border-color: rgba(255,255,255,0.22); }
[data-theme="drone"] .dropzone.is-over { border-color: var(--accent); background: rgba(226,69,18,0.12); }
[data-theme="drone"] .dz-prompt { color: rgba(255,255,255,0.8); }
[data-theme="drone"] .dz-chip { background: #1b1917; border-color: rgba(255,255,255,0.14); }
[data-theme="drone"] .dz-chip .dz-name { color: #fff; }
[data-theme="drone"] .form-progress { background: rgba(255,255,255,0.12); }
[data-theme="drone"] .form-status.is-ok { color: #8bc34a; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--fg-strong);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.6); font: var(--t-small); margin-top: 16px; max-width: 36ch; }
.footer h6 {
  font: 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font: var(--t-small);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--dur-1);
}
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font: var(--t-micro);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ==========================================================
   PAGE SUB-HEADER (inner pages — services, matières, etc.)
   Self-contained block: maps to a single Odoo cover snippet.
   ========================================================== */
.page-hero {
  position: relative;
  background: #0b0a09;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.4);
  opacity: 0.55;
}
.page-hero.has-img-machining::before { background-image: url(../assets/machining-spindle.jpeg); }
.page-hero.has-img-services::before   { background-image: url(../assets/cinq_metiers_nb.jpg); }
.page-hero.has-img-materials::before  { background-image: url(../assets/materials-hero.jpg); }
.page-hero.has-img-process::before    { background-image: url(../assets/assembly-detail.jpeg); }
.page-hero.has-img-gallery::before    { background-image: url(../assets/cover-machined-parts.jpg); }
.page-hero.has-img-contact::before    { background-image: url(../assets/dry-machining.jpeg); }
.page-hero-wedge {
  position: absolute; z-index: 1; top: 0; right: 0;
  width: 180px; height: 180px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 120px 32px 100px;
}
.page-hero .sec-eyebrow { color: #fff; }
.page-hero h1 {
  font: 64px/1.05 var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: #fff;
  margin: 0 0 20px;
  max-width: 18ch;
}
.page-hero h1 em { color: var(--accent); font-style: italic; }
.page-hero-lead {
  font: var(--t-lead);
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  margin: 0;
}
.page-hero-crumbs {
  display: flex; gap: 10px; align-items: center;
  font: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.page-hero-crumbs a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero-crumbs a:hover { color: #fff; }

/* ==========================================================
   GALLERY TEASER (home) — compact preview that links out
   ========================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.teaser-grid .gal-item { border-radius: var(--radius-3); aspect-ratio: 3/4; }
.teaser-grid .gal-item:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 3/2; }
@media (max-width: 720px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid .gal-item:first-child { grid-column: span 2; aspect-ratio: 16/10; }
}

/* ==========================================================
   UNIVERS / SECTEURS cards (home) — market entry points
   ========================================================== */
.univers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.univers-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-3); min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.univers-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 900ms var(--ease-out);
}
.univers-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,9,0.2) 0%, rgba(11,10,9,0.6) 55%, rgba(11,10,9,0.9) 100%);
}
.univers-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(11,10,9,0.28); }
.univers-card:hover::before { transform: scale(1.12); }
.uc-clean::before { background-image: url(/assets/image_piece_POM_usinage.jpg); }
.uc-lean::before  { background-image: url(/assets/tools_handling.jpg); }
.uc-drone::before { background-image: url(/assets/Drones_structures.jpg); }
.uc-precision::before { background-image: url(/assets/precision-machine.jpg); }
.univers-card h3 { font-size: 24px; }
.uc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: var(--t-eyebrow); font-weight: 700; letter-spacing: var(--track-wider);
  text-transform: uppercase; color: #fff; margin-bottom: 12px;
}
.uc-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.univers-card h3 { font: 26px/1.18 var(--font-display); font-weight: 500; color: #fff; margin: 0 0 12px; max-width: 24ch; }
.univers-card .uc-segments { font: var(--t-small); color: rgba(255,255,255,0.72); letter-spacing: 0.02em; margin: 0 0 10px; }
.univers-card .uc-tag { font: var(--t-body); font-style: italic; color: rgba(255,255,255,0.9); margin: 0 0 18px; }
.uc-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font: var(--t-small); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.uc-cta svg { transition: transform 300ms var(--ease-out); }
.univers-card:hover .uc-cta svg { transform: translateX(4px); }
@media (max-width: 880px) { .univers-grid { grid-template-columns: 1fr; } .univers-card { min-height: 240px; } }

/* ==========================================================
   CTA BAND (home + page footers) — orange call-to-action strip
   ========================================================== */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.cta-band-inner {
  max-width: 880px; margin: 0 auto;
  padding: 96px 32px;
}
.cta-band h2 {
  font: 48px/1.1 var(--font-display);
  font-weight: 500; letter-spacing: -0.015em;
  color: #fff; margin: 0 0 20px;
}
.cta-band p {
  font: var(--t-lead);
  color: rgba(255,255,255,0.9);
  margin: 0 auto 32px; max-width: 52ch;
}
.cta-band .btn-light { background: #fff; color: var(--accent); }
.cta-band .btn-light:hover { background: rgba(255,255,255,0.9); color: var(--accent); }
@media (max-width: 720px) {
  .page-hero-inner { padding: 72px 20px 56px; }
  .page-hero h1 { font-size: 38px; }
  .cta-band-inner { padding: 56px 20px; }
  .cta-band h2 { font-size: 30px; }
}

/* ==========================================================
   ANIMATION — restrained, brand-compliant
   ========================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp var(--dur-3) var(--ease-out) both; }
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 180ms; }
.delay-4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .hero h1 { font-size: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 100%; }
  .stat-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .cap-tiles { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .cap-row.reverse > *:first-child { order: 1; }
  .cap-row.reverse > *:last-child { order: 2; }
  .cap-row ul { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .gal-12-2, .gal-6-1, .gal-6-2, .gal-4-1, .gal-8-1 { grid-column: span 6; grid-row: span 1; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-title { font-size: 36px; }
  section.sec { padding: 72px 0; }
}

/* ==========================================================
   MOBILE NAV — burger + slide-down panel
   ========================================================== */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none;
  background: transparent; border: 1px solid var(--border-1);
  width: 44px; height: 44px; border-radius: var(--radius-2);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--fg-strong);
}
.nav-mobile-panel {
  position: fixed; inset: 72px 0 0; z-index: 49;
  background: rgba(11,10,9,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 200ms var(--ease-out) both;
}
.nav-mobile-links {
  list-style: none; margin: 0;
  padding: 24px 32px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border-1);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-3);
}
.nav-mobile-links li { list-style: none; }
.nav-mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  font: 18px/1 var(--font-display);
  font-weight: 500;
  color: var(--fg-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--border-1);
}
.nav-mobile-links a.nav-cta {
  margin-top: 12px;
  border-bottom: 0;
  justify-content: center;
  font: 14px/1 var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 16px;
}

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ==========================================================
   TABLET — narrower than 980, wider than 640
   ========================================================== */
@media (max-width: 720px) {
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .nav-mobile-panel { top: 64px; }
  .nav-logo img { height: 26px; }

  /* Hero — phone-friendly type and layout */
  .hero { min-height: 0; }
  .hero-content { padding: 56px 20px 40px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 38px; line-height: 1.05; max-width: none; margin-bottom: 20px; }
  .hero-eyebrow { margin-bottom: 20px; font-size: 11px; }
  .hero-lead { font-size: 16px; line-height: 1.5; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
  .hero-wedge { width: 130px; height: 130px; }
  .hero-card { padding: 20px; }
  .hero-card h4 { margin-bottom: 14px; }
  .hero-card-num { font-size: 30px; min-width: 70px; }
  .hero-card-label { font-size: 13px; }

  /* Stat strip — stack 2x2 with reduced numbers */
  .stat-strip-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat-num { font-size: 32px; }
  .stat-num sup { font-size: 12px; }
  .stat-label { font-size: 12px; }

  /* Section scaffold */
  section.sec { padding: 56px 0; }
  .sec-header { margin-bottom: 36px; }
  .sec-title { font-size: 28px; line-height: 1.1; }
  .sec-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .sec-lead { font-size: 16px; line-height: 1.5; }

  /* Capability tiles */
  .cap-tile { padding: 32px 24px; min-height: 0; gap: 18px; }
  .cap-tile h3 { font-size: 22px; }
  .cap-tile p { font-size: 15px; }
  .cap-tile-icon { width: 44px; height: 44px; }

  /* Capability deep-dive rows */
  .cap-row { padding: 48px 0; gap: 24px; }
  .cap-row h2 { font-size: 26px; line-height: 1.15; margin-bottom: 16px; }
  .cap-row .promise { font-size: 17px; padding-left: 14px; }
  .cap-row p { font-size: 15px; }
  .cap-row ul { gap: 8px 16px; margin-top: 18px; }
  .cap-row ul li { font-size: 13px; padding-left: 14px; }
  .cap-row-img { aspect-ratio: 16/11; }

  /* Materials matrix */
  .mat-cell { padding: 28px 22px; min-height: 0; }
  .mat-cell h4 { font-size: 13px; }
  .mat-cell-body { font-size: 13px; }
  .mat-tag { font-size: 11px; padding: 4px 8px; }

  /* Process — single column on mobile */
  .proc-grid { grid-template-columns: 1fr; gap: 24px; }
  .proc-step { padding-top: 56px; }
  .proc-step h4 { font-size: 19px; }
  .proc-step p { font-size: 14px; }

  /* Gallery — 2-up grid on phone */
  .gallery-header { flex-direction: column; align-items: flex-start !important; gap: 24px; }
  .gallery-header .btn { width: 100%; justify-content: center; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
  .gal-12-2, .gal-6-2 { grid-column: span 2; grid-row: span 2; }
  .gal-8-1, .gal-6-1, .gal-4-1 { grid-column: span 1; grid-row: span 1; }
  .gal-tag-static { font-size: 10px; padding: 5px 8px; top: 10px; left: 10px; }
  .gal-item-overlay { padding: 14px; }
  .gal-item-overlay-title { font-size: 16px; }

  /* Contact */
  .contact-card { padding: 28px 22px; }
  .contact-card h3 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .info-block h5 { font-size: 11px; }
  .info-block p, .info-block a { font-size: 15px; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 20px; }
  .footer-brand img { height: 28px; }

  /* Modal — full-screen on phone */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    grid-template-columns: 1fr;
    max-height: 96vh; height: 96vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
  }
  .modal-image { min-height: 0; height: 220px; max-height: 220px; }
  .modal-body { padding: 28px 22px; }
  .modal-body h3 { font-size: 24px; }
  .modal-lead { font-size: 16px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { justify-content: center; width: 100%; }
  .modal-meta { gap: 20px; }
}

/* ==========================================================
   PHONE — very small (≤ 380)
   ========================================================== */
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .sec-title { font-size: 24px; }
  .stat-num { font-size: 26px; }
  .container, .container-wide { padding: 0 16px; }
}

/* Make all images render crisply, prevent layout overflow */
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

/* ----- Careers (carriere.html) ----- */
.prose-narrow { max-width: 760px; margin: 0 auto; }
.prose-narrow p { margin: 0 0 16px; }
.job-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.job-card { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-3); padding: 24px 26px; }
.job-card h4 { font: var(--t-h4); font-weight: 700; margin: 0 0 6px; }
.job-card > p { margin: 0; font: var(--t-small); line-height: 1.55; opacity: 0.8; }
.job-idea { display: flex; gap: 16px; align-items: flex-start; }
.job-idea .n { flex: none; font: var(--t-h4); font-weight: 800; color: var(--accent); line-height: 1.15; width: 1.7em; }
.job-idea p { margin: 0; font: var(--t-small); line-height: 1.55; }
.job-idea p strong { font-weight: 700; opacity: 1; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.profile-chip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-1); border-left: 3px solid var(--accent); border-radius: var(--radius-2); padding: 16px 20px; font: var(--t-body); font-weight: 600; }
.profile-chip::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
