/* ==========================================================================
   DESIGN SYSTEM & TOKENS
   Editorial Dark & Light Theme System, 8px Grid, Accessible Typography
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg: #0a0b0d;
  --bg-surface: #111317;
  --card-bg: #13151b;
  --card-bg-elevated: #181b22;
  --ink: #eceae4;
  --mute: #8a8c91;
  --subtle: #55575d;
  --line: #23252a;
  --line-strong: #32353d;
  --acc: #5b8cff;
  --acc-rgb: 91, 140, 255;
  --acc-hover: #7ea3ff;
  --bronze: #c9984f;
  --bronze-rgb: 201, 152, 79;
  --bronze-light: #dfb26d;
  --silver: #d1d5db;
  --silver-rgb: 209, 213, 219;
  --silver-light: #f3f4f6;
  --danger: #ff5f57;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-modal: 0 32px 90px rgba(0, 0, 0, 0.85);

  /* Typography */
  --d: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --m: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing Scale (8px system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --pad: clamp(20px, 4.5vw, 64px);
  --nav-h: 68px;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Dedicated Theme-Aware Navigation Tokens (Dark Default) */
  --nav-bg: rgba(10, 11, 13, 0.78);
  --nav-bg-scrolled: rgba(13, 15, 19, 0.94);
  --nav-text: #eceae4;
  --nav-muted: #8a8c91;
  --nav-border: #23252a;
  --nav-border-scrolled: #32353d;
  --nav-shadow: var(--shadow-sm);
  --nav-shadow-scrolled: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Polished Light Theme (Carefully calibrated, high-contrast editorial feel) */
:root[data-theme="light"] {
  --bg: #f7f6f2;
  --bg-surface: #efeee8;
  --card-bg: #ffffff;
  --card-bg-elevated: #fbfbfa;
  --ink: #111216;
  --mute: #4b5563;
  --subtle: #717680;
  --line: #dedad2;
  --line-strong: #c2bdb3;
  --acc: #2255d6;
  --acc-rgb: 34, 85, 214;
  --acc-hover: #1844b8;
  --bronze: #9c6c22;
  --bronze-rgb: 156, 108, 34;
  --bronze-light: #7b5314;
  --silver: #4b5563;
  --silver-rgb: 75, 85, 99;
  --silver-light: #1f2937;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 24px 70px rgba(0, 0, 0, 0.18);

  /* Dedicated Theme-Aware Navigation Tokens (Light Theme) */
  --nav-bg: rgba(247, 246, 242, 0.82);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
  --nav-text: #111216;
  --nav-muted: #4b5563;
  --nav-border: #dedad2;
  --nav-border-scrolled: #c2bdb3;
  --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  --nav-shadow-scrolled: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f2;
    --bg-surface: #efeee8;
    --card-bg: #ffffff;
    --card-bg-elevated: #fbfbfa;
    --ink: #111216;
    --mute: #4b5563;
    --subtle: #717680;
    --line: #dedad2;
    --line-strong: #c2bdb3;
    --acc: #2255d6;
    --acc-rgb: 34, 85, 214;
    --acc-hover: #1844b8;
    --bronze: #9c6c22;
    --bronze-rgb: 156, 108, 34;
    --bronze-light: #7b5314;
    --silver: #4b5563;
    --silver-rgb: 75, 85, 99;
    --silver-light: #1f2937;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 24px 70px rgba(0, 0, 0, 0.18);

    /* Dedicated Theme-Aware Navigation Tokens (Light Theme System Preference) */
    --nav-bg: rgba(247, 246, 242, 0.82);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --nav-text: #111216;
    --nav-muted: #4b5563;
    --nav-border: #dedad2;
    --nav-border-scrolled: #c2bdb3;
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    --nav-shadow-scrolled: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--d);
  font-weight: 300;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Focus Rings (Accessibility standard) */
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

/* Anchor offset for fixed header */
section, header.hero {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

section {
  padding: clamp(64px, 9vw, 130px) var(--pad);
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(38px, 6.5vw, 92px);
  line-height: 0.95;
}

h3 {
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 1.1;
}

p {
  margin: 0 0 16px;
}

.mono {
  font-family: var(--m);
}

.tag {
  font-family: var(--m);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  display: inline-block;
}

.tag-bronze {
  color: var(--bronze);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--m);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn.solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn.solid:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.btn.sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 12px;
}

.btn.outline-acc {
  border-color: var(--acc);
  color: var(--acc);
}

.btn.outline-acc:hover {
  background: var(--acc);
  color: #fff;
}

.badge {
  font-family: var(--m);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.badge-live {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

.badge-dev {
  background: rgba(var(--acc-rgb), 0.1);
  color: var(--acc);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
}

.badge-dev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

.badge-award {
  background: rgba(var(--bronze-rgb), 0.12);
  color: var(--bronze);
  border: 1px solid rgba(var(--bronze-rgb), 0.35);
  font-weight: 600;
}

.badge-silver {
  background: rgba(var(--silver-rgb), 0.12);
  color: var(--silver);
  border: 1px solid rgba(var(--silver-rgb), 0.35);
  font-weight: 600;
}

.tag-silver {
  color: var(--silver);
}

.badge-tech {
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
  background: var(--card-bg-elevated);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-concept {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--m);
  font-size: 10px;
  color: #eceae4;
  background: rgba(10, 11, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  z-index: 2;
  letter-spacing: 0.04em;
}

.ul {
  background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease);
}

.ul:hover {
  background-size: 100% 1.5px;
}

/* ==========================================================================
   NAVIGATION BAR & THEME TOGGLE
   ========================================================================== */

nav {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(1140px, calc(100% - 28px));
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 8px 24px;
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  color: var(--nav-text);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--nav-text);
}

.brand i {
  color: var(--acc);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--m);
  font-size: 12px;
}

.nav-links a {
  color: var(--nav-muted);
  transition: color 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--nav-text);
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: all 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

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

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
}

.os-btn {
  font-family: var(--m);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg-elevated);
  color: var(--acc);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease);
}

.os-btn:hover {
  border-color: var(--acc);
  color: var(--acc-hover);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  place-content: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}

.menu-toggle.open i:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.open i:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .os-btn span.kbd { display: none; }
  .menu-toggle { display: grid; }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
  nav {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    padding: 6px 10px 6px 14px;
    border-radius: 9999px;
  }
  .brand {
    font-size: 16px;
    letter-spacing: -0.02em;
  }
  .nav-actions {
    gap: 6px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .theme-toggle svg {
    width: 15px;
    height: 15px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    gap: 5px;
  }
  .menu-toggle i {
    width: 16px;
  }
  /* On mobile, SAUGAT.OS button is prominently available inside the mobile menu drawer */
  .os-btn {
    display: none;
  }
}

@media (max-width: 400px) {
  nav {
    top: max(6px, env(safe-area-inset-top));
    width: calc(100% - 14px);
    padding: 5px 8px 5px 12px;
  }
  .brand {
    font-size: 15px;
  }
  .nav-actions {
    gap: 4px;
  }
}

/* Mobile Navigation Overlay */
#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  padding: max(84px, calc(env(safe-area-inset-top) + 68px)) var(--pad) max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}

#mobileMenu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu .menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#mobileMenu .menu-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

#mobileMenu .menu-item small {
  font-family: var(--m);
  font-size: 13px;
  color: var(--acc);
}

#mobileMenu .mobile-footer {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  font-family: var(--m);
  font-size: 13px;
  color: var(--mute);
}

body.lock {
  overflow: hidden;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(100px, 15vh, 150px) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#sculpt {
  position: absolute;
  top: 0;
  height: 100%;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vh, 52px);
  min-height: calc(100svh - 190px);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute);
}

.hero h1 {
  font-size: clamp(48px, min(14.5vw, 22vh + 4vw), 210px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero h1 span {
  display: block;
  overflow: hidden;
}

.hero h1 span em {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  animation: slideUp 1.1s var(--ease) forwards;
}

.hero h1 span:nth-child(2) {
  padding-left: clamp(0px, 4.5vw, 84px);
}

.hero h1 span:nth-child(2) em {
  animation-delay: 0.12s;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

@keyframes slideUp {
  to { transform: none; }
}

.hero-roles {
  font-family: var(--m);
  font-size: 13px;
  color: var(--mute);
  margin: 28px 0 12px;
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero-roles b {
  color: var(--ink);
  font-weight: 500;
}

.hero p.lead {
  max-width: 44ch;
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.45s forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.6s forwards;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  opacity: 0;
  animation: heroFadeIn 1s var(--ease) 0.75s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

.hero-footer a:hover {
  color: var(--ink);
}

/* ==========================================================================
   METRICS / FACT BAR
   ========================================================================== */

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.metric-item {
  padding: 36px 20px 36px 0;
  border-top: 1px solid var(--line);
}

.metric-item + .metric-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.metric-item strong {
  display: block;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 4px;
}

.metric-item span {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
}

@media (max-width: 768px) {
  .metrics-bar {
    grid-template-columns: 1fr 1fr;
  }
  .metric-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

/* ==========================================================================
   SELECTED PROJECTS (3 FLAGSHIP CARDS)
   ========================================================================== */

.projects-section h2 {
  margin-bottom: 16px;
}

.projects-section .section-desc {
  max-width: 52ch;
  color: var(--mute);
  font-size: 17px;
  margin-bottom: 56px;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1080px) {
  .flagship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .flagship-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.project-card-header {
  padding: 20px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  min-height: 88px;
}

.project-category {
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.project-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.project-thumbnail {
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.03);
}

.project-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  min-height: 68px;
}

.project-disclaimer {
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
  background: color-mix(in srgb, var(--card-bg-elevated) 80%, transparent);
  border-left: 2px solid var(--acc);
  padding: 8px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}

.project-meta-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-contribution {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-contribution b {
  color: var(--ink);
  font-weight: 500;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   IMPOSTR COMPACT SCROLL INTERACTION (~120vh)
   ========================================================================== */

.impostr-showcase {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.impostr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.impostr-header h3 {
  font-size: clamp(32px, 5vw, 64px);
}

.impostr-scroll-wrapper {
  position: relative;
  height: 140vh;
}

.impostr-sticky-frame {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interactive-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.window-titlebar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  background: var(--bg-surface);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-url-pill {
  margin-left: 12px;
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
  background: var(--card-bg-elevated);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.window-actions-right {
  margin-left: auto;
}

.demo-pill-btn {
  padding: 5px 12px !important;
  font-size: 11px !important;
  min-height: 28px !important;
}

.window-content {
  padding: clamp(14px, 2vw, 24px);
  display: grid;
  gap: 14px;
}

.status-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--m);
  font-size: 11px;
  color: #2ecc71;
}

.url-input-simulation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--mute);
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.url-text-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-text-wrap #simUrl {
  color: var(--ink);
  font-weight: 500;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.15s linear;
}

.url-test-triggers {
  display: flex;
  gap: 6px;
}

.sample-target-btn {
  font-family: var(--m);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--mute);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-target-btn:hover,
.sample-target-btn.active {
  border-color: var(--acc);
  color: var(--ink);
  background: rgba(var(--acc-rgb), 0.12);
}

/* Forensic Flow Connector Bar */
.forensic-flow-bar {
  position: relative;
  padding: 6px 0;
  margin: 4px 0;
}

.flow-line-back {
  position: absolute;
  top: 19px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.flow-line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--acc), #7ea3ff);
  box-shadow: 0 0 10px rgba(var(--acc-rgb), 0.4);
  transition: width 0.3s ease;
}

.flow-nodes-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.flow-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.node-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  color: var(--mute);
  font-family: var(--m);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.node-lbl {
  font-family: var(--m);
  font-size: 10px;
  color: var(--mute);
  transition: color 0.25s ease;
}

.flow-step-node.active .node-num,
.flow-step-node.completed .node-num {
  border-color: var(--acc);
  background: var(--acc);
  color: #fff;
  box-shadow: 0 0 12px rgba(var(--acc-rgb), 0.4);
}

.flow-step-node.active .node-lbl {
  color: var(--ink);
  font-weight: 600;
}

.stage-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stage-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--bg-surface);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.stage-panel.active {
  border-color: var(--acc);
  background: rgba(var(--acc-rgb), 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stage-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stage-panel h4 {
  font-family: var(--m);
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin: 0;
}

.stage-panel.active h4 {
  color: var(--acc);
}

.badge-stage {
  font-family: var(--m);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--mute);
}

.badge-stage.badge-danger {
  border-color: rgba(255, 95, 87, 0.4);
  background: rgba(255, 95, 87, 0.12);
  color: var(--danger);
  font-weight: 600;
}

.stage-desc {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}

.stage-panel.active .stage-desc {
  color: var(--ink);
}

.chips-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chips-list span {
  font-family: var(--m);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--card-bg);
}

/* Verdict Display Layout in Stage 4 */
.verdict-display-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

@media (max-width: 640px) {
  .verdict-display-layout {
    grid-template-columns: 1fr;
  }
}

.score-ring-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.score-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: var(--danger);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.score-val {
  font-family: var(--m);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.score-denom {
  font-family: var(--m);
  font-size: 9px;
  color: var(--mute);
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-verdict-title {
  font-size: 13px;
  font-weight: 700;
}

.score-subtitle {
  font-size: 10px;
  color: var(--mute);
}

.verdict-graph-preview {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.mini-rel-graph {
  width: 100%;
  height: auto;
  max-height: 70px;
}

.graph-edge {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
  animation: graphFlow 8s linear infinite;
}

@keyframes graphFlow {
  to { stroke-dashoffset: -24; }
}

.interactive-window-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.live-cta-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-progress-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.progress-segment {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.25s ease;
}

.progress-segment.active {
  background: var(--acc);
}

/* Static fallback on mobile devices */
.mobile-impostr-fallback {
  display: none;
}

@media (max-width: 768px) {
  .impostr-scroll-wrapper {
    display: none;
  }
  .mobile-impostr-fallback {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
  }
  .mobile-steps-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
  }
  .mobile-step-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card-bg-elevated);
  }
}

/* ==========================================================================
   ACHIEVEMENTS ARCHIVE & FEATURED AWARDS
   ========================================================================== */

.achievements-section {
  position: relative;
}

.featured-award-hero {
  border: 1px solid color-mix(in srgb, var(--bronze) 35%, var(--line));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(80% 60% at 30% 20%, rgba(var(--bronze-rgb), 0.16), transparent 70%), var(--card-bg);
  box-shadow: 0 12px 36px rgba(var(--bronze-rgb), 0.08), var(--shadow-sm);
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.featured-award-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bronze), transparent 80%);
}

.featured-award-hero.silver-theme {
  border: 1px solid color-mix(in srgb, var(--silver) 40%, var(--line));
  background: radial-gradient(80% 60% at 30% 20%, rgba(var(--silver-rgb), 0.14), transparent 70%), var(--card-bg);
  box-shadow: 0 12px 36px rgba(var(--silver-rgb), 0.08), var(--shadow-sm);
}

.featured-award-hero.silver-theme::before {
  background: linear-gradient(90deg, var(--silver), rgba(var(--silver-rgb), 0.3) 50%, transparent 85%);
}

.featured-award-hero.silver-theme .award-display .big-rank {
  color: var(--silver);
  text-shadow: 0 0 40px rgba(var(--silver-rgb), 0.25);
}

.featured-award-hero.silver-theme .award-thumb-figure.primary-visual {
  border-color: color-mix(in srgb, var(--silver) 40%, var(--line));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.award-hero-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .award-hero-inner {
    grid-template-columns: 1fr;
  }
}

.award-display .big-rank {
  font-size: clamp(80px, 14vw, 190px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  color: var(--bronze);
  margin: 0;
}

.award-display .big-rank sup {
  font-size: 0.35em;
  letter-spacing: 0;
  vertical-align: top;
  top: 0.25em;
  position: relative;
}

.award-details h3 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 8px;
}

.award-meta-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.award-meta-timeline span {
  color: var(--ink);
  font-weight: 500;
}

.award-thumbnails-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.award-thumb-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
  background: var(--bg-surface);
}

.award-thumb-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.award-thumb-figure:hover img {
  transform: scale(1.05);
}

.award-thumb-caption {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: var(--m);
  font-size: 9px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Archive Categories Accordion / Lists */
.archive-groups {
  display: grid;
  gap: 48px;
}

.archive-group h3 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.archive-items-list {
  display: grid;
  gap: 14px;
}

/* Certificates Grid */
.cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .cert-cards-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.cert-card:hover {
  border-color: var(--line-strong);
  background: var(--card-bg-elevated);
  transform: translateY(-2px);
}

.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cert-card-header h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.cert-issuer {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  display: block;
  margin-top: 4px;
}

.cert-summary {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
  margin: 0;
}

.cert-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--m);
  font-size: 12px;
}

.archive-card {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.archive-card:hover {
  border-color: var(--line-strong);
  background: var(--card-bg-elevated);
}

.archive-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-card-left h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.archive-card-left .archive-context {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
}

.archive-card-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.archive-date {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .archive-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
  }
  .archive-card-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   CLIENT WORK SECTION
   ========================================================================== */

.client-work-grid {
  display: grid;
  gap: 56px;
  margin-top: 48px;
}

.client-item {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.client-item.reverse {
  direction: rtl;
}

.client-item.reverse > * {
  direction: ltr;
}

.client-content h3 {
  font-size: clamp(30px, 4vw, 56px);
  margin: 12px 0 16px;
}

.client-content p {
  color: var(--mute);
  max-width: 48ch;
  margin-bottom: 20px;
}

.client-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.client-preview-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg-elevated);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.client-preview-window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.client-preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
}

.client-preview-bar span {
  margin-left: 8px;
}

.client-screenshot-holder {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.client-screenshot-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 860px) {
  .client-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .client-item.reverse {
    direction: ltr;
  }
}

/* More Builds Grid */
.more-builds-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.more-builds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .more-builds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .more-builds-grid {
    grid-template-columns: 1fr;
  }
}

.more-build-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.more-build-card:hover {
  border-color: var(--line-strong);
  background: var(--card-bg-elevated);
}

.more-build-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

/* ==========================================================================
   TECHNICAL WRITING
   ========================================================================== */

.writing-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  margin-top: 40px;
}

.article-card-feature {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
}

.article-card-feature:hover {
  transform: translateY(-4px);
  border-color: var(--acc);
}

.article-card-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.article-card-feature:hover img {
  opacity: 0.6;
  transform: scale(1.03);
}

.article-card-info {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-card-info h4 {
  font-size: 20px;
  margin: 6px 0 0;
  line-height: 1.2;
}

@media (max-width: 860px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SKILLS & EDUCATION
   ========================================================================== */

.skills-edu-layout {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 48px;
}

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

/* Accessible Skills Accordion */
.skills-accordion {
  display: grid;
  gap: 12px;
}

.accordion-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.accordion-group:hover,
.accordion-group.is-open {
  border-color: var(--line-strong);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--acc);
}

.accordion-icon {
  font-family: var(--m);
  font-size: 16px;
  color: var(--mute);
  transition: transform 0.3s var(--ease);
}

.accordion-group.is-open .accordion-icon {
  transform: rotate(45deg);
  color: var(--acc);
}

.accordion-content {
  padding: 0 22px 18px;
  display: none;
}

.accordion-group.is-open .accordion-content {
  display: block;
}

.skill-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-pill-link {
  font-family: var(--m);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card-bg-elevated);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.skill-pill-link:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: translateY(-1px);
}

.skill-pill-link small {
  color: var(--mute);
  font-size: 10px;
}

/* Education Timeline */
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: grid;
  gap: 36px;
  margin-top: 12px;
}

.timeline-entry {
  position: relative;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
}

.timeline-entry.featured::before {
  background: var(--acc);
}

.timeline-entry h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-entry .timeline-degree {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline-entry .timeline-meta {
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
}

/* ==========================================================================
   OFF DUTY MARQUEE
   ========================================================================== */

.off-duty-section {
  overflow: hidden;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-bg) 50%, transparent);
}

.off-duty-section .tag,
.off-duty-section h2 {
  padding: 0 var(--pad);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.marquee-container {
  margin-top: 36px;
  display: grid;
  gap: 4px;
}

.marquee-row {
  white-space: nowrap;
  font-size: clamp(52px, 11vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s;
  will-change: transform;
}

.marquee-row.active {
  color: var(--ink);
  -webkit-text-stroke-color: var(--ink);
}

.marquee-row.active b {
  color: var(--bronze);
  -webkit-text-stroke-color: var(--bronze);
}

.marquee-row b {
  font-weight: 800;
  color: inherit;
  -webkit-text-stroke: inherit;
  display: inline-block;
  transform: scale(0.65);
  margin: 0 0.3em;
}

/* ==========================================================================
   ABOUT & CONTACT
   ========================================================================== */

.about-contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 860px) {
  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

.about-portrait-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg);
  position: relative;
  box-shadow: var(--shadow-md);
}

.about-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--mute);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.languages-spoken {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.languages-spoken span {
  font-family: var(--m);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--mute);
}

/* Contact Strip */
.contact-actions {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-headline {
  font-size: clamp(32px, 5vw, 68px);
  margin-bottom: 20px;
}

.contact-channels {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  font-family: var(--m);
  font-size: 14px;
  color: var(--mute);
}

.contact-channels a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.contact-channels a:hover {
  color: var(--acc);
}

/* ==========================================================================
   CASE STUDY MODAL (Accessible Dialog)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-window {
  width: min(920px, 100%);
  max-height: 85vh;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.modal-body {
  padding: 28px;
  display: grid;
  gap: 32px;
}

.modal-section h4 {
  font-family: var(--m);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mute);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.modal-section p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.arch-diagram-wrapper {
  background: var(--card-bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  place-items: center;
  overflow-x: auto;
}

.arch-diag {
  max-width: 100%;
  height: auto;
}

.decisions-grid {
  display: grid;
  gap: 14px;
}

.decision-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.decision-card h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.decision-card p {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
}

.planned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .planned-grid {
    grid-template-columns: 1fr;
  }
}

.planned-col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.planned-col h5 {
  font-family: var(--m);
  font-size: 12px;
  margin: 0 0 10px;
}

.planned-col ul {
  padding-left: 18px;
  margin: 0;
  font-size: 14px;
  color: var(--mute);
}

.planned-col li {
  margin-bottom: 6px;
}

/* ==========================================================================
   ACHIEVEMENT MODAL DIALOG
   ========================================================================== */
.achievement-modal-window {
  width: min(860px, 100%);
  border: 1px solid color-mix(in srgb, var(--silver) 40%, var(--line));
}

.achievement-modal-body {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 28px;
}

.achievement-modal-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg-elevated);
}

.achievement-modal-hero img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #000;
  display: block;
}

.achievement-modal-hero-cap {
  padding: 10px 16px;
  font-family: var(--m);
  font-size: 11px;
  color: var(--mute);
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.achievement-modal-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .achievement-modal-grid {
    grid-template-columns: 1fr;
  }
}

.achievement-cert-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-cert-preview-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #000;
}

.achievement-cert-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.achievement-cert-preview-thumb:hover img {
  transform: scale(1.04);
}

.achievement-cert-zoom-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--m);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.achievement-cert-preview-thumb:hover .achievement-cert-zoom-btn {
  opacity: 1;
}

.achievement-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.achievement-stat-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg-elevated);
}

.achievement-stat-label {
  font-family: var(--m);
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.achievement-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   TERMINAL (SAUGAT.OS)
   ========================================================================== */

#term {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

#term.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.terminal-window {
  width: min(840px, 100%);
  height: min(580px, 80svh);
  background: #08090b;
  color: #d7dae0;
  border: 1px solid #2a2d34;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
  font-family: var(--m);
  font-size: 13px;
}

#term.open .terminal-window {
  transform: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1d2026;
  color: #6e727b;
  font-size: 11px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
}

.term-dot.close { background: #ff5f57; }
.term-dot.min { background: #febc2e; }
.term-dot.max { background: #28c840; }

.terminal-title {
  margin: 0 auto;
  transform: translateX(-16px);
}

#terminalOutput {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  white-space: pre-wrap;
  line-height: 1.6;
  word-break: break-word;
}

@media (max-width: 480px) {
  .terminal-window {
    font-size: 11px;
    height: 88svh;
  }
  #terminalOutput {
    padding: 12px 14px;
    font-size: 10.5px;
    line-height: 1.45;
  }
}

#terminalOutput a {
  color: #7ea3ff;
  text-decoration: underline;
}

.terminal-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #1d2026;
}

.terminal-input-bar label {
  color: #7ea3ff;
  white-space: nowrap;
}

#terminalInput {
  flex: 1;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  outline: none;
  caret-color: #7ea3ff;
  min-width: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--m);
  font-size: 12px;
  color: var(--mute);
  max-width: 1480px;
  margin: 0 auto;
}

footer a:hover {
  color: var(--ink);
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT & REDUCED MOTION
   ========================================================================== */

/* Visible by default for non-JS / crawler resilience */
[data-r] {
  opacity: 1;
  transform: none;
}

/* Animated via JS observer when enabled */
html.js-ready [data-r] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-ready [data-r].in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes and variables for repeat card sequences */
html.js-ready [data-r][data-delay="100"] { transition-delay: 100ms; }
html.js-ready [data-r][data-delay="150"] { transition-delay: 150ms; }
html.js-ready [data-r][data-delay="200"] { transition-delay: 200ms; }
html.js-ready [data-r][data-delay="250"] { transition-delay: 250ms; }
html.js-ready [data-r][data-delay="300"] { transition-delay: 300ms; }
html.js-ready [data-r][data-delay="350"] { transition-delay: 350ms; }
html.js-ready [data-r][data-delay="400"] { transition-delay: 400ms; }
html.js-ready [data-r][data-delay="450"] { transition-delay: 450ms; }

/* Subtitle and header reveal animation inside sections */
.section-reveal-header {
  opacity: 1;
}

html.js-ready .section-reveal-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-ready .section-reveal-header.in {
  opacity: 1;
  transform: none;
}

@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;
  }
  html.js-ready [data-r] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero h1 span em,
  .hero-roles,
  .hero p.lead,
  .hero-cta,
  .hero-footer {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .impostr-scroll-wrapper {
    height: auto;
  }
  .impostr-sticky-frame {
    position: static;
  }
  .sr-intro-overlay {
    display: none !important;
  }
  .reel-ribbon {
    transition: none !important;
  }
}

/* ==========================================================================
   FEATURE 1: SR MONOGRAM INTRO (NON-BLOCKING)
   ========================================================================== */

.sr-intro-overlay {
  display: none !important;
}

.sr-intro-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.sr-intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.sr-monogram-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 180px;
}

.sr-monogram-svg {
  width: 240px;
  height: 180px;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(var(--acc-rgb), 0.18));
}

.sr-ambient-ring {
  transform-origin: center;
  animation: srRingRotate 18s linear infinite;
}

@keyframes srRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SVG Stroke drawing animations */
.sr-stroke {
  fill: none;
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sr-intro-overlay.active .sr-stroke-s {
  animation: drawStrokeS 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.sr-intro-overlay.active .sr-stroke-r-stem {
  animation: drawStrokeRStem 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.9s;
}

.sr-intro-overlay.active .sr-stroke-r-loop {
  animation: drawStrokeRLoop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.35s;
}

.sr-intro-overlay.active .sr-stroke-r-leg {
  animation: drawStrokeRLeg 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.85s;
}

.sr-signature-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: 208px 146px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease;
}

.sr-intro-overlay.active .sr-signature-dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: 2.2s;
}

@keyframes drawStrokeS {
  to { stroke-dashoffset: 0; }
}

@keyframes drawStrokeRStem {
  to { stroke-dashoffset: 0; }
}

@keyframes drawStrokeRLoop {
  to { stroke-dashoffset: 0; }
}

@keyframes drawStrokeRLeg {
  to { stroke-dashoffset: 0; }
}

.sr-intro-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.sr-intro-overlay.active .sr-intro-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.0s;
}

.sr-intro-name {
  font-family: var(--d);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.sr-intro-sub {
  font-family: var(--m);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
}

.sr-intro-corner {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--subtle);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.sr-intro-overlay.active .sr-intro-corner {
  opacity: 0.6;
}

.sr-intro-corner.tl {
  top: max(24px, env(safe-area-inset-top));
  left: var(--pad);
}

.sr-intro-corner.br {
  bottom: max(24px, env(safe-area-inset-bottom));
  right: var(--pad);
}

@media (max-width: 600px) {
  .sr-monogram-stage {
    width: 190px;
    height: 145px;
  }
  .sr-monogram-svg {
    width: 190px;
    height: 145px;
  }
  .sr-intro-corner {
    display: none;
  }
}

/* ==========================================================================
   NAVIGATION REFINEMENT: Clean, focused navigation bar
   ========================================================================== */

.nav-clock-wrap {
  display: none !important;
}

/* ==========================================================================
   FEATURE 3: SELECTIVE PREMIUM UI UPGRADES
   ========================================================================== */

/* 1. Hero Meta Status Indicator Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--card-bg-elevated) 85%, transparent);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: heroPulse 2s infinite ease-in-out;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mute);
}

/* 2. Aceternity-inspired subtle hover border glow on project & award cards */
.project-card,
.archive-card,
.featured-award-hero {
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--acc-rgb), 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 20px -5px rgba(var(--acc-rgb), 0.15);
}

/* 3. Skiper-inspired refined button interaction */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 4. Active nav link indicator enhancement */
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--acc);
  border-radius: 1px;
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--nav-text);
  font-weight: 500;
}

.nav-links a.active::after {
  width: 100%;
}

/* 5. Smooth interactive cards & button states */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.archive-card {
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.featured-award-hero {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.featured-award-hero:hover {
  border-color: color-mix(in srgb, var(--bronze) 50%, var(--line));
  box-shadow: 0 16px 48px rgba(var(--bronze-rgb), 0.12), var(--shadow-md);
}

.featured-award-hero.silver-theme:hover {
  border-color: color-mix(in srgb, var(--silver) 55%, var(--line));
  box-shadow: 0 16px 48px rgba(var(--silver-rgb), 0.12), var(--shadow-md);
}

.award-thumb-figure {
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.award-thumb-figure:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   GLOBAL SCROLL READING PROGRESS & SCROLL-TO-TOP BUTTON
   ========================================================================== */
.scroll-progress-track {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-thumb {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 8px rgba(255, 107, 74, 0.5);
  transition: height 0.08s linear;
}

@media (max-width: 768px) {
  .scroll-progress-track {
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 3px;
  }
  .scroll-progress-thumb {
    width: 0%;
    height: 100%;
    transition: width 0.08s linear;
  }
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s, border-color 0.2s;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.98);
}

.scroll-to-top-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Enhanced Sticky Nav scrolled state (Clean, theme-variable driven) */
nav.nav-scrolled {
  background: var(--nav-bg-scrolled);
  border-color: var(--nav-border-scrolled);
  box-shadow: var(--nav-shadow-scrolled);
}

/* Refined Hero CTA Arrow Hover */
.hero-cta .btn svg,
.hero-cta .btn i {
  transition: transform 0.25s var(--ease);
}
.hero-cta .btn:hover svg,
.hero-cta .btn:hover i {
  transform: translateY(3px);
}
