/* ============================================================
   BASE + COMPONENT CSS — BOLD EDITORIAL REDESIGN
   Chitte Manoj Reddy · AI & Data Analytics
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base);
  line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

/* Ambient grid texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Very subtle noise grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* Scroll-triggered motion has a visible CSS fallback when GSAP is unavailable. */
.motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.motion-reveal.motion-visible {
  opacity: 1;
  transform: none;
}
.motion-scale {
  opacity: 0;
  transform: scale(.94);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.motion-scale.motion-visible {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .motion-reveal, .motion-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Layered interaction transitions: each surface has its own motion language. */
.nav-link {
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-link:hover { transform: translateY(-2px); }
.btn { transition-duration: 360ms; }
.btn-primary:hover { transform: translateY(-3px) scale(1.025); }
.btn-ghost:hover { transform: translateX(4px); }
.hero-visual-container { transition: transform 650ms var(--ease), box-shadow 650ms var(--ease); }
.hero-visual-frame:hover .hero-visual-container {
  transform: rotate(-1deg) scale(1.015);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-accent);
}
.hero-media-cover { transition: transform 900ms var(--ease), filter 900ms var(--ease); }
.hero-visual-frame:hover .hero-media-cover { transform: scale(1.045); filter: contrast(1.08) saturate(1.08); }
.skill-chip { transition: transform 320ms var(--ease), background 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease); }
.skill-chip:hover { transform: translateY(-4px) rotate(-1deg); }
.skill-chip:hover .skill-chip-icon { transform: rotate(12deg) scale(1.15); }
.exp-header { transition: padding-left 360ms var(--ease), border-color 360ms var(--ease); }
.exp-header:hover { padding-left: var(--sp-3); border-color: var(--line-accent); }
.exp-title { transition: color 300ms var(--ease), letter-spacing 300ms var(--ease); }
.exp-card:hover .exp-title { letter-spacing: .015em; }
.exp-node { transition: transform 420ms var(--ease), background 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease); }
.exp-card:hover .exp-node { transform: scale(1.3); }
.project-card { transition: transform 650ms var(--ease), border-color 650ms var(--ease), box-shadow 650ms var(--ease); }
.project-card:hover { transform: translateY(-8px) perspective(900px) rotateX(1deg); box-shadow: 0 24px 60px rgba(0, 0, 0, .58); }
.project-graphic-col { transition: transform 700ms var(--ease), background 700ms var(--ease); }
.project-card:hover .project-graphic-col { transform: scale(.98); background: linear-gradient(135deg, var(--accent-dim), var(--surface-2)); }
.project-graphic-icon-wrap { transition: transform 650ms var(--ease), color 650ms var(--ease); }
.project-card:hover .project-graphic-icon-wrap { transform: rotate(8deg) scale(1.12); color: var(--accent); }
.edu-card { transition: padding-left 450ms var(--ease), border-color 450ms var(--ease), background 450ms var(--ease); }
.edu-card:hover { padding-left: var(--sp-4); border-color: var(--line-accent); background: linear-gradient(90deg, var(--accent-dim), transparent 55%); }
.cert-card { transition: transform 650ms var(--ease), box-shadow 650ms var(--ease), border-color 650ms var(--ease); }
.cert-card:hover { transform: translateY(-8px) rotate(.7deg); }
.cert-view-link { transition: color 300ms var(--ease), letter-spacing 300ms var(--ease); }
.cert-card:hover .cert-view-link { color: var(--accent); letter-spacing: .05em; }
.contact-channel-row { transition: transform 420ms var(--ease), border-color 420ms var(--ease), background 420ms var(--ease); }
.contact-channel-row:hover { transform: translateX(7px); border-color: var(--line-accent); background: linear-gradient(90deg, var(--accent-dim), transparent 75%); }

@media (prefers-reduced-motion: reduce) {
  .nav-link, .btn, .hero-visual-container, .hero-media-cover, .skill-chip,
  .exp-header, .exp-title, .exp-node, .project-card, .project-graphic-col,
  .project-graphic-icon-wrap, .edu-card, .cert-card, .cert-view-link,
  .contact-channel-row { transition: none; transform: none; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; font-family: var(--font-display); color: var(--text-pure); }
p { max-width: 68ch; }

/* ============================================================
   OVERSIZED TYPOGRAPHIC WATERMARKS (Section Titles as Graphic)
   ============================================================ */
.section {
  padding: var(--sp-24) 0 var(--sp-28);
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
}
.section + .section {
  border-top: 1px solid var(--line);
}

.section-watermark-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-watermark);
  user-select: none;
  overflow: hidden;
}
.section-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: var(--t-watermark);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--watermark-stroke);
  opacity: 0.9;
  transition: transform 1s var(--ease);
}
.watermark-right { top: -0.1em; right: -0.2em; text-align: right; }
.watermark-left  { top: -0.1em; left: -0.2em; text-align: left; }
.watermark-center{ top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

/* Subtle solid watermark variant */
.watermark-faint-solid {
  color: var(--watermark-fill);
  -webkit-text-stroke: 1px var(--watermark-stroke);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  position: relative;
  z-index: var(--z-content);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-6);
  z-index: var(--z-preloader); transition: opacity .6s var(--ease);
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-name {
  font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 800;
  letter-spacing: -.02em; color: var(--text-pure);
}
.preloader-bar-wrap { width: 180px; height: 2px; background: var(--line-light); overflow: hidden; border-radius: 1px; }
.preloader-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.preloader-pct { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--muted); letter-spacing: .08em; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: var(--z-nav); display: flex; align-items: center;
  transition: background var(--t-normal) var(--ease), border-color var(--t-normal) var(--ease);
}
#site-nav.scrolled {
  background: rgba(8, 9, 11, 0.88); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}
.nav-logo {
  font-family: var(--font-display); font-size: var(--t-base); font-weight: 800;
  color: var(--text-pure); letter-spacing: -.01em; display: flex; align-items: center; gap: 4px;
}
.nav-logo span { color: var(--accent); }
.nav-links-wrap { position: relative; display: flex; align-items: center; gap: var(--sp-1); }
.nav-link {
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease); position: relative; z-index: 1;
}
.nav-link:hover, .nav-link.active { color: var(--text-pure); }
.nav-link:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
#site-nav .nav-logo,
#site-nav .nav-link,
#site-nav .nav-link:hover,
#site-nav .nav-link.active,
#site-nav .btn-ghost { color: #FFFFFF; }
.nav-underline {
  position: absolute; bottom: -2px; height: 2px; background: var(--accent);
  transition: left var(--t-normal) var(--ease), width var(--t-normal) var(--ease);
  pointer-events: none; border-radius: 1px;
}
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.theme-toggle {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-light); border-radius: 50%; background: var(--surface);
  color: var(--text); cursor: pointer; transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); transform: rotate(18deg) scale(1.08); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 3px; }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.mobile-toggle {
  display: none; background: none; border: 1px solid var(--line); cursor: pointer;
  padding: var(--sp-2); color: var(--text); border-radius: var(--r-sm);
}
.mobile-toggle svg { display: block; width: 20px; height: 20px; }
.mobile-toggle:focus-visible { outline: 2px solid var(--accent-ring); }

/* ============================================================
   BUTTONS (Confident Editorial Scale)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.85rem 1.65rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent; line-height: 1;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 3px; }
.btn-primary {
  background: var(--accent); color: #FFFFFF; border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-ghost {
  background: transparent; color: var(--text-pure); border-color: var(--line-light);
}
.btn-ghost:hover {
  background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.68rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header-block {
  margin-bottom: var(--sp-12);
  position: relative;
}
.section-eyebrow {
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3);
}
.section-eyebrow::after {
  content: ""; flex: 0 0 32px; height: 2px; background: var(--accent); opacity: .75;
}
.section-title {
  font-size: var(--t-4xl); font-weight: 800; letter-spacing: -.03em;
  color: var(--text-pure); line-height: 1.08; margin-bottom: var(--sp-4);
}
.section-lead {
  font-size: var(--t-lg); color: var(--muted); max-width: 62ch; line-height: 1.7;
}

/* ============================================================
   HERO — MAGAZINE COVER CROP & HAND-DRAWN ACCENT
   ============================================================ */
.hero-section {
  min-height: 100dvh;
  background: var(--home-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--sp-8)) 0 var(--sp-16);
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line-light);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow-pill .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-name {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--text-pure);
  -webkit-text-stroke: 1px var(--name-edge);
  paint-order: stroke fill;
  margin-bottom: var(--sp-4);
}

.hero-role-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-6);
}
.hero-role {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Hand-drawn SVG Accent Curve / Underline */
.hero-hand-accent {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 180px;
  height: 16px;
  pointer-events: none;
  overflow: visible;
}
.hero-hand-accent path {
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  animation: drawAccent 1.6s var(--ease) forwards;
}
@keyframes drawAccent {
  from { stroke-dashoffset: 220; }
  to { stroke-dashoffset: 0; }
}

.hero-pitch {
  font-size: var(--t-lg);
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: var(--sp-8);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hero-social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-social-link:hover {
  color: var(--accent); border-color: var(--accent); transform: translateY(-2px);
}
.hero-social-link svg { width: 18px; height: 18px; }

/* Right Column: Photographic Cover Crop Visual Frame */
.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

/* Solid accent color-block behind photo */
.hero-accent-backdrop {
  position: absolute;
  inset: -14px -14px 14px 14px;
  background: var(--accent);
  border-radius: var(--r-xl);
  z-index: 0;
  transition: transform 0.4s var(--ease);
}
.hero-visual-frame:hover .hero-accent-backdrop {
  transform: translate(6px, -6px);
}

.hero-visual-container {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-light);
  box-shadow: var(--sh-lift);
  clip-path: inset(0 0 0 0 round var(--r-xl));
}

/* Video-ready presentation layer */
.hero-media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05);
  animation: photoWipe 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes photoWipe {
  0% { clip-path: inset(100% 0 0 0); transform: scale(1.06); }
  100% { clip-path: inset(0 0 0 0); transform: scale(1); }
}

.hero-visual-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(17, 18, 22, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-visual-badge .badge-title {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: 0.04em;
}
.hero-visual-badge .badge-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Marquee Loop */
.hero-marquee-wrap {
  margin-top: var(--sp-12);
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0;
  background: rgba(17, 18, 22, 0.35);
}
.hero-marquee {
  display: flex;
  gap: var(--sp-6);
  white-space: nowrap;
  will-change: transform;
  animation: marqueeLoop 30s linear infinite;
}
.hero-marquee:hover {
  animation-play-state: paused;
}
.hero-marquee span {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.hero-marquee .sep { color: var(--accent); font-weight: 800; }
@keyframes marqueeLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT — PULL QUOTE + COUNT-UP STATS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.about-left { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--text-pure);
}
.about-statement em {
  color: var(--accent); font-style: normal;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.stat-block {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-card);
  border-left: 3px solid var(--accent);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--t-5xl);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: var(--sp-2);
}
.about-right p {
  font-size: var(--t-base);
  color: var(--muted);
  line-height: 1.8;
}

/* ============================================================
   SKILLS — REAL ICONS & GROUPED EDITORIAL CHIPS
   ============================================================ */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.skills-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}
.skills-row:first-child { border-top: 1px solid var(--line); }
.skills-cat {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  flex: 0 0 200px;
  padding-top: 6px;
  text-transform: uppercase;
}
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  flex: 1;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-light);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text);
  letter-spacing: .04em;
  cursor: default;
  transition: all var(--t-fast) var(--ease);
}
.skill-chip-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.skill-chip-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* Solid accent fill on hover + inverting icon */
.skill-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-dim);
}
.skill-chip:hover .skill-chip-icon {
  color: #FFFFFF;
}

/* ============================================================
   EXPERIENCE — STREAMLINED ACCORDION (NO DATES)
   ============================================================ */
.exp-company-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--sp-6);
  border-bottom: 2px solid var(--line-light);
  margin-bottom: var(--sp-8);
}
.exp-company-name {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-pure);
}
.exp-company-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: .1em;
  text-align: right;
  line-height: 1.5;
}

.exp-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.exp-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.exp-card {
  position: relative;
  padding-left: var(--sp-12);
}
.exp-node {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-light);
  background: var(--bg);
  transition: all var(--t-fast) var(--ease);
  z-index: 1;
}
.exp-card.open .exp-node,
.exp-card:hover .exp-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
  gap: var(--sp-4);
  cursor: pointer;
}
.exp-header:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.exp-header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.exp-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: .1em;
  min-width: 22px;
  font-weight: 700;
}
.exp-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-pure);
}
.exp-card.open .exp-title,
.exp-card:hover .exp-title {
  color: var(--accent);
}
.exp-toggle-btn {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.exp-toggle-btn svg { transition: transform var(--t-normal) var(--ease); }
.exp-card.open .exp-toggle-btn svg { transform: rotate(180deg); }

.exp-body { overflow: hidden; height: 0; }
.exp-body-inner { padding: var(--sp-6) 0 var(--sp-6); }
.exp-short { font-size: var(--t-base); color: var(--muted); margin-bottom: var(--sp-5); font-weight: 500; }
.exp-details { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.exp-details li { font-size: var(--t-sm); color: var(--text); padding-left: var(--sp-5); position: relative; line-height: 1.6; }
.exp-details li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--accent); }
.exp-tech { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ============================================================
   PROJECTS — DIRECTION B: BOLD GRAPHIC COLOR PANELS (NO BROKEN IMAGES)
   ============================================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.project-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-12);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-card);
  transition: transform var(--t-normal) var(--ease), border-color var(--t-normal) var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
}
.project-card:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 4px; }
.project-detail-hint {
  display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em;
  color: var(--accent); transition: letter-spacing 300ms var(--ease);
}
.project-card:hover .project-detail-hint { letter-spacing: .16em; }
.project-card:not(.open) .project-desc,
.project-card:not(.open) .project-impact-box,
.project-card:not(.open) .project-tech-row,
.project-card:not(.open) .project-actions { display: none; }
.project-card.open .project-detail-hint { display: none; }
.project-card.open .project-desc,
.project-card.open .project-impact-box,
.project-card.open .project-tech-row,
.project-card.open .project-actions { animation: projectDetailsIn .5s var(--ease) both; }
@keyframes projectDetailsIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-card:nth-child(even) .project-graphic-col {
  order: 1;
}

/* Custom Line-art Graphic Initial Panel */
.project-graphic-col {
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--line-light);
}
.project-graphic-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}
.project-graphic-icon-wrap {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}
.project-graphic-icon-wrap svg { width: 36px; height: 36px; stroke: currentColor; }
.project-graphic-badge {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-pure);
  position: relative;
  z-index: 1;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-num-tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.project-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.project-desc {
  color: var(--muted);
  font-size: var(--t-base);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.project-impact-box {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 0.65rem 1rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: var(--sp-6);
}
.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.project-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-list { display: flex; flex-direction: column; }
.edu-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.edu-card:first-child { padding-top: 0; }
.edu-card:last-child { border-bottom: none; }
.edu-period {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: .08em;
  font-weight: 600;
  padding-top: 3px;
}
.edu-degree {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: var(--sp-2);
  line-height: 1.35;
}
.edu-institution { font-size: var(--t-sm); color: var(--muted); }

/* ============================================================
   CERTIFICATIONS CAROUSEL & LIGHTBOX
   ============================================================ */
.carousel-wrap {
  position: relative;
  overflow: hidden;
}
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: var(--sp-6);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.cert-slide {
  flex: 0 0 calc(33.333% - var(--sp-4));
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--sh-card);
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease), border-color var(--t-normal) var(--ease);
  cursor: pointer;
  text-align: left;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lift);
  border-color: var(--line-accent);
}
.cert-card:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 3px; }

.cert-badge {
  display: inline-flex; align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill); border: 1px solid;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  align-self: flex-start;
}
.cert-badge.completion   { border-color: var(--accent-ring); color: var(--accent); background: var(--accent-dim); }
.cert-badge.accreditation{ border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.cert-badge.milestone    { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.cert-badge.workshop     { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.cert-badge.verified     { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.cert-badge.internship   { border-color: var(--accent-ring); color: var(--accent); background: var(--accent-dim); }
.cert-badge.appreciation { border-color: var(--muted); color: var(--muted); }

.cert-issuer {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-pure);
}
.cert-name { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; flex: 1; }
.cert-date { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted-2); letter-spacing: .06em; }
.cert-view-link {
  font-family: var(--font-mono); font-size: var(--t-xs); color: var(--accent);
  letter-spacing: .06em; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}

.carousel-controls {
  display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); justify-content: center;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-fast) var(--ease);
}
.carousel-btn:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}
.carousel-btn:focus-visible { outline: 2px solid var(--accent-ring); }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: var(--sp-2); align-items: center; }
.carousel-dot {
  position: relative; width: 24px; height: 4px; border-radius: 2px;
  background: var(--line-light); overflow: hidden; cursor: pointer;
  transition: width var(--t-fast) var(--ease);
}
.carousel-dot.active { width: 42px; }
.carousel-dot-fill {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; border-radius: 2px;
}
.carousel-dot.active .carousel-dot-fill {
  transform: scaleX(1); transition: transform 3.5s linear;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(10px);
  z-index: var(--z-lightbox); display: flex; align-items: center; justify-content: center; padding: var(--sp-8);
  opacity: 0; pointer-events: none; transition: opacity var(--t-normal) var(--ease);
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-box {
  position: relative; background: var(--surface); border: 1px solid var(--line-light);
  border-radius: var(--r-lg); overflow: hidden; max-width: 900px; width: 100%;
  box-shadow: var(--sh-modal); transform: translateY(16px); transition: transform var(--t-normal) var(--ease);
}
.lightbox-overlay.active .lightbox-box { transform: translateY(0); }
.lightbox-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-mono); font-size: var(--t-xs); cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-2);
}
.lightbox-close:hover { background: var(--surface-3); color: var(--accent); }
#lightbox-img { width: 100%; display: block; max-height: 78vh; object-fit: contain; }
.lightbox-caption {
  padding: var(--sp-4) var(--sp-6); font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--muted); border-top: 1px solid var(--line);
}

/* ============================================================
   CONTACT — FLOATING CARD + GMAIL COMPOSE AUTOMATION
   ============================================================ */
.contact-section-container {
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: all var(--t-fast) var(--ease);
}
.contact-channel-row:hover {
  border-color: var(--line-accent);
  background: var(--surface-2);
}
.contact-channel-info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.contact-channel-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-ring);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.contact-channel-icon svg { width: 18px; height: 18px; }
.contact-channel-meta { display: flex; flex-direction: column; }
.contact-channel-label {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
}
.contact-channel-val { font-size: var(--t-sm); color: var(--text-pure); font-weight: 500; }

/* Floating Contact Card */
.contact-floating-card {
  background: var(--surface);
  border: 1px solid var(--line-light);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-lift);
  position: relative;
  z-index: 2;
}
.contact-form-header {
  margin-bottom: var(--sp-6);
}
.contact-form-title {
  font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; color: var(--text-pure);
  margin-bottom: var(--sp-2);
}
.contact-form-subtitle {
  font-size: var(--t-sm); color: var(--muted);
}

.form-group {
  display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5);
}
.form-label {
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase; font-weight: 600;
}
.form-group:focus-within .form-label { color: var(--accent); }

.form-input, .form-textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text-pure); font-family: var(--font-body); font-size: var(--t-base);
  padding: 0.85rem 1rem; width: 100%; resize: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { min-height: 125px; }

.form-error {
  font-family: var(--font-mono); font-size: var(--t-xs); color: #FF4D4D;
  margin-top: var(--sp-1); display: none;
}
.form-group.invalid .form-error { display: block; }
.form-group.invalid .form-input,
.form-group.invalid .form-textarea { border-color: #FF4D4D; }

.form-submit-btn {
  width: 100%;
  padding: 1rem 1.75rem;
  font-size: var(--t-sm);
  margin-top: var(--sp-2);
}
.form-submit-spinner {
  display: none; width: 16px; height: 16px; border: 2px solid rgba(8,9,11,0.3);
  border-top-color: #FFFFFF; border-radius: 50%; animation: spin .7s linear infinite;
}
.btn.loading .form-submit-spinner { display: block; }
.btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline status message */
.form-feedback-notice {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.form-feedback-notice.shown { display: block; }
.form-feedback-notice.gmail-opened {
  border-color: var(--accent-ring);
  color: var(--text-pure);
}
.form-feedback-notice .fallback-link {
  color: var(--accent);
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
  font-weight: 600;
}

/* ============================================================
   VOICE INTRO WIDGET
   ============================================================ */
#voice-widget {
  position: fixed; bottom: 26px; left: 26px; z-index: var(--z-voice);
  background: var(--surface-2); border: 1px solid var(--line-light);
  border-radius: var(--r-pill); padding: 0.65rem 1.15rem;
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em;
  color: var(--muted); cursor: pointer; user-select: none;
  box-shadow: var(--sh-card);
  backdrop-filter: blur(12px);
  transition: all var(--t-fast) var(--ease);
}
#voice-widget:hover { border-color: var(--accent); color: var(--text-pure); }
#voice-widget:focus-visible { outline: 2px solid var(--accent-ring); }
#voice-widget[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.voice-icon svg { display: block; width: 15px; height: 15px; }
.voice-label { letter-spacing: .1em; text-transform: uppercase; font-size: 0.68rem; font-weight: 600; }
.voice-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
#voice-widget[aria-pressed="true"] .voice-eq { display: flex; }
#voice-widget[aria-pressed="true"] .voice-label::before { content: "STOP "; }
.eq-bar { width: 2px; background: var(--accent); border-radius: 1px; transform-origin: bottom; }
.eq-bar:nth-child(1) { height: 6px; animation: eqAnim 0.9s ease-in-out infinite; }
.eq-bar:nth-child(2) { height: 11px; animation: eqAnim 0.9s ease-in-out infinite .15s; }
.eq-bar:nth-child(3) { height: 8px; animation: eqAnim 0.9s ease-in-out infinite .3s; }
.eq-bar:nth-child(4) { height: 13px; animation: eqAnim 0.9s ease-in-out infinite .45s; }
@keyframes eqAnim { 0%,100%{ transform: scaleY(.3); } 50%{ transform: scaleY(1); } }

/* ============================================================
   CUSTOM CURSOR (SIGNAL AMBER)
   ============================================================ */
#cursor-dot, #cursor-ring {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: var(--z-cursor); transform: translate(-50%, -50%);
  top: 0; left: 0;
}
#cursor-dot { width: 6px; height: 6px; background: var(--accent); }
#cursor-ring {
  width: 32px; height: 32px; border: 1.5px solid rgba(15, 118, 110, 0.45);
  transition: width .2s var(--ease), height .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
#cursor-ring.hover-link { width: 48px; height: 48px; border-color: var(--cursor-hover); background: rgba(16, 185, 129, 0.08); }
#cursor-ring.hover-btn { width: 56px; height: 56px; border-color: var(--cursor-hover); background: rgba(16, 185, 129, 0.18); }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: var(--sp-16) 0 var(--sp-12);
  border-top: 1px solid var(--line);
  position: relative; z-index: var(--z-content);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-6);
}
.footer-brand { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 800; color: var(--text-pure); }
.footer-brand span { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: var(--surface-trans);
  z-index: calc(var(--z-nav) + 10);
  display: flex; flex-direction: column; padding: var(--sp-8) var(--gutter);
  transform: translateX(100%); transition: transform var(--t-slow) var(--ease);
  visibility: hidden;
}
.mobile-nav-overlay.open { transform: translateX(0); visibility: visible; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-10); }
.mobile-nav-close {
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-4); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--t-xs);
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; flex: 1; }
.mobile-nav-link {
  font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 800;
  color: var(--text-pure); display: block; padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line); transition: color var(--t-fast) var(--ease);
}
.mobile-nav-link:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .hero-editorial-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero-visual-frame { max-width: 380px; margin: 0 auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-graphic-col { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .skills-row { flex-direction: column; gap: var(--sp-3); }
  .skills-cat { flex: 0 0 auto; }
  .cert-slide { flex: 0 0 calc(50% - var(--sp-3)); }
  .nav-links-wrap, .nav-actions .btn-ghost { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .section { padding: var(--sp-16) 0 var(--sp-20); }
  .hero-name { font-size: 2.65rem; }
  .cert-slide { flex: 0 0 calc(100% - var(--sp-2)); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .edu-card { grid-template-columns: 1fr; gap: var(--sp-2); }
  .contact-channel-row { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

@media (max-width: 390px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
}

/* Final interaction timing overrides keep the layered transitions above component defaults. */
.btn { transition-duration: 360ms; }
.skill-chip { transition: transform 320ms var(--ease), background 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease); }
.project-card { transition: transform 650ms var(--ease), border-color 650ms var(--ease), box-shadow 650ms var(--ease); }
.cert-card { transition: transform 650ms var(--ease), box-shadow 650ms var(--ease), border-color 650ms var(--ease); }
.edu-card { transition: padding-left 450ms var(--ease), border-color 450ms var(--ease), background 450ms var(--ease); }
.contact-channel-row { transition: transform 420ms var(--ease), border-color 420ms var(--ease), background 420ms var(--ease); }
.hero-visual-container { transition: transform 650ms var(--ease), box-shadow 650ms var(--ease); }
.hero-media-cover { transition: transform 900ms var(--ease), filter 900ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .btn, .skill-chip, .project-card, .edu-card, .contact-channel-row,
  .hero-visual-container, .hero-media-cover { transition: none; }
}
