﻿/* ==========================================================================
   Arnab Som | Portfolio (refined)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --color-bg: #0D0D0F;
  --color-surface: #141416;
  --color-card: #1C1C1F;
  --color-border: #2A2A2E;
  --color-accent: #7C6CFC;
  --color-accent-solid: #9488fd;
  --color-accent-hover: rgba(124, 108, 252, 0.12);
  --color-text: #F0EFF4;
  --color-muted: #6B6878;
  --color-secondary: #9994A8;
  --color-success: #4ADE80;
  --color-cat-frontend: #60A5FA;
  --color-cat-mobile: #2DD4BF;
  --color-cat-devops: #FBBF24;
  --color-cat-ai: #4ADE80;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 36px;
  --text-3xl: 52px;
  --nav-h: 64px;
  --container: min(1080px, 92vw);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --graph-work: rgba(163, 155, 201, 0.5);
  --graph-work-border: rgba(163, 155, 201, 0.35);
  --graph-internship: rgba(130, 178, 174, 0.5);
  --graph-internship-border: rgba(130, 178, 174, 0.35);
  --graph-education: rgba(145, 160, 186, 0.5);
  --graph-education-border: rgba(145, 160, 186, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --color-bg: #FAFAF9;
  --color-surface: #F3F2F0;
  --color-card: #FFFFFF;
  --color-border: #E2E0DC;
  --color-accent: #6D28D9;
  --color-accent-solid: #5B21B6;
  --color-accent-hover: rgba(109, 40, 217, 0.1);
  --color-text: #18181B;
  --color-muted: #71717A;
  --color-secondary: #3F3F46;
  --color-success: #15803D;
  --color-cat-frontend: #2563EB;
  --color-cat-mobile: #0D9488;
  --color-cat-devops: #CA8A04;
  --color-cat-ai: #15803D;
  --graph-work: rgba(109, 40, 217, 0.28);
  --graph-work-border: rgba(109, 40, 217, 0.4);
  --graph-internship: rgba(13, 148, 136, 0.25);
  --graph-internship-border: rgba(13, 148, 136, 0.38);
  --graph-education: rgba(37, 99, 235, 0.22);
  --graph-education-border: rgba(37, 99, 235, 0.35);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) and (pointer: fine) {
  body:not(.no-cursor) { cursor: none; }
}

body.no-cursor { cursor: auto; }
body.no-cursor .cursor-dot,
body.no-cursor .cursor-ring { display: none !important; }

body.loaded .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--color-accent);
  color: #fff;
}

.container { width: var(--container); margin-inline: auto; }

/* ==========================================================================
   PAGE LOADER & AMBIENT
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--color-accent);
  top: -120px;
  right: -80px;
  opacity: 0.2;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #60A5FA;
  bottom: 20%;
  left: -100px;
  opacity: 0.12;
  animation-delay: -7s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #2DD4BF;
  top: 40%;
  right: 10%;
  opacity: 0.1;
  animation-delay: -14s;
}

[data-theme="light"] .orb { opacity: 0.15; }

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #60A5FA);
  z-index: 1001;
  transition: width 0.1s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent);
  opacity: 0.5;
  transition: width 0.25s, height 0.25s, opacity 0.25s;
}

.cursor-ring.hover {
  width: 48px;
  height: 48px;
  opacity: 0.8;
  background: var(--color-accent-hover);
}

.cursor-ring.hover-card {
  width: 72px;
  height: 72px;
  opacity: 0.95;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--color-accent) 70%, #60A5FA);
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 68%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

@media (min-width: 1024px) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
}

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

.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-hover);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #18181B 0%, #6D28D9 45%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-solid);
  border-color: var(--color-accent-solid);
  transform: translateY(-1px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-glow:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-hover);
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: var(--text-xs); }
.btn-full { width: 100%; }

.link-accent {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.link-accent:hover { opacity: 0.85; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--color-bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  height: 56px;
  border-bottom-color: var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-hover);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: all 0.2s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--color-bg);
  z-index: 999;
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-nav a {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-text);
}

@media (max-width: 900px) {
  .nav-links, .nav-cv { display: none; }
  .nav-hamburger { display: flex; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   HERO | bento shell + terminal visual
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: 10% 5% 20%;
  background:
    radial-gradient(ellipse 55% 45% at 72% 38%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 60%, color-mix(in srgb, #60A5FA 10%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-shell {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero-shell {
  background: color-mix(in srgb, var(--color-card) 92%, transparent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-content {
  min-width: 0;
  padding: 2.25rem 2rem 2.25rem 2.25rem;
  border-right: 1px solid var(--color-border);
}

.hero-visual {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  background: color-mix(in srgb, var(--color-card) 55%, transparent);
}

[data-theme="light"] .hero-visual {
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
}

.hero-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 25%, transparent);
}

.hero-tagline {
  font-size: var(--text-base);
  color: var(--color-text);
  opacity: 0.9;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-terminal {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.hero-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
}

.hero-terminal-dot:nth-child(1) { background: #FF5F57; }
.hero-terminal-dot:nth-child(2) { background: #FEBC2E; }
.hero-terminal-dot:nth-child(3) { background: #28C840; }

.hero-terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

.hero-terminal-body {
  padding: 0.85rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
}

.hero-terminal-body p { margin-bottom: 0.15rem; }

.t-dim { color: var(--color-muted); }
.t-out { color: var(--color-secondary); padding-left: 0.5rem; }
.t-green { color: var(--color-success); }
.t-yellow { color: #FACC15; }
.t-accent { color: var(--color-accent); }

.t-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.t-dot-green { background: var(--color-success); }
.t-dot-yellow { background: #FACC15; }

[data-theme="light"] .t-out { color: var(--color-text); opacity: 0.82; }

.t-tag {
  display: inline-block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  margin-left: 0.25rem;
  border-radius: 4px;
  background: var(--color-accent-hover);
  color: var(--color-accent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.hero-activity-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: var(--color-bg);
  min-width: 0;
  --activity-cell-size: 11px;
}

.hero-activity-head {
  margin-bottom: 0.55rem;
}

.hero-activity-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-activity-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.hero-activity-body {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.hero-activity-graph {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.15rem;
}

.hero-activity-months {
  display: grid;
  gap: 3px;
  margin-bottom: 5px;
  min-height: 14px;
  grid-template-columns: repeat(var(--activity-weeks, 53), var(--activity-cell-size, 11px));
  width: max-content;
  max-width: 100%;
}

.hero-activity-month {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-activity-years {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.hero-activity-year {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-activity-year:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-border) 40%, transparent);
}

.hero-activity-year.is-active {
  background: var(--color-accent);
  color: #fff;
}

.hero-activity-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}
.hero-activity-meta a {
  color: inherit;
  text-decoration: none;
}
.hero-activity-meta a:hover {
  color: var(--color-accent);
}

.hero-activity-grid {
  display: grid;
  gap: 3px;
  grid-auto-flow: column;
  grid-template-columns: repeat(var(--activity-weeks, 53), var(--activity-cell-size, 11px));
  grid-template-rows: repeat(7, var(--activity-cell-size, 11px));
  width: max-content;
  max-width: 100%;
}

.hero-activity-grid.is-loading {
  opacity: 0.45;
}

.hero-activity-cell {
  width: var(--activity-cell-size);
  height: var(--activity-cell-size);
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-border) 55%, transparent);
  transition: background 0.2s ease, transform 0.2s ease;
}

@media (min-width: 961px) {
  .hero-activity-body {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-activity-graph {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-activity-years {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0;
    width: 100%;
  }

  .hero-activity-months,
  .hero-activity-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(var(--activity-weeks, 53), var(--activity-cell-size, 10px));
  }

  .hero-activity-grid {
    grid-template-rows: repeat(7, var(--activity-cell-size, 10px));
  }

  .hero-activity-months.is-compact {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-activity-body {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-activity-years {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.35rem;
    padding-top: 0;
  }

  .hero-activity-graph {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
  }

  .hero-activity-months,
  .hero-activity-grid {
    width: max-content;
    max-width: none;
  }
}

.hero-activity-cell[data-level="1"] { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-border)); }
.hero-activity-cell[data-level="2"] { background: color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); }
.hero-activity-cell[data-level="3"] { background: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); }
.hero-activity-cell[data-level="4"] { background: var(--color-accent); }

.hero-activity-cell:hover {
  transform: scale(1.15);
  z-index: 1;
}

.hero-activity-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-muted);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-border) 55%, transparent);
}

.legend-swatch.l-1 { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-border)); }
.legend-swatch.l-2 { background: color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); }
.legend-swatch.l-3 { background: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); }
.legend-swatch.l-4 { background: var(--color-accent); }

.hero-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero-stack-row span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
}

[data-theme="light"] .hero-stack-row span {
  background: var(--color-card);
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  border-top: 1px solid var(--color-border);
}

.hero-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hero-strip-item:last-child { border-right: none; }

.hero-strip-item:hover {
  background: var(--color-accent-hover);
}

.hero-strip-day {
  justify-content: center;
}

.hero-strip-freelance {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--color-border);
  min-width: 0;
}

.hero-strip-freelance-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.hero-strip-freelance-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.hero-strip-freelance-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.hero-strip-freelance-item:hover {
  opacity: 0.82;
}

.hero-strip-freelance-item strong {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.hero-strip-freelance-item span {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  line-height: 1.35;
}

.hero-strip-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.hero-strip-item strong {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.hero-strip-item span:last-child {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  line-height: 1.35;
}

[data-theme="light"] .hero-strip-item span:last-child {
  color: var(--color-text);
  opacity: 0.72;
}

[data-theme="light"] .hero-strip-freelance-item span {
  color: var(--color-text);
  opacity: 0.72;
}

.hero-strip-cta {
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.hero-strip-cta:hover {
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.stat-num {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.hero-prompt {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: var(--text-lg);
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 0.65rem;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  min-height: 1.6em;
  margin-bottom: 0.65rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-typewriter .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-location {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

[data-theme="light"] .hero-location {
  color: var(--color-text);
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.hero-social a:hover { color: var(--color-text); transform: translateY(-2px); }

@media (max-width: 960px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-content {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1.75rem 1.25rem;
  }

  .hero-visual {
    padding: 1.25rem;
  }

  .hero-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero-strip-day { border-bottom: 1px solid var(--color-border); }
  .hero-strip-freelance { border-bottom: 1px solid var(--color-border); border-right: none; }
  .hero-strip-cta { grid-column: 1 / -1; border-right: none; }

  .hero-strip-freelance-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(1080px, 94vw);
  }

  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip-item,
  .hero-strip-freelance { border-right: none; border-bottom: 1px solid var(--color-border); }
  .hero-strip-cta { border-bottom: none; }
  .hero-strip-freelance-list { grid-template-columns: 1fr; gap: 0.65rem; }
  .hero-stats { gap: 0.75rem; }
  .hero-activity-card { --activity-cell-size: 8px; }
  .hero-activity-years { flex-direction: row; flex-wrap: wrap; max-width: 100%; }

  .hero-content {
    padding: 1.35rem 1rem;
  }

  .hero-role,
  .hero-location {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-label {
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .hero-terminal-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-terminal-body .t-out {
    white-space: nowrap;
  }

  .hero-stack-row {
    justify-content: flex-start;
    gap: 0.4rem;
  }
}

main { position: relative; z-index: 1; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 72px 0;
}

main .section + .section {
  border-top: 1px solid var(--color-border);
}

.section-alt {
  background: var(--color-surface);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 28px;
}

.section-intro {
  font-size: var(--text-base);
  color: var(--color-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: -12px 0 32px;
}

[data-theme="light"] .section-intro {
  color: var(--color-text);
  opacity: 0.82;
}

.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll:not(.visible) {
  opacity: 0;
  transform: translateY(16px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: var(--text-base);
  color: var(--color-text);
  opacity: 0.92;
  line-height: 1.65;
}

.about-text strong { color: var(--color-text); }

.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.status-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  box-shadow: 0 8px 32px rgba(124, 108, 252, 0.08);
  transform: translateY(-2px);
}

.status-header { margin-bottom: 8px; }

.status-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.88;
  border-bottom: 1px solid var(--color-border);
}

.status-row:last-child { border-bottom: none; }
.status-row strong { color: var(--color-text); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active { background: var(--color-success); box-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
.status-dot.learning { background: #FACC15; }
.status-dot.tool { background: #818CF8; }
.status-dot.open { background: #38BDF8; }

[data-theme="light"] .status-dot.active { box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2); }
[data-theme="light"] .status-dot.learning { background: #CA8A04; }
[data-theme="light"] .status-dot.tool { background: #6366F1; }
[data-theme="light"] .status-dot.open { background: #0284C7; }

  @media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ==========================================================================
   IMPACT | growth, contribution, productivity
   ========================================================================== */
.impact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.impact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

[data-theme="light"] .impact-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.impact-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.impact-card-head h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.impact-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-growth {
  grid-column: 1 / -1;
}

.impact-growth-chart {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.growth-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.growth-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.growth-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.growth-years {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

.growth-track {
  height: 10px;
  background: color-mix(in srgb, var(--color-border) 50%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.growth-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-fill[data-cat="backend"] { background: var(--color-accent); }
.growth-fill[data-cat="frontend"] { background: var(--color-cat-frontend); }
.growth-fill[data-cat="mobile"] { background: var(--color-cat-mobile); }
.growth-fill[data-cat="devops"] { background: var(--color-cat-devops); }
.growth-fill[data-cat="ai"] { background: var(--color-cat-ai); }

.growth-fill.is-animated { width: var(--fill-width, 0%); }

.growth-pct {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  min-width: 2.5rem;
  text-align: right;
}

[data-theme="light"] .growth-pct {
  color: var(--color-text);
  opacity: 0.75;
}

.impact-footnote {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
}

[data-theme="light"] .impact-footnote {
  color: var(--color-text);
  opacity: 0.8;
}

.impact-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.impact-pillar {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

[data-theme="light"] .impact-pillar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.impact-pillar h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.45rem;
}

.impact-pillar p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

[data-theme="light"] .impact-pillar p {
  color: var(--color-text);
  opacity: 0.82;
}

.impact-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.impact-pillar-learn {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.impact-pillar-contribute {
  background: color-mix(in srgb, var(--color-cat-frontend) 15%, transparent);
  color: var(--color-cat-frontend);
  border: 1px solid color-mix(in srgb, var(--color-cat-frontend) 30%, transparent);
}

.impact-pillar-ship {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
}

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.impact-list li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
}

[data-theme="light"] .impact-list li {
  color: var(--color-secondary);
}

.impact-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.impact-contrib-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contrib-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.contrib-label {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-text);
  line-height: 1.4;
}

.contrib-track {
  height: 8px;
  background: color-mix(in srgb, var(--color-border) 50%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.contrib-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cat-frontend));
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.contrib-fill.is-animated { width: var(--fill-width, 0%); }

.contrib-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}

.impact-industries {
  grid-column: 1 / -1;
  padding: 1.25rem 1.35rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.impact-industries-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.impact-industries-intro {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-bottom: 1rem;
  max-width: 640px;
  line-height: 1.55;
}

.impact-industries-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}

.impact-industries-list li {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.55;
  padding-left: 0.85rem;
  position: relative;
}

.impact-industries-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.impact-industries-list strong {
  color: var(--color-text);
  font-weight: 600;
}

[data-theme="light"] .impact-industries-list li {
  color: var(--color-secondary);
}

.impact-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.impact-metric-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="light"] .impact-metric-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.impact-metric-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.impact-metric-value.impact-metric-text {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
}

.impact-metric-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.impact-metric-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.45;
}

[data-theme="light"] .impact-metric-desc {
  color: var(--color-secondary);
}

@media (max-width: 960px) {
  .impact-layout { grid-template-columns: 1fr; }
  .impact-metrics { grid-template-columns: repeat(2, 1fr); }
  .impact-industries-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .growth-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .growth-pct { text-align: left; }
  .impact-metrics { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-group {
  opacity: 1;
  transform: none;
}

.skills-group-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

.skills-group[data-category="backend"] .skills-group-label { color: var(--color-accent); }
.skills-group[data-category="frontend"] .skills-group-label { color: var(--color-cat-frontend); }
.skills-group[data-category="db"] .skills-group-label { color: var(--color-cat-devops); }
.skills-group[data-category="tools"] .skills-group-label { color: var(--color-cat-ai); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

#skills .container {
  overflow: visible;
}

.skill-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
}

.skill-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .skill-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.skill-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-card);
  border: 1px solid var(--color-accent);
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius-xs);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 5;
}

.skill-card:hover .skill-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.skill-card[data-category="backend"] { border-bottom: 2px solid var(--color-accent); }
.skill-card[data-category="frontend"] { border-bottom: 2px solid var(--color-cat-frontend); }
.skill-card[data-category="db"] { border-bottom: 2px solid var(--color-cat-devops); }
.skill-card[data-category="tools"] { border-bottom: 2px solid var(--color-cat-ai); }
.skill-card[data-category="mobile"] { border-bottom: 2px solid var(--color-cat-mobile); }
.skill-card[data-category="devops"] { border-bottom: 2px solid var(--color-cat-devops); }
.skill-card[data-category="ai"] { border-bottom: 2px solid var(--color-cat-ai); }

.skill-number {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-muted);
  opacity: 0.5;
}

.skill-symbol {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  line-height: 1;
}

.skill-card[data-category="frontend"] .skill-symbol { color: var(--color-cat-frontend); }
.skill-card[data-category="db"] .skill-symbol { color: var(--color-cat-devops); }
.skill-card[data-category="tools"] .skill-symbol { color: var(--color-cat-ai); }
.skill-card[data-category="mobile"] .skill-symbol { color: var(--color-cat-mobile); }
.skill-card[data-category="devops"] .skill-symbol { color: var(--color-cat-devops); }
.skill-card[data-category="ai"] .skill-symbol { color: var(--color-cat-ai); }

.skill-name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: 4px;
  line-height: 1.2;
}

/* ==========================================================================
   CAREER (Experience / Internship / Education)
   ========================================================================== */
.section-intro {
  max-width: 540px;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.career-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.career-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.career-summary-num {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.career-summary-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
}

.career-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.career-tab-indicator {
  bottom: 0;
}

/* Career graph timeline */
.career-graph-panel {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 0.875rem 0.75rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  --cg-label: minmax(108px, 128px);
  --cg-dates: minmax(76px, 92px);
  opacity: 1;
  transform: none;
}

.career-graph-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.625rem;
}

.career-graph-note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-secondary);
}

.career-graph-detail {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  min-height: 1.25em;
  transition: color 0.2s ease;
}

.career-graph-detail.is-active { color: var(--color-secondary); }

.career-graph-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.career-graph-head {
  display: grid;
  grid-template-columns: var(--cg-label) 1fr var(--cg-dates);
  column-gap: 0.625rem;
  align-items: center;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

.cg-head-label,
.cg-head-dates {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.career-graph-axis {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-muted);
  opacity: 0.75;
}

.career-graph-rows {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
}

.career-graph-rows::before {
  content: '';
  position: absolute;
  left: calc(128px + 0.625rem);
  right: calc(92px + 0.625rem);
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(25% - 1px),
    var(--color-border) calc(25% - 1px),
    var(--color-border) 25%
  );
  opacity: 0.15;
  pointer-events: none;
}

.career-row {
  display: grid;
  grid-template-columns: var(--cg-label) 1fr var(--cg-dates);
  column-gap: 0.625rem;
  align-items: center;
  width: 100%;
  padding: 0.3rem 0.25rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1;
}

.career-row.is-hidden { display: none; }

.career-row:hover,
.career-row:focus-visible,
.career-row.is-highlight {
  background: color-mix(in srgb, var(--entry-color) 10%, transparent);
  border-color: color-mix(in srgb, var(--entry-color) 25%, var(--color-border));
  outline: none;
}

.career-row-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.entry-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--entry-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.entry-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.entry-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.25;
  word-break: break-word;
}

.entry-name::before { display: none; }

.entry-type {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-muted);
}

.career-row-track {
  position: relative;
  height: 18px;
  background: color-mix(in srgb, var(--color-border) 40%, transparent);
  border-radius: 3px;
  overflow: hidden;
}

.career-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--bar-left, 0%);
  width: 0;
  border-radius: 2px;
  background: var(--entry-color, var(--color-muted));
  opacity: 0;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.career-bar.is-drawn {
  width: var(--bar-width, 8%);
  opacity: 0.75;
}

.career-row:hover .career-bar,
.career-row.is-highlight .career-bar {
  opacity: 0.95;
}

.career-row-dates {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-secondary);
  line-height: 1.3;
  text-align: right;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}

[data-theme="light"] .entry-dot { opacity: 1; filter: saturate(1.2) brightness(0.92); }
[data-theme="light"] .career-bar.is-drawn { opacity: 0.82; }
[data-theme="light"] .career-row-dates { color: var(--color-text); opacity: 0.72; }
[data-theme="light"] .career-row-track { background: color-mix(in srgb, var(--color-border) 70%, transparent); }

.career-groups.is-filtered .career-group { display: none; }
.career-groups.is-filtered .career-group.is-visible { display: block; }

.career-group {
  margin-bottom: 1.25rem;
}

.career-group:last-child { margin-bottom: 0; }

.career-group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-border);
  opacity: 1;
  transform: none;
}

.career-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.career-group-icon.work { background: var(--graph-work); color: var(--color-secondary); }
.career-group-icon.internship { background: var(--graph-internship); color: var(--color-secondary); }
.career-group-icon.education { background: var(--graph-education); color: var(--color-secondary); }

.career-group-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
}

.career-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  position: relative;
  padding-left: 0;
}

.career-list::before { display: none; }

/* Shared spotlight hover — project cards + career cards */
.project-card,
.career-card,
.service-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before,
.career-card::before,
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--color-accent-hover), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card::after,
.career-card::after,
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, #60A5FA 55%, transparent), color-mix(in srgb, var(--color-accent) 65%, transparent));
  -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.3s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::before,
.project-card:hover::after,
.career-card:hover::before,
.career-card:hover::after,
.career-card.is-highlight::before,
.career-card.is-highlight::after,
.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.project-card:hover,
.career-card:hover,
.career-card.is-highlight,
.service-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border));
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .career-card:hover,
[data-theme="light"] .career-card.is-highlight,
[data-theme="light"] .service-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.career-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--entry-color, var(--color-border));
  border-radius: var(--radius);
  padding: 1.125rem 1.2rem;
  opacity: 1;
}

.career-card:hover,
.career-card.is-highlight {
  border-left-color: var(--entry-color, var(--color-accent));
}

.career-card > * {
  position: relative;
  z-index: 1;
}

.career-card.is-hidden {
  display: none;
}

#experience .career-card,
#experience .career-group-title,
#experience .career-graph-panel {
  opacity: 1;
}

.career-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.career-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.career-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}

.badge-work,
.badge-internship,
.badge-education {
  background: var(--color-card);
  color: var(--color-muted);
  border-color: var(--color-border);
}

.badge-fulltime,
.badge-parttime,
.badge-remote,
.badge-highlight {
  background: var(--color-card);
  color: var(--color-muted);
  border-color: var(--color-border);
}

.badge-highlight {
  color: var(--color-accent);
  border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
}

.career-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}

.career-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.career-org {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.career-edu-note {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin: 0;
}

.career-details {
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin: 0;
}

.career-details li {
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.career-details li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.career-card-edu .career-org { margin-bottom: 0.35rem; }

@media (max-width: 640px) {
  .career-graph-panel {
    --cg-label: minmax(0, 1fr);
    --cg-dates: minmax(104px, 40%);
    padding: 0.75rem 0.625rem;
  }

  .career-graph-meta { flex-direction: column; align-items: flex-start; }

  .career-graph-head {
    grid-template-columns: 1fr var(--cg-dates);
  }

  .career-graph-axis,
  .career-row-track {
    display: none;
  }

  .career-row {
    grid-template-columns: 1fr var(--cg-dates);
    column-gap: 0.5rem;
    padding: 0.45rem 0.35rem;
  }

  .career-graph-rows::before {
    display: none;
  }

  .cg-head-dates,
  .career-row-dates {
    font-size: 9px;
    line-height: 1.35;
    padding-left: 0.25rem;
  }

  .career-row-track { height: 16px; }

  .career-group-count { width: 100%; margin-left: 0; margin-top: 0.25rem; }
  .career-card-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .career-graph-panel {
    --cg-dates: minmax(108px, 44%);
  }
}

/* Legacy timeline (kept for resume link area) */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  padding-left: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.3s ease, padding 0.3s ease;
}

.timeline-item:hover {
  background: var(--color-accent-hover);
  padding-left: 1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 1px solid var(--color-bg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: 12px;
}

.timeline-item ul {
  list-style: none;
  font-size: var(--text-sm);
  color: var(--color-secondary);
}

.timeline-item li {
  margin-bottom: 0.35rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-item li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

.timeline-resume {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.25rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  opacity: 0.88;
  line-height: 1.6;
}

.service-card-example {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}

.service-card-example span {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-right: 0.25rem;
}

.service-card-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.service-card-cta:hover {
  color: var(--color-text);
}

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

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  opacity: 0;
}

.tab {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.4rem 0.875rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover,
.tab.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-hover);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.project-card-body { position: relative; z-index: 1; }

.badge-wip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  background: var(--color-accent-hover);
  color: var(--color-accent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  border-radius: var(--radius-xs);
}

.private-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.project-card-header {
  height: 3px;
  opacity: 0.5;
}

.project-card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 80%, var(--color-surface));
}

.project-shot {
  margin: 0;
  height: 100%;
}

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--color-bg);
}

.project-carousel {
  position: relative;
  height: 100%;
}

.project-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project-card-media.is-carousel .project-shot {
  flex: 0 0 100%;
  min-width: 0;
}

.project-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  z-index: 2;
}

.project-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 28%, transparent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-carousel-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.project-carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.project-card-media--placeholder {
  --project-accent: var(--color-accent);
}

.project-placeholder {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--project-accent) 22%, transparent), transparent 42%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--project-accent) 14%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 88%, var(--color-bg)), var(--color-bg));
}

.project-placeholder-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(color-mix(in srgb, var(--project-accent) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--project-accent) 18%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
}

.project-placeholder-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--project-accent) 75%, var(--color-text));
}

.project-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

[data-theme="light"] .project-placeholder-label {
  color: var(--color-secondary);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.project-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.55;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-muted);
}

.project-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
}

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

@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 28px; margin-bottom: 32px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.contact-row:last-child { border-bottom: none; }
.contact-row:hover {
  color: var(--color-text);
  transform: translateX(4px);
}

.contact-row:hover .contact-icon {
  border-color: var(--color-accent);
  background: var(--color-accent-hover);
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-row span:last-child {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.contact-row small {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.contact-map {
  margin-top: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 0.75rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all 0.2s ease;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6878' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-hover);
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy,
.footer-stats {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==========================================================================
   LOADING
   ========================================================================== */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.loading-overlay.show { display: flex; }

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.site-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.site-toast--success .site-toast-icon {
  background: color-mix(in srgb, var(--color-success) 18%, transparent);
  color: var(--color-success);
}

.site-toast--error .site-toast-icon {
  background: color-mix(in srgb, #ef4444 18%, transparent);
  color: #f87171;
}

.site-toast--warning .site-toast-icon {
  background: color-mix(in srgb, #facc15 18%, transparent);
  color: #facc15;
}

.site-toast-body { min-width: 0; }

.site-toast-title {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.site-toast-message {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-secondary);
}

.site-toast-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  line-height: 1;
}

.site-toast-close:hover { color: var(--color-text); }

.contact-form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.contact-form-alert[hidden] { display: none !important; }

.contact-form-alert-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.contact-form-alert--success {
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-success) 35%, var(--color-border));
}

.contact-form-alert--success .contact-form-alert-icon {
  background: color-mix(in srgb, var(--color-success) 18%, transparent);
  color: var(--color-success);
}

.contact-form-alert--error {
  background: color-mix(in srgb, #ef4444 8%, transparent);
  border-color: color-mix(in srgb, #ef4444 30%, var(--color-border));
}

.contact-form-alert--error .contact-form-alert-icon {
  background: color-mix(in srgb, #ef4444 18%, transparent);
  color: #f87171;
}

.contact-form-alert--warning {
  background: color-mix(in srgb, #facc15 8%, transparent);
  border-color: color-mix(in srgb, #facc15 30%, var(--color-border));
}

.contact-form-alert--warning .contact-form-alert-icon {
  background: color-mix(in srgb, #facc15 18%, transparent);
  color: #facc15;
}

.contact-form-alert-copy strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.contact-form-alert-copy p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-secondary);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .orb { animation: none; }
  .page-loader { display: none; }
  .btn:active { transform: none; }
}
