/* =========================================================================
   Silicone Factory · Design System
   - Palette: Industrial Warm (方案 A)
   - Pattern reference: Mitour · Siliconexy · HT Silicone
   - All image slots are SVG placeholders; replace /assets/img/* with real photos
   ========================================================================= */

:root {
  /* Brand */
  --primary: #c97b3f;
  --primary-soft: #f5e8d8;
  --primary-strong: #a85f28;
  --secondary: #2f6f5e;
  --secondary-soft: #e0ece6;

  /* Neutral */
  --bg: #f7f5f0;
  --paper: #ffffff;
  --ink: #14171e;
  --ink-soft: #3a4256;
  --muted: #7c7a72;
  --line: #e6e1d4;
  --line-soft: #efeadd;

  /* Status */
  --success: #2f6f5e;
  --warn: #d8a930;
  --danger: #b04a2e;

  /* Type */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad: 28px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 2px 8px rgba(20, 23, 30, .04);
  --shadow-md: 0 4px 16px -2px rgba(20, 23, 30, .06);
  --shadow-lg: 0 8px 32px rgba(20, 23, 30, .08);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
.font-serif { font-family: var(--font-serif); font-weight: 400; }
.font-mono  { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; color: var(--ink); margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
p  { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: .15em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--primary); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head .desc { max-width: 380px; font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all var(--transition); border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--primary); color: #fff; }
.btn-ghost:hover { background: var(--primary-strong); color: #fff; }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary-strong); }
.tag-green { background: var(--secondary-soft); color: var(--secondary); }
.tag-line { background: var(--line-soft); color: var(--ink-soft); }

/* ---------- Stat cards ---------- */
.stat { text-align: center; padding: 28px 18px; }
.stat .num { font-family: var(--font-serif); font-size: 42px; color: var(--primary); line-height: 1; }
.stat .label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; margin-top: 8px; }

/* ---------- Inputs ---------- */
.input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 14px; background: var(--paper); transition: border-color var(--transition); }
.input:focus { outline: none; border-color: var(--primary); }
.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; display: block; }

/* =========================================================================
   TOP NAVIGATION (with Mega Menu + Language Switcher)
   ========================================================================= */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 240, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--font-serif); font-size: 18px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.nav-links { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-links > li { list-style: none; position: relative; }
.nav-links > li > a { font-size: 13.5px; color: var(--ink-soft); padding: 8px 12px; border-radius: 6px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-links > li > a:hover { background: var(--line-soft); color: var(--ink); }
.nav-links > li > a .chev { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.2; fill: none; transition: transform var(--transition); }
.nav-links > li.has-mega:hover > a .chev { transform: rotate(180deg); }

/* Mega Menu — wider for capabilities (6 items) */
.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); display: none; opacity: 0; transition: opacity 200ms; z-index: 10; }
.nav-links > li.has-mega:hover .mega { opacity: 1; }

/* Per-mega widths based on content */
.mega.cols-2 { min-width: 560px; grid-template-columns: 1fr 1fr; }
.mega.cols-3 { min-width: 720px; grid-template-columns: repeat(3, 1fr); }
.mega.cols-4 { min-width: 580px; grid-template-columns: repeat(2, 1fr); }

.nav-links > li.has-mega:hover .mega.cols-2,
.nav-links > li.has-mega:hover .mega.cols-3,
.nav-links > li.has-mega:hover .mega.cols-4 { display: grid; gap: 4px 28px; }

.mega a { display: block; padding: 11px 12px; border-radius: 6px; transition: background var(--transition); }
.mega a:hover { background: var(--line-soft); }
.mega .t1 { font-size: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: 4px; }
.mega .t2 { font-size: 14px; color: var(--ink); font-weight: 500; display: block; }
.mega .t3 { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

/* Right-side actions: lang switcher + CTA + burger */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cta-start { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; flex-shrink: 0; border: none; transition: all var(--transition); }
.cta-start:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.nav-burger { display: none; background: none; border: none; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: var(--transition); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher { position: relative; }
.lang-switcher .lang-flag { font-size: 14px; line-height: 1; }
.lang-switcher .lang-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all var(--transition); letter-spacing: .08em; }
.lang-switcher .lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-switcher .lang-btn svg { stroke: currentColor; }
.lang-switcher .lang-current { line-height: 1; }
.lang-switcher .lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px; display: none; z-index: 20; }
.lang-switcher .lang-menu.open { display: block; }
.lang-switcher .lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; background: transparent; border: none; border-radius: 6px; cursor: pointer; transition: background var(--transition); font-family: var(--font-sans); font-size: 13px; color: var(--ink); text-align: left; }
.lang-switcher .lang-menu button:hover { background: var(--line-soft); }
.lang-switcher .lang-menu button.active { background: var(--primary-soft); color: var(--primary-strong); }
.lang-switcher .lang-menu .lang-native { font-weight: 500; }
.lang-switcher .lang-menu .lang-code { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.lang-switcher .lang-menu button.active .lang-code { color: var(--primary-strong); }

/* Mobile nav drawer */
.mobile-drawer { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201, 123, 63, .08) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -300px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(47, 111, 94, .05) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-top: 18px; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-meta { display: flex; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta > div { font-size: 12px; color: var(--muted); }
.hero-meta b { display: block; font-family: var(--font-serif); font-size: 26px; color: var(--ink); font-weight: 400; margin-top: 4px; }

/* Hero video/image slot */
.hero-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.hero-visual .placeholder { width: 100%; height: 100%; }
/* a real factory photograph standing where a flat SVG used to be */
.hero-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .floating-badge {
  position: absolute; bottom: 18px; left: 18px; background: rgba(255, 255, 255, .95); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.hero-visual .floating-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); display: inline-block; margin-right: 6px; }
.hero-visual .floating-badge .label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero-visual .floating-badge .value { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 2px; }

/* =========================================================================
   SVG IMAGE PLACEHOLDER
   - A reusable aspect-ratio box with semantic label
   - Swap by replacing file in /assets/img/* and updating <img> src
   ========================================================================= */
.img-placeholder { position: relative; width: 100%; background: var(--line-soft); border: 1px dashed var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.img-placeholder.ratio-1x1 { aspect-ratio: 1/1; }
.img-placeholder.ratio-4x3 { aspect-ratio: 4/3; }
.img-placeholder.ratio-16x9 { aspect-ratio: 16/9; }
.img-placeholder.ratio-21x9 { aspect-ratio: 21/9; }
.img-placeholder.ratio-3x4 { aspect-ratio: 3/4; }
.img-placeholder .pp-tag { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 3px; letter-spacing: .08em; }
.img-placeholder .pp-replace { position: absolute; bottom: 10px; right: 10px; font-family: var(--font-mono); font-size: 9px; color: var(--primary); background: rgba(255, 255, 255, .9); padding: 3px 7px; border-radius: 3px; }
.img-placeholder .pp-title { font-family: var(--font-serif); font-size: 16px; color: var(--ink-soft); text-align: center; padding: 20px; }
.img-placeholder .pp-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: center; padding: 0 20px 20px; margin-top: -8px; }

/* =========================================================================
   CATEGORY GRID (Home)
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.cat-card .thumb { aspect-ratio: 4/3; }
.cat-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.cat-card .num { font-family: var(--font-mono); font-size: 10px; color: var(--primary); letter-spacing: .15em; }
.cat-card h3 { font-size: 20px; }
.cat-card .desc { font-size: 13px; color: var(--ink-soft); }
.cat-card .more { margin-top: auto; font-size: 13px; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.cat-card .more::after { content: "→"; font-family: var(--font-mono); transition: transform var(--transition); }
.cat-card:hover .more::after { transform: translateX(3px); }

/* =========================================================================
   PRODUCT CARDS (Products page)
   ========================================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod-card .thumb { aspect-ratio: 1/1; }
.prod-card .body { padding: 18px 20px; }
.prod-card h3 { font-size: 18px; margin-bottom: 6px; }
.prod-card .meta { display: flex; gap: 10px; margin: 8px 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* =========================================================================
   CAPABILITIES
   ========================================================================= */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cap-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cap-card .icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.cap-card h3 { font-size: 18px; margin-bottom: 8px; }

/* =========================================================================
   PROCESS TIMELINE
   ========================================================================= */
.timeline { list-style: none; padding: 0; margin: 30px 0 0; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 2px; background: var(--primary); opacity: .3; }
.timeline li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 4px; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--primary); font-weight: 500; }
.timeline li b { font-family: var(--font-serif); font-size: 20px; color: var(--ink); font-weight: 400; display: block; margin-bottom: 6px; }
.timeline li p { font-size: 14px; }

/* =========================================================================
   INNOVATION LAB
   ========================================================================= */
.innov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.innov-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); position: relative; }
.innov-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.innov-card .thumb { aspect-ratio: 4/3; }
.innov-card .status { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, .9); letter-spacing: .1em; text-transform: uppercase; }
.innov-card .status.concept { color: var(--warn); }
.innov-card .status.prototype { color: var(--primary); }
.innov-card .status.odm { color: var(--secondary); }
.innov-card .status.mp { color: var(--ink); }
.innov-card .body { padding: 20px; }
.innov-card h3 { font-size: 18px; margin-bottom: 8px; }
.innov-card .opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.innov-card .opt { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); background: var(--line-soft); padding: 3px 8px; border-radius: 4px; }

/* =========================================================================
   CASE STUDIES
   ========================================================================= */
.case-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.case-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case-card .thumb { aspect-ratio: 4/3; }
.case-card.featured { grid-row: span 2; }
.case-card.featured .thumb { aspect-ratio: 16/10; }
.case-card .body { padding: 18px 22px 22px; }
.case-card .industry { font-family: var(--font-mono); font-size: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.case-card h3 { font-size: 17px; margin-bottom: 8px; }
.case-card.featured h3 { font-size: 22px; }
.case-card .result { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row.span-2 { grid-column: span 2; }
.form-row textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 14px; background: var(--paper); min-height: 120px; resize: vertical; }
.form-row textarea:focus { outline: none; border-color: var(--primary); }
.file-drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; transition: border-color var(--transition); }
.file-drop:hover { border-color: var(--primary); }
.file-drop .ft-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }
.file-drop .ft-text { font-size: 14px; color: var(--ink-soft); }
.file-drop .ft-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

/* =========================================================================
   FACTORY SPEC TABLE
   ========================================================================= */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 14px 0; font-size: 14px; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 200px; text-transform: uppercase; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }
.spec-table td:last-child { color: var(--ink); }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-banner h2 { color: #fff; font-size: 32px; max-width: 540px; }
.cta-banner p { color: rgba(255, 255, 255, .7); margin-top: 12px; max-width: 540px; }
.cta-banner .btn-primary { background: var(--primary); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 64px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid a { color: rgba(255, 255, 255, .65); }
.footer-grid a:hover { color: var(--primary); }
.footer-grid .brand { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.cert-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cert { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 4px; font-family: var(--font-mono); font-size: 10px; color: rgba(255, 255, 255, .8); letter-spacing: .1em; }

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.breadcrumb { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* =========================================================================
   MOBILE
   ========================================================================= */
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { padding: 50px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-meta { flex-wrap: wrap; gap: 18px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid, .prod-grid, .innov-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row.span-2 { grid-column: auto; }
  .cta-banner { flex-direction: column; padding: 32px 28px; align-items: flex-start; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .lang-switcher .lang-btn { padding: 7px 10px; font-size: 10px; }
  .lang-switcher .lang-menu { right: 0; left: auto; }
  .mobile-drawer.open { display: block; position: fixed; inset: 0; background: var(--bg); z-index: 99; padding: 80px 24px 32px; overflow-y: auto; }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer li { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .mobile-drawer a { font-size: 16px; }
  .mobile-drawer .lang-mobile { margin-top: 24px; padding: 16px 0; border-top: 2px solid var(--line); }
  .mobile-drawer .lang-mobile h4 { margin-bottom: 14px; color: var(--muted); font-size: 11px; }
  .mobile-drawer .lang-mobile .lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-drawer .lang-mobile button { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
  .mobile-drawer .lang-mobile button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =========================================================================
   FADE-IN ANIMATION
   ========================================================================= */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* =========================================================================
   REAL PHOTOGRAPHY
   -------------------------------------------------------------------------
   The cards were built around flat SVG placeholders, which needed no sizing
   rules. Real photographs do: without these a 1086px factory photo blows the
   card open and a 640px product shot on a white background gets cropped into
   an unreadable fragment. `cover` for environments, `contain` for the
   white-background product shots where the whole silhouette must stay visible.
   ========================================================================= */
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-card .thumb img,
.case-card .thumb img,
.innov-card .thumb img { object-fit: cover; }

/* white-background product photography: never crop, keep breathing room */
.prod-card .thumb { background: #fff; }
.prod-card .thumb img { object-fit: contain; padding: 14px; }

/* a real photo standing where a .img-placeholder used to be */
.shot { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line-soft); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.ratio-4x3 { aspect-ratio: 4/3; }
.shot.ratio-16x9 { aspect-ratio: 16/9; }
.shot.ratio-3x4 { aspect-ratio: 3/4; }
.shot.ratio-1x1 { aspect-ratio: 1/1; }
/* product photography on white: contain so nothing is cut off */
.shot.pad { background: #fff; }
.shot.pad img { object-fit: contain; padding: 10px; }

/* gallery wall of unlabelled product shots */
.shot-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shot-wall .shot { aspect-ratio: 1/1; background: #fff; }
.shot-wall .shot img { object-fit: contain; padding: 8px; }
@media (max-width: 960px) { .shot-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .shot-wall { grid-template-columns: repeat(3, 1fr); } }

/* a factual figures strip — the numbers a buyer checks first */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.figures .card { padding: 22px; }
.figures .num { font-family: var(--font-serif); font-size: 30px; color: var(--primary); line-height: 1.1; }
.figures .label { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 960px) { .figures { grid-template-columns: repeat(2, 1fr); } }
