/*
  Qodirbergan Umirbekov — Portfolio Design System
  Editorial + technical minimalism. Neutral base, one signal accent.
  Radius cap: 10px on every surface (buttons, cards, images, inputs, tags).
*/

/* ---------------------------------------------------------
   1. FONTS (self-hosted, latin + latin-ext subsets)
--------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2-variations'), url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2-variations'), url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jbmono-latin.woff2') format('woff2-variations'), url('/assets/fonts/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/jbmono-latin-ext.woff2') format('woff2-variations'), url('/assets/fonts/jbmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1E9F;
}

/* ---------------------------------------------------------
   2. DESIGN TOKENS
--------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F2F2EF;
  --surface-inverse: #16181C;
  --border: #E4E4E0;
  --border-strong: #D2D2CC;

  /* Text */
  --text: #16181C;
  --text-secondary: #565B62;
  --text-tertiary: #646A71;
  --text-on-accent: #FFFFFF;
  --text-on-inverse: #F2F2EF;

  /* Accent — signal blue (primary), teal (research/lab secondary) */
  --accent: #2851E3;
  --accent-strong: #1C3EBF;
  --accent-soft: #EBF0FE;
  --accent-soft-border: #C9D6FC;
  --lab: #0C8C82;
  --lab-soft: #E4F5F3;
  --lab-soft-border: #B9E4DF;

  /* Status */
  --ok: #1F7A46;
  --ok-soft: #E7F5EC;
  --warn: #9A6400;
  --warn-soft: #FCF3DC;
  --muted-status: #6B6F76;
  --muted-status-soft: #EFEFEC;

  /* Radius (capped) */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;

  /* Shadow — tinted, ultra-diffuse */
  --shadow-sm: 0 1px 2px rgba(22, 24, 28, 0.04), 0 1px 1px rgba(22, 24, 28, 0.03);
  --shadow-md: 0 6px 20px rgba(22, 24, 28, 0.06), 0 2px 6px rgba(22, 24, 28, 0.04);
  --shadow-focus: 0 0 0 3px var(--accent-soft-border);

  /* Type */
  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --container: 1360px;
  --container-narrow: 760px;
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 360ms;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0B0C0E;
  --surface: #131518;
  --surface-2: #1A1D21;
  --surface-inverse: #F2F2EF;
  --border: #24272C;
  --border-strong: #32363C;

  --text: #EDEDEA;
  --text-secondary: #A2A6AC;
  --text-tertiary: #8B9097;
  --text-on-accent: #FFFFFF;
  --text-on-inverse: #16181C;

  --accent: #6E8CFF;
  --accent-strong: #8FA6FF;
  --accent-soft: #17223F;
  --accent-soft-border: #2B3A66;
  --lab: #3FCFC2;
  --lab-soft: #10302D;
  --lab-soft-border: #1D4B45;

  --ok: #4ED08A;
  --ok-soft: #12261B;
  --warn: #E8B34C;
  --warn-soft: #2E2410;
  --muted-status: #9A9EA4;
  --muted-status-soft: #1D2024;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-focus: 0 0 0 3px var(--accent-soft-border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0B0C0E;
    --surface: #131518;
    --surface-2: #1A1D21;
    --surface-inverse: #F2F2EF;
    --border: #24272C;
    --border-strong: #32363C;
    --text: #EDEDEA;
    --text-secondary: #A2A6AC;
    --text-tertiary: #8B9097;
    --text-on-accent: #FFFFFF;
    --text-on-inverse: #16181C;
    --accent: #6E8CFF;
    --accent-strong: #8FA6FF;
    --accent-soft: #17223F;
    --accent-soft-border: #2B3A66;
    --lab: #3FCFC2;
    --lab-soft: #10302D;
    --lab-soft-border: #1D4B45;
    --ok: #4ED08A;
    --ok-soft: #12261B;
    --warn: #E8B34C;
    --warn-soft: #2E2410;
    --muted-status: #9A9EA4;
    --muted-status-soft: #1D2024;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

/* ---------------------------------------------------------
   3. RESET
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { color: var(--text-secondary); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent-soft-border); color: var(--text); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   4. TYPOGRAPHY SCALE
--------------------------------------------------------- */
.display-1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.display-2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.45rem); }
h4 { font-size: 1.05rem; }
.lede { font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem); color: var(--text-secondary); line-height: 1.65; max-width: 62ch; }
.body-text { max-width: 65ch; }
.body-text p + p { margin-top: 1.1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  font-weight: 500;
}
.mono { font-family: var(--font-mono); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* ---------------------------------------------------------
   5. LAYOUT
--------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section-border-top { border-top: 1px solid var(--border); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; }
.gap-xs { gap: 0.5rem; } .gap-sm { gap: 0.85rem; } .gap-md { gap: 1.5rem; } .gap-lg { gap: 2.5rem; }

/* ---------------------------------------------------------
   6. NAVIGATION
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current='page'] { color: var(--text); font-weight: 600; }
.nav-utils { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 17px; height: 17px; }

[data-nav-toggle] { display: none; }
.mobile-nav-backdrop {
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(10, 10, 12, 0.45);
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 90;
  padding: 1.5rem;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mobile-nav a[aria-current='page'] { color: var(--accent); }
.mobile-nav a {
  display: block;
  padding: 1rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  [data-nav-toggle] { display: flex; }
}

@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .footer-col a { padding: 0.65rem 0; }
  .chip, .btn-sm { min-height: 44px; }
}

/* ---------------------------------------------------------
   7. BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-md);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--text-on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   8. CARDS
--------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-link { display: block; height: 100%; }

.project-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.project-card .thumb {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card h3 { font-size: 1.15rem; }
.project-card .meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------
   9. TAGS / BADGES / STATUS
--------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-soft-border); }
.tag-lab { background: var(--lab-soft); color: var(--lab); border-color: var(--lab-soft-border); }

.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-sm);
}
.status-active { background: var(--ok-soft); color: var(--ok); }
.status-prototype { background: var(--accent-soft); color: var(--accent-strong); }
.status-concept { background: var(--muted-status-soft); color: var(--muted-status); }
.status-archived { background: var(--muted-status-soft); color: var(--text-tertiary); }
.status-verify { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------
   10. FILTER CHIPS
--------------------------------------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------------------------------------------------------
   11. TIMELINE
--------------------------------------------------------- */
.timeline { position: relative; padding-left: 2rem; border-left: 1px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.3rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 0.3rem; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline-item .org { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 0.5rem; }

/* ---------------------------------------------------------
   12. LAB NOTES
--------------------------------------------------------- */
.lab-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.lab-card-head { padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lab-fields { padding: 1.75rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; }
@media (max-width: 640px) { .lab-fields { grid-template-columns: 1fr; } }
.lab-field dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 0.35rem; }
.lab-field dd { color: var(--text-secondary); font-size: 0.94rem; }

/* ---------------------------------------------------------
   13. FORMS
--------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field .hint { font-size: 0.8rem; color: var(--text-tertiary); }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); outline: 2px solid transparent; }
.field .error { font-size: 0.82rem; color: #C4453A; }

/* ---------------------------------------------------------
   14. FOOTER
--------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); font-weight: 600; margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.3rem 0; color: var(--text-secondary); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: 0.84rem; }

/* ---------------------------------------------------------
   15. HERO
--------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.hero-visual picture { width: 100%; height: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Node/grid technical motif, ambient, fixed layer */
.node-field {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.node-field svg { width: 100%; height: 100%; opacity: 0.5; }
:root[data-theme='dark'] .node-field svg { opacity: 0.35; }

/* ---------------------------------------------------------
   16. SCROLL REVEAL
--------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------
   17. UTILITIES
--------------------------------------------------------- */
.divider { height: 1px; background: var(--border); border: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.center-text { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.75rem; } .mt-5 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; } .mb-4 { margin-bottom: 2.75rem; }
.rounded-img { border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.kbd { font-family: var(--font-mono); font-size: 0.78rem; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); padding: 0.15rem 0.45rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--text); }

/* Table (spec-style) fallback: grouped, sparse dividers only */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.spec-cell { background: var(--surface); padding: 1.25rem 1.5rem; }
.spec-cell dt { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 0.3rem; }
.spec-cell dd { font-weight: 600; font-size: 1rem; }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   18. CASE STUDY: SCREENSHOT PLACEHOLDER
--------------------------------------------------------- */
.shot-placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 1.5rem;
}
.shot-placeholder svg { width: 26px; height: 26px; opacity: 0.55; }
.shot-placeholder span { font-size: 0.82rem; }

/* ---------------------------------------------------------
   19. CASE STUDY: VERIFICATION / SCOPE NOTE
--------------------------------------------------------- */
.note {
  border-left: 3px solid var(--border-strong);
  background: var(--surface-2);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.note strong { color: var(--text); }

/* Print (case study PDFs, resume-like pages) */
@media print {
  .site-header, .site-footer, .no-print { display: none; }
}

/* ---------------------------------------------------------
   20. THUMB MONOGRAM (project cards without screenshots)
--------------------------------------------------------- */
.thumb-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  color: var(--text-tertiary);
}

/* ---------------------------------------------------------
   21. STAT TILES (compact verified metrics, no card chrome)
--------------------------------------------------------- */
.stat-tile { padding: 1.5rem 0 0; border-top: 1px solid var(--border); }
.stat-tile .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}
.stat-tile .stat-value {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.3rem;
}
.stat-tile .stat-caption { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------------------------------------------------------
   22. CERTIFICATE CARDS (document scans, contain not cover)
--------------------------------------------------------- */
.cert-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.cert-card .cert-thumb { aspect-ratio: 4/3; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-card .cert-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.cert-card .cert-body { padding: 1.1rem 1.25rem 1.25rem; }
.cert-card .cert-body h3 { font-size: 1rem; margin-bottom: 0.3rem; }
