/* ─── FEONIE FONT ────────────────────────────────────────────── */
@font-face {
  font-family: 'Feonie';
  src: url('assets/feonie.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:   #F4EFE6;
  --ink:         #1C1C1A;
  --green:       #2A4035;
  --green-mid:   #3D5C4E;
  --green-light: #4A6358;
  --terracotta:  #B5613A;
  --cream:       #FAF7F2;
  --rule:        #D4C9B8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --max-w: 1280px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-y: clamp(5rem, 10vw, 9rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1.5px solid;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline {
  border-color: var(--parchment);
  color: var(--parchment);
}
.btn-outline:hover {
  background: var(--parchment);
  color: var(--green);
}

.btn-green {
  background: var(--green);
  border-color: var(--green);
  color: var(--parchment);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-terracotta {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--parchment);
}
.btn-terracotta:hover {
  background: #9e5030;
  border-color: #9e5030;
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

/* ─── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  transition: background 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
  background: var(--parchment);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--parchment);
  transition: color 0.3s;
}
#nav.scrolled .nav-name { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--parchment); }

#nav.scrolled .nav-links a { color: var(--green-light); }
#nav.scrolled .nav-links a:hover { color: var(--green); }

.nav-toggle { display: none; }

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(28, 42, 34, 0.72) 0%,
    rgba(28, 42, 34, 0.58) 60%,
    rgba(28, 42, 34, 0.78) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem var(--pad-x) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  margin-bottom: 2rem;
}

.hero-name {
  font-family: 'Feonie', 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(244,239,230,0.72);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(244,239,230,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero-scroll:hover { color: rgba(244,239,230,0.8); }

/* ─── ABOUT ──────────────────────────────────────────────────── */
#about { background: var(--cream); }

.about-header { margin-bottom: 3.5rem; }
.about-header h2 { margin-top: 0.5rem; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-header { margin-bottom: 2.5rem; }

.about-bio p {
  font-size: 1.05rem;
  color: #3a3a38;
  margin-bottom: 1.1rem;
}
.about-bio .btn { margin-top: 1.5rem; }

.about-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 50%;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-bottom: 5rem;
}

.pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.9rem;
  color: #555550;
  line-height: 1.7;
}

/* Skills */
.skills-block {
  margin-bottom: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 4rem;
  max-width: 760px;
}

.skills-col p {
  font-size: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  color: #3a3a38;
}
.skills-col p:first-child { border-top: 1px solid var(--rule); }

/* Timeline */
.experience-block {
  margin-bottom: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--rule);
}

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-item:first-child { border-top: 1px solid var(--rule); }

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.15rem;
}

.timeline-year {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 500;
}

.timeline-company {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: #888;
}

.timeline-detail h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.timeline-detail p { font-size: 0.88rem; color: #555550; }

/* Education */
.education-block { padding-top: 4rem; border-top: 1px solid var(--rule); }

.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.education-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.education-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* ─── WORK ───────────────────────────────────────────────────── */
#work {
  background: var(--parchment);
  border-top: 1px solid var(--rule);
}

.work-header { margin-bottom: 3.5rem; }
.work-header h2 { margin-top: 0.5rem; }

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: box-shadow 0.3s;
  cursor: pointer;
  align-items: stretch;
  min-height: 480px;
}

.project-card:hover { box-shadow: 0 20px 60px rgba(42,64,53,0.15); }

.project-card-image {
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img { transform: scale(1.04); }

.project-card-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--green);
  color: var(--parchment);
}

.project-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-bottom: 1rem;
}

.project-card-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.project-description {
  font-size: 0.9rem;
  color: rgba(244,239,230,0.7);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tags span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(244,239,230,0.25);
  color: rgba(244,239,230,0.6);
}

.project-cta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment);
  font-weight: 500;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 0.15rem;
  align-self: flex-start;
  transition: border-color 0.2s;
}
.project-card:hover .project-cta { border-color: var(--terracotta); }

.work-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  text-align: center;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
#contact {
  background: var(--green);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/blueprint.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  mix-blend-mode: luminosity;
  z-index: 0;
}

#contact .section-inner { position: relative; z-index: 1; }

.contact-quote {
  text-align: center;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(244,239,230,0.15);
  margin-bottom: 5rem;
}

.contact-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--parchment);
  max-width: 780px;
  margin: 0 auto 1rem;
}

.contact-quote cite {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.45);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info .section-label { color: var(--terracotta); opacity: 0.8; }
.contact-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--parchment);
  margin-bottom: 2.5rem;
  line-height: 1.35;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-details a,
.contact-details p {
  font-size: 0.9rem;
  color: rgba(244,239,230,0.65);
  transition: color 0.2s;
}
.contact-details a:hover { color: var(--parchment); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
}

.form-group input,
.form-group textarea {
  background: rgba(244,239,230,0.07);
  border: 1px solid rgba(244,239,230,0.2);
  color: var(--parchment);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(244,239,230,0.3); }

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(244,239,230,0.6); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: #1a2920;
  padding: 2rem var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(244,239,230,0.6);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(244,239,230,0.3);
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .education-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-name-img { width: clamp(240px, 85vw, 420px); }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { order: -1; }
  .pillars { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .education-grid { grid-template-columns: 1fr 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card-image { aspect-ratio: 16/9; }
  .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--parchment);
    transition: background 0.3s;
  }
  #nav.scrolled .nav-toggle span { background: var(--ink); }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open a {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--parchment);
  }
}

@media (max-width: 480px) {
  .education-grid { grid-template-columns: 1fr; }
  .project-card-text { padding: 2rem; }
}
