:root {
  --bg-primary: #080808;
  --bg-secondary: #0f0f11;
  --bg-card: #121216;
  --bg-card-hover: #17171d;
  --bg-elevated: #1a1a22;
  --bg-glass: rgba(14, 14, 18, 0.75);
  --bg-glass-heavy: rgba(8, 8, 10, 0.88);

  --text-primary: #F5F5F7;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-dark: #3F3F46;

  --accent-primary: #6366F1;
  --accent-secondary: #8B5CF6;
  --accent-glow: rgba(99, 102, 241, 0.22);
  --accent-glow-subtle: rgba(139, 92, 246, 0.12);
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;

  --gradient-accent: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  --gradient-text: linear-gradient(135deg, #FFFFFF 20%, #A5B4FC 60%, #C084FC 100%);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Syne', var(--font-main);
  --font-mono: 'Geist Mono', 'JetBrains Mono', Consolas, monospace;

  --container-max: 1380px;
  --header-height: 76px;
  --section-pad-y: clamp(5rem, 10vw, 9rem);
  --grid-gap: clamp(1.25rem, 2.5vw, 2.5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

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

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

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

.mono-txt {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 3.5rem);
  padding-right: clamp(1rem, 4vw, 3.5rem);
}

.ambient-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(139, 92, 246, 0.07) 45%, transparent 70%);
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.4s ease;
  will-change: transform;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: normal;
  display: none;
}

@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.1s ease;
  z-index: 10002;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.2s ease, background 0.3s ease, transform 0.08s ease-out;
  z-index: 10001;
}

.cursor-badge {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.35rem 0.75rem;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s var(--ease-out-expo), opacity 0.2s ease;
  pointer-events: none;
  z-index: 10003;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

body.cursor-badge-active .cursor-badge {
  transform: translate(-50%, -50%) scale(1);
}

body.cursor-badge-active .cursor-dot,
body.cursor-badge-active .cursor-ring {
  opacity: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  transition: padding 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease-out-expo);
}

.site-header.scrolled {
  padding-top: 0.85rem;
}

.site-header.scrolled .header-inner {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.brand-bracket {
  color: var(--accent-primary);
  font-weight: 400;
}

.brand-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  margin-left: 0.35rem;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGreen 2.5s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.desktop-nav {
  display: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.nav-num {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.nav-link.active .nav-num {
  color: var(--accent-primary);
}

.nav-link-cta {
  background: var(--text-primary);
  color: #080808 !important;
  font-weight: 700;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}

.nav-link-cta:hover {
  background: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .menu-toggle-btn {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle-btn.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle-btn.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 999;
  display: flex;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

.mobile-menu-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.5rem 1.5rem 2rem;
  max-width: 500px;
  margin: 0 auto;
  gap: 1.5rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-family: var(--font-main);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  min-height: 44px;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
  color: #FFFFFF;
  transform: translateX(8px);
}

.mobile-nav-link .m-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.mobile-nav-link.m-cta {
  color: #FFFFFF;
}

.mobile-menu-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
}
.meta-label { color: var(--text-muted); }
.meta-val { color: var(--text-primary); }
.status-live { color: var(--accent-emerald); }

.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGreen 2s infinite ease-in-out;
}

.hero-headline-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  user-select: none;
}

.hero-line {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  flex-wrap: wrap;
}

.hero-outline-word {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 10.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.hero-outline-word:hover {
  -webkit-text-stroke-color: var(--accent-primary);
}

.hero-badge-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 600;
  color: var(--accent-primary);
  padding: 0.4rem 0.85rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  transform: translateY(-1rem);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 10.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-name-title {
  font-size: clamp(2.7rem, 10.5vw, 10.5rem);
}

@media (max-width: 859px) {
  .hero-outline-word,
  .hero-main-title,
  .hero-name-title {
    font-size: clamp(2rem, 8vw, 5rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-line {
    gap: 0.75rem;
  }
}

.hero-gradient-text {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

@media (min-width: 860px) {
  .hero-bottom-grid {
    grid-template-columns: 320px 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
}

.hero-roles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.role-chip:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.chip-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.chip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-desc-box {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-statement {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out-expo);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: #080808;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-medium);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.hero-scroll-indicator {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.scroll-link:hover {
  color: var(--text-primary);
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-reverse .marquee-track {
  animation: marqueeScrollReverse 40s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.marquee-star {
  color: var(--accent-primary);
}

.marquee-dash {
  color: var(--text-muted);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
  z-index: 1;
}

.section-heading-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 860px) {
  .section-heading-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.sec-index {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sec-lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.work-section {
  position: relative;
  overflow: hidden;
}

.scroll-hint-desktop {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: none;
}

@media (min-width: 1024px) {
  .scroll-hint-desktop {
    display: block;
  }
}

.horizontal-scroll-container {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
  width: max-content;
}

@media (max-width: 768px) {
  .horizontal-scroll-track {
    flex-direction: column;
    width: 100%;
    padding-left: clamp(1.25rem, 4vw, 3.5rem);
    padding-right: clamp(1.25rem, 4vw, 3.5rem);
  }
}

.project-slide {
  width: clamp(320px, 85vw, 680px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .project-slide {
    width: 100%;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}

.project-num-badge {
  color: var(--accent-primary);
  font-weight: 700;
}

.project-type-badge {
  color: var(--text-muted);
}

.project-visual-wrapper {
  position: relative;
  background: #050507;
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.project-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.project-gallery-track::-webkit-scrollbar {
  display: none;
}

.project-image {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s ease;
}

.project-gallery-screenshots .project-image {
  object-fit: contain;
  background: #050507;
}

.project-card:hover .project-image {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.05);
}

.project-gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  background: rgba(8, 8, 12, 0.78);
  color: var(--text-primary);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.project-gallery-control[hidden],
.project-gallery-counter[hidden] {
  display: none;
}

.project-gallery-control:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.project-gallery-previous {
  left: 0.75rem;
}

.project-gallery-next {
  right: 0.75rem;
}

.project-gallery-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 12, 0.78);
  color: var(--text-primary);
  font-size: 0.7rem;
}

.project-details {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stack-section {
  position: relative;
}

.stack-filter-bar {
  margin-bottom: 2.5rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-filter-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.stack-filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.stack-filter-pill.active {
  background: var(--text-primary);
  color: #080808;
  font-weight: 700;
}

.stack-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .stack-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stack-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .stack-matrix-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s ease;
}

.stack-item-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
  transform: translateY(-3px);
}

.stack-item-card.hidden {
  display: none !important;
}

.stack-item-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stack-tech-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stack-tech-role {
  font-size: 0.7rem;
  color: var(--accent-primary);
}

.stack-tech-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.stack-item-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.about-section {
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 990px) {
  .about-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.about-massive-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.quote-highlight {
  color: transparent;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-narrative-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-p.lead-p {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

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

.pillar-num {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-system-readout {
  background: #09090d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.readout-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.readout-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.readout-row {
  display: flex;
  gap: 0.75rem;
}

.readout-row .lbl {
  color: var(--accent-primary);
  min-width: 120px;
}

.readout-row .val {
  color: var(--text-secondary);
}

.contact-section {
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  padding-bottom: clamp(6rem, 12vw, 10rem);
}

.certificates-section {
  border-top: 1px solid var(--border-subtle);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.certificate-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, background 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.certificate-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--accent-primary);
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}

.certificate-content {
  min-width: 0;
}

.certificate-label,
.certificate-status {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.certificate-title {
  margin-top: 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.certificate-description {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.certificate-status {
  grid-column: 2;
  color: var(--accent-emerald);
}

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

.contact-top-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-avail {
  color: var(--accent-emerald);
}

.contact-huge-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10.5vw, 9.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-huge-title .c-gradient {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
  .contact-content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-statement {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channel-card.main-channel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.channel-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.channel-val-link {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.copy-channel-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-pill:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-pill.primary-pill {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #FFFFFF;
}

.social-pill.primary-pill:hover {
  background: var(--accent-primary);
}

.quick-contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A1A1AA' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
}

.form-feedback {
  font-size: 0.8rem;
  min-height: 1.2rem;
}
.form-feedback.success { color: var(--accent-emerald); }
.form-feedback.error { color: var(--accent-rose); }

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050507;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    align-items: center;
  }
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-sys-status {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sys-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sys-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.f-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.f-link:hover {
  color: var(--text-primary);
}

.back-to-top {
  color: var(--accent-primary);
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal="fade-up"] {
  transform: translateY(30px);
}

[data-reveal="fade-down"] {
  transform: translateY(-20px);
}

[data-reveal="mask-up"] {
  transform: translateY(40px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 989px) {
  .about-massive-quote {
    position: static;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: clamp(3rem, 7vw, 4.5rem);
    --header-height: 64px;
  }

  .site-header {
    padding: 0.65rem 0.85rem;
  }

  .site-header.scrolled {
    padding-top: 0.5rem;
  }

  .header-inner {
    padding: 0.45rem 0.75rem;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
  }

  .brand-logo {
    font-size: clamp(0.78rem, 3.6vw, 0.92rem);
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
  }

  .ambient-glow {
    width: 320px;
    height: 320px;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    will-change: auto;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2.5rem;
    justify-content: flex-start;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-meta-bar {
    gap: 0.6rem;
    padding-bottom: 1rem;
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta-coords,
  .hero-meta-loc {
    font-size: 0.72rem;
    word-break: break-word;
  }

  .hero-line-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-badge-tag {
    transform: none;
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }

  .hero-outline-word,
  .hero-main-title,
  .hero-name-title {
    font-size: clamp(2.1rem, 9.5vw, 3.8rem);
    line-height: 0.95;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-bottom-grid {
    gap: 1.5rem;
    margin-top: 0.5rem;
  }

  .hero-statement {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    min-height: 48px;
  }

  .hero-scroll-indicator {
    margin-top: 0.5rem;
  }

  /* Marquee */
  .marquee-wrapper {
    padding: 0.65rem 0;
  }

  .marquee-content {
    gap: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  /* Section Headings */
  .section-heading-row {
    margin-bottom: 1.75rem;
    gap: 0.65rem;
  }

  .sec-index {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
  }

  .sec-title {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    line-height: 1.05;
  }

  .sec-lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Projects Section Mobile */
  .horizontal-scroll-container {
    overflow: visible;
    padding-bottom: 0;
  }

  .horizontal-scroll-track {
    flex-direction: column;
    width: 100%;
    gap: 1.75rem;
    padding-left: clamp(1rem, 4vw, 3.5rem);
    padding-right: clamp(1rem, 4vw, 3.5rem);
  }

  .project-slide {
    width: 100%;
    min-width: 0;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-card-header {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  .project-type-badge {
    word-break: break-word;
  }

  .project-visual-wrapper {
    padding: 0.6rem;
    min-height: auto;
  }

  .project-gallery-control {
    width: 36px;
    height: 36px;
  }

  .project-gallery-previous {
    left: 0.4rem;
  }

  .project-gallery-next {
    right: 0.4rem;
  }

  .project-gallery-counter {
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.65rem;
  }

  .project-details {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .project-title-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
  }

  .project-name {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    word-break: break-word;
  }

  .project-year {
    font-size: 0.75rem;
  }

  .project-description {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .project-tech-tags {
    gap: 0.35rem;
  }

  .tech-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
  }

  .project-actions {
    width: 100%;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Stack Section Mobile */
  .stack-filter-bar {
    margin-bottom: 1.5rem;
  }

  .stack-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
    padding: 0.25rem 0 0.5rem;
  }

  .stack-pills::-webkit-scrollbar {
    display: none;
  }

  .stack-filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .stack-matrix-grid {
    gap: 1rem;
  }

  .stack-item-card {
    padding: 1.15rem;
    gap: 0.75rem;
  }

  .stack-tech-name {
    font-size: 1.05rem;
  }

  .stack-tech-role {
    font-size: 0.68rem;
    word-break: break-word;
  }

  .stack-tech-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .stack-item-footer {
    font-size: 0.68rem;
    padding-top: 0.6rem;
  }

  /* About Section Mobile */
  .about-grid {
    gap: 1.75rem;
  }

  .about-p.lead-p {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .about-p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pillar-card {
    padding: 1.1rem;
  }

  .about-system-readout {
    padding: 1rem;
  }

  .readout-header {
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.72rem;
  }

  /* Certificates Section Mobile */
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .certificate-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .certificate-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }

  .certificate-title {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  }

  .certificate-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding-bottom: 4rem;
  }

  .contact-top-tag {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
  }

  .contact-huge-title {
    font-size: clamp(2.1rem, 9.5vw, 4rem);
    line-height: 0.95;
    margin-bottom: 1.75rem;
  }

  .contact-content-grid {
    gap: 2rem;
  }

  .contact-statement {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  .channel-card.main-channel {
    padding: 1.25rem 1rem;
    gap: 0.6rem;
  }

  .channel-val-link {
    font-size: clamp(0.95rem, 4vw, 1.25rem);
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .copy-channel-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .social-links-row {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .social-pill {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    min-height: 46px;
  }

  .quick-contact-box {
    padding: 1.25rem 1rem;
  }

  .box-header {
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.72rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .form-input {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  .form-submit-btn {
    min-height: 48px;
    font-size: 0.85rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 2.5rem 0 2rem;
  }

  .footer-container {
    gap: 1.75rem;
  }

  .footer-sys-status {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  .footer-bottom-row {
    gap: 1.25rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
  }

  .footer-links .sep {
    display: none;
  }

  .footer-links .f-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    min-height: 36px;
  }

  .back-to-top {
    margin-top: 0.25rem;
    font-weight: 600;
  }

  /* Toast Mobile */
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    align-items: stretch;
  }

  .toast {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .horizontal-scroll-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding: 0.5rem 0.65rem;
  }

  .brand-logo {
    font-size: 0.82rem;
  }

  .hero-outline-word,
  .hero-main-title,
  .hero-name-title {
    font-size: clamp(1.9rem, 11vw, 2.75rem);
  }

  .contact-huge-title {
    font-size: clamp(1.9rem, 11vw, 2.75rem);
  }

  .readout-row {
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
  }

  .readout-row .lbl {
    min-width: unset;
    font-size: 0.72rem;
  }

  .readout-row .val {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .certificate-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .certificate-status {
    grid-column: 1;
  }
}

@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;
  }
  
  .marquee-track {
    animation: none !important;
  }

  .ambient-glow {
    display: none !important;
  }

  .custom-cursor {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
