:root {
  --bg:        #faf8f4;
  --surface:   #f4f0ea;
  --surface2:  #ede8e0;
  --card:      #ffffff;

  --border:    rgba(0, 0, 0, 0.08);
  --border2:   rgba(0, 0, 0, 0.15);

  --text:      #2c2820;
  --muted:     #9a9188;
  --bright:    #1a1410;

  --accent:    #9c6f38;
  --accent-lt: rgba(156, 111, 56, 0.10);
  --accent-md: rgba(156, 111, 56, 0.20);

  --green:     #3a9e6f;
  --green-lt:  rgba(58, 158, 111, 0.12);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'DM Sans', sans-serif;
  --ff-mono:  'DM Mono', monospace;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── SCROLL PROGRESS ── */
#prog {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  z-index: 1000;
  transition: width .06s linear;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 6%;
  transition: background .4s, backdrop-filter .4s, padding .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  padding: 1.2rem 6%;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bright);
  letter-spacing: .01em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.75rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--bright); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px; padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mob-drawer {
  position: fixed; inset: 0;
  z-index: 800;
  background: rgba(250, 248, 244, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out);
}
.mob-drawer.open { transform: translateY(0); }
.mob-drawer a {
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--bright);
  letter-spacing: .02em;
  transition: color .2s;
}
.mob-drawer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════ */
section { position: relative; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6%;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 6% 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circle */
#home::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,111,56,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) .15s forwards;
}

.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(3.8rem, 9.5vw, 9rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp .9s var(--ease-out) .3s forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--ff-sans);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) .55s forwards;
}

.type-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) .7s forwards;
}
.type-text {
  color: var(--accent);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.2em;
}
.type-cursor {
  display: inline-block;
  width: 1.5px; height: 1.1em;
  background: var(--accent);
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) .85s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: .9rem 2.25rem;
  display: inline-block;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.btn-ghost {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}
.btn-ghost::after { content: '→'; transition: transform .2s; }
.btn-ghost:hover { color: var(--bright); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* Social links — absolute bottom right on desktop */
.hero-footer {
  position: absolute;
  bottom: 3rem; right: 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp .7s var(--ease-out) 1.1s forwards;
}
.hero-social-link {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.hero-social-link:hover { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#about {
  padding: 8rem 6%;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.about-img-wrap {
  position: relative;
  padding-top: 120%;
  overflow: hidden;
}
.about-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%) brightness(.95);
  transition: filter .5s, transform .6s var(--ease);
}
.about-img-wrap:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  width: 65%; height: 65%;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: .35;
  transition: opacity .3s;
}
.about-img-wrap:hover::after { opacity: .65; }

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border2);
}
.stat-n {
  font-family: var(--ff-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-l {
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
  display: block;
}

.about-content { padding-top: .5rem; }

.about-lead {
  font-family: var(--ff-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
}
.about-lead em {
  font-style: italic;
  color: var(--accent);
}

.about-body {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}
.tag {
  font-family: var(--ff-mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: .35rem .85rem;
  transition: color .2s, border-color .2s, background .2s;
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-lt);
}

.about-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════ */
#experience {
  padding: 8rem 6%;
  background: var(--bg);
}

.exp-timeline {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical rule */
.exp-timeline::before {
  content: '';
  position: absolute;
  top: .4rem;
  bottom: 0;
  left: 148px;
  width: 1px;
  background: var(--border2);
}

/* ── Single entry ── */
.exp-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0 3rem;
  padding-bottom: 3.5rem;
  position: relative;
}
.exp-item:last-child { padding-bottom: 0; }

/* Dot on the line */
.exp-item::before {
  content: '';
  position: absolute;
  top: .4rem;
  left: 144px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  z-index: 1;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.exp-item:hover::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 4px var(--accent-lt);
}

/* ── Left meta column ── */
.exp-meta {
  padding-top: .25rem;
  text-align: right;
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex-shrink: 0;
}

.exp-year {
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.exp-type {
  font-family: var(--ff-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid var(--accent-md);
  padding: .18rem .52rem;
  display: inline-block;
  align-self: flex-end;
}

/* ── Right body column ── */
.exp-body {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.8rem 2rem 2rem;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  position: relative;
}
.exp-body::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.exp-item:hover .exp-body {
  border-color: var(--border2);
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  transform: translateY(-3px);
}
.exp-item:hover .exp-body::before { width: 100%; }

/* Header row inside card */
.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bright);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: .25rem;
}

.exp-company {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.exp-location {
  color: var(--muted);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: flex-end;
  padding-top: .15rem;
}

.exp-tag {
  font-family: var(--ff-mono);
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid var(--accent-md);
  padding: .18rem .52rem;
}

/* Bullet list */
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.exp-bullets li {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.85;
  padding-left: 1.1rem;
  position: relative;
}
.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .22em;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .exp-timeline::before { left: 0; }
  .exp-item {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .exp-item::before { left: -4px; top: .35rem; }
  .exp-meta {
    text-align: left;
    padding-right: 0;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
  }
  .exp-type { align-self: auto; }
  .exp-tags { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .exp-body { padding: 1.4rem 1.25rem 1.5rem; }
  .exp-header { flex-direction: column; gap: .75rem; }
}

/* ═══════════════════════════════════════════
                  PROJECTS
═══════════════════════════════════════════ */
#projects {
  padding: 6rem 6% 8rem;
  background: var(--surface);
}

.proj-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 4rem;
  justify-content: center;
}

/* ── Base card ── */
.proj-card {
  position: relative;
  width: calc(33.333% - 1.1rem);
  min-width: 260px;
  max-width: 340px;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bright);
  border: 1px solid var(--border2);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    border-color 0.35s,
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.28),
    0 0 0 1px rgba(156,111,56,0.35);
  z-index: 3;
}

/* ── Background image ── */
.proj-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) brightness(0.55) contrast(1.08);
  transform: scale(1.08);
  transition:
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card-bg {
  filter: grayscale(0%) brightness(0.78);
  transform: scale(1);
}

/* ── Dark gradient scrim ── */
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.88) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ── Accent corner mark ── */
.proj-card::after {
  content: '';
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 22px; height: 22px;
  border-top: 1.5px solid rgba(156,111,56,0);
  border-right: 1.5px solid rgba(156,111,56,0);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.35s, width 0.35s, height 0.35s;
}
.proj-card:hover::after {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  width: 32px; height: 32px;
}

/* ── Repurposed slug: top label ── */
.proj-card-slug {
  position: absolute;
  top: 1.1rem;
  left: 1.4rem;
  font-family: var(--ff-mono);
  font-size: .54rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 2;
  pointer-events: none;
  transition: color 0.3s;
}
.proj-card:hover .proj-card-slug {
  color: rgba(255,255,255,0.7);
}

/* ── Content block ── */
.proj-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  z-index: 2;
}

.proj-card-content .proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .7rem;
}
.proj-card-content .proj-tag {
  font-family: var(--ff-mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(156,111,56,0.18);
  border: 1px solid rgba(156,111,56,0.35);
  padding: .18rem .52rem;
  transition: background 0.25s;
}
.proj-card:hover .proj-card-content .proj-tag {
  background: rgba(156,111,56,0.3);
}

.proj-card-content .proj-title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.22;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.proj-card-content .proj-desc {
  font-size: .74rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.72;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s 0.05s;
}
.proj-card:hover .proj-card-content .proj-desc {
  max-height: 80px;
  opacity: 1;
}

/* "View project" expand hint (added by JS) */
.proj-card-hint {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .85rem;
  font-family: var(--ff-mono);
  font-size: .52rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.proj-card-hint span { color: var(--accent); }
.proj-card:hover .proj-card-hint {
  transform: translateY(0);
  opacity: 1;
}

/* ── Entrance animation (perspective flip-in from below) ── */
@keyframes card-entrance {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(22deg) translateY(44px) scale(0.91);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0) scale(1);
  }
}
.proj-card.in-view {
  animation: card-entrance 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0s);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .proj-grid { gap: 1.1rem; }
  .proj-card {
    width: calc(50% - 0.55rem);
    max-width: none;
  }
}
@media (max-width: 540px) {
  .proj-card {
    width: 100%;
    max-width: 100%;
    height: 360px;
  }
}

/* ═══════════════════════════════════════════
   PROJECT MODAL — FLIP expansion
═══════════════════════════════════════════ */
.proj-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,8,6,0.72);
  backdrop-filter: blur(12px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.proj-modal {
  background: var(--card);
  border: 1px solid var(--border2);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity;
}

.proj-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  z-index: 2;
}
.proj-modal-close:hover {
  border-color: var(--border2);
  color: var(--bright);
  background: #fff;
}

.proj-modal-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
}
.proj-modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter .5s;
}
.proj-modal-overlay.open .proj-modal-img-wrap img {
  filter: brightness(1);
}

.proj-modal-body {
  padding: 1.75rem 2rem 2.25rem;
}

.proj-modal-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--bright);
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}

.proj-modal-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.proj-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.5rem;
}
.proj-modal-tags .proj-tag {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid var(--accent-md);
  padding: .2rem .6rem;
}

.proj-modal-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-md);
  padding: .5rem 1.1rem;
  text-decoration: none;
  transition: background .2s;
}
.proj-modal-link:hover { background: var(--accent-lt); }
.proj-modal-link.hidden { display: none; }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
#skills {
  padding: 8rem 6%;
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-top: 4rem;
}

.sk-item {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.sk-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.sk-item:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.sk-item:hover::after { width: 100%; }

.sk-icon {
  width: 36px; height: 36px;
  object-fit: contain;
  margin-bottom: 1.1rem;
  opacity: .8;
  transition: opacity .2s;
}
.sk-item:hover .sk-icon { opacity: 1; }

.sk-name {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.sk-item:hover .sk-name { color: var(--text); }

.sk-icon-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.sk-icon-group .sk-icon {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
#contact {
  padding: 8rem 6% 5rem;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.contact-headline {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}

.contact-sub {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.c-links { display: flex; flex-direction: column; }

.c-link {
  display: flex;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1.25rem;
  transition: padding-left .25s var(--ease);
}
.c-link:first-child { border-top: 1px solid var(--border); }
.c-link:hover { padding-left: .6rem; }

.c-icon {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--accent);
  width: 22px; text-align: center; flex-shrink: 0;
}
.c-text {
  font-size: .82rem;
  color: var(--muted);
  flex: 1;
  transition: color .2s;
}
.c-link:hover .c-text { color: var(--bright); }
.c-arrow {
  font-size: .75rem;
  color: var(--border2);
  transition: color .2s, transform .2s;
}
.c-link:hover .c-arrow { color: var(--accent); transform: translateX(4px); }

/* Availability card */
.avail-card {
  border: 1px solid var(--border2);
  padding: 2.5rem;
  background: var(--card);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.75rem;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58,158,111,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(58,158,111,0); }
}

.avail-title {
  font-family: var(--ff-serif);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--bright);
  line-height: 1.35;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}

.avail-text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.avail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.avail-list li {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .85rem;
}
.avail-list li::before {
  content: '✓';
  color: var(--green);
  font-size: .75rem;
  flex-shrink: 0;
}

.fix-num { font-variant-numeric: lining-nums; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 6%;
  margin-top: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: -2.5rem;
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-loc {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-loc span { color: var(--accent); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .75s var(--ease-out),
    transform .75s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.left  { transform: translateX(-28px); }
.reveal.right { transform: translateX(28px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 860px) {
  nav { padding: 1.4rem 6%; }
  .nav-links { display: none; }
  .burger { display: flex; }

  #home { padding: 8rem 6% 5rem; }
  .hero-footer {
    position: static;
    flex-direction: row;
    margin-top: 3rem;
  }

  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-img-wrap { padding-top: 70%; }
  .about-img-wrap::after { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .about-stats { gap: 1.5rem; }
  footer { flex-direction: column; text-align: center; }
  .hero-footer { flex-wrap: wrap; gap: .75rem; }
}