/* ============================================
   PORTFOLIO — STYLE SHEET
   Aesthetic: engineering blueprint — sharp,
   dark-on-dark, monospace UI labels, accent orange.
   ============================================ */

:root {
  --bg:           #0a0a0a;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --border:       #2a2a2a;
  --text:         #e8e8e8;
  --text-dim:     #888888;
  --accent:       #ff4d00;
  --accent-2:     #ff7a3d;
  --accent-glow:  rgba(255, 77, 0, 0.15);
  --accent-border:rgba(255, 77, 0, 0.4);

  --font-sans:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;

  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }

/* ---- Container ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVIGATION — glassmorphism
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  color: var(--accent) !important;
}
.nav-cta::after { background: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: 0.3s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99; background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   PAGE HEADER — name + portfolio tag
   ============================================ */
.page-header {
  position: relative;
  padding: 180px 24px 100px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 77, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-header-title {
  font-family: var(--font-sans);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
  color: var(--text);
  margin: 0;
}
.page-header-rule {
  width: 72px; height: 2px;
  background: var(--accent);
  margin: 32px auto 28px;
}
.page-header-welcome {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS — sliding ::before background
   ============================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  z-index: -1;
  transition: left 0.35s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { left: 0; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary::before {
  background: var(--accent-2);
  left: -100%;
}
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { left: 0; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost::before { background: var(--accent); }
.btn-ghost:hover { color: var(--bg); border-color: var(--accent); }

.btn-large { font-size: 0.9rem; padding: 18px 40px; letter-spacing: 3px; }

/* ============================================
   SECTIONS — numbered header with horizontal line
   ============================================ */
.section { padding: 120px 0; position: relative; }
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}
.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.1;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Numbered counters: 01, 02, 03, ... */
body { counter-reset: section; }
.section { counter-increment: section; }
.section .section-tag::before {
  content: counter(section, decimal-leading-zero) ". ";
  color: var(--accent);
}

/* ============================================
   PROJECTS GRID — cards with hover lift + top bar
   ============================================ */
.projects-grid {
  display: grid; gap: 24px;
}
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.project-card:hover::before { opacity: 1; }

.project-img {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card:hover .project-img { transform: scale(1.02); }
.project-placeholder {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(232, 232, 232, 0.45);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.project-info { padding: 8px 0; }
.project-tags { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
}
.project-tags span:last-child {
  color: var(--text-dim);
  background: var(--surface-2);
  border-color: var(--border);
}
.project-info h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 10px;
}
.project-info p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
}
.project-arrow {
  font-family: var(--font-mono);
  font-size: 1.5rem; color: var(--text-dim);
  transition: all 0.3s var(--ease);
  padding-right: 16px;
}
.project-card:hover .project-arrow {
  color: var(--accent); transform: translate(4px, -4px);
}

/* ============================================
   TIMELINE — square dots, 2px left line
   ============================================ */
.experience { background: var(--bg); }
.education  { background: var(--bg); }

.timeline {
  position: relative;
  display: flex; flex-direction: column;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 28px 0;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 36px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-entry:first-child { padding-top: 8px; }
.timeline-entry:first-child::before { top: 16px; }

.timeline-meta {
  font-family: var(--font-mono);
}
.timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.timeline-location {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.timeline-body {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.timeline-body:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.timeline-role {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline-org {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}
.timeline-detail {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 6px;
}
.timeline-detail strong {
  display: inline-block;
  min-width: 140px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 4px;
}
.timeline-label { margin-top: 18px; margin-bottom: 0; }
.timeline-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.timeline-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 8px;
}
.timeline-list li::before {
  content: "▹";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 0.9rem;
}
.course-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.course-chips span {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.course-chips span:hover {
  background: var(--accent-glow);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.about-photo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.photo-placeholder {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 77, 0, 0.08), transparent),
    var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: rgba(232, 232, 232, 0.35); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 3px;
}
.about-content .section-tag {
  display: inline-block;
  margin-bottom: 14px;
}
.about-content .section-title {
  white-space: normal;
  margin-bottom: 28px;
}
.about-text {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong { color: var(--text); font-weight: 600; }
.skills-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.skill-chip:hover {
  background: var(--accent-glow);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact { text-align: center; background: var(--bg); }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-inner .section-tag {
  display: inline-block;
  margin-bottom: 18px;
  text-align: center;
}
.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 22px;
}
.contact-title em { color: var(--accent); font-style: normal; font-weight: 900; }
.contact-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 36px;
}
.contact-phone {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-phone a {
  color: var(--text-dim);
  transition: color 0.3s;
}
.contact-phone a:hover { color: var(--accent); }
.social-links {
  display: flex; gap: 28px; justify-content: center; margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.social-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-dim); transition: color 0.3s;
  text-transform: uppercase; letter-spacing: 3px;
}
.social-links a:hover { color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-hero {
  position: relative;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.project-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 77, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.project-hero .container { position: relative; z-index: 1; }
.back-link {
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 32px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }
.project-hero-tags {
  display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap;
}
.project-hero-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
}
.project-hero-tags span:last-child {
  color: var(--text-dim);
  background: var(--surface-2);
  border-color: var(--border);
}
.project-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 900px;
}
.project-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 720px;
}
.project-cover {
  position: relative;
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  border: 1px solid var(--border);
  margin-top: 56px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--surface);
}
.project-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 2;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-cover span {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: rgba(232, 232, 232, 0.55);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---- Project figures + image grids ---- */
.project-content .figure-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 0;
  justify-content: center;
  align-items: flex-start;
}
.project-content .figure-grid > figure {
  flex: 0 1 auto;
  min-width: 0;
}
.project-content .figure-grid > figure .figure-frame {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-content .figure-grid > figure img {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.project-content figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.project-content figure.figure-full {
  margin: 32px 0;
}
.project-content figure .figure-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.project-content figure .figure-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 2;
}
.project-content figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.project-content figure:hover img {
  transform: scale(1.02);
}
.project-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 12px;
  line-height: 1.5;
}
.project-content figcaption strong {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  margin-bottom: 4px;
}
.project-content .grid-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0.5px;
  line-height: 1.7;
  margin: -12px 0 32px;
  text-align: center;
}
.project-body {
  padding: 80px 0 120px;
  background: var(--bg);
}
.project-body .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.project-meta {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}
.project-meta dt {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-meta dd {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}
.project-meta dd a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.project-meta dd a:hover {
  border-bottom-color: var(--accent);
}
.project-content h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.project-content h3:not(:first-child) { margin-top: 48px; }
.project-content p {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}
.project-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.project-content li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 10px;
}
.project-content li::before {
  content: "▹";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 0.95rem;
}
.project-nav {
  border-top: 1px solid var(--border);
  padding: 40px 0 80px;
  background: var(--bg);
}
.project-nav .container {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.project-nav a {
  display: inline-flex; flex-direction: column; gap: 6px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.project-nav a:hover { color: var(--accent); }
.project-nav .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.project-nav .title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.project-nav a:hover .title { color: var(--accent); }
.project-nav .next { text-align: right; align-items: flex-end; }

/* ============================================
   ANIMATIONS
   ============================================ */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .section { padding: 4rem 0; }
  .section-header { gap: 12px; margin-bottom: 40px; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 2rem; }

  .page-header { padding: 130px 2rem 70px; }
  .page-header-title { font-size: clamp(2.6rem, 11vw, 4rem); letter-spacing: -2px; }
  .page-header-welcome { font-size: 1rem; }

  .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-arrow { display: none; }

  .timeline { padding-left: 24px; }
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .timeline-entry::before { left: -31px; top: 28px; }
  .timeline-detail strong { display: block; min-width: 0; margin-bottom: 2px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .project-body { padding: 4rem 0; }
  .project-body .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 2rem;
  }
  .project-meta { position: static; }

  .project-content .figure-grid > figure .figure-frame {
    height: 220px;
  }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .section-header { flex-wrap: wrap; }
  .section-header::after { display: none; }

  .project-content .figure-grid > figure .figure-frame {
    height: 180px;
  }
}
