@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --green:      #1B4332;
  --green-mid:  #2D6A4F;
  --green-light:#D8F3DC;
  --bg:         #FAFAF8;
  --white:      #FFFFFF;
  --text:       #1A1A1A;
  --text-mid:   #3A3A35;
  --text-sec:   #5A5A55;
  --border:     #E2E8E0;
  --radius:     10px;
  --max-w:      1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-mid); }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.05rem; font-weight: 700; color: var(--green); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.header-nav { display: flex; gap: 32px; }
.header-nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-mid); transition: color 0.15s; }
.header-nav a:hover { color: var(--green); text-decoration: none; }
.header-nav a.active { color: var(--green); font-weight: 700; text-decoration: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 8px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-mid); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--green); text-decoration: none; }

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

/* ── HERO (index) ── */
.hero { background: var(--green); color: var(--white); padding: 96px 0 80px; }
.hero-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-light); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 22px;
}
.hero .hero-bio {
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(255,255,255,0.82); max-width: 620px; margin-bottom: 36px;
}
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center;
  padding: 11px 22px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--white); color: var(--green); }
.btn-primary:hover { background: var(--green-light); text-decoration: none; color: var(--green); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }

/* ── PAGE HERO (about + work) ── */
.page-hero { background: var(--green); color: var(--white); padding: 56px 0 52px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; }

/* ── SECTION HEADING ── */
.section-heading {
  font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 14px; margin-bottom: 36px;
}
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── GALLERY (index) ── */
.gallery-section { padding: 72px 0; }
.gallery-intro { margin-bottom: 32px; }
.gallery-intro h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.gallery-intro p { color: var(--text-sec); font-size: 0.97rem; }
.gallery-intro a { color: var(--green); font-weight: 500; }
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.img-grid-item { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: var(--border); }
.img-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.img-grid-item:hover img { transform: scale(1.05); }

/* ── ABOUT INTRO ── */
.about-intro { padding: 72px 0; }
.about-intro-inner { display: grid; grid-template-columns: 1fr 200px; gap: 52px; align-items: start; }
.about-text h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.about-text p { color: var(--text-mid); font-size: 0.97rem; line-height: 1.75; margin-bottom: 12px; }
.about-text p:last-of-type { margin-bottom: 0; }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 11px 22px;
  background: var(--green); color: var(--white);
  border-radius: 6px; font-size: 0.9rem; font-weight: 600; transition: background 0.15s;
}
.btn-green:hover { background: var(--green-mid); text-decoration: none; color: var(--white); }
.avatar-wrap { text-align: center; }
.avatar-wrap img {
  width: 175px; height: 175px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--green-light); margin: 0 auto;
}
.avatar-credit { margin-top: 8px; font-size: 0.72rem; color: var(--text-sec); }
.avatar-credit a { color: var(--text-sec); }

/* ── TIMELINE ── */
.timeline-section { padding: 64px 0; border-top: 1px solid var(--border); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 2px; background: var(--green-light);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-light);
}
.tl-org { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.tl-role { font-size: 0.92rem; font-weight: 600; color: var(--green-mid); margin-bottom: 2px; }
.tl-date { font-size: 0.78rem; font-weight: 500; color: var(--text-sec); margin-bottom: 10px; letter-spacing: 0.01em; }
.timeline-item ul { list-style: disc; padding-left: 18px; color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }
.timeline-item ul li { margin-bottom: 5px; }
.timeline-item p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }
.tl-subrole { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* ── PROJECTS ── */
.projects-section { padding: 72px 0; }
.project-card {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 28px; padding: 32px 0;
  border-bottom: 1px solid var(--border); align-items: start;
}
.project-card:first-child { padding-top: 0; }
.project-card:last-child { border-bottom: none; }
.project-thumb { width: 200px; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--border); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.project-content h3 a { color: var(--text); }
.project-content h3 a:hover { color: var(--green); text-decoration: none; }
.project-content p { font-size: 0.9rem; color: var(--text-sec); line-height: 1.7; }
.project-content p + p { margin-top: 8px; }
.project-content p a { color: var(--green); font-weight: 500; }

/* ── TABLEAU ── */
.tableau-section { padding: 72px 0; border-top: 1px solid var(--border); }
.tableau-intro { color: var(--text-sec); font-size: 0.95rem; line-height: 1.7; margin-bottom: 48px; }
.tableau-embed { margin-bottom: 52px; overflow-x: auto; }
.tableau-embed:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer { background: var(--green); color: rgba(255,255,255,0.85); padding: 48px 0 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.footer-brand { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500; transition: color 0.15s; }
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-social { margin-bottom: 24px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500; transition: color 0.15s;
}
.footer-social a:hover { color: var(--white); text-decoration: none; }
.footer-copy {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 0 52px; }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro-inner { grid-template-columns: 1fr; }
  .avatar-wrap { order: -1; }
  .project-card { grid-template-columns: 1fr; gap: 16px; }
  .project-thumb { width: 100%; height: 200px; }
  .footer-top { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
  .img-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 14px; }
}
