/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Design tokens ── */
:root {
  --matcha:      #4e6e40;
  --matcha-lt:   #7da065;
  --matcha-pale: #ddecd0;
  --matcha-deep: #3d5a30;
  --cream:       #f9f5ee;
  --warm:        #f0ece3;
  --ink:         #1a1a1a;
  --ink-soft:    #3a3a3a;
  --ink-muted:   #777;
  --gold:        #a07840;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 4px 28px rgba(78,110,64,.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(249,245,238,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(78,110,64,.12);
}
.nav-logo { font-family: 'EB Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 500; color: var(--matcha); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { text-decoration: none; font-family: 'Lora', serif; font-size: .88rem; color: var(--ink-soft); transition: color .25s; }
.nav-links a:hover { color: var(--matcha); }

/* ── Hero ── */
#hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem 4rem 6rem; z-index: 2; }
.hero-eyebrow { font-family: 'Lora', serif; font-size: .88rem; font-style: italic; color: var(--matcha); margin-bottom: 1.3rem; opacity: 0; animation: fadeUp .7s .2s forwards; }
.hero-name { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(3.4rem, 5.2vw, 5.8rem); font-weight: 400; line-height: 1.06; color: var(--ink); opacity: 0; animation: fadeUp .7s .35s forwards; }
.hero-name em { font-style: italic; color: var(--matcha); }
.hero-tagline { margin-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); max-width: 430px; opacity: 0; animation: fadeUp .7s .5s forwards; }
.hero-pills { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.8rem; opacity: 0; animation: fadeUp .7s .65s forwards; }
.pill { background: var(--matcha-pale); color: var(--matcha); border-radius: 100px; padding: .3rem 1rem; font-family: 'Lora', serif; font-size: .8rem; font-style: italic; border: 1px solid rgba(78,110,64,.2); }
.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center; opacity: 0; animation: fadeUp .7s .8s forwards; }
.btn { display: inline-block; padding: .75rem 2rem; border-radius: 100px; font-family: 'Lora', serif; font-size: .9rem; font-style: italic; text-decoration: none; cursor: pointer; transition: all .25s; }
.btn-primary { background: var(--matcha); color: var(--white); border: none; }
.btn-primary:hover { background: var(--matcha-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78,110,64,.28); }
.btn-outline { background: transparent; color: var(--matcha); border: 1.5px solid var(--matcha); }
.btn-outline:hover { background: var(--matcha-pale); }
.hero-right { position: relative; overflow: hidden; opacity: 0; animation: fadeIn 1s .4s forwards; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-right::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--cream) 0%, rgba(249,245,238,.5) 30%, transparent 55%); }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 6rem; display: flex; align-items: center; gap: .8rem; font-family: 'Lora', serif; font-size: .8rem; font-style: italic; color: var(--ink-muted); opacity: 0; animation: fadeUp .7s 1.1s forwards; }
.scroll-line { width: 40px; height: 1px; background: var(--matcha-lt); }

/* ── About — matcha background ── */
#about {
  background: var(--matcha);
  padding: 5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#about::before { font-family: serif; font-size: 14rem; position: absolute; right: -1rem; top: -2rem; color: rgba(255,255,255,.05); pointer-events: none; line-height: 1; }
.about-photo-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2); aspect-ratio: 3/4; }
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-photo-badge { position: absolute; bottom: 1rem; left: 1rem; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); color: var(--white); font-family: 'Lora', serif; font-size: .82rem; font-style: italic; padding: .4rem .9rem; border-radius: 100px; }
.about-label { font-family: 'Lora', serif; font-size: .85rem; font-style: italic; color: var(--matcha-pale); margin-bottom: .9rem; }
.about-title { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 400; line-height: 1.2; color: var(--white); }
.about-title em { font-style: italic; color: #b2d89a; }
.about-dialog { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 2rem 2.2rem; backdrop-filter: blur(8px); margin-top: 1.5rem; }
.dialog-quote { font-family: 'EB Garamond', serif; font-size: 3.5rem; line-height: 1; color: #b2d89a; margin-bottom: .4rem; }
.dialog-text { font-family: 'Lora', serif; font-size: .95rem; line-height: 1.85; color: rgba(255,255,255,.88); }
.dialog-text strong { color: var(--white); font-weight: 500; }
.about-hobbies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.hobby-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; background: rgba(255,255,255,.10); border-radius: var(--radius); padding: 1.2rem 1.5rem; border: 1px solid rgba(255,255,255,.15); transition: background .25s, transform .25s; }
.hobby-card:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.hobby-emoji { font-size: 1.7rem; }
.hobby-name { font-family: 'Lora', serif; font-size: .8rem; font-style: italic; color: rgba(255,255,255,.80); }

/* ── Generic sections ── */
.section { padding: 5rem 6rem; background: var(--cream); }
.section-alt { background: var(--warm); }
.section-label { font-family: 'Lora', serif; font-size: .85rem; font-style: italic; color: var(--matcha); margin-bottom: .7rem; }
.section-title { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 3rem; }
.section-title em { font-style: italic; color: var(--matcha); }

/* ── Education ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu-card { background: var(--white); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow); border-left: 4px solid var(--matcha); transition: transform .25s, box-shadow .25s; }
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(78,110,64,.14); }
.edu-school { font-family: 'Lora', serif; font-size: .82rem; font-style: italic; color: var(--matcha); margin-bottom: .5rem; }
.edu-degree { font-family: 'EB Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: .3rem; }
.edu-period { font-family: 'Lora', serif; font-size: .82rem; color: var(--ink-muted); margin-bottom: 1rem; }
.edu-notes { font-size: .85rem; line-height: 1.7; color: var(--ink-soft); }
.edu-notes li { margin-left: 1.2rem; margin-bottom: .25rem; }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.skill-group { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.skill-group-title { font-family: 'Lora', serif; font-size: .85rem; font-style: italic; color: var(--matcha); margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { background: var(--matcha-pale); color: var(--matcha); border-radius: 6px; padding: .28rem .75rem; font-family: 'Lora', serif; font-size: .8rem; }

/* ── Experience ── */
.exp-timeline { position: relative; }
.exp-timeline::before { content: ''; position: absolute; left: 150px; top: 0; bottom: 0; width: 1px; background: var(--matcha-pale); }
.exp-item { display: grid; grid-template-columns: 150px 1fr; gap: 2.5rem; padding: 2.5rem 0; border-bottom: 1px solid rgba(78,110,64,.09); }
.exp-item:last-child { border-bottom: none; }
.exp-meta { padding-top: .2rem; }
.exp-period { font-family: 'Lora', serif; font-size: .78rem; font-style: italic; color: var(--matcha); }
.exp-company { font-family: 'Lora', serif; font-size: .78rem; color: var(--ink-muted); margin-top: .2rem; }
.exp-content { padding-left: 2.5rem; position: relative; }
.exp-content::before { content: ''; position: absolute; left: -1.85rem; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--matcha); border: 2px solid var(--cream); box-shadow: 0 0 0 3px var(--matcha-pale); }
.exp-role { font-family: 'EB Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 500; color: var(--ink); margin-bottom: .25rem; }
.exp-org { font-family: 'Lora', serif; font-size: .82rem; font-style: italic; color: var(--gold); margin-bottom: 1rem; }
.exp-bullets { list-style: none; }
.exp-bullets li { font-family: 'Lora', serif; font-size: .88rem; line-height: 1.75; color: var(--ink-soft); padding-left: 1.3rem; position: relative; margin-bottom: .4rem; }
.exp-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--matcha-lt); font-size: .8rem; top: .05rem; }

/* ── Testimonials — matcha background (matches About & Footer) ── */
#testimonials { background: var(--matcha); padding: 5rem 6rem; }
#testimonials .section-label { color: var(--matcha-pale); }
#testimonials .section-title { color: var(--white); margin-bottom: 3rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 2rem 2.2rem; position: relative; transition: background .25s, transform .25s; }
.testi-card:hover { background: rgba(255,255,255,.16); transform: translateY(-4px); }
.testi-card::before { content: '\201C'; font-family: 'EB Garamond', serif; font-size: 5rem; line-height: 1; color: #b2d89a; opacity: .5; position: absolute; top: .5rem; left: 1.5rem; }
.testi-text { font-family: 'Lora', serif; font-size: .9rem; line-height: 1.85; color: rgba(255,255,255,.82); font-style: italic; padding-top: 2.5rem; }
.testi-author { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); }
.testi-name { font-family: 'EB Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--white); }
.testi-role { font-family: 'Lora', serif; font-size: .78rem; font-style: italic; color: #b2d89a; margin-top: .2rem; }
.testi-company { font-family: 'Lora', serif; font-size: .78rem; color: rgba(255,255,255,.45); }

/* ── Travel strip ── */
#travel { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); height: 320px; position: relative; }
.travel-img { overflow: hidden; position: relative; }
.travel-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .55s ease; filter: brightness(.82); }
.travel-img:hover img { transform: scale(1.06); filter: brightness(1); }
.travel-label { position: absolute; bottom: 1rem; left: 1rem; font-family: 'Lora', serif; font-size: .78rem; font-style: italic; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.travel-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: 'EB Garamond', serif; font-size: 2.2rem; font-style: italic; color: rgba(255,255,255,.92); text-shadow: 0 2px 20px rgba(0,0,0,.5); pointer-events: none; z-index: 5; white-space: nowrap; }

/* ── Certifications ── */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cert-item { display: flex; align-items: center; gap: 1rem; background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow); transition: transform .2s; border-left: 3px solid var(--matcha-pale); }
.cert-item:hover { transform: translateX(4px); border-left-color: var(--matcha); }
.cert-icon { font-size: 1.4rem; flex-shrink: 0; }
.cert-name { font-family: 'Lora', serif; font-size: .9rem; font-weight: 500; color: var(--ink); }
.cert-period { font-family: 'Lora', serif; font-size: .78rem; font-style: italic; color: var(--ink-muted); margin-top: .15rem; }

/* ── CCA ── */
.cca-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cca-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.8rem; box-shadow: var(--shadow); border-top: 3px solid var(--matcha-pale); transition: border-color .25s, transform .25s; }
.cca-card:hover { border-color: var(--matcha); transform: translateY(-3px); }
.cca-org { font-family: 'Lora', serif; font-size: .8rem; font-style: italic; color: var(--matcha); }
.cca-role { font-family: 'EB Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 500; color: var(--ink); margin: .3rem 0; }
.cca-period { font-family: 'Lora', serif; font-size: .78rem; color: var(--ink-muted); margin-bottom: .8rem; }
.cca-desc { font-family: 'Lora', serif; font-size: .86rem; line-height: 1.75; color: var(--ink-soft); }

/* ── Photo Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 12px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .55s ease, filter .55s ease; filter: brightness(.88); }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1); }
.gallery-tall { grid-row: span 2; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem 1.1rem; background: linear-gradient(transparent, rgba(61,90,48,.7)); font-family: 'Lora', serif; font-size: .85rem; font-style: italic; color: rgba(255,255,255,.95); transform: translateY(4px); opacity: 0; transition: opacity .3s, transform .3s; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ── Footer / Contact — matcha background ── */
footer { background: var(--matcha); padding: 4rem 6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.footer-title { font-family: 'EB Garamond', Georgia, serif; font-size: 2.2rem; font-weight: 400; font-style: italic; color: var(--white); line-height: 1.25; }
.footer-title em { color: #b2d89a; }
.footer-sub { font-family: 'Lora', serif; font-size: .9rem; font-style: italic; color: rgba(255,255,255,.7); margin-top: .8rem; }
.contact-items { display: flex; flex-direction: column; gap: .8rem; }
.contact-item { display: flex; align-items: center; gap: .8rem; font-family: 'Lora', serif; font-size: .9rem; color: rgba(255,255,255,.85); }
.contact-item a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.contact-item a:hover { color: var(--white); }
.contact-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; text-align: center; font-family: 'Lora', serif; font-size: .8rem; font-style: italic; color: rgba(255,255,255,.4); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { height: 42vh; }
  .hero-left { padding: 3rem 2rem; }
  #about { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .section { padding: 3rem 2rem; }
  footer { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .edu-grid, .skills-grid, .testi-grid, .cert-grid, .cca-grid { grid-template-columns: 1fr; }
  .exp-timeline::before { left: 0; }
  .exp-item { grid-template-columns: 1fr; gap: .4rem; }
  .exp-content { padding-left: 1.5rem; }
  .exp-content::before { left: -1rem; }
  #travel { grid-template-columns: repeat(2, 1fr); height: auto; }
  .travel-img { height: 180px; }
  #testimonials { padding: 3rem 2rem; }
  nav { padding: 1rem 1.5rem; }
  #about::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-tall { grid-row: auto; }
  .gallery-item { height: 220px; }
}