/* UI kit — additional layout styles beyond design tokens */
@import url("../../colors_and_type.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

/* ----- Layout ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0 0 8px;
}
.section-subtitle {
  color: var(--fg2);
  font-size: 18px;
  margin: 0 0 56px;
  max-width: 640px;
}

/* ----- Reveal animation (IntersectionObserver toggles `is-in`) ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-left.is-in,
.reveal.from-right.is-in { transform: translateX(0); }

/* Stagger children */
.stagger > * { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }
.stagger.is-in > *:nth-child(9) { transition-delay: 640ms; }

/* ----- Tag pill (used everywhere) ----- */
.tagpill {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.tagpill.cat-ai          { background: rgba(124,58,237,0.12); color: #B68BFF; border-color: rgba(124,58,237,0.28); }
.tagpill.cat-backend     { background: rgba(88,166,255,0.12); color: #79B8FF; border-color: rgba(88,166,255,0.28); }
.tagpill.cat-frontend    { background: rgba(57,208,216,0.12); color: #5BE2EA; border-color: rgba(57,208,216,0.28); }
.tagpill.cat-infra       { background: rgba(63,185,80,0.12);  color: #56D068; border-color: rgba(63,185,80,0.28); }
.tagpill.cat-integration { background: rgba(240,136,62,0.12); color: #F7A766; border-color: rgba(240,136,62,0.28); }

/* ----- Button ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 24px rgba(88,166,255,0.28); }
.btn-outline  { background: transparent; color: var(--fg1); border-color: var(--border); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-success  { background: var(--success); color: #08120A; }
.btn-success:hover { background: #4dc861; box-shadow: 0 10px 24px rgba(63,185,80,0.25); }
.btn-ghost    { background: transparent; color: var(--fg2); }
.btn-ghost:hover { color: var(--fg1); background: var(--surface); }

/* SVG icons inside buttons / cards */
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

/* ----- Surface card ----- */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2), var(--inset-top);
}

/* ----- Toast ----- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 24px);
  background: var(--surface-2);
  border: 1px solid var(--border-bold);
  color: var(--fg1);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-3);
  z-index: 100;
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--success); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px;
  background: rgba(13,17,23,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
.nav-scrolled {
  background: rgba(13,17,23,0.78);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
  color: var(--fg1); text-decoration: none;
  display: inline-flex; align-items: baseline;
  letter-spacing: -0.02em;
}
.nav-cursor {
  display: inline-block; width: 8px; height: 18px;
  background: var(--accent); margin-left: 2px;
  transform: translateY(2px);
  animation: blink 1.1s steps(2,end) infinite;
}
@keyframes blink { 50% { opacity: 0 } }

.nav-links {
  display: flex; gap: 26px; margin-left: auto;
}
.nav-link {
  font-size: 14px; color: var(--fg2); text-decoration: none;
  padding: 6px 0; position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--fg1); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-burger {
  display: none;
  margin-left: auto; background: transparent; color: var(--fg1);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px; cursor: pointer;
}

.nav-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 100%; background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav-drawer {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer a {
  display: block; padding: 12px 8px;
  color: var(--fg1); text-decoration: none; font-size: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-drawer a:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--success); letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 4px rgba(63,185,80,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(63,185,80,0); }
}
.hero-name {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--fg1);
}
.hero-title {
  font-size: 28px; font-weight: 600; color: var(--fg1);
  margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
}
.typewriter-text { color: var(--accent); }
.typewriter-caret {
  display: inline-block; width: 3px; height: 26px;
  background: var(--accent); margin-left: 4px;
  vertical-align: -4px;
  animation: blink 1.1s steps(2,end) infinite;
}
.hero-tagline {
  font-size: 17px; color: var(--fg2); line-height: 1.6;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-tagline-sub {
  font-family: var(--font-mono); font-size: 13px; color: var(--fg3);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg2); cursor: pointer;
  display: grid; place-items: center;
  animation: bob 2.4s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Code panel (right side of hero) */
.code-panel {
  background: #0B0F14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3), var(--inset-top);
}
.code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #0F141A;
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.code-dot.d-r { background: #F85149; }
.code-dot.d-y { background: #D29922; }
.code-dot.d-g { background: #3FB950; }
.code-file { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }
.code-body {
  margin: 0; padding: 18px 18px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
  color: var(--fg1);
}
.code-line { white-space: pre; }
.c-key     { color: #FF7B72; }
.c-prop    { color: #79C0FF; }
.c-fg      { color: var(--fg1); }
.c-comment { color: var(--fg3); font-style: italic; }
.c-str     { color: #A5D6FF; }
.c-str.cat-ai          { color: #B68BFF; }
.c-str.cat-backend     { color: #79B8FF; }
.c-str.cat-frontend    { color: #5BE2EA; }
.c-str.cat-infra       { color: #56D068; }
.c-str.cat-integration { color: #F7A766; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.photo-frame {
  position: relative;
  width: 260px; height: 260px;
  border-radius: 999px;
  padding: 4px;
}
.photo-glow {
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: conic-gradient(from 0deg,
    var(--ai), var(--accent), var(--frontend), var(--infra), var(--integration), var(--ai));
  filter: blur(8px); opacity: 0.55;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
}
.photo-initial {
  font-family: var(--font-mono);
  font-size: 56px; font-weight: 700; color: var(--fg1);
  letter-spacing: -0.04em;
}
.photo-caption { font-family: var(--font-mono); font-size: 11px; color: var(--fg3); }
.photo-img {
  width: 100%; height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.photo-name-tag {
  position: absolute; left: 50%; bottom: -16px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--fg1);
  white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.photo-name-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 4px rgba(63,185,80,0.18);
  animation: pulse 2s ease-in-out infinite;
}

.about-body p {
  margin: 0 0 18px;
  font-size: 16px; line-height: 1.75; color: var(--fg1);
  max-width: 640px;
}
.about-body p:last-child { margin-bottom: 0; }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: all var(--dur-base) var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3), inset 0 0 0 1px var(--stat-accent, var(--accent));
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--stat-accent, var(--accent));
}
.stat-label { font-size: 13px; color: var(--fg2); }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-rows { display: flex; flex-direction: column; gap: 24px; }
.skill-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}
.skill-row:first-child { border-top: none; padding-top: 0; }
.skill-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; padding-top: 6px;
  letter-spacing: 0.02em;
}
.cat-label-ai          { color: #B68BFF; }
.cat-label-backend     { color: #79B8FF; }
.cat-label-frontend    { color: #5BE2EA; }
.cat-label-infra       { color: #56D068; }
.cat-label-integration { color: #F7A766; }
.skill-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.skill-pills .tagpill {
  padding: 6px 11px; font-size: 12px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.skill-pills .tagpill:hover { transform: translateY(-2px); }
.skill-pills .tagpill.cat-ai:hover          { box-shadow: 0 6px 16px rgba(124,58,237,0.25); }
.skill-pills .tagpill.cat-backend:hover     { box-shadow: 0 6px 16px rgba(88,166,255,0.25); }
.skill-pills .tagpill.cat-frontend:hover    { box-shadow: 0 6px 16px rgba(57,208,216,0.25); }
.skill-pills .tagpill.cat-infra:hover       { box-shadow: 0 6px 16px rgba(63,185,80,0.25); }
.skill-pills .tagpill.cat-integration:hover { box-shadow: 0 6px 16px rgba(240,136,62,0.25); }

/* ============================================================
   PROJECTS — FEATURED
   ============================================================ */
.featured-list { display: flex; flex-direction: column; gap: 80px; margin-bottom: 80px; }
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  align-items: center;
}
.featured.is-flipped .featured-media { order: 2; }
.featured.is-flipped .featured-body  { order: 1; }

.featured-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-3);
  aspect-ratio: 16/10;
}
.glow-ai          { box-shadow: var(--shadow-3), 0 0 60px rgba(124,58,237,0.20); }
.glow-frontend    { box-shadow: var(--shadow-3), 0 0 60px rgba(57,208,216,0.18); }
.glow-infra       { box-shadow: var(--shadow-3), 0 0 60px rgba(63,185,80,0.18); }

.media-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #0F141A;
  border-bottom: 1px solid var(--border);
}
.media-dot { width: 10px; height: 10px; border-radius: 999px; }
.media-dot.d-r { background: #F85149; }
.media-dot.d-y { background: #D29922; }
.media-dot.d-g { background: #3FB950; }
.media-url { margin-left: 12px; font-size: 12px; color: var(--fg3); }

.media-canvas {
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
  height: calc(100% - 38px);
  background:
    radial-gradient(400px 200px at 20% 20%, rgba(88,166,255,0.10), transparent 60%),
    radial-gradient(400px 200px at 80% 80%, rgba(124,58,237,0.10), transparent 60%);
}
.media-glyph { font-size: 52px; line-height: 1; }
.media-fake-rows { display: flex; flex-direction: column; gap: 10px; }
.media-fake-rows .row {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 100%);
}
.media-fake-rows .r1 { width: 80%; }
.media-fake-rows .r2 { width: 60%; }
.media-fake-rows .r3 { width: 72%; }
.media-fake-rows .r4 { width: 50%; }
.media-fake-pills { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.media-pill {
  padding: 6px 10px; border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 11px; color: var(--fg1);
}

.featured-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.featured-glyph { font-size: 28px; line-height: 1; }
.featured-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.featured-desc { font-size: 15px; color: var(--fg2); line-height: 1.7; margin: 0 0 18px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.metric-pill {
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--fg1);
}
.featured-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   PROJECTS — GRID
   ============================================================ */
.grid-sep {
  display: flex; align-items: center; gap: 20px;
  margin: 0 0 32px;
}
.grid-sep::before, .grid-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}
.grid-sep span { color: var(--fg3); font-size: 13px; }

.grid-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gridcard {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.gridcard:hover { transform: translateY(-4px); }
.gridcard.glow-hover-ai:hover          { box-shadow: var(--glow-ai); }
.gridcard.glow-hover-backend:hover     { box-shadow: var(--glow-accent); }
.gridcard.glow-hover-frontend:hover    { box-shadow: var(--glow-frontend); }
.gridcard.glow-hover-infra:hover       { box-shadow: var(--glow-infra); }
.gridcard.glow-hover-integration:hover { box-shadow: var(--glow-integration); }
.gridcard-head { display: flex; align-items: flex-start; gap: 10px; }
.gridcard-glyph { font-size: 22px; line-height: 1.1; }
.gridcard-title { flex: 1; font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; }
.gridcard-gh {
  color: var(--fg2);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  transition: all var(--dur-fast) var(--ease-out);
}
.gridcard-gh:hover { color: var(--accent); background: var(--accent-soft); }
.gridcard-desc { font-size: 13px; color: var(--fg2); line-height: 1.6; margin: 0; flex: 1; }

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.tl { position: relative; padding: 8px 0; }
.tl-spine {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
  transform: translateX(-0.5px);
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-bottom: 36px;
  align-items: flex-start;
}
.tl-marker {
  grid-column: 2;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 4px auto 0;
  font-size: 24px; line-height: 1;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.tl-glyph { font-size: 24px; }
.tl-card {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.tl-left  .tl-card { grid-column: 1; text-align: right; }
.tl-left  .tl-card .tag-row,
.tl-left  .tl-card .tl-head { justify-content: flex-end; }
.tl-right .tl-card { grid-column: 3; }

.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tl-title { font-size: 18px; font-weight: 600; margin: 0; }
.tl-org { color: var(--fg2); font-size: 12px; margin-top: 4px; }
.tl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(63,185,80,0.14); color: #56D068;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
}
.tl-pulse {
  width: 7px; height: 7px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 0 rgba(63,185,80,0.5);
  animation: pulse 1.8s ease-in-out infinite;
}
.tl-desc { font-size: 14px; color: var(--fg2); line-height: 1.65; margin: 0; }

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ach-card {
  position: relative;
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--dur-base) var(--ease-out);
}
.ach-card:hover { transform: translateY(-3px); }
.ach-ring {
  position: absolute; inset: 0; border-radius: var(--radius-md);
  pointer-events: none;
}
.tone-gold   .ach-ring { box-shadow: inset 0 0 0 1px rgba(210,153,34,0.55), 0 0 30px rgba(210,153,34,0.18); }
.tone-silver .ach-ring { box-shadow: inset 0 0 0 1px rgba(177,186,196,0.5),  0 0 30px rgba(177,186,196,0.14); }
.tone-bronze .ach-ring { box-shadow: inset 0 0 0 1px rgba(189,123,61,0.55), 0 0 30px rgba(189,123,61,0.18); }

.ach-head { display: flex; align-items: center; gap: 12px; }
.ach-glyph { font-size: 28px; line-height: 1; }
.ach-title { font-size: 18px; font-weight: 600; margin: 0; }
.ach-sub { color: var(--fg2); font-size: 14px; font-style: italic; }
.ach-where { font-size: 12px; color: var(--fg3); }
.ach-desc { color: var(--fg2); font-size: 14px; line-height: 1.65; margin: 4px 0 8px; }
.ach-badge {
  align-self: flex-start;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.ach-badge.tone-gold   { background: rgba(210,153,34,0.14); color: #E5BA50; }
.ach-badge.tone-silver { background: rgba(177,186,196,0.14); color: #B1BAC4; }
.ach-badge.tone-bronze { background: rgba(189,123,61,0.14); color: #D49A65; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px;
  margin-bottom: 56px;
}
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  text-decoration: none; color: var(--fg1);
  transition: all var(--dur-base) var(--ease-out);
}
a.contact-row:hover { border-color: var(--accent); box-shadow: var(--glow-accent); transform: translateY(-2px); }
.contact-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--accent);
}
.contact-icon .icon { width: 18px; height: 18px; }
.contact-text { flex: 1; min-width: 0; }
.contact-label { font-size: 11px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-value { font-size: 14px; color: var(--fg1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-copy { padding: 6px 12px; font-size: 12px; }
.contact-arrow { color: var(--fg2); }

.hire-panel {
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  box-shadow: var(--shadow-3), 0 0 40px rgba(63,185,80,0.06), inset 0 0 0 1px rgba(63,185,80,0.18);
}
.hire-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(63,185,80,0.14); align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #56D068; letter-spacing: 0.08em;
}
.hire-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--success);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(63,185,80,0.5);
}
.hire-title { font-size: 24px; font-weight: 700; margin: 0; }
.hire-desc { color: var(--fg2); margin: 0; }
.hire-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.hire-divider {
  position: relative; text-align: center;
  margin: 14px 0 8px;
}
.hire-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border-soft);
}
.hire-divider span {
  position: relative; padding: 0 12px; background: var(--surface);
  color: var(--fg3); font-size: 12px;
}

.hire-form { display: flex; flex-direction: column; gap: 14px; }
.hire-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hire-form label { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg2); }
.hire-form input, .hire-form textarea {
  background: #0B0F14; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--fg1); font-family: var(--font-sans); font-size: 14px;
  outline: none; transition: all var(--dur-fast) var(--ease-out);
  resize: vertical;
}
.hire-form input:focus, .hire-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,166,255,0.18);
}
.hire-form input::placeholder, .hire-form textarea::placeholder { color: var(--fg3); }
.hire-form .btn { align-self: flex-start; }
.spinner {
  width: 14px; height: 14px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--fg3); font-size: 13px;
}
.footer-right { display: flex; gap: 16px; }
.footer-right a { color: var(--fg2); transition: color var(--dur-fast) var(--ease-out); }
.footer-right a:hover { color: var(--accent); }
.footer-right .icon { width: 18px; height: 18px; }

/* Languages + certs strip above footer */
.extras {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 24px 0 28px;
}
.extras-block { display: flex; flex-direction: column; gap: 10px; }
.extras-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg3);
}
.extras-items { display: flex; gap: 8px; flex-wrap: wrap; }
.extras-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--fg1);
}
.extras-pill .icon { color: var(--accent); }
.extras-dim { color: var(--fg2); margin-left: 2px; }
@media (max-width: 720px) {
  .extras { grid-template-columns: 1fr; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: 40;
  box-shadow: var(--shadow-2);
}
.back-to-top.is-in { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 200px 1fr; gap: 32px; }
  .stat-grid  { grid-template-columns: repeat(2, 1fr); }
  .featured, .featured.is-flipped { grid-template-columns: 1fr; gap: 24px; }
  .featured.is-flipped .featured-media,
  .featured.is-flipped .featured-body { order: unset; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .skill-row { grid-template-columns: 140px 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; padding-left: 60px; margin-bottom: 28px; }
  .tl-spine { left: 28px; }
  .tl-marker { grid-column: unset; position: absolute; left: 0; top: 0; margin: 0; }
  .tl-left  .tl-card, .tl-right .tl-card { grid-column: unset; text-align: left; }
  .tl-left  .tl-card .tag-row, .tl-left .tl-card .tl-head { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; }
  section.section { padding: var(--section-y-mobile) 0; }
  .hero-name { font-size: 42px; }
  .hero-title { font-size: 22px; }
  .photo-frame { width: 180px; height: 180px; }
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .about-body p { text-align: left; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .hire-form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 36px; }
}
