/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhGq3-OXg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhPq3-OXg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhIq3-OXg.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhEq3-OXg.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhFq3-OXg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhGq3-OXg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhPq3-OXg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhIq3-OXg.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhEq3-OXg.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhFq3-OXg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/L0x5DF4xlVMF-BfR8bXMIjhLq38.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Surfaces (Dark Mode - Default) */
  --surface-canvas: #06090e;
  --surface-primary: #0b1118;
  --surface-secondary: #101924;
  --surface-elevated: #162232;
  --surface-hover: #1c2b3e;

  /* Legacy variables mappings for compatibility */
  --bg-navy: var(--surface-canvas);
  --bg-navy-rgb: 6, 9, 14;
  --light-navy: var(--surface-primary);
  --lightest-navy: var(--surface-elevated);
  --slate: var(--text-secondary);
  --light-slate: var(--text-primary);
  --lightest-slate: #f8fafc;
  --white: #ffffff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-strong: #23364f;
  --border-focus: #00e5ff;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #06090e;

  /* Fonts */
  --font-display: 'IBM Plex Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --layout-wide: 1280px;
  --layout-reading: 760px;
  --section-pad: clamp(64px, 7.5vw, 115px);

  /* Brand Palette (RPLL) */
  --brand-navy: #0a2540;
  --brand-primary: #0052cc;
  --brand-signal: #00e5ff;
  --brand-signal-rgb: 0, 229, 255;
  --brand-signal-subtle: rgba(0, 229, 255, 0.08);
  --teal: var(--brand-signal);
  --teal-rgb: 0, 229, 255;

  /* Semantic States */
  --state-success: #10b981;
  --state-warning: #f59e0b;
  --state-danger: #ef4444;
  --state-info: #0284c7;

  /* Dimensions & Radius */
  --nav-height: 80px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Subtle Surfaces */
  --glass-bg: rgba(6, 9, 14, 0.88);
  --glass-border: var(--border-subtle);
  --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: var(--transition-normal);
}

[data-theme='light'] {
  /* Surfaces (Light Mode) */
  --surface-canvas: #f8fafc;
  --surface-primary: #ffffff;
  --surface-secondary: #f1f5f9;
  --surface-elevated: #e2e8f0;
  --surface-hover: #cbd5e1;

  /* Legacy mappings */
  --bg-navy: var(--surface-canvas);
  --bg-navy-rgb: 248, 250, 252;
  --light-navy: var(--surface-primary);
  --lightest-navy: var(--surface-secondary);
  --slate: var(--text-secondary);
  --light-slate: var(--text-primary);
  --lightest-slate: #0f172a;
  --white: #06090e;

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-strong: #94a3b8;
  --border-focus: #0052cc;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverted: #ffffff;

  /* Brand Palette */
  --brand-navy: #0a2540;
  --brand-primary: #0052cc;
  --brand-signal: #0284c7;
  --brand-signal-rgb: 2, 132, 199;
  --brand-signal-subtle: rgba(2, 132, 199, 0.08);
  --teal: var(--brand-signal);
  --teal-rgb: 2, 132, 199;

  /* Subtle Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: var(--border-subtle);
  --glass-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  background-color: var(--surface-canvas);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

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

::selection {
  background-color: var(--brand-signal-subtle);
  color: var(--brand-signal);
}

/* Precision Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-canvas);
}

::-webkit-scrollbar-thumb {
  background-color: var(--surface-elevated);
  border: 2px solid var(--surface-canvas);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--surface-hover);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.container {
  width: 100%;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  letter-spacing: -0.025em;
}

/* Header & Navigation */
.header {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Logo SVG wrapper — fits SVG served inline from rpll-logo.svg */
.logo-svg-wrap {
  display: flex;
  align-items: center;
  height: 38px;
}

.logo-svg-wrap svg,
.logo-svg {
  height: 38px;
  width: auto;
  display: block;
  color: var(--text-primary); /* drives currentColor inside the SVG */
}

/* Classes used inside rpll-logo.svg <style> block */
.logo-svg-wrap .rpll-brand-text,
.logo-svg .rpll-brand-text {
  fill: var(--text-primary);
}

.logo-svg-wrap .rpll-sub-text,
.logo-svg .rpll-sub-text {
  fill: var(--text-muted);
}

[data-theme='light'] .logo-svg-wrap,
[data-theme='light'] .logo-svg {
  color: #0f172a;
}

[data-theme='dark'] .logo-svg-wrap,
[data-theme='dark'] .logo-svg {
  color: #f8fafc;
}

/* Footer logo wrapper */
.footer-logo-wrap {
  height: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.footer-logo-wrap svg {
  height: 32px;
  width: auto;
}

/* Mobile theme button alignment (replaces style="display:flex;justify-content:center") */
.theme-btn-mobile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

/* Social icon inline alignment (replaces style on LinkedIn SVG) */
.icon-social {
  vertical-align: middle;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background-color: var(--surface-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn, .lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
  color: var(--brand-signal);
  border-color: var(--border-medium);
  background-color: var(--surface-elevated);
}

.lang-toggle-btn {
  width: auto;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
}

.hamburger div {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition-fast);
}

.hamburger.toggle .line1 {
  transform: rotate(-45deg) translate(-4px, 5px);
}
.hamburger.toggle .line2 {
  opacity: 0;
}
.hamburger.toggle .line3 {
  transform: rotate(45deg) translate(-4px, -5px);
}

.mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-only {
    display: block !important;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    height: calc(100vh - var(--nav-height));
    background-color: var(--surface-canvas);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 280px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    padding: 24px 20px;
    gap: 8px;
    z-index: 999;
  }

  .nav-links.nav-active {
    transform: translateX(0%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  .hamburger {
    display: block;
  }

  .nav-actions .theme-toggle-btn,
  .nav-actions .lang-toggle-btn {
    display: none;
  }
}

/* Footer Layout */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-primary);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-signal);
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: #0043a8;
  border-color: #0043a8;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background-color: var(--surface-secondary);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-signal {
  background-color: var(--brand-signal-subtle);
  color: var(--brand-signal);
  border-color: var(--brand-signal);
}

.btn-signal:hover {
  background-color: var(--brand-signal);
  color: var(--text-inverted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Theme Toggle Button (High Contrast & Sharp Vector) */
.theme-toggle-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm);
  background-color: var(--surface-secondary) !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background-color: var(--brand-signal-subtle) !important;
  border-color: var(--brand-signal) !important;
  color: var(--brand-signal) !important;
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor;
  display: block;
}

/* Technical Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-signal {
  color: var(--brand-signal);
  background-color: var(--brand-signal-subtle);
  border-color: rgba(var(--brand-signal-rgb), 0.2);
}

/* Engineering Cards */
.card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  border-color: var(--border-medium);
}

/* Metadata & Code Blocks */
.meta-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Interactive Elements */
.interactive-link {
  color: var(--brand-signal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.interactive-link:hover {
  text-decoration: underline;
}

/* ─── Case Study / Engineering Evidence Component ────────── */
.case-study-highlight {
  padding-top: 40px;
  padding-bottom: 40px;
}

.case-study-card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--brand-signal);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme='light'] .case-study-card {
  background-color: #ffffff;
  border-color: #cbd5e1;
  border-left-color: #0052cc;
  box-shadow: 0 10px 30px -10px rgba(10, 37, 64, 0.08);
}

.case-study-card:hover {
  border-color: var(--brand-signal);
}

[data-theme='light'] .case-study-card:hover {
  border-color: #0052cc;
}

.badge-engineering {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-signal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

[data-theme='light'] .badge-engineering {
  color: #0052cc;
}

.case-study-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.case-study-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 900px;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.cs-metric-box {
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

[data-theme='light'] .cs-metric-box {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.cs-metric-box:hover {
  transform: translateY(-2px);
  border-color: var(--brand-signal);
}

[data-theme='light'] .cs-metric-box:hover {
  border-color: #0052cc;
}

.cs-metric-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-signal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

[data-theme='light'] .cs-metric-num {
  color: #0052cc;
}

.cs-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.cs-metric-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 2px;
}

.case-study-cta {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .case-study-card {
    padding: 28px 20px;
    gap: 20px;
  }
  .case-study-metrics {
    grid-template-columns: 1fr;
  }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 80px 0 50px;
}

.hero-content { max-width: 880px; }

.hero-supertitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex-shrink: 0;
}

/* Foto rectangular — sin círculo */
.hero-photo { width: 260px; }

.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  background-color: var(--surface-secondary);
}

/* Identidad compacta */
.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.hero-identity-tags {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-signal);
  letter-spacing: 0.04em;
}

.hero-identity-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-profile { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .hero-photo { width: 200px; }
}

@media (max-width: 640px) {
  .hero-photo { width: 160px; }
}

/* ─── Sistema de secciones // NN ────────────────────────────── */
.section-editorial {
  padding-block: var(--section-pad);
}

.section-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-medium);
}

/* ─── // 01 Investigación ───────────────────────────────────── */
.research-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
}

.research-number {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--border-strong);
  line-height: 1;
  display: block;
  margin-top: 4px;
}

.research-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.research-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.research-title a:hover { color: var(--brand-signal); }

.research-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-signal);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.research-desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: var(--layout-reading);
  margin-bottom: 24px;
}

.research-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-signal);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity var(--transition-fast);
}

.research-link:hover { opacity: 0.7; }

@media (max-width: 640px) {
  .research-item { grid-template-columns: 1fr; gap: 16px; }
  .research-number { font-size: 2rem; }
}

/* ─── // 02 Experiencia — ledger editorial ──────────────────── */
.ledger { display: flex; flex-direction: column; gap: 0; }

.ledger-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding-block: 36px;
  align-items: start;
}

.ledger-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.ledger-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: 4px;
  line-height: 1.5;
}

.ledger-role {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}

.ledger-company {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-signal);
  display: block;
  margin-bottom: 6px;
}

.ledger-tags {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ledger-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .ledger-item { grid-template-columns: 1fr; gap: 10px; padding-block: 28px; }
}

/* ─── // 03 Áreas de Práctica ──────────────────────────────── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.practice-col {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--border-subtle);
}

.practice-col:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 36px;
}

.practice-col:not(:first-child):not(:last-child) {
  padding-left: 36px;
}

.practice-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.practice-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.practice-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.practice-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-tags li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr; border-top: none; }
  .practice-col {
    border-top: 1px solid var(--border-subtle);
    border-right: none;
    padding: 28px 0;
  }
  .practice-col:last-child { padding-left: 0; }
  .practice-col:not(:first-child):not(:last-child) { padding-left: 0; }
}

/* ─── // 05 Stack Técnico — tipográfico ─────────────────────── */
.stack-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 52px;
  margin-bottom: 32px;
  align-items: start;
}

.stack-group-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-medium);
  margin-bottom: 0;
}

.stack-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stack-name {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.stack-extended {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.stack-extended-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
  display: block;
}

.stack-extended-toggle:hover { color: var(--brand-signal); }
.stack-extended-toggle::-webkit-details-marker { display: none; }
.stack-extended-grid { margin-top: 20px; }

@media (max-width: 900px) {
  .stack-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── // 06 Sobre Mí ────────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: var(--layout-reading);
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: none;
  border-left: 2px solid var(--brand-signal);
  padding-left: 24px;
  background: transparent;
  border-radius: 0;
}

.about-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  border: none;
}

.about-fact svg { display: none; }

.about-fact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-fact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.about-fact-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 860px) {
  .about-content { grid-template-columns: 1fr; gap: 36px; }
  .about-facts { padding-left: 20px; }
}

/* ─── Contacto ───────────────────────────────────────────────── */
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 17.5px;
  max-width: var(--layout-reading);
  margin-bottom: 32px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Loading dot ────────────────────────────────────────────── */
.glowing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-signal);
  box-shadow: 0 0 8px 2px var(--brand-signal);
  animation: dot-pulse 1.4s ease-in-out infinite;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.glowing-dot.loading-dot {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  display: block;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px var(--brand-signal); }
  50%       { opacity: 0.4; box-shadow: 0 0 4px 1px var(--brand-signal); }
}

/* ─── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.active { opacity: 1; transform: translateY(0); }
}

/* ─── Artículos — Índice Editorial ───────────────────────────── */
.articles-index-editorial {
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: 20px 0 60px;
}

.articles-hero-editorial {
  margin-bottom: 40px;
}

.articles-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.articles-main-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: var(--layout-reading);
  line-height: 1.65;
}

.articles-search-bar {
  margin-bottom: 40px;
}

.editorial-search-input {
  width: 100%;
  max-width: 620px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.editorial-search-input:focus {
  border-color: var(--brand-signal);
}

.editorial-posts-ledger {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.editorial-post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.editorial-post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.editorial-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.editorial-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.editorial-post-title a:hover {
  color: var(--brand-signal);
}

.editorial-post-tags {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand-signal);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.editorial-post-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: var(--layout-reading);
}

.editorial-post-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-signal);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: opacity var(--transition-fast);
}

.editorial-post-link:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .editorial-post-item { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

/* ─── Lead Magnet ────────────────────────────────────────────── */
.lead-magnet {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  margin: 40px auto;
}

.lead-magnet-content { max-width: 720px; margin: 0 auto; text-align: center; }
.lead-title { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
.lead-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; }

@media (min-width: 1440px) {
  .hero { min-height: 75vh; }
}
.text-teal { color: var(--teal); }
.text-slate { color: var(--slate); }
.text-lightest-slate { color: var(--lightest-slate); }
.text-center { text-align: center; }
.text-lg { font-size: 18px; }
.font-mono { font-family: "Roboto Mono", monospace; }

.mt-1 { margin-top: 10px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.ml-0 { margin-left: 0; }
.mr-1 { margin-right: 15px; }

.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.max-w-800 { max-width: 800px; margin: 0 auto; }
.w-full { width: 100%; }

.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
/* ==========================================================================
   Academy & Courses Grid
   ========================================================================== */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.course-card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.course-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.course-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-signal);
  margin-bottom: 20px;
}

.course-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-signal);
  background: var(--brand-signal-subtle);
  border: 1px solid rgba(var(--brand-signal-rgb), 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.page-hero {
  min-height: auto !important;
  padding-top: calc(var(--nav-height) + 44px) !important;
  padding-bottom: 28px !important;
}

.page-hero .hero-content {
  max-width: 800px;
}

.page-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.course-meta-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.course-meta-tag .badge-outline {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.course-card .btn {
  width: 100%;
}

/* ==========================================================================
   Article Index / Terminal List Styles
   ========================================================================== */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-header svg {
  color: var(--brand-signal);
}

.terminal-header-title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}

.terminal-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 28px;
}

.terminal-search-container .prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-signal);
  white-space: nowrap;
}

.terminal-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

.terminal-search-input::placeholder {
  color: var(--text-muted);
}

.terminal-row {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast);
}

.terminal-row:hover {
  border-color: var(--border-medium);
}

.terminal-link {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-signal);
  text-decoration: none;
}

.terminal-link:hover {
  text-decoration: underline;
}

.terminal-meta {
  display: inline-block;
}

.terminal-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 10px 0 16px;
}

.terminal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.blink-cursor {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-signal);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Article Viewer / Sidebar Layout
   ========================================================================== */
.course-content-wrapper {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.course-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  padding-right: 20px;
  padding-top: 5px;
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.course-sidebar h4 {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px !important;
  color: var(--text-muted) !important;
}

.course-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 15px;
  flex-grow: 1;
}

.course-nav-list::-webkit-scrollbar {
  width: 4px;
}
.course-nav-list::-webkit-scrollbar-track {
  background: transparent;
}
.course-nav-list::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
}

.course-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  line-height: 1.4;
}

.course-nav-link:hover {
  background: var(--brand-signal-subtle);
  color: var(--text-primary);
  transform: translateX(3px);
  border-left-color: var(--brand-signal);
}

.course-nav-link.active {
  background: var(--brand-signal-subtle);
  color: var(--brand-signal);
  border-left-color: var(--brand-signal);
  font-weight: 600;
}

@media (max-width: 768px) {
  .course-content-wrapper {
    flex-direction: column;
    gap: 0;
  }
  .course-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 0 15px 0;
    margin-bottom: 25px;
    position: static;
    top: auto;
    height: auto;
  }
  .course-nav-list {
    max-height: 200px;
    padding-right: 5px;
  }
  .course-sidebar h4 {
    margin-bottom: 10px !important;
  }
}

/* Article Markdown Typography */
.article-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 850px;
  min-width: 0;
}

@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.article-content h1 {
  font-size: clamp(1.8rem, 6vw, 2.25rem);
  margin-top: 0;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.3em;
}

.article-content h3 {
  font-size: 1.3rem;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content a {
  color: var(--brand-signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--brand-primary);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--surface-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.article-content table th,
.article-content table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.article-content table th {
  background-color: var(--surface-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

.article-content table tr:last-child td {
  border-bottom: none;
}

.article-content blockquote {
  border-left: 3px solid var(--brand-signal);
  padding: 12px 18px;
  margin: 1.5em 0;
  color: var(--text-secondary);
  background: var(--surface-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content code {
  background: var(--surface-secondary);
  color: var(--brand-signal);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content pre {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  padding: 1.2em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.9em;
}
