/* ==========================================================================
   DIST/CORE.BUNDLE.CSS — Auto-generated by _core/build.php (NE PAS ÉDITER)
   Modifier uniquement les fichiers sources dans assets/css/ :
   00-tokens.css, 01-reset-grid.css, 02-layout.css, 03-components.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- LAYER: 00-tokens.css --- */
/* ==========================================================================
   00-TOKENS.CSS — Source unique des Couleurs, Thèmes (Light/Dark), Typos & Espacements
   ==========================================================================
   GUIDE RAPIDE :
   - Pour changer le fond de page (body) ou des feuilles en mode JOUR : voir section 1
   - Pour changer le fond de page (body) ou des feuilles en mode NUIT : voir section 2
   - Pour les polices, tailles de texte et espacements : voir section 3
   - Après modification, lancer `_core/build.php` pour régénérer `dist/core.bundle.css`
   ========================================================================== */

/* ==========================================================================
   1. THÈME LIGHT (MODE JOUR) — Couleurs & Surfaces
   ========================================================================== */
:root,
[data-theme="light"],
body[data-sc-theme="light"] {
  /* --- 1.1 Fond du Body (Canvas) & Feuilles principales (Sheets) --- */
  --canvas-bg: #454545;              /* Fond général du <body> (tapis) */
  --sheet-bg: #ffffff;               /* Fond des feuilles / sections principales */
  --sheet-text: #111212;             /* Couleur du texte principal */
  --sheet-muted: #565a56;            /* Couleur du texte secondaire / légendes */
  --sheet-line: rgba(0, 0, 0, 0.12);
  --sheet-line-strong: rgba(0, 0, 0, 0.18);
  --sheet-border: rgba(0, 0, 0, 0.14);
  --sheet-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --quicknav-bg: rgba(255, 255, 255, 0.96);

  /* --- 1.2 Couleurs de Marque & Accents --- */
  --estech-red: #ff1e32;
  --estech-acid: #ff1e32;
  --accent: #ff1e32;
  --accent-soft: rgba(255, 30, 50, 0.08);
  --accent-glow: rgba(255, 30, 50, 0.22);

  /* --- 1.3 Panneaux, Cartes & Surfaces interactives --- */
  --surface-subtle: #f8f9fa;
  --surface-hover: #ffffff;
  --surface-media: #eef0f2;
  --surface-elevated: #ffffff;
  --card-bg: #f8f9fa;
  --card-bg-hover: #ffffff;
  --card-border: rgba(0, 0, 0, 0.10);
  --card-border-hover: rgba(255, 74, 10, 0.55);
  --card-shadow-hover: 0 18px 38px rgba(0, 0, 0, 0.13);
  --home-card-bg: #fbfbfa;

  /* --- 1.4 Boutons, Badges (Pills) & Contrôles --- */
  --cta-bg: #111212;
  --cta-text: #ffffff;
  --cta-bg-hover: #ff1e32;
  --btn-border: rgba(0, 0, 0, 0.18);
  --btn-bg: rgba(0, 0, 0, 0.03);
  --pill-bg: #f3f4f4;
  --pill-border: rgba(0, 0, 0, 0.08);

  /* --- 1.5 Spécificités Showcase & Cartouche Technique (Jour) --- */
  --sc-hero-desc: #454845;
  --sc-hero-span: #7c807c;
  --sc-hero-note-bg: rgba(255, 255, 255, 0.58);
  --sc-year-bg: rgba(255, 255, 255, 0.88);
  --sc-year-ink: #111212;
  --cartouche-bg: #ffffff;
  --cartouche-border: #b0b0b0;
  --cartouche-divider: #d9d9d9;
  --crop-mark-color: #111111;
  --crop-meta-ink: #64748b;
  --frame-border: rgba(0, 0, 0, 0.14);
  --gauge-track: #e2e5e9;

  /* --- 1.6 Dégradés de fondu (Jour) --- */
  --hero-art-grad-desktop: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 20%, rgba(255, 255, 255, 0) 50%);
  --hero-art-grad-mobile: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 20%, rgba(255, 255, 255, 0) 50%);
  --card-thumb-grad: linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, 0.42) 100%);
  --fade-right-grad: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 85%);
  --sc-track-fade: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0) 100%);
  --sc-card-media-grad: linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0%, transparent 35%);
  --hj-grad-right: linear-gradient(90deg, #ffffff 0%, #ffffff 34%, rgba(255, 255, 255, 0.94) 45%, rgba(255, 255, 255, 0.42) 62%, rgba(255, 255, 255, 0) 78%);
  --hj-grad-left: linear-gradient(270deg, #ffffff 0%, #ffffff 34%, rgba(255, 255, 255, 0.94) 46%, rgba(255, 255, 255, 0.42) 64%, rgba(255, 255, 255, 0) 80%);
  --hj-grad-mobile: linear-gradient(0deg, #ffffff 28%, rgba(255, 255, 255, 0.88) 65%, rgba(255, 255, 255, 0.15) 100%);
  --hj-grad-contact-mobile: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.28) 78%, transparent 100%);
  --process-grad-desktop: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(248, 249, 250, 0.45) 62%, rgba(248, 249, 250, 0.92) 84%, #f8f9fa 100%), linear-gradient(0deg, #f8f9fa 0%, transparent 12%, transparent 88%, #f8f9fa 100%);
  --process-grad-mobile: linear-gradient(180deg, transparent 0%, transparent 48%, rgba(248, 249, 250, 0.45) 68%, rgba(248, 249, 250, 0.92) 86%, #f8f9fa 100%);
  --jumbo-grad: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.28) 78%, rgba(255, 255, 255, 0.10) 100%), linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0.45) 45%, rgba(11, 12, 12, 0.05) 75%, #ffffff 100%);
}

/* ==========================================================================
   2. THÈME DARK (MODE NUIT) — Couleurs & Surfaces
   ========================================================================== */
[data-theme="dark"],
body[data-sc-theme="dark"] {
  /* --- 2.1 Fond du Body (Canvas) & Feuilles principales (Sheets) --- */
  --canvas-bg: #9d9b9b;              /* Fond général du <body> en mode sombre */
  --sheet-bg: #0b0c0c;               /* Fond des feuilles / sections en mode sombre */
  --sheet-text: #f5f3ee;             /* Couleur du texte principal */
  --sheet-muted: #a4a7a3;            /* Couleur du texte secondaire / légendes */
  --sheet-line: rgba(255, 255, 255, 0.12);
  --sheet-line-strong: rgba(255, 255, 255, 0.22);
  --sheet-border: rgba(255, 255, 255, 0.14);
  --sheet-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  --quicknav-bg: rgba(11, 12, 12, 0.94);

  /* --- 2.2 Couleurs de Marque & Accents --- */
  --accent: #ff1e32;
  --accent-soft: rgba(255, 30, 50, 0.14);
  --accent-glow: rgba(255, 30, 50, 0.30);

  /* --- 2.3 Panneaux, Cartes & Surfaces interactives --- */
  --surface-subtle: #141616;
  --surface-hover: #1c1e1e;
  --surface-media: #181a1a;
  --surface-elevated: #141616;
  --card-bg: #141616;
  --card-bg-hover: #1b1e1e;
  --card-border: rgba(255, 255, 255, 0.10);
  --card-border-hover: rgba(255, 74, 10, 0.65);
  --card-shadow-hover: 0 20px 44px rgba(0, 0, 0, 0.65);
  --home-card-bg: #121414;

  /* --- 2.4 Boutons, Badges (Pills) & Contrôles --- */
  --cta-bg: #f5f3ee;
  --cta-text: #0b0c0c;
  --cta-bg-hover: #ff1e32;
  --btn-border: rgba(255, 255, 255, 0.18);
  --btn-bg: rgba(255, 255, 255, 0.04);
  --pill-bg: #171919;
  --pill-border: rgba(255, 255, 255, 0.10);

  /* --- 2.5 Spécificités Showcase & Cartouche Technique (Nuit) --- */
  --sc-hero-desc: #c5c8c3;
  --sc-hero-span: #7e817e;
  --sc-hero-note-bg: rgba(11, 12, 12, 0.52);
  --sc-year-bg: rgba(11, 12, 12, 0.78);
  --sc-year-ink: #f4f3ee;
  --cartouche-bg: #121414;
  --cartouche-border: rgba(255, 255, 255, 0.28);
  --cartouche-divider: rgba(255, 255, 255, 0.12);
  --crop-mark-color: rgba(244, 243, 238, 0.82);
  --crop-meta-ink: #94a3b8;
  --frame-border: rgba(255, 255, 255, 0.16);
  --gauge-track: #262929;

  /* --- 2.6 Dégradés de fondu (Nuit) --- */
  --hero-art-grad-desktop: linear-gradient(90deg, #0b0c0c 0%, rgba(11, 12, 12, 0.78) 20%, rgba(11, 12, 12, 0) 50%);
  --hero-art-grad-mobile: linear-gradient(180deg, #0b0c0c 0%, rgba(11, 12, 12, 0.78) 20%, rgba(11, 12, 12, 0) 50%);
  --card-thumb-grad: linear-gradient(180deg, rgba(11, 12, 12, 0) 52%, rgba(0, 0, 0, 0.78) 100%);
  --fade-right-grad: linear-gradient(90deg, rgba(11, 12, 12, 0), #0b0c0c 85%);
  --sc-track-fade: linear-gradient(270deg, #0b0c0c 0%, rgba(11, 12, 12, 0.85) 38%, rgba(11, 12, 12, 0) 100%);
  --sc-card-media-grad: linear-gradient(0deg, rgba(7, 8, 8, 0.65) 0%, transparent 50%);
  --hj-grad-right: linear-gradient(90deg, #0b0c0c 0%, #0b0c0c 34%, rgba(11, 12, 12, 0.94) 45%, rgba(11, 12, 12, 0.42) 62%, rgba(11, 12, 12, 0) 78%);
  --hj-grad-left: linear-gradient(270deg, #0b0c0c 0%, #0b0c0c 34%, rgba(11, 12, 12, 0.94) 46%, rgba(11, 12, 12, 0.42) 64%, rgba(11, 12, 12, 0) 80%);
  --hj-grad-mobile: linear-gradient(0deg, #0b0c0c 28%, rgba(11, 12, 12, 0.88) 65%, rgba(11, 12, 12, 0.15) 100%);
  --hj-grad-contact-mobile: linear-gradient(180deg, #0b0c0c 20%, rgba(11, 12, 12, 0.88) 52%, rgba(11, 12, 12, 0.28) 78%, transparent 100%);
  --process-grad-desktop: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(20, 22, 22, 0.45) 62%, rgba(20, 22, 22, 0.92) 84%, #141616 100%), linear-gradient(0deg, #141616 0%, transparent 12%, transparent 88%, #141616 100%);
  --process-grad-mobile: linear-gradient(180deg, transparent 0%, transparent 48%, rgba(20, 22, 22, 0.45) 68%, rgba(20, 22, 22, 0.92) 86%, #141616 100%);
  --jumbo-grad: radial-gradient(circle at 50% 50%, rgba(11, 12, 12, 0.92) 0%, rgba(11, 12, 12, 0.78) 42%, rgba(11, 12, 12, 0.28) 78%, rgba(11, 12, 12, 0.10) 100%), linear-gradient(0deg, #0b0c0c 0%, rgba(11, 12, 12, 0.45) 45%, rgba(11, 12, 12, 0.25) 75%, #0b0c0c 100%);
}

/* ==========================================================================
   3. ÉCHELLES GLOBALES — Typographie, Espacements & Dimensions
   ========================================================================== */
:root {
  /* --- 3.1 Familles de polices --- */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-space: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* --- 3.2 Échelle typographique fluide --- */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: clamp(1.35rem, 2vw, 1.75rem);
  --text-3xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 4.5vw, 4.125rem);
  --text-hero: clamp(2.75rem, 6vw, 5.5rem);

  /* --- 3.3 Échelle d'espacement (base 4px / 0.25rem) --- */
  --space-0: 0px;
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */

  /* --- 3.4 Cadres, Feuilles & Marges de mise en page --- */
  --max-width: 1480px;
  --sheet-max: 1720px;
  --wrap-gutter: clamp(22px, 4.2vw, 64px);
  --sheet-outer-margin: clamp(14px, 2.4vw, 38px);
  --sheet-side-margin: var(--sheet-outer-margin);
  --sheet-gap: clamp(18px, 2vw, 28px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- 3.5 Dimensions Cartouche Technique (Showcase Article) --- */
  --layout-gap: 40px;
  --cartouche-width: 315px;
  --crop-mark-len: 16px;
  --crop-mark-offset: 8px;
}

/* ==========================================================================
   4. ALIAS SÉMANTIQUES AUTOMATIQUES (Briques, Showcase, Blog)
   Héritent dynamiquement des tokens de thème ci-dessus (ne pas modifier ici)
   ========================================================================== */
:root,
[data-theme="light"],
[data-theme="dark"],
body[data-sc-theme="light"],
body[data-sc-theme="dark"] {
  /* Alias Briques Globales / Home (--home-*) */
  --home-canvas: var(--canvas-bg);
  --home-sheet-bg: var(--sheet-bg);
  --home-ink: var(--sheet-text);
  --home-muted: var(--sheet-muted);
  --home-line: var(--sheet-line);
  --home-line-hover: var(--sheet-line-strong);
  --home-panel: var(--surface-subtle);
  --home-acid: var(--estech-acid);
  --home-outer-margin: var(--sheet-outer-margin);
  --home-section-gap: var(--sheet-gap);
  --home-sheet-max: var(--sheet-max);

  /* Alias Showcase Hub & Articles (--sc-*) */
  --sc-canvas: var(--canvas-bg);
  --sc-sheet-bg: var(--sheet-bg);
  --sc-quicknav-bg: var(--quicknav-bg);
  --sc-panel: var(--surface-subtle);
  --sc-panel-hover: var(--surface-hover);
  --sc-media-bg: var(--surface-media);
  --sc-ink: var(--sheet-text);
  --sc-muted: var(--sheet-muted);
  --sc-line: var(--sheet-line);
  --sc-line-hover: rgba(255, 74, 10, 0.65);
  --sc-sheet-border: var(--sheet-border);
  --sc-btn-border: var(--btn-border);
  --sc-btn-bg: var(--btn-bg);
  --sc-primary-bg: var(--cta-bg);
  --sc-primary-ink: var(--cta-text);
  --sc-pill-bg: var(--pill-bg);
  --sc-pill-border: var(--pill-border);
  --sc-surface-elevated: var(--surface-elevated);
  --sc-accent: var(--estech-acid);
  --sc-hero-art-grad-desktop: var(--hero-art-grad-desktop);
  --sc-hero-art-grad-mobile: var(--hero-art-grad-mobile);
  --sc-outer-margin: var(--sheet-outer-margin);
  --sc-section-gap: var(--sheet-gap);
  --sc-sheet-max: var(--sheet-max);
  --sc-sheet-width: min(calc(100vw - (var(--sc-outer-margin) * 2)), var(--sc-sheet-max));
  --sc-gutter: var(--wrap-gutter);
  --sc-max: var(--max-width);

  /* Alias Blog Hub & Articles (--blog-*) */
  --blog-canvas: var(--canvas-bg);
  --blog-sheet-bg: var(--sheet-bg);
  --blog-quicknav-bg: var(--quicknav-bg);
  --blog-panel: var(--surface-subtle);
  --blog-panel-hover: var(--surface-hover);
  --blog-media-bg: var(--surface-media);
  --blog-ink: var(--sheet-text);
  --blog-muted: var(--sheet-muted);
  --blog-line: var(--sheet-line);
  --blog-sheet-border: var(--sheet-border);
  --blog-btn-border: var(--btn-border);
  --blog-pill-bg: var(--pill-bg);
  --blog-pill-border: var(--pill-border);
  --blog-accent: var(--estech-acid);
  --blog-outer-margin: var(--sheet-outer-margin);
  --blog-section-gap: var(--sheet-gap);
  --blog-sheet-max: var(--sheet-max);
  --blog-gutter: var(--wrap-gutter);
  --blog-max: var(--max-width);
}

/* --- LAYER: 01-reset-grid.css --- */
/* ==========================================================================
   01-RESET-GRID.CSS — Modern CSS Backbone, Reset & Tailwind-Inspired Utilities
   Replaces 310 KB Bootstrap with ~6 KB of clean, token-driven native CSS.
   ========================================================================== */

/* --- 1. Modern Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background-color: var(--canvas-bg);
  color: var(--sheet-text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  flex: 1 0 auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
}

/* --- 2. Containers & Wrappers --- */
.wrap {
  width: min(calc(100% - (var(--wrap-gutter) * 2)), var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: min(calc(100% - 3rem), 1320px);
  margin-left: auto;
  margin-right: auto;
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* --- 3. Modern CSS Grid & Flex Backbone (Tailwind-like ergonomics) --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 1200px) {
  .grid-cols-6,
  .grid-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-cols-6,
  .grid-cols-5,
  .grid-cols-4,
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .md\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-cols-6,
  .grid-cols-5,
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Gap Utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* --- 4. Legacy 12-Col Grid Compatibility (for Footer & Institutional Blocks) --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-2 { width: 16.666667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333333%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-12 { width: 100%; }
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
  .order-md-3 { order: 3; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666667%; }
}

/* --- 5. Spacing, Sizing & Typography Utilities --- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.techno,
.font-mono { font-family: var(--font-mono) !important; }
.font-space { font-family: var(--font-space); }

.text-white { color: #ffffff !important; }
.bg-black { background-color: #000000 !important; }
.small, .smaller { font-size: var(--text-sm); }
.fs-5 { font-size: 1.15rem; font-weight: 600; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-4) !important; }
.mt-4 { margin-top: var(--space-6) !important; }
.mt-5 { margin-top: var(--space-12) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.35rem !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-4) !important; }
.mb-4 { margin-bottom: var(--space-6) !important; }
.mb-5 { margin-bottom: var(--space-12) !important; }
.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-4) !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: var(--space-4) !important; }
.p-4 { padding: var(--space-6) !important; }
.p-5 { padding: var(--space-12) !important; }
.py-3 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-4 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
.py-5 { padding-top: var(--space-12) !important; padding-bottom: var(--space-12) !important; }
.px-3 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-4 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }

.img-fluid { max-width: 100%; height: auto; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* --- LAYER: 02-layout.css --- */
/* ==========================================================================
   02-LAYOUT.CSS — Global Navbar, Page Shell, Section Sheets & Footer
   ========================================================================== */

/* --- Global Header (Always Dark) --- */
header.estech-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 4rem;
  background-color: rgba(17, 17, 17, 0.88);
  -webkit-backdrop-filter: blur(8px) saturate(2);
  backdrop-filter: blur(8px) saturate(2);
  transition: transform 0.3s ease;
  font-size: 15px;
}

body.scrollDown header.estech-navbar {
  transform: translateY(-64px);
}

header.estech-navbar .header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0.5em 2em;
}

header.estech-navbar .logo {
  display: flex;
  align-items: center;
  min-width: 120px;
}

header.estech-navbar .logo img {
  height: 2.3rem;
  width: auto;
  max-width: 120px;
}

/* Mobile Hamburger */
.header-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}

.header-hamburger span {
  display: block;
  height: 2px;
  width: 28px;
  background: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

header.estech-navbar nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #111111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  padding: 1em 0;
}

header.estech-navbar nav.open {
  display: flex;
}

header.estech-navbar nav ul {
  list-style: none;
  width: 100%;
}

header.estech-navbar nav ul li {
  margin: 0.5em 0;
  text-align: center;
}

header.estech-navbar nav ul li a {
  color: rgba(255, 255, 255, 0.86);
  padding: 0.6em 1em;
  display: inline-block;
  position: relative;
  font-weight: 400;
  transition: color 0.2s ease;
}

header.estech-navbar nav ul li a:hover,
header.estech-navbar nav ul li a.active {
  color: #ffffff;
}

header.estech-navbar nav ul li a.active {
  font-weight: 700;
}

header.estech-navbar nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.8em;
  right: 0.8em;
  height: 2px;
  background-color: var(--estech-red);
}

@media (min-width: 900px) {
  .header-hamburger {
    display: none;
  }
  header.estech-navbar nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  header.estech-navbar nav ul {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    width: auto;
  }
  header.estech-navbar nav ul li {
    margin: 0;
  }
}

/* --- Sheet Layout System (Sections detached over Dark Canvas) --- */
.sheet-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sheet-gap);
  padding: var(--sheet-gap) 0;
}

.estech-sheet {
  background: var(--sheet-bg);
  color: var(--sheet-text);
  margin-left: var(--sheet-side-margin);
  margin-right: var(--sheet-side-margin);
  box-shadow: var(--sheet-shadow);
  border: 1px solid var(--sheet-line);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Global Footer (Always Dark) --- */
footer.estech-footer {
  background-color: #000000;
  color: #cacaca;
  padding: 3.5rem 0;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

footer.estech-footer h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

footer.estech-footer a {
  color: #cacaca;
  transition: color 0.2s ease;
}

footer.estech-footer a:hover {
  color: var(--estech-red);
  text-decoration: underline;
}

footer.estech-footer .loc {
  color: #ffffff;
  font-weight: 600;
  margin-top: 0.75rem;
}

footer.estech-footer #pictos {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

footer.estech-footer #pictos img {
  display: inline-block;
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

footer.estech-footer #pictos a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* --- Floating Day / Night Theme Toggle Button (Bottom-Left) --- */
.estech-theme-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #141616;
  color: #f5f3ee;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .estech-theme-fab {
  background: #ffffff;
  color: #111212;
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.estech-theme-fab:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.estech-theme-fab:active {
  transform: scale(0.96);
}

.estech-theme-fab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.estech-theme-fab:hover svg {
  transform: rotate(15deg);
}

[data-theme="light"] .estech-theme-fab .icon-sun {
  display: none;
}
[data-theme="light"] .estech-theme-fab .icon-moon {
  display: block;
}

[data-theme="dark"] .estech-theme-fab .icon-sun {
  display: block;
}
[data-theme="dark"] .estech-theme-fab .icon-moon {
  display: none;
}

/* --- LAYER: 03-components.css --- */
/* ==========================================================================
   03-COMPONENTS.CSS — Global Modular Design System Bricks & UI Components
   Inherits all colors, themes & tokens from 00-tokens.css
   ========================================================================== */

/* --- 1. Typography Primitives & Global Techno Class (JetBrains Mono) --- */
.techno,
.eyebrow,
.sc-eyebrow,
.blog-eyebrow,
.inst-eyebrow,
.use-case-tag,
.cta,
.sc-btn,
.inst-btn,
.sc-filter-btn,
.blog-filter-btn,
.sc-back-pill,
.blog-back-pill {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.96;
  font-weight: 900;
}

.jumboText {
  font-size: clamp(42px, 10vw, 110px);
}

.muted {
  color: var(--sheet-muted);
}

/* --- 2. Primary & Secondary CTAs --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid var(--sheet-line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sheet-text);
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.cta.primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
}

.cta.primary:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.cta.secondary {
  border-color: var(--sheet-line-strong);
  color: var(--accent);
}

.cta.secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- 3. Detached Sheets Canvas Stack (.home-main-canvas) --- */
#main-content.home-main-canvas {
  margin-top: 0;
  background-color: var(--home-canvas);
  padding: var(--home-section-gap) var(--home-outer-margin);
  display: flex;
  flex-direction: column;
  gap: var(--home-section-gap);
  transition: background-color 0.3s ease;
}

#main-content.home-main-canvas > header,
#main-content.home-main-canvas > section {
  width: 100%;
  max-width: var(--home-sheet-max);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--home-sheet-bg);
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
  --wrap-gutter: clamp(22px, 4.2vw, 64px);
  --max-width: 1480px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* --- 4. Ticker Ribbon (Discreet Mono Typography Overlay) --- */
.ticker {
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
  user-select: none;
}

.hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--home-ink);
  opacity: 0.72;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-group .ticker-item {
  margin-right: 28px;
}

.ticker-group i {
  color: var(--home-muted);
  opacity: 0.65;
  font-style: normal;
  margin-right: 28px;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation-play-state: paused;
  }
}

/* --- 5. Section Headers --- */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 900;
  margin: 10px 0 0;
  color: var(--home-ink);
}

.section-head .desc {
  max-width: 620px;
  margin-left: auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--home-muted);
}

/* --- 6. Half-Jumbos (Image Right / Image Left + Directional Gradient) --- */
.template-half-jumbo {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hj-media {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72%;
  z-index: 1;
}

.hj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hj-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hj-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
}

.hj-content {
  width: 54%;
  padding: 76px 0;
}

#hero .hj-content {
  padding-bottom: 108px;
}

.template-half-jumbo.image-right .hj-media {
  right: 0;
}
.template-half-jumbo.image-right .hj-gradient {
  background: var(--hj-grad-right);
}
.template-half-jumbo.image-right .hj-content-wrap {
  justify-content: flex-start;
}

.template-half-jumbo.image-left .hj-media {
  left: 0;
}
.template-half-jumbo.image-left .hj-gradient {
  background: var(--hj-grad-left);
}
.template-half-jumbo.image-left .hj-content-wrap {
  justify-content: flex-end;
}

.template-half-jumbo h1 em,
.template-half-jumbo h2 em {
  padding: 0 12px 7px 6px;
  background-color: var(--home-ink);
  color: var(--home-sheet-bg);
  display: inline-block;
  font-style: normal;
  text-transform: capitalize;
}

@media (max-width: 900px) {
  .hj-media {
    width: 100%;
  }
  .hj-content {
    width: 100%;
    padding: 60px 10px 40px;
  }
  #hero .hj-content {
    padding-bottom: 76px;
  }
  .template-half-jumbo.image-right .hj-gradient,
  .template-half-jumbo.image-left .hj-gradient {
    background: var(--hj-grad-mobile);
  }
  .template-half-jumbo.image-right .hj-content-wrap,
  .template-half-jumbo.image-left .hj-content-wrap {
    align-items: flex-end;
    min-height: 80vh;
  }
}

/* --- 7. Split Grids & Duo Image Blocks ("Blocs Deux Images") --- */
.template-split-grid,
.equation-grid,
.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.equation-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.equation-image-container img.trim-box {
  width: 100%;
  max-width: 1024px;
  max-height: 658px;
  height: auto;
  object-fit: contain;
}

/* Coherent Two-Image Block (.template-duo-grid) */
.template-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.template-duo-grid.duo-asymmetric {
  grid-template-columns: 1.45fr 0.95fr;
}

.template-duo-grid.duo-asymmetric-reverse {
  grid-template-columns: 0.95fr 1.45fr;
}

.duo-card {
  display: flex;
  flex-direction: column;
  background: var(--home-card-bg);
  border: 1px solid var(--home-line);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.duo-card:hover {
  border-color: var(--home-line-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.duo-media {
  position: relative;
  width: 100%;
  height: clamp(280px, 34vw, 460px);
  overflow: hidden;
  background: var(--home-panel);
}

.duo-media img,
.duo-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.duo-card:hover .duo-media img {
  transform: scale(1.03);
}

.duo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--home-line);
  background: var(--home-sheet-bg);
}

.duo-caption-fig {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

.duo-caption-text {
  font-size: 0.9rem;
  color: var(--home-muted);
  margin: 0;
  text-align: right;
}

@media (max-width: 990px) {
  .template-split-grid,
  .equation-grid,
  .ai-showcase-grid,
  .template-duo-grid,
  .template-duo-grid.duo-asymmetric,
  .template-duo-grid.duo-asymmetric-reverse,
  .section-head {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-head .desc {
    margin-left: 0;
  }
  .equation-text-wrap {
    align-items: flex-start;
    text-align: left;
  }
}

/* --- 8. Modular Cards Grid (2, 3, 4, 5 & 6 Columns via 01-reset-grid.css) --- */
.template-cards-grid {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.t-card {
  display: flex;
  flex-direction: column;
  background: var(--home-card-bg);
  border: 1px solid var(--home-line);
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.t-card:hover {
  transform: translateY(-3px);
  border-color: var(--home-line-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.t-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex-shrink: 0;
}

.t-card-img.img-bottom {
  order: 3;
  border-top: 1px solid var(--home-line);
}

.t-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.t-card-body.order-first {
  order: -1;
}

.t-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-acid);
  margin-bottom: 12px;
}

.t-card-title {
  color: var(--home-ink);
  font-size: clamp(20px, 2.1vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.t-card-text {
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.t-card .cta {
  align-self: flex-start;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(128, 128, 128, 0.08);
  color: var(--home-ink);
}

/* --- 8B. Showcase Cards (Horizontal Scroll 3.5/row + Static Grid) & Tag Filter Pills --- */
.sc-light-sheet {
  width: 100%;
  max-width: var(--sc-sheet-max);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--sc-sheet-bg);
  color: var(--sc-ink);
  border-radius: 0;
  border: 1px solid var(--sc-sheet-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sc-wrap {
  width: min(calc(100% - (var(--sc-gutter) * 2)), var(--sc-max));
  margin-left: auto;
  margin-right: auto;
}

.sc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-accent);
  font-weight: 700;
}

.sc-display {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 900;
}

/* Quick-Jump Numbered Pills (.sc-quicknav-pills / .sc-nav-pill) */
.sc-quicknav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--sc-pill-border);
  background: var(--sc-pill-bg);
  color: var(--sc-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sc-nav-pill:hover,
.sc-nav-pill.active {
  color: var(--sc-primary-ink);
  border-color: var(--sc-primary-bg);
  background: var(--sc-primary-bg);
}

.sc-nav-pill b {
  color: var(--sc-accent);
  font-weight: 700;
  font-size: 10px;
}

/* Tag Filter Pills Bar (.sc-explorer-tags / .sc-filter-btn) */
.sc-explorer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sc-line);
}

.sc-filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--sc-pill-border);
  background: var(--sc-pill-bg);
  color: var(--sc-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-filter-btn.is-major {
  border-color: rgba(255, 74, 10, 0.45);
  color: var(--sc-ink);
  background: rgba(255, 74, 10, 0.07);
}

.sc-filter-btn:hover,
.sc-filter-btn.active {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #ffffff;
}

.sc-filter-btn small {
  opacity: 0.75;
  font-size: 10px;
}

/* Horizontal Scroll Row Header & Controls (3.5 cards per row) */
.sc-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.sc-row-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-row-title-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.sc-row-title {
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 0.98;
  margin: 0;
  color: var(--sc-ink);
  letter-spacing: -0.045em;
  font-weight: 900;
}

.sc-row-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sc-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--sc-pill-bg);
  border: 1px solid var(--sc-pill-border);
  padding: 3px 10px;
  border-radius: 999px;
}

.sc-row-subtitle {
  color: var(--sc-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 4px 0 0;
  max-width: 680px;
}

.sc-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sc-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sc-btn-border);
  background: var(--sc-surface-elevated);
  color: var(--sc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sc-arrow-btn:hover:not(:disabled) {
  border-color: var(--sc-accent);
  background: var(--sc-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.sc-arrow-btn:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.sc-track-outer {
  position: relative;
  width: 100%;
}

.sc-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-left: max(var(--sc-gutter), calc((100% - var(--sc-max)) / 2));
  padding-right: max(var(--sc-gutter), calc((100% - var(--sc-max)) / 2));
  scroll-padding-left: max(var(--sc-gutter), calc((100% - var(--sc-max)) / 2));
  padding-top: 12px;
  padding-bottom: 44px;
  margin-top: -6px;
  margin-bottom: -30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.sc-track::-webkit-scrollbar {
  display: none;
}

.sc-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.sc-track-outer::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  bottom: -30px;
  width: 76px;
  background: var(--sc-track-fade);
  pointer-events: none;
  z-index: 3;
}

/* Showcase Card (.sc-card): 3.45 (~3.5) per row in horizontal track */
.sc-card {
  flex: 0 0 calc((var(--sc-sheet-width) - (var(--sc-gutter) * 2) - 54px) / 3.45);
  max-width: 420px;
  min-width: 230px;
  scroll-snap-align: start;
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: 0 !important;
  overflow: hidden;
  text-decoration: none;
  color: var(--sc-ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  user-select: none;
}

@media (max-width: 1359px) {
  .sc-card {
    flex: 0 0 calc((var(--sc-sheet-width) - (var(--sc-gutter) * 2) - 36px) / 2.55);
  }
}

@media (max-width: 767px) {
  .sc-track {
    gap: 12px;
  }
  .sc-card {
    flex: 0 0 calc((var(--sc-sheet-width) - (var(--sc-gutter) * 2) - 12px) / 1.5);
    max-width: none;
    min-width: 180px;
    border-radius: 0 !important;
  }
}

.sc-card:hover {
  transform: translateY(-4px);
  background: var(--sc-panel-hover);
  border-color: var(--sc-line-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  color: var(--sc-ink);
}

.sc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--sc-media-bg);
  overflow: hidden;
}

.sc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: saturate(0.96);
  pointer-events: none;
}

.sc-card:hover .sc-card-media img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.sc-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sc-card-media-grad);
  pointer-events: none;
}

.sc-card-year {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--sc-year-ink);
  background: var(--sc-year-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--sc-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sc-card-video-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  padding: 0;
  color: var(--sc-year-ink);
  background: var(--sc-year-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid var(--sc-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sc-card-video-badge svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
  display: block;
}

.sc-card:hover .sc-card-video-badge {
  color: var(--sc-accent);
  border-color: var(--sc-line-hover);
}

.sc-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  border-top: 1px solid var(--sc-line);
}

.sc-card-client {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-card-title {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 900;
  color: var(--sc-ink);
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Static Showcase Catalog Grid (4 or 5 columns) */
.sc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.sc-catalog-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sc-catalog-grid .sc-card {
  flex: initial;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.sc-catalog-grid .sc-card-body {
  padding: 11px 13px 13px;
}

.sc-catalog-grid .sc-card-title {
  font-size: clamp(13px, 1.05vw, 15.5px);
}

.sc-catalog-item.is-hidden {
  display: none !important;
}

@media (max-width: 1360px) {
  .sc-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .sc-catalog-grid,
  .sc-catalog-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .sc-catalog-grid,
  .sc-catalog-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .sc-card-body {
    padding: 10px 12px 12px;
  }
}

/* --- 9. Process / Horizontal Package Cards --- */
.process-row-card {
  position: relative;
  overflow: hidden;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  padding: clamp(18px, 2.2vh, 26px) clamp(20px, 2.2vw, 32px);
  display: flex;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-rows-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-row-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 48%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, rgba(0,0,0,0.75) 65%, rgba(0,0,0,0.2) 85%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, rgba(0,0,0,0.75) 65%, rgba(0,0,0,0.2) 85%, transparent 100%);
}

.process-row-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.process-row-bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--process-grad-desktop);
  pointer-events: none;
}

.process-row-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 25% 1.4fr 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  width: 100%;
}

.process-row-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.process-row-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  color: var(--home-acid);
}

.process-row-title {
  color: var(--home-ink);
  font-size: clamp(19px, 1.4vw, 24px);
  font-weight: 900;
}

.process-row-text {
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.process-row-deliverables {
  border-left: 1px solid var(--home-line);
  padding-left: 20px;
}

.process-deliv-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.process-deliv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.process-deliv-list li {
  font-size: 11px;
  color: var(--home-ink);
  display: flex;
  align-items: center;
  gap: 5px;
}

.process-deliv-list li span {
  color: var(--home-acid);
  font-size: 9px;
}

@media (max-width: 991px) {
  .process-row-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    padding-top: clamp(125px, 28vw, 155px);
  }
  .process-row-bg {
    width: 100%;
    height: clamp(190px, 46vw, 230px);
    bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0.75) 68%, rgba(0,0,0,0.2) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0.75) 68%, rgba(0,0,0,0.2) 88%, transparent 100%);
  }
  .process-row-bg-gradient {
    background: var(--process-grad-mobile);
  }
  .process-row-spacer {
    display: none;
  }
  .process-row-content {
    grid-template-columns: 1fr;
  }
  .process-row-deliverables {
    border-left: none;
    border-top: 1px solid var(--home-line);
    padding-left: 0;
    padding-top: 16px;
  }
}

/* --- 10. AI Isolated Visual + Floating Glass Caption Overlay --- */
.ai-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.ai-image-container img.trim-box {
  width: 100%;
  max-width: 500px;
  max-height: 690px;
  object-fit: contain;
}

.ai-caption-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: #ffffffbf;
    /* opacity: 0.94; */
    backdrop-filter: blur(5px);
    border: 1px solid var(--home-line);
    padding: 20px 24px;
    z-index: 2;
}

/* --- 11. Key Figures (.stats) & Client Logos Grid --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.stat {
  padding: 20px 0;
  border-top: 1px solid var(--home-line);
}

.stat b {
  display: block;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 900;
  color: var(--home-ink);
}

.stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 44px 36px;
  align-items: center;
  justify-items: center;
  padding: 24px 0;
}

.template-client-logo {
  max-width: 68px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.template-client-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

[data-theme="dark"] .template-client-logo {
  filter: invert(1) brightness(1.8);
}

[data-theme="light"] .template-client-logo {
  filter: none;
}

/* --- 12. Full-Width Climax Jumbo & Smart Progressive Video --- */
.home-jumbo-wrap {
  position: relative;
  height: 80vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--home-panel);
}

.home-jumbo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-jumbo-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--jumbo-grad);
}

#contact .hj-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.lazy-video {
  background-color: var(--home-panel);
}

.lazy-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: none;
  will-change: opacity;
}

.lazy-video img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.lazy-video.video-loaded video.is-leaving {
  opacity: 1;
  z-index: 2;
  transition: none;
}

.lazy-video.video-loaded video.is-active {
  opacity: 1;
  z-index: 3;
  transition: opacity 0.45s ease-in-out;
}

/* --- 12B. Ken Burns Image Carousel Brick (.kb-carousel) --- */
.kb-carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--home-card-bg);
  border: 1px solid var(--home-line);
  overflow: hidden;
  --kb-duration: 6.2s;
}

.hj-media.kb-carousel {
  position: absolute;
  top: 0;
  bottom: 0;
  border: none;
  background: var(--home-panel);
}

.kb-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 38vw, 500px);
  overflow: hidden;
  background: var(--home-panel);
  flex: 1 1 auto;
}

.hj-media.kb-carousel .kb-stage {
  height: 100%;
}

.kb-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transition: none;
  will-change: opacity;
}

.kb-slide.is-leaving {
  opacity: 1;
  z-index: 2;
  transition: none;
}

.kb-slide.is-active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transition: opacity 1s ease-in-out;
}

.kb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

@keyframes kbZoomInPanLeft {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.11) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes kbZoomOutPanRight {
  0% {
    transform: scale(1.12) translate3d(1.5%, -1%, 0);
  }
  100% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
}

@keyframes kbZoomInPanRight {
  0% {
    transform: scale(1) translate3d(-1%, 1%, 0);
  }
  100% {
    transform: scale(1.11) translate3d(1.5%, -1%, 0);
  }
}

@keyframes kbZoomOutPanLeft {
  0% {
    transform: scale(1.11) translate3d(-1.5%, 1%, 0);
  }
  100% {
    transform: scale(1.01) translate3d(1%, 0, 0);
  }
}

.kb-slide:nth-child(4n+1).is-active img,
.kb-slide:nth-child(4n+1).is-leaving img {
  animation: kbZoomInPanLeft var(--kb-duration, 6.2s) linear forwards;
}

.kb-slide:nth-child(4n+2).is-active img,
.kb-slide:nth-child(4n+2).is-leaving img {
  animation: kbZoomOutPanRight var(--kb-duration, 6.2s) linear forwards;
}

.kb-slide:nth-child(4n+3).is-active img,
.kb-slide:nth-child(4n+3).is-leaving img {
  animation: kbZoomInPanRight var(--kb-duration, 6.2s) linear forwards;
}

.kb-slide:nth-child(4n).is-active img,
.kb-slide:nth-child(4n).is-leaving img {
  animation: kbZoomOutPanLeft var(--kb-duration, 6.2s) linear forwards;
}

@media (prefers-reduced-motion: reduce) {
  .kb-slide.is-active img,
  .kb-slide.is-leaving img {
    animation: none !important;
  }
}

.kb-btn {
  position: absolute;
  bottom: 14px;
  top: auto;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sc-btn-border);
  background: var(--sc-surface-elevated);
  color: var(--sc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: all 0.2s ease;
}

.kb-btn:hover {
  border-color: var(--sc-accent);
  background: var(--sc-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.kb-btn.kb-prev {
  left: auto;
  right: 56px;
}

.kb-btn.kb-next {
  left: auto;
  right: 14px;
}

.kb-dots {
  position: absolute;
  left: 16px;
  bottom: 14px;
  transform: none;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 12, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kb-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.28s ease, background-color 0.28s ease;
}

.kb-dot:hover {
  background: rgba(255, 255, 255, 0.78);
}

.kb-dot.is-active {
  width: 22px;
  background: var(--estech-acid, #ff1e32);
}

.kb-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--home-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--home-card-bg);
}

.kb-caption-fig {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}

.kb-caption-text {
  font-size: 13px;
  color: var(--home-muted);
  margin: 0;
  text-align: right;
}

/* --- 13. Design System Demonstrator Helpers (template.html) --- */
.tpl-spec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  margin-bottom: 36px;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-muted);
}

.tpl-spec-bar strong {
  color: var(--home-ink);
  font-weight: 700;
}

.tpl-code-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--home-sheet-bg);
  border: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.tpl-theme-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tpl-theme-sample {
  padding: 36px;
  background: var(--home-sheet-bg);
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 900px) {
  .tpl-theme-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 14. Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* --- 15. Custom Estech HTML5 Video Player (.evp-*) — Zero Safari Hover Darkening --- */
.evp-player {
  position: relative;
  background: #000000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.evp-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

/* Suppress Safari/WebKit native shadow-DOM overlay & full-video darkening */
.evp-player video::-webkit-media-controls,
.evp-player video::-webkit-media-controls-enclosure,
.evp-player video::-webkit-media-controls-panel,
.evp-player video::-webkit-media-controls-overlay-play-button,
.sc-video-modal-stage video::-webkit-media-controls,
.sc-video-modal-stage video::-webkit-media-controls-enclosure,
.sc-video-modal-stage video::-webkit-media-controls-panel,
.sc-video-modal-stage video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.evp-player:fullscreen,
.evp-player:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evp-player:fullscreen video,
.evp-player:-webkit-full-screen video {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
}

/* Center Play Badge (only visible when paused — zero full-video tint) */
.evp-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 22;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 12, 12, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.evp-center-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.evp-center-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--estech-acid, #ff1e32);
  border-color: var(--estech-acid, #ff1e32);
}

.evp-player.is-playing .evp-center-play,
.sc-video-modal-stage.is-playing .evp-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
}

/* Bottom Control Bar */
.evp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 9, 9, 0.82) 100%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sc-video-modal .evp-controls {
  padding: 18px 26px 18px;
}

.evp-player.is-playing.is-idle .evp-controls,
.sc-video-modal.is-idle .evp-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.evp-player.is-playing.is-idle video {
  cursor: none;
}

.evp-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 18, 18, 0.72);
  color: #f5f3ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.evp-btn:hover {
  background: var(--estech-acid, #ff1e32);
  border-color: var(--estech-acid, #ff1e32);
  color: #ffffff;
  transform: scale(1.05);
}

.evp-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

/* Play / Pause Icon States */
.evp-btn-play .icon-pause {
  display: none;
}
.evp-player.is-playing .evp-btn-play .icon-play,
.sc-video-modal-stage.is-playing .evp-btn-play .icon-play {
  display: none;
}
.evp-player.is-playing .evp-btn-play .icon-pause,
.sc-video-modal-stage.is-playing .evp-btn-play .icon-pause {
  display: block;
}

/* Mute / Unmute Icon States */
.evp-btn-mute .icon-muted {
  display: none;
}
.evp-btn-mute.is-muted {
  border-color: var(--estech-acid, #ff1e32);
  color: var(--estech-acid, #ff1e32);
}
.evp-btn-mute.is-muted:hover {
  color: #ffffff;
}
.evp-btn-mute.is-muted .icon-unmuted {
  display: none;
}
.evp-btn-mute.is-muted .icon-muted {
  display: block;
}

/* Fullscreen Icon States */
.evp-btn-fs .icon-exit-fs {
  display: none;
}
.evp-player:fullscreen .evp-btn-fs .icon-enter-fs,
.evp-player:-webkit-full-screen .evp-btn-fs .icon-enter-fs,
.sc-video-modal:fullscreen .evp-btn-fs .icon-enter-fs,
.sc-video-modal:-webkit-full-screen .evp-btn-fs .icon-enter-fs {
  display: none;
}
.evp-player:fullscreen .evp-btn-fs .icon-exit-fs,
.evp-player:-webkit-full-screen .evp-btn-fs .icon-exit-fs,
.sc-video-modal:fullscreen .evp-btn-fs .icon-exit-fs,
.sc-video-modal:-webkit-full-screen .evp-btn-fs .icon-exit-fs {
  display: block;
}

/* Interactive Timeline / Scrubber */
.evp-timeline {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.evp-timeline-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: visible;
  transition: height 0.15s ease;
}

.evp-timeline:hover .evp-timeline-track {
  height: 6px;
}

.evp-timeline-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.evp-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--estech-acid, #ff1e32);
  pointer-events: none;
}

.evp-timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--estech-acid, #ff1e32);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.evp-timeline:hover .evp-timeline-thumb,
.evp-timeline.is-scrubbing .evp-timeline-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.evp-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 238, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .evp-controls,
  .sc-video-modal .evp-controls {
    gap: 8px;
    padding: 10px 12px;
  }
  .evp-time {
    font-size: 10px;
  }
}

/* ==========================================================================
   14. GLOBAL PURE-CSS CROP MARKS / TRIM BOX (.trim-box & .trim-inner-box)
   Uses CSS border-image instead of injecting 8 DOM elements (.crop-mark)
   ========================================================================== */
.trim-box {
  border: 1px solid transparent;
  border-image: url(/validation/medias/images/trim-box.png) 32 !important;
  border-image-outset: 14px !important;
  border-image-width: 16px !important;
  transition: border-image-outset 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.trim-box:hover,
.t-card.trim-box:hover,
.sc-card.trim-box:hover,
.sc-related-card.trim-box:hover,
.block-image-frame.trim-box:hover,
.duo-card.trim-box:hover,
.ai-image-container:hover .trim-box,
.equation-image-container:hover .trim-box {
  transform: none !important;
  border-image-outset: 0px !important;
}

[data-bs-theme="dark"] .trim-box,
[data-theme="dark"] .trim-box,
.trim-box[data-bs-theme="dark"],
.trim-box[data-theme="dark"] {
  border-image-source: url(/validation/medias/images/trim-box-white.png) !important;
}

[data-bs-theme="light"] .trim-box,
[data-theme="light"] .trim-box,
.trim-box[data-bs-theme="light"],
.trim-box[data-theme="light"] {
  border-image-source: url(/validation/medias/images/trim-box.png) !important;
}

.trim_inner_box,
.trim-inner-box {
  border: 1px solid transparent;
  border-image: url(/validation/medias/images/trim-inner-box.png) 32 !important;
  border-image-outset: 14px !important;
  border-image-width: 16px !important;
  transition: border-image-outset 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.trim_inner_box:hover,
.trim-inner-box:hover {
  transform: none !important;
  border-image-outset: 0px !important;
}

[data-bs-theme="dark"] .trim_inner_box,
[data-bs-theme="dark"] .trim-inner-box,
[data-theme="dark"] .trim_inner_box,
[data-theme="dark"] .trim-inner-box,
.trim_inner_box[data-bs-theme="dark"],
.trim-inner-box[data-bs-theme="dark"],
.trim_inner_box[data-theme="dark"],
.trim-inner-box[data-theme="dark"] {
  border-image-source: url(/validation/medias/images/trim-inner-box-white.png);
}

[data-bs-theme="light"] .trim_inner_box,
[data-bs-theme="light"] .trim-inner-box,
[data-theme="light"] .trim_inner_box,
[data-theme="light"] .trim-inner-box,
.trim_inner_box[data-bs-theme="light"],
.trim-inner-box[data-bs-theme="light"],
.trim_inner_box[data-theme="light"],
.trim-inner-box[data-theme="light"] {
  border-image-source: url(/validation/medias/images/trim-inner-box.png);
}
