/* ═══════════════════════════════════════════════════
   JC FLOIRENDO — PORTFOLIO
   ─────────────────────────────────────────────────
   CONTENTS
   1. Reset & Custom Properties
   2. Base
   3. Noise Overlay
   4. Custom Cursor
   5. Loader
   6. Navigation
   7. Section Label
   8. Hero
   9. About
   10. Skills / Ticker
   11. Projects
   12. Currently Building
   13. Contact
   14. Footer
   15. Reveal Animations (initial state)
   16. Nav Scrolled State
   17. Responsive
═══════════════════════════════════════════════════ */

/* ─── 1. RESET & CUSTOM PROPERTIES ──────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0a0a0a;
  --fg:          #f0ede8;
  --fg-muted:    rgba(240, 237, 232, 0.38);
  --fg-dim:      rgba(240, 237, 232, 0.08);
  --border:      rgba(240, 237, 232, 0.08);
  --accent:      #f0ede8;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
  --ease-in:      cubic-bezier(0.55, 0, 1, 0.45);
}

/* ─── 2. BASE ────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: auto; /* GSAP handles smooth scroll */
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { text-decoration: none; }

ul { list-style: none; }

/* ─── SCROLL PROGRESS BAR ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(240, 237, 232, 0.45);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9997;
  pointer-events: none;
}

/* ─── 3. NOISE OVERLAY ───────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  /* background is set dynamically in JS */
  background-size: 128px 128px;
  background-repeat: repeat;
}

/* ─── 4. CUSTOM CURSOR ───────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}

.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}

.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(240, 237, 232, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-expo),
    height 0.4s var(--ease-expo),
    border-color 0.3s,
    opacity 0.3s;
}

.cursor.is-hovering .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(240, 237, 232, 0.6);
}

.cursor.is-hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* ─── 5. LOADER ──────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: top center;
}

.loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.loader-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 4.5rem);
  letter-spacing: 0.35em;
  color: var(--fg);
}

.loader-bar {
  width: 220px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--fg);
}

/* ─── 6. NAVIGATION ──────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  /* mix-blend-mode keeps text white against any bg */
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.6; }

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s var(--ease-expo);
}

.nav-link:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
}

.nav-resume::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s var(--ease-expo);
}

.nav-resume:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(240, 237, 232, 0.25);
  padding: 0.55rem 1.25rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ─── 7. SECTION LABEL ───────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── 8. HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Full-screen photo */
.hero-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 13, 0.35);
  pointer-events: none;
}

.hero-photo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Top bar */
.hero-top {
  position: absolute;
  top: clamp(5rem, 9vw, 7rem);
  left: clamp(1.5rem, 5vw, 4rem);
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(15, 14, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(240, 237, 232, 0.2);
  padding: 0.55rem 1rem;
  border-radius: 100px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(15, 14, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(240, 237, 232, 0.25);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-resume-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Bottom overlay */
.hero-bottom {
  position: absolute;
  bottom: clamp(6rem, 10vw, 8rem);
  left: clamp(1.5rem, 5vw, 4rem);
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

/* Location pill */
.hero-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  background: rgba(15, 14, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 237, 232, 0.2);
  padding: 0.65rem 1.1rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Role text */
.hero-role {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.hero-role-arrow {
  transform: rotate(0deg);
  opacity: 0.7;
  color: var(--fg);
}

.hero-role span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: right;
  color: var(--fg);
  text-shadow: 0 2px 24px rgba(0,0,0,0.8);
}

/* Marquee */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 2;
  background: rgba(15, 14, 13, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.5rem 0;
}

.hero-marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.hero-marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--fg);
  padding-right: 0.15em;
  flex-shrink: 0;
}

/* ─── 9. ABOUT ───────────────────────────────────── */
.about {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

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

.about-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.about-body {
  font-size: 0.975rem;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.62);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-body:last-of-type { margin-bottom: 0; }

.about-stats {
  display: flex;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-num::after {
  content: '+';
  font-size: 0.65em;
  vertical-align: super;
  margin-left: 1px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}

/* Experience accordion */
.experience {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border);
}

.experience-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.experience-line-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 0;
  /* left is set by JS to align with circles */
}

.experience-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(240, 237, 232, 0.22);
}

.experience-item {
  border-bottom: 1px solid var(--border);
  transition: opacity 0.4s;
  position: relative;
  z-index: 1;
}


.experience-trigger {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  cursor: default;
  display: grid;
  grid-template-columns: 3.5rem 1fr 4rem 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  text-align: left;
}

.experience-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg-muted);
  line-height: 1;
  transition: color 0.4s;
}

.experience-item.is-active .experience-num {
  color: var(--fg);
}

.experience-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.experience-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.experience-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.experience-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  flex-shrink: 0;
  transition: background 0.4s;
}

.experience-item.is-active .experience-dot {
  background: #c8956c;
}

.experience-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.experience-company {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--fg-muted);
  transition: color 0.4s;
}

.experience-item.is-active .experience-company {
  color: #c8956c;
}

.experience-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  transition: border-color 0.4s;
}

.experience-item.is-active .experience-circle {
  border-color: rgba(240, 237, 232, 0.3);
}

.experience-circle-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-muted);
  transition: background 0.4s, transform 0.4s var(--ease-expo);
}

.experience-item.is-active .experience-circle-dot {
  background: #c8956c;
  transform: scale(1.4);
}

.experience-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--fg-muted);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.experience-item.is-active .experience-desc {
  opacity: 1;
}

/* ─── 10. SKILLS / TICKER ────────────────────────── */
.skills {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--border);
}

/* Ticker strip */
.skills-ticker {
  overflow: hidden;
  width: 100%;
  margin: clamp(2rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-sep {
  color: var(--fg-muted);
  font-size: 0.65rem;
  font-weight: 300;
}

/* Skills columns */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(3rem, 5vw, 5rem);
}

.skill-col {
  padding: 2rem clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--border);
}

.skill-col:first-child { padding-left: 0; }
.skill-col:last-child  { border-right: none; }

.skill-col-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-list li {
  font-size: 0.925rem;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.72);
  padding-left: 1.1rem;
  position: relative;
}

.skill-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
  font-size: 0.7rem;
  top: 0.15em;
}

/* ─── 11. PROJECTS ───────────────────────────────── */
.projects {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.projects-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.projects-count {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  align-self: flex-end;
}

/* Project rows */
.projects-list {
  display: flex;
  flex-direction: column;
}

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

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

/* Dim siblings on hover */
.projects-list:hover .project-row:not(:hover) .project-row-link {
  opacity: 0.3;
}

.project-row-link {
  display: grid;
  grid-template-columns: 2.5rem 1fr repeat(3, minmax(90px, 140px)) 1.25rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
  color: var(--fg);
  transition: opacity 0.35s;
}

.project-index {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
  transition: transform 0.55s var(--ease-expo);
}

.project-row:hover .project-name {
  transform: translateX(0.6rem);
}

.project-col {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.project-row:hover .project-col {
  color: var(--fg);
}

.project-arrow {
  color: var(--fg-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.4s var(--ease-expo), color 0.3s;
}

.project-row:hover .project-arrow {
  opacity: 1;
  color: var(--fg);
  transform: translateX(0);
}

/* Cursor-following image preview */
.project-preview {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 150;
  opacity: 0;
  will-change: transform;
  overflow: hidden;
}

.project-preview-img {
  display: block;
  width: 340px;
  height: 230px;
  object-fit: cover;
}

/* Filter + view controls bar */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.projects-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.filter-pill.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.filter-pill:hover:not(.is-active) {
  border-color: rgba(240, 237, 232, 0.4);
  color: var(--fg);
}

.filter-count {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.65;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 5px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  border: none;
  transition: background 0.25s, color 0.25s;
}

.view-btn.is-active {
  background: var(--fg);
  color: var(--bg);
}

.view-btn:hover:not(.is-active) {
  color: var(--fg);
}

/* Masonry / grid view */
.projects-list--masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 0;
}

.projects-list--masonry .project-row {
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: none;
}

.projects-list--masonry .project-row.masonry-right-col {
  border-right: none;
}

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

.projects-list--masonry .project-row-ghost {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-right: none;
}

.project-meta {
  display: contents;
}

.project-cols {
  display: contents;
}

.project-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-card-img {
  display: none;
}

.project-desc {
  display: none;
}

.projects-list--masonry .project-row-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}


.projects-list--masonry .project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  flex: 1;
  position: relative;
}

.projects-list--masonry .project-name {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.projects-list--masonry .project-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: 0.1rem;
}

.projects-list--masonry .project-cols {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.projects-list--masonry .project-col {
  display: inline;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.projects-list--masonry .project-col + .project-col::before {
  content: " · ";
}

.projects-list--masonry .project-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
}

.projects-list--masonry:hover .project-row:not(:hover) .project-row-link {
  opacity: 1;
}

/* ─── 12. CURRENTLY BUILDING ─────────────────────── */
.building {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.building-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.building-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.building-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: blink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.building-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.building-heading em {
  font-style: italic;
  color: var(--fg);
  font-weight: 800;
}

.building-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-muted);
  max-width: 38ch;
  line-height: 1.6;
}

.building-list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.building-item {
  border-top: 1px solid var(--border);
}

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

.building-item-link {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  color: var(--fg);
  transition: opacity 0.35s;
}

.building-list:hover .building-item:not(:hover) .building-item-link {
  opacity: 0.3;
}

.building-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-expo);
}

.building-item:hover .building-icon {
  transform: scale(1.08);
}

.building-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  transition: transform 0.5s var(--ease-expo);
}

.building-item:hover .building-name-wrap {
  transform: translateX(0.5rem);
}

.building-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}

.building-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.building-tag {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-left: auto;
  transition: color 0.3s;
}

.building-item:hover .building-tag {
  color: var(--fg);
}

.building-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  white-space: nowrap;
  margin-left: 1.5rem;
}

.building-badge--dev {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
}

.building-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── 13. CONTACT ────────────────────────────────── */
.contact {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.contact-hero {
  position: relative;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.contact-line {
  display: block;
}

/* Form card overlapping the heading */
.contact-form-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(-4rem, -8vw, -10rem);
  background: color(srgb 0.06 0.06 0.06 / 0.26);
  border: 1px solid rgba(240, 237, 232, 0.1);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Pill buttons */
.contact-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--border);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}

.contact-pill:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.form-input:focus {
  border-color: rgba(240, 237, 232, 0.4);
}

.form-textarea {
  min-height: 130px;
  line-height: 1.7;
}

.form-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.form-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.form-btn.is-sending {
  opacity: 0.5;
  pointer-events: none;
}

.form-captcha {
  display: flex;
}

.form-success {
  font-size: 0.8rem;
  color: #4ade80;
  letter-spacing: 0.05em;
  min-height: 1.2em;
}

/* ─── 14. FOOTER ─────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
}

/* Info bar */
.footer-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-info-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-info-val {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Color of the day */
.footer-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.footer-color-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-color-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-color-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.footer-color-hex {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.footer-color-sep {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.footer-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.footer-bottom-socials {
  display: flex;
  gap: 2rem;
}

.footer-bottom-socials a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.footer-bottom-socials a:hover { color: var(--fg); }


/* ─── 15. REVEAL INITIAL STATES ──────────────────── */
.reveal-text {
  opacity: 0;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(2.5rem);
}

.reveal-row {
  opacity: 0;
  transform: translateY(1.5rem);
}

/* ─── 16. NAV SCROLLED STATE ─────────────────────── */
.nav--scrolled {
  /* subtle backdrop when scrolled */
}

/* ─── 17. RESPONSIVE ─────────────────────────────── */

/* Mobile hero layout (matches Snellenberg reference) */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  /* Badge centered with top margin */
  .hero-top {
    justify-content: center;
    margin-top: 1.25rem;
  }

  /* Marquee floats at 72%, no background strip */
  .hero-marquee {
    bottom: auto;
    top: 72%;
    transform: translateY(-50%);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }

  .hero-marquee-track span {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  /* Bottom bar drops to very bottom */
  .hero-bottom {
    bottom: 2rem;
    align-items: flex-end;
  }

  /* Role moves to left side */
  .hero-role {
    order: -1;
    align-items: flex-start;
  }

  /* Location pill shows only the globe icon */
  .hero-location-text { display: none; }
  .hero-location-pill {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (max-width: 960px) {
  body { cursor: auto; }
  .cursor { display: none; }

  .nav-menu { display: none; }

  .about-grid { grid-template-columns: 1fr; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-col:nth-child(2) { border-right: none; }
  .skill-col:nth-child(3) {
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
  }
  .skill-col:nth-child(4) {
    border-right: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
  }

  .project-row-link {
    grid-template-columns: 2rem 1fr 1rem;
    grid-template-rows: auto auto;
    row-gap: 0.35rem;
  }
  .project-index   { grid-column: 1; grid-row: 1; align-self: start; }
  .project-name-wrap { grid-column: 2; grid-row: 1; }
  .project-arrow   { grid-column: 3; grid-row: 1; align-self: start; }
  .project-cols {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 2;
    gap: 0;
  }
  .project-col { display: inline; font-size: 0.7rem; }
  .project-col + .project-col::before { content: " · "; color: var(--fg-muted); }
  .projects-list--masonry { grid-template-columns: 1fr; }
  .projects-controls { justify-content: center; }
  .view-toggle { width: 100%; }
  .view-btn { flex: 1; justify-content: center; }
  .projects-list--masonry .project-row,
  .projects-list--masonry .project-row.masonry-right-col,
  .projects-list--masonry .project-row.masonry-last-row {
    border-top: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
  }
  .projects-list--masonry .project-row-ghost { display: none; }
  #project-preview { display: none !important; }
  .experience-trigger {
    grid-template-columns: 2.75rem 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    row-gap: 0.75rem;
  }
  .experience-num    { display: none; }
  .experience-circle { grid-column: 1; grid-row: 1; justify-self: center; align-self: start; margin-top: 0.25rem; }
  .experience-left   { grid-column: 2; grid-row: 1; }
  .experience-desc   { grid-column: 2; grid-row: 2; }
  .projects-list--masonry .project-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 600px) {

  .about-stats { flex-direction: column; gap: 1.75rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-col { border-right: none !important; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
  .skill-col:first-child { border-top: none; margin-top: 0; padding-top: 0; }

  .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .project-row-link { grid-template-columns: 1.75rem 1fr 1rem; gap: 0.75rem; }

  .building-tag { display: none; }
  .building-badge { margin-left: auto; }
  .building-icon { width: 44px; height: 44px; }

  .contact-form-wrap { margin-top: 2rem; }
  .contact-pills { flex-direction: column; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-info { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-color { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
