:root {
  /* Palette anthracite plus clair */
  --bg: #2d2d2b;
  --bg-2: #353533;
  --bg-3: #3d3d3b;
  --bg-4: #454543;
  --line: #4a4a48;
  --line-2: #5e5e5a;
  --ink: #f5f3ef;
  --ink-2: #e8e5df;
  --ink-3: #c8c4ba;
  --ink-dim: #9a968c;
  --ink-faint: #6e6a62;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Subtle film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--bg); }

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
}

.cursor.large {
  width: 70px; height: 70px;
}

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

/* ==================== NAV ==================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(45, 45, 43, 0.7);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-nav .logo-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-nav .name-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
}

.footer-bigname .footer-logo-img {
  max-width: min(35vw, 280px);
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0.95;
}

.logo-nav .name {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.logo-nav .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-3);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a span.num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-faint);
  margin-right: 5px;
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--ink-dim);
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.lang-btn:not(.active):hover {
  color: var(--ink);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 1240px);
  aspect-ratio: 16/10;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out, transform 8s ease-out;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 0.9;
  transform: scale(1.04);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.3) 0%, transparent 30%, transparent 60%, rgba(26,26,26,0.7) 100%);
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, transparent 0%, rgba(26,26,26,0.4) 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,243,239,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,243,239,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 60px;
  padding: 0 28px 80px;
}

.hero-meta-top {
  position: absolute;
  top: 130px;
  left: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  gap: 24px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 6;
  max-width: calc(50vw - 250px);
  flex-wrap: wrap;
}

.hero-meta-top span:first-child { color: var(--ink); font-weight: 700; }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 95px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 20vw;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(2) span { animation-delay: 0.1s; }

.hero-title .accent {
  font-weight: 300;
  font-style: italic;
  color: var(--ink-3);
}

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 24px;
  max-width: 20vw;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.6s forwards;
  letter-spacing: -0.005em;
}

.hero-tagline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.9s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.stat .value {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stat .value em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.4s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--ink-dim), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: var(--ink);
  animation: scrollDown 2.4s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.now-showing {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

.now-showing .label { color: var(--ink-faint); }
.now-showing .name { color: var(--ink); transition: opacity 0.4s; font-weight: 600; }

.now-showing .dots {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.now-showing .dot {
  width: 18px; height: 1px;
  background: var(--line-2);
  transition: background 0.4s;
}

.now-showing .dot.active { background: var(--ink); }

/* ==================== MARQUEE ==================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  z-index: 5;
}

.marquee-track {
  display: flex;
  gap: 50px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 26px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 50px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.marquee-track span em {
  font-style: italic;
  color: var(--ink-3);
  font-weight: 300;
}

.marquee-track span::after {
  content: '✦';
  font-style: normal;
  color: var(--ink-faint);
  font-size: 16px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==================== SECTION GRADIENTS ==================== */
section { position: relative; z-index: 5; }

/* Hero: démarre clair */
.hero {
  background: linear-gradient(180deg, #353533 0%, #2d2d2b 100%);
}

/* About section: gradient qui s'éclaircit */
#about {
  background: linear-gradient(180deg, #2d2d2b 0%, #3a3a38 50%, #333331 100%);
  padding: 160px 40px;
}

/* Projects section: gradient qui assombrit progressivement */
.projects-section {
  background: linear-gradient(180deg, #333331 0%, #262624 30%, #1f1f1d 60%, #2a2a28 100%);
  padding: 160px 0;
  border-top: 1px solid var(--line);
}

/* Resume section: gradient remonte clair */
#resume {
  background: linear-gradient(180deg, #2a2a28 0%, #3d3d3b 100%);
  padding: 160px 40px;
  border-top: 1px solid var(--line);
}

/* Contact section: gradient termine sombre */
.contact-section {
  background: linear-gradient(180deg, #3d3d3b 0%, #2a2a28 100%);
  border-top: 1px solid var(--line);
  padding: 160px 40px 80px;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--ink-dim);
}

.section-label .num {
  font-weight: 600;
  color: var(--ink);
}

/* ==================== ABOUT ==================== */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 280px;
}

.about-portrait .photo-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  position: relative;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-portrait:hover img {
  transform: scale(1.04);
}

.about-portrait .photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,26,26,0.3) 100%);
  pointer-events: none;
}

.about-portrait .photo-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 8px;
}

.about-portrait .photo-meta .left { color: var(--ink); font-weight: 500; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 7.5vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.about-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.about-lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 20px;
  font-weight: 400;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Values grid */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.value {
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s ease;
}

.value:last-child { border-right: none; }

.value:hover { background: rgba(245, 243, 239, 0.03); }

.value .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
  font-weight: 500;
}

.value h4 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.value h4 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.value p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  font-weight: 400;
}

/* ==================== PROJECTS ==================== */
.projects-intro {
  max-width: 1500px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.projects-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(60px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  color: var(--ink);
}

.projects-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.projects-intro-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.project {
  margin-bottom: 180px;
  padding: 0 40px;
}

.project:last-child { margin-bottom: 0; }

.project-header {
  max-width: 1500px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.project-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.project-id span { color: var(--ink); font-weight: 600; }

.project-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.project-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  border-radius: 100px;
  font-weight: 500;
}

.tag.solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Hero image of project — ZOOM PROGRESSIF MARQUÉ */
.project-hero {
  max-width: 1500px;
  margin: 0 auto 56px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 4px;
  cursor: pointer;
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Zoom au scroll quand l'image arrive en vue */
.project-hero.in-view img {
  transform: scale(1);
}

/* Zoom marqué au survol */
.project-hero:hover img {
  transform: scale(1.08);
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-hero-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-weight: 500;
}

.project-hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* Hover hint */
.project-hero::before {
  content: '↗';
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  width: 50px;
  height: 50px;
  background: rgba(245, 243, 239, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-family: var(--mono);
  font-weight: 400;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-hero:hover::before {
  opacity: 1;
  transform: scale(1);
}

.project-body {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* Pipeline section sous chaque projet */
.project-pipeline {
  max-width: 1500px;
  margin: 0 auto 50px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.project-pipeline .pipeline-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

.project-pipeline .pipeline-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 8px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.3s;
}

.pipeline-step:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pipeline-step .num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  font-weight: 500;
}

.pipeline-step:hover .num { color: var(--bg); opacity: 0.6; }

.pipeline-arrow {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.project-description {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.project-description em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.project-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.spec {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.spec:nth-child(2n) {
  border-right: none;
  padding-left: 18px;
  padding-right: 0;
}

.spec .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
}

.spec .value {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feature-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  align-items: baseline;
}

.feature-list li::before {
  content: counter(f, decimal-leading-zero);
  counter-increment: f;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  font-weight: 500;
}

.feature-list { counter-reset: f; }

.feature-list strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.feature-list span.desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  font-weight: 400;
}

/* ==================== RESUME ==================== */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
}

.resume-col h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.entry:first-of-type { border-top: 1px solid var(--line); }

.entry .date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
}

.entry .title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.entry .desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  font-weight: 400;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink-2);
  transition: all 0.3s;
  font-weight: 500;
  background: var(--bg-3);
}

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

.lang-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.lang {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.lang .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lang .level {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

/* ==================== CONTACT ==================== */
.contact-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(70px, 13vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  margin-bottom: 80px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

.contact-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-3);
}

.contact-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-text {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 36px;
  font-style: italic;
  font-weight: 300;
  max-width: 480px;
  letter-spacing: -0.01em;
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s ease;
  cursor: pointer;
}

.contact-row:hover {
  padding-left: 16px;
}

.contact-row .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

.contact-row .value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.contact-row .arrow {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-dim);
  transition: transform 0.3s, color 0.3s;
}

.contact-row:hover .arrow {
  transform: translateX(8px);
  color: var(--ink);
}

.cv-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition: all 0.3s;
  border-radius: 100px;
}

.cv-cta:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}

.cv-cta::after {
  content: '↓';
  font-size: 14px;
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 4px;
}

.form-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-weight: 500;
}

.form-head .id { color: var(--ink); font-weight: 600; }

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  padding: 10px 0;
  font-family: var(--display);
  font-size: 18px;
  transition: border-color 0.3s;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 300;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--sans);
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  padding: 18px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition: all 0.3s;
  border-radius: 100px;
  margin-top: 12px;
}

.submit-btn:hover {
  background: var(--ink-2);
}

.submit-btn::after { content: ' →'; }

/* ==================== FOOTER LOGO BIG ==================== */
.footer-bigname {
  text-align: center;
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, #2a2a28 0%, #232321 100%);
}

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  background: #232321;
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer-inner .col {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==================== ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about,
  .project-body,
  .contact-grid,
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-portrait { position: static; max-width: 400px; }

  .values { grid-template-columns: 1fr 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--line); }
  .value:nth-child(odd) { border-right: 1px solid var(--line); }

  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 60px; }
  .hero-stats { align-items: flex-start; text-align: left; }
  .hero-title { max-width: 100%; font-size: clamp(46px, 10vw, 110px); }
  .hero-tagline { max-width: 100%; font-size: 17px; }
  .hero-bg-stage { width: 90vw; }
  .hero-meta-top { left: 24px; font-size: 11px; gap: 18px; flex-wrap: wrap; }

  .project-header { grid-template-columns: 1fr; gap: 16px; }
  .project-tags { justify-content: flex-start; }

  .nav-links { display: none; }
  .logo-nav .name-stack { display: none; }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-status { display: none; }

  .hero { padding: 100px 20px 0; }
  .hero-meta-top { display: none; }
  .now-showing { right: 20px; bottom: 20px; }
  .scroll-cue { display: none; }

  #about, #resume { padding: 80px 20px; }
  .project { padding: 0 20px; }
  .projects-intro { padding: 0 20px; }
  .contact-section { padding: 80px 20px 60px; }

  .values { grid-template-columns: 1fr; }
  .value { border-right: none !important; }
  .value:last-child { border-bottom: none; }

  .marquee-track span { font-size: 20px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

  .footer-bigname { padding: 50px 20px 30px; }
}

/* ── Index — Project Case Study CTA ────────────────────────── */
.project-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
  padding: 0 40px 32px;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2, #d4d0c4);
  padding: 14px 28px 14px 32px;
  border: 1px solid var(--line, rgba(220,210,180,.18));
  border-radius: 2px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.project-cta:hover {
  color: var(--ink, #f0ebde);
  border-color: rgba(233, 138, 58, 0.5);
  background: rgba(233, 138, 58, 0.04);
  padding-left: 36px;
  padding-right: 24px;
}
.project-cta-arr {
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: rgba(233, 138, 58, 0.85);
}
.project-cta:hover .project-cta-arr {
  transform: translateX(8px);
  color: #e98a3a;
}
@media (max-width: 768px) {
  .project-cta-wrap { padding: 0 20px 28px; justify-content: center; }
  .project-cta { padding: 12px 22px; font-size: 10px; letter-spacing: 0.22em; }
}


/* ── Index — Project hero clickable (link) ─────────────────── */
a.project-hero {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
a.project-hero img {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
a.project-hero:hover img {
  transform: scale(1.02);
}
a.project-hero .project-hero-tag {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
a.project-hero:hover .project-hero-tag {
  background: rgba(233, 138, 58, 0.18);
  border-color: rgba(233, 138, 58, 0.4);
  color: #f0ebde;
}
a.project-hero::after {
  content: '↗';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink);
  background: rgba(15, 15, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-8px, 8px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  border: 1px solid rgba(233, 138, 58, 0.3);
}
a.project-hero:hover::after {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  background: rgba(233, 138, 58, 0.18);
  color: #fff;
}
@media (max-width: 768px) {
  a.project-hero::after { display: none; }
}
