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

:root {
  --bg: #0c0c0c;
  --bg2: #111111;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #eeebe4;
  --muted: #7a7870;
  --muted2: #555350;
  --accent: #b8f54a;
  --accent-dim: rgba(184,245,74,0.12);
  --accent-border: rgba(184,245,74,0.25);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max: 1100px;
  --radius: 12px;
  --section-px: 2.5rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CURSOR (pointer devices only) ── */
@media (pointer: fine) {
  body { cursor: none; }
  .cursor {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
  }
  .cursor-trail {
    width: 32px; height: 32px;
    border: 1px solid rgba(184,245,74,0.4);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: top 0.12s ease, left 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
  }
}
@media (pointer: coarse) {
  .cursor, .cursor-trail { display: none; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--section-px);
  background: rgba(12,12,12,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.7rem var(--section-px); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo-dot { color: var(--accent); }
.nav-logo-img { height: 26px; width: auto; display: block; }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-resume {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 6px 14px; border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-resume:hover { background: var(--accent-dim); }

/* ── HERO ── */
.hero {
  height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--section-px) 2rem;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-inner {
  flex: 1;
  display: flex; flex-direction: row; align-items: center;
  gap: 4rem;
  max-width: var(--max);
  margin: 0 auto; width: 100%;
  padding: 2rem 0 1.5rem;
}

.hero-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

/* Headshot + floating chips scene */
.hero-photo-scene {
  position: relative;
  flex-shrink: 0;
  width: 500px; height: 500px;
  display: flex; align-items: center; justify-content: center;
}
.hero-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  box-shadow: 0 0 0 8px rgba(184,245,74,0.06), 0 0 60px rgba(184,245,74,0.12);
  flex-shrink: 0;
  z-index: 1;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* ── HERO FLOATING CHIPS ── */
.hero-chip {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #161616;
  border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  text-decoration: none;
  z-index: 2;
  transition:
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
    border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.hero-chip svg { width: 20px; height: 20px; fill: #555; transition: fill 0.25s; }

/* Individual float rhythms (scene 380px, center 190,190, radius 155px) */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
/* Desktop: scene 500px, center (250,250), photo r=140px, chip half=23px
   Angles + radii deliberately varied for organic scattered look            */
.hero-chip--li { top:  55px; left: 348px; --hc-brand:#0a66c2; animation: hero-float 3.2s ease-in-out infinite 0.0s; } /* 35°  r=210 */
.hero-chip--gh { top: 219px; left: 447px; --hc-brand:#e6edf3; animation: hero-float 3.8s ease-in-out infinite 0.7s; } /* 88°  r=220 */
.hero-chip--wa { top: 409px; left: 341px; --hc-brand:#25d366; animation: hero-float 2.9s ease-in-out infinite 1.4s; } /* 148° r=215 */
.hero-chip--vd { top: 431px; left: 132px; --hc-brand:#06b6d4; animation: hero-float 3.6s ease-in-out infinite 0.5s; } /* 205° r=225 */
.hero-chip--ct { top: 306px; left:  32px; --hc-brand:#a78bfa; animation: hero-float 3.1s ease-in-out infinite 1.1s; } /* 248° r=210 */
.hero-chip--rs { top: 147px; left:  28px; --hc-brand:#f472b6; animation: hero-float 3.0s ease-in-out infinite 1.8s; } /* 292° r=215 */
.hero-chip--nx { top:  50px; left: 125px; --hc-brand:#e05c2a; animation: hero-float 3.5s ease-in-out infinite 0.3s; } /* 330° r=205 */

/* Proximity active state */
.hero-chip.is-active {
  transform: scale(1.65) !important;
  animation-play-state: paused;
  border-color: var(--hc-brand);
  box-shadow: 0 0 20px color-mix(in srgb, var(--hc-brand) 40%, transparent);
  background: color-mix(in srgb, var(--hc-brand) 12%, #161616);
  z-index: 10;
}
.hero-chip.is-active svg { fill: var(--hc-brand); }

/* Tooltip */
.hero-chip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: #1c1c1c; border: 1px solid #2e2e2e;
  color: #bbb; font-size: 0.62rem; letter-spacing: 0.04em;
  font-family: var(--font-mono);
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
}
.hero-chip.is-active::after { opacity: 1; }

.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 100px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-location {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-name-row { margin-bottom: 0.25rem; }
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  display: flex; flex-direction: column;
}
.name-line {
  display: block;
  opacity: 0; transform: translateY(40px);
  animation: riseUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.name-line:nth-child(1) { animation-delay: 0.1s; }
.name-line:nth-child(2) { animation-delay: 0.25s; }
.name-line.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238,235,228,0.3);
}
@keyframes riseUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.tagline-bar {
  width: 40px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-tagline p {
  font-family: var(--font-body);
  font-size: 1.15rem; font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.hero-desc {
  font-size: 0.9rem; color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.8; max-width: 420px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #0c0c0c;
  padding: 0.8rem 1.8rem; border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,245,74,0.3);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border2);
  color: var(--text); padding: 0.8rem 1.8rem;
  border-radius: 100px; font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }

/* STATS BAR */
.stats-bar {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1;
  padding: 1.5rem 2.5rem;
  display: flex; flex-direction: column;
}
.stat-divider {
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-unit {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.6;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ── SECTIONS ── */
section {
  padding: 7rem var(--section-px);
}
.section-dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: var(--max);
  margin: 0 auto 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
}

/* ── TIMELINE ── */
.timeline {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.timeline-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
  background: var(--bg2);
}
.timeline-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    var(--bg2) 0%,
    var(--bg2) 48%,
    rgba(17,17,17,0.92) 60%,
    rgba(17,17,17,0.5) 72%,
    rgba(17,17,17,0.12) 85%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.timeline-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative; z-index: 2;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--muted);
  padding: 3px 10px; border-radius: 100px;
}
.timeline-badge.current {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.timeline-content {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  position: relative; z-index: 2;
}
.timeline-marker {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 0.25rem;
}
.marker-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--muted2);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.marker-line {
  width: 1px; flex: 1;
  background: linear-gradient(to bottom, var(--border2), transparent);
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.timeline-story {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.timeline-story strong { color: var(--text); font-weight: 500; }

/* Team photo — full card background with L→R gradient overlay */
.timeline-photo { display: none; }

.timeline-bg-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 50%;
  width: 55%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.45) brightness(0.55);
  z-index: 0;
  pointer-events: none;
  display: block;
  transition: opacity 0.3s;
}

.timeline-highlights {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.highlight {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--muted); font-weight: 300;
}
.highlight-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }

.timeline-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.timeline-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.05em;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px; border-radius: 4px;
}

/* ── PROJECTS ── */

/* ── PROJECTS (Broadsheet) ── */
.projects-list {
  max-width: var(--max);
  margin: 0 auto;
}

.project-row {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.project-row:last-child {
  border-bottom: 1px solid var(--border);
}

.project-row-top {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.project-row-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(184,245,74,0.15); /* intentionally slightly brighter than --accent-dim (0.12) */
  letter-spacing: -0.02em;
}

.project-row-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.project-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-strip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.project-metrics {
  display: flex;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--bg3);
  overflow: hidden;
}

.project-metric {
  flex: 1;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-metric:last-child {
  border-right: none;
}

.project-metric--note {
  flex: 1.5;
  justify-content: center;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-note {
  font-size: 0.75rem;
  color: var(--muted2);
  font-weight: 300;
  margin-top: 0.1rem;
}

.metric-prose {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

.project-tag-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.project-type {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.project-status {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.06em;
  background: var(--bg); border: 1px solid var(--border2);
  color: var(--muted);
  padding: 2px 8px; border-radius: 100px;
}
.project-status.live {
  background: rgba(74,245,124,0.08);
  border-color: rgba(74,245,124,0.25);
  color: #4af57c;
}

/* App section label inside cards (e.g. "Craft Diamonds" / "Employee Directory") */
.screenshots-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Screenshot strips inside project cards */
.project-screenshots {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.project-screenshots::-webkit-scrollbar { display: none; }
.project-strip .project-screenshots:last-child {
  margin-bottom: 0;
}

/* Portrait screenshot rotated to landscape */
.app-screen-wide {
  width: 107px;     /* portrait width  → becomes visual height after rotate */
  height: 190px;    /* portrait height → becomes visual width  after rotate */
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border2);
  display: block;
  object-fit: cover;
  object-position: center;
  transform: rotate(-90deg);
  /* pull neighbouring items in to close the layout gap caused by rotation */
  margin: 0 42px;
}

/* Portrait — mobile app screens */
.app-screen {
  height: 190px;
  width: auto;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--border2);
  display: block;
  object-fit: cover;
}

/* Landscape — website screens */
.web-screen {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  display: block;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

/* Desktop + mobile side by side */
.device-pair {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.device-pair .web-screen {
  height: 180px;
  margin-bottom: 0;
}
.device-pair .mobile-screen {
  width: 78px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  display: block;
  object-fit: cover;
  object-position: top;
}

.project-story {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.project-links {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.project-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 6px 14px; border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.project-link svg { flex-shrink: 0; }
.project-link:hover {
  background: var(--accent);
  color: #0c0c0c;
  box-shadow: 0 4px 18px rgba(184,245,74,0.3);
  transform: translateY(-1px);
}

.project-tech {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.05em;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--muted2);
  padding: 3px 10px; border-radius: 4px;
}

/* ── SKILLS ── */
.skills-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.skill-group { margin-bottom: 2rem; }
.skill-group h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.skill-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-pills span {
  font-size: 0.85rem;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text);
  padding: 5px 14px; border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.skill-pills span:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.ai-card {
  background: var(--bg3);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.ai-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.75rem;
}
.ai-icon {
  color: var(--accent);
  font-size: 1.1rem;
}
.ai-label {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.ai-desc {
  font-size: 0.875rem; color: var(--muted);
  font-weight: 300; line-height: 1.7;
  margin-bottom: 1.25rem;
}
.ai-tools { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.ai-tool {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg2); border-radius: 8px;
  border: 1px solid var(--border);
}
.ai-tool-name {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
}
.ai-tool-use {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.ai-quote {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
  letter-spacing: 0.02em;
}

.lang-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.lang-card h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.lang-list { display: flex; flex-direction: column; gap: 0.7rem; }
.lang-item {
  display: flex; align-items: center; gap: 1rem;
}
.lang-item span {
  font-size: 0.85rem; min-width: 70px;
  font-weight: 400;
}
.lang-bar {
  flex: 1; height: 3px;
  background: var(--border2); border-radius: 100px;
  overflow: hidden;
}
.lang-fill {
  height: 100%; background: var(--accent);
  border-radius: 100px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-fill.animated { transform: scaleX(1); }

/* ── EDUCATION ── */
.edu-card {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.edu-degree-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.edu-uni {
  font-size: 0.875rem; color: var(--muted); font-weight: 300;
}
.edu-uni-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--muted2);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.08em;
}
.edu-right { text-align: center; }
.edu-grade-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.25rem;
}
.edu-grade-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.edu-grade-distinction {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── CONTACT ── */
#contact {
  text-align: center;
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 1rem 0 1.5rem;
}
.contact-accent { color: var(--accent); }
.contact-desc {
  font-size: 0.9rem; color: var(--muted);
  font-weight: 300; line-height: 1.75;
  margin-bottom: 2rem;
}
.contact-methods {
  display: flex; flex-direction: column;
  gap: 0.5rem; margin-bottom: 2rem;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.05em;
  color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent); }
.contact-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--text); }
.contact-ctas {
  display: flex; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.social-links {
  display: flex; justify-content: center;
  gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--muted);
  font-family: var(--font-mono); font-size: 0.78rem;
  text-decoration: none; letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover {
  color: var(--text); border-color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.social-link--linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.social-link--github:hover   { color: #f0f6fc; border-color: #f0f6fc; }
.social-link--whatsapp:hover { color: #25d366; border-color: #25d366; }

/* ── FOOTER ── */
footer {
  padding: 1.5rem var(--section-px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--muted2);
  letter-spacing: 0.04em;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-logo-img { height: 20px; width: auto; display: block; }
.footer-social {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer-social-link {
  color: var(--muted2); transition: color 0.2s, transform 0.2s;
  display: flex; align-items: center;
}
.footer-social-link:hover { color: var(--text); transform: scale(1.35); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── BOTTOM TAB BAR (hidden by default, shown on phone) ── */
.tab-bar {
  display: none;
}

/* ── SHORT SCREENS (laptop/desktop with <800px viewport height) ── */
@media (max-height: 800px) and (min-width: 768px) {
  .hero-inner { padding: 1rem 0; }
  .hero-top { margin-bottom: 1rem; }
  .hero-name { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 0.75rem; }
  .hero-tagline { margin-bottom: 1rem; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-photo-scene { width: 320px; height: 320px; }
  .hero-chip { width: 36px; height: 36px; }
  .hero-chip svg { width: 15px; height: 15px; }
  /* scene 320px, center (160,160), photo r=100px, chip half=18px */
  .hero-chip--li { top:  36px; left: 217px; }  /* 35°  r=130 */
  .hero-chip--gh { top: 137px; left: 276px; }  /* 88°  r=134 */
  .hero-chip--wa { top: 254px; left: 212px; }  /* 148° r=132 */
  .hero-chip--vd { top: 267px; left:  84px; }  /* 205° r=138 */
  .hero-chip--ct { top: 191px; left:  22px; }  /* 248° r=130 */
  .hero-chip--rs { top:  93px; left:  20px; }  /* 292° r=132 */
  .hero-chip--nx { top:  31px; left:  78px; }  /* 330° r=128 */
}

/* ── TABLET (768px – 1024px) ── */
@media (max-width: 1024px) {
  :root { --section-px: 1.75rem; }

  /* Show bg image as a real card photo on tablet/iPad */
  .timeline-item::before { display: none; }
  .timeline-bg-img {
    position: static;
    width: 100%; height: 200px;
    object-fit: cover; object-position: center center;
    filter: saturate(0.65) brightness(0.8);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    opacity: 1 !important;
  }

  .timeline-item { padding: 1.5rem 1.5rem; }
  .timeline-content { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .hero-inner { gap: 2.5rem; }
  .hero-photo { width: 220px; height: 220px; }
  .hero-photo-scene { width: 400px; height: 400px; }
  .hero-chip { width: 40px; height: 40px; }
  .hero-chip svg { width: 18px; height: 18px; }
  /* scene 400px, center (200,200), photo r=110px, chip half=20px */
  .hero-chip--li { top:  51px; left: 271px; }  /* 35°  r=158 */
  .hero-chip--gh { top: 174px; left: 348px; }  /* 88°  r=168 */
  .hero-chip--wa { top: 317px; left: 266px; }  /* 148° r=162 */
  .hero-chip--vd { top: 334px; left: 108px; }  /* 205° r=170 */
  .hero-chip--ct { top: 239px; left:  34px; }  /* 248° r=158 */
  .hero-chip--rs { top: 119px; left:  30px; }  /* 292° r=162 */
  .hero-chip--nx { top:  47px; left: 103px; }  /* 330° r=154 */

  /* Projects */
  .project-row-top {
    grid-template-columns: 60px 1fr;
  }
  .project-row-name {
    grid-column: 1 / -1;
  }
  .project-row-meta {
    grid-column: 1 / -1;
  }
}

/* ── PHONE (< 768px) ── */
@media (max-width: 767px) {
  :root { --section-px: 1rem; }

  /* Nav */
  .nav-links { display: none; }
  .hero { padding-top: 5rem; }

  /* Stats bar — horizontal scroll */
  .stats-bar {
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stats-bar::-webkit-scrollbar { display: none; }
  .stat {
    min-width: 120px;
    flex-shrink: 0;
  }
  .stat-divider {
    flex-shrink: 0;
  }

  /* Timeline */
  .timeline-content { grid-template-columns: 40px 1fr; gap: 0.75rem; }
  .timeline-role { font-size: 1.5rem; }
  .timeline-story { max-width: none; }
  .timeline-bg-img { height: 160px; border-radius: 8px; }

  /* Projects */
  .project-row-top { grid-template-columns: 1fr; }
  .project-row-num { display: none; }
  .project-metrics { flex-direction: column; }
  .project-metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .project-metric:last-child { border-bottom: none; }

  /* Skills */
  .skills-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Education */
  .edu-card { padding: 1.25rem; flex-direction: column; }

  /* Footer */
  footer {
    padding: 2rem var(--section-px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-social {
    gap: 1.25rem;
  }

  /* Hide photos on phone — layout too tight */
  .hero-photo-scene { display: none; }
  .hero-photo { display: none; }
  .timeline-photo { display: none; }

  /* Hero bottom stacks vertically */
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .hero-desc { max-width: none; }

  /* Bottom tab bar — reset nav tag-selector overrides */
  .tab-bar {
    display: flex;
    position: fixed;
    top: auto; bottom: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 0 env(safe-area-inset-bottom);
    border-bottom: none;
    border-top: 1px solid var(--border);
    background: rgba(12,12,12,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: stretch;
    justify-content: stretch;
    transition: none;
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .tab-item.active {
    color: var(--accent);
  }
  .tab-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .tab-item svg {
    flex-shrink: 0;
  }

  /* Push body content above the tab bar (64px bar + safe-area for iPhone home indicator) */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* ── LIKE BUTTON ── */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: #ed4956;
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.like-btn:hover:not(:disabled) {
  color: #ff6b78;
}
.like-btn:disabled { cursor: default; }
.like-heart {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.like-btn.liked .like-heart {
  animation: like-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.like-btn.loading .like-heart {
  animation: like-spin 0.6s linear infinite;
  transform-origin: center;
}
@keyframes like-spin {
  to { transform: rotate(360deg); }
}
@keyframes like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  85%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.like-count {
  min-width: 1.2ch;
  text-align: left;
}

/* ── LIKE TOAST ── */
.like-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  white-space: nowrap;
}
.like-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── PROJECT ROW TITLE (col 2 wrapper) ── */
.project-row-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* ── PORTFOLIO LIKE SECTION ── */
.portfolio-like-section {
  padding: 3rem var(--section-px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.portfolio-like-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.portfolio-like-section .like-btn {
  padding: 0.25rem 0;
  font-size: 1.15rem;
}
.portfolio-like-section .like-heart {
  width: 42px;
  height: 42px;
}
