/* Warm, grounded palette */
:root {
  --bg: #f5f1e7;
  --bg-2: #ece8dc;
  --bg-card: #fbf9f2;
  --forest: #20392e;
  --forest-deep: #172d24;
  --sage: #78866a;
  --olive: #687550;
  --clay: #a35f40;
  --brown: #74523c;
  --border: rgba(47, 62, 48, 0.15);
  --text: #29372e;
  --text-muted: #6e7569;
  --accent: #61754e;
  --accent-2: #a15e3f;
  --accent-glow: rgba(161, 94, 63, 0.18);
  --radius: 22px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: #c8cfb5; color: var(--forest-deep); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #aab19b; border: 2px solid var(--bg); border-radius: 99px; }

.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.accent { color: var(--clay); }
.accent-text { color: var(--accent); }

/* Reveal motion */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.96); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Navigation */
#navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: padding var(--transition);
}
.nav-inner {
  width: min(1160px, 100%);
  min-height: 62px;
  margin: 0 auto;
  padding: 0.65rem 1.1rem 0.65rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 246, 237, 0.92);
  box-shadow: 0 8px 30px rgba(34, 47, 36, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#navbar.scrolled { padding-top: 0.55rem; }
#navbar.scrolled .nav-inner { box-shadow: 0 8px 30px rgba(34, 47, 36, 0.12); }
.nav-logo { color: var(--forest); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.06em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(0.75rem, 1.7vw, 1.5rem); list-style: none; }
.nav-links a {
  position: relative;
  color: #697367;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition);
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hero */
#hero {
  position: relative;
  overflow: hidden;
  min-height: min(820px, 100svh);
  padding: 8rem 0 6rem;
  color: #f6f2e8;
  background: var(--forest);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(100px); opacity: 0.16; transition: transform 0.2s ease-out; }
.blob-1 { top: -210px; left: -120px; background: #a6a578; }
.blob-2 { right: 2%; bottom: -260px; background: #a85e3e; }
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(rgba(237, 230, 210, 0.55) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}
.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.35rem;
}
.hero-eyebrow {
  color: #c7c9a9;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.hero-name {
  max-width: 850px;
  color: #f6f2e8;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero-name-word { display: inline-block; white-space: nowrap; }
.hero-tagline { max-width: 550px; color: rgba(246, 242, 232, 0.77); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.badge {
  padding: 0.42rem 0.82rem;
  border: 1px solid rgba(236, 231, 211, 0.28);
  border-radius: 999px;
  color: #e4dfc9;
  background: rgba(238, 233, 213, 0.07);
  font-size: 0.78rem;
  font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.55rem; }
.hero-note {
  position: relative;
  width: min(100%, 445px);
  justify-self: end;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  color: var(--text);
  background: #f3eedf;
  box-shadow: 0 28px 70px rgba(10, 27, 19, 0.28);
  transform: rotate(1.25deg);
}
.hero-note-heading { display: flex; justify-content: space-between; gap: 1rem; color: #737b69; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; }
.hero-illustration { position: relative; height: 250px; margin: 1rem 0 1.1rem; overflow: hidden; border-radius: 17px 17px 44px 17px; background: #c6c9ae; }
.hero-illustration svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.landform-back { fill: #9ba285; }
.landform-front { fill: #526852; }
.contour { fill: none; stroke: rgba(243, 238, 223, 0.48); stroke-width: 2; }
.contour-two { stroke: rgba(243, 238, 223, 0.32); }
.climb-route { fill: none; stroke: #bd7953; stroke-linecap: round; stroke-width: 4; stroke-dasharray: 2 8; }
.route-point { fill: #f2ead7; stroke: #bd7953; stroke-width: 2; }
.sun { fill: #d4a56f; }
.sun-line { fill: none; stroke: #d4a56f; stroke-linecap: round; stroke-width: 2; opacity: 0.8; }
.illustration-caption { position: absolute; top: 0.85rem; left: 0.9rem; color: #f3eedf; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.15em; }
.hero-note-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; padding: 0.2rem 0 0.15rem; }
.hero-note-details div { display: flex; flex-direction: column; gap: 0.22rem; }
.hero-note-details span { color: #858979; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; }
.hero-note-details strong { color: var(--forest); font-size: 0.78rem; font-weight: 700; }
.hero-note-stamp { position: absolute; right: -26px; bottom: 72px; width: 76px; height: 76px; display: grid; place-content: center; border: 1px solid rgba(243, 238, 223, 0.7); border-radius: 50%; color: #f7f1e4; background: var(--clay); box-shadow: 0 6px 20px rgba(44, 45, 30, 0.18); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; text-align: center; transform: rotate(9deg); }
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary { color: var(--forest-deep); background: #e4d7b9; }
.btn-primary:hover { background: #f0e7d3; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(245, 241, 226, 0.35); color: #f5f1e6; background: transparent; }
.btn-ghost:hover { border-color: #e4d7b9; color: #e4d7b9; transform: translateY(-2px); }
.btn-full { width: 100%; }
.scroll-indicator {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100vw - 1120px) / 2));
  bottom: 2.3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(246, 242, 232, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mouse { width: 19px; height: 29px; display: flex; justify-content: center; padding-top: 5px; border: 1px solid rgba(246, 242, 232, 0.5); border-radius: 11px; }
.wheel { width: 3px; height: 6px; border-radius: 3px; background: #d0c6a7; animation: scroll-wheel 1.5s ease-in-out infinite; }
@keyframes scroll-wheel { 50% { opacity: 0.35; transform: translateY(5px); } }

/* Sections and headings */
section { position: relative; overflow: hidden; padding: 7.5rem 0; }
#summary, #portfolio, #education { background: var(--bg); }
#projects, #skills, #certificates { background: var(--bg-2); }
section > .container { position: relative; z-index: 1; }
.section-header { margin-bottom: 3rem; }
.section-tag { display: block; margin-bottom: 0.7rem; color: var(--clay); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.section-header h2 {
  color: var(--forest);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.section-intro { max-width: 560px; margin-top: 0.85rem; color: var(--text-muted); font-size: 1rem; }
.section-num {
  position: absolute;
  top: 2.2rem;
  right: max(1.5rem, calc((100vw - 1250px) / 2));
  color: rgba(63, 82, 60, 0.055);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Summary */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.about-text p { max-width: 670px; margin-bottom: 1.2rem; color: var(--text-muted); font-size: 1.05rem; }
.about-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.2rem; }
.stat { display: flex; flex-direction: column; }
.stat-number { color: var(--accent); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { margin-top: 0.55rem; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.about-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: 0 18px 50px rgba(51, 57, 41, 0.07); }
.card-inner { padding: 1.8rem; }
.profile-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 5px solid #e6e5d7;
  border-radius: 50%;
  color: #f6f2e8;
  background: var(--olive);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
}
.profile-info h3 { color: var(--forest); font-size: 1.18rem; font-weight: 700; }
.profile-info p { margin: 0.1rem 0 1.3rem; color: var(--clay); font-size: 0.85rem; font-weight: 600; }
.profile-details { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; }
.profile-details li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-muted); font-size: 0.83rem; overflow-wrap: anywhere; }
.detail-icon { flex: 0 0 1.1rem; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.portfolio-card {
  grid-column: span 6;
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(51, 57, 41, 0.035);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover { border-color: rgba(97, 117, 78, 0.38); box-shadow: 0 20px 45px rgba(51, 57, 41, 0.1); transform: translateY(-5px); }
.portfolio-card--featured { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr); align-items: center; background: var(--forest); border-color: var(--forest); }
.portfolio-card--personal { grid-column: span 5; }
.portfolio-copy { position: relative; z-index: 1; }
.portfolio-kicker { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.25rem; color: var(--clay); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.12em; }
.portfolio-kicker b { color: var(--olive); font-size: 0.72rem; }
.portfolio-card--featured .portfolio-kicker { color: #d3c6a9; }
.portfolio-card--featured .portfolio-kicker b { color: #e2ad7b; }
.portfolio-card h3 { max-width: 440px; margin-bottom: 0.65rem; color: var(--forest); font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.portfolio-card--featured h3 { color: #f5f0e4; }
.portfolio-card p { max-width: 480px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.portfolio-card--featured p { color: rgba(245, 240, 228, 0.72); }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.portfolio-tags span { padding: 0.22rem 0.62rem; border: 1px solid rgba(97, 117, 78, 0.14); border-radius: 999px; color: #5d6a53; background: #eef0e6; font-size: 0.7rem; font-weight: 600; }
.portfolio-card--featured .portfolio-tags span { border-color: rgba(241, 232, 210, 0.2); color: #e7ddc6; background: rgba(241, 232, 210, 0.08); }
.portfolio-art { position: relative; min-height: 170px; margin-top: 1.25rem; overflow: hidden; border-radius: 16px; }
.portfolio-card--featured .portfolio-art { min-height: 240px; margin: 0; }
.code-art { padding: 0 1rem 1rem; border: 1px solid rgba(240, 232, 213, 0.16); color: #e4dfcf; background: #172d24; box-shadow: 0 15px 38px rgba(12, 24, 17, 0.2); transform: rotate(1deg); }
.art-window-bar { height: 42px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(240, 232, 213, 0.12); }
.art-window-bar > span, .browser-top > span { width: 7px; height: 7px; border-radius: 50%; background: #bb7653; }
.art-window-bar > span:nth-child(2), .browser-top > span:nth-child(2) { background: #d0b27e; }
.art-window-bar > span:nth-child(3), .browser-top > span:nth-child(3) { background: #879574; }
.art-window-bar b { margin-left: 0.5rem; color: #9ba590; font-size: 0.62rem; font-weight: 500; }
.art-code { display: flex; flex-direction: column; gap: 0.55rem; padding-top: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(0.55rem, 0.8vw, 0.68rem); white-space: nowrap; }
.art-code span { color: #d5d5c4; }
.art-code i { padding-right: 0.5rem; color: #76836e; font-style: normal; }
.art-code b { color: #c99b70; font-weight: 500; }
.art-code em { color: #b9c495; font-style: normal; }
.browser-art { padding: 0 0.9rem 0.9rem; background: #d8dac9; }
.browser-top { height: 38px; display: flex; align-items: center; gap: 5px; }
.browser-top > span { width: 6px; height: 6px; }
.browser-top i { margin-left: 0.4rem; color: #74806d; font-size: 0.58rem; font-style: normal; }
.browser-page { height: 125px; display: flex; align-items: flex-start; flex-direction: column; gap: 0.55rem; padding: 1rem; border-radius: 10px; background: #f5f1e7; box-shadow: 0 8px 16px rgba(51, 57, 41, 0.09); }
.browser-page > b { width: 42%; height: 9px; margin-bottom: 0.1rem; border-radius: 8px; background: #6e8064; }
.browser-page > span { width: 70%; height: 4px; border-radius: 8px; background: #d1d2c4; }
.browser-page > span:nth-of-type(2) { width: 54%; }
.browser-page > div { display: flex; gap: 0.35rem; margin-top: auto; }
.browser-page i { width: 34px; height: 23px; border-radius: 5px; background: #d7dfd0; }
.browser-page i:nth-child(2) { background: #e5d5c1; }
.browser-page i:nth-child(3) { background: #c8d0bd; }
.note-art { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: 1.2rem 1.4rem; border: 1px solid #d9d8c8; background: #e9e5d5; transform: rotate(-1deg); }
.note-art > span { color: #8b755e; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; }
.note-art blockquote { margin: 0.65rem 0; color: var(--forest); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.note-art blockquote b { color: var(--clay); font-weight: 400; }
.note-art > i { color: #77806d; font-size: 0.62rem; font-style: normal; }
.field-art { display: grid; place-items: center; background: #687c60; }
.field-lines { position: absolute; inset: 14px; border: 1px solid rgba(240, 240, 220, 0.56); border-radius: 8px; }
.field-lines::after { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; border: 1px solid rgba(240, 240, 220, 0.56); border-radius: 50%; content: ''; transform: translate(-50%, -50%); }
.field-lines > span:first-child { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid rgba(240, 240, 220, 0.56); }
.field-lines > span:nth-child(2), .field-lines > span:nth-child(3) { position: absolute; left: 0; width: 18%; height: 30%; border: 1px solid rgba(240, 240, 220, 0.56); }
.field-lines > span:nth-child(2) { top: 0; }
.field-lines > span:nth-child(3) { bottom: 0; }
.field-lines > i { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #e5c396; transform: translate(-50%, -50%); }
.field-lines > b { position: absolute; top: 23%; left: 70%; width: 7px; height: 7px; border-radius: 50%; background: #f1e7d2; box-shadow: 0 0 0 6px rgba(241, 231, 210, 0.15); }
.field-caption { position: absolute; right: 1.2rem; bottom: 1rem; color: rgba(245, 241, 230, 0.78); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-align: right; }

/* Skills */
.skills-board { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: 1rem; align-items: stretch; }
.skills-manifesto { position: relative; min-height: 430px; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; overflow: hidden; border-radius: var(--radius); color: #f5f0e4; background: var(--forest); }
.skills-manifesto::before { position: absolute; right: -55px; bottom: -75px; width: 230px; height: 230px; border: 1px solid rgba(238, 233, 213, 0.17); border-radius: 50%; content: ''; }
.skills-manifesto-label { color: #d4c7a9; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; }
.skills-manifesto h3 { position: relative; z-index: 1; margin-top: 2.3rem; color: #f5f0e4; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.04; }
.skills-manifesto h3 em { color: #d7b68d; font-weight: 400; }
.skills-manifesto p { position: relative; z-index: 1; max-width: 290px; margin-top: auto; padding-top: 2rem; color: rgba(245, 240, 228, 0.7); font-size: 0.9rem; }
.skills-manifesto-mark { position: absolute; right: 1rem; bottom: -1.4rem; color: rgba(241, 235, 215, 0.055); font-family: 'DM Serif Display', Georgia, serif; font-size: 10rem; line-height: 1; }
.skills-list { display: flex; flex-direction: column; gap: 0.75rem; }
.skill-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.2rem 1.3rem; border: 1px solid var(--border); border-radius: 18px; background: rgba(251, 249, 242, 0.82); transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.skill-row:hover { border-color: rgba(97, 117, 78, 0.42); box-shadow: 0 12px 30px rgba(51, 57, 41, 0.07); transform: translateX(4px); }
.skill-row-index { padding-top: 0.12rem; color: var(--clay); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.25rem; }
.skill-row h3 { margin-bottom: 0.7rem; color: var(--forest); font-size: 0.9rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tags span { padding: 0.3rem 0.62rem; border: 1px solid #d9dece; border-radius: 999px; color: #56634e; background: #f0f1e8; font-size: 0.72rem; }

/* Hobbies */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(51, 57, 41, 0.035);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card::after { position: absolute; right: -2.2rem; bottom: -3rem; width: 10rem; height: 10rem; border: 1px solid rgba(104, 117, 80, 0.12); border-radius: 50%; content: ''; }
.project-card:hover { border-color: rgba(97, 117, 78, 0.35); box-shadow: 0 20px 45px rgba(51, 57, 41, 0.1); transform: translateY(-5px); }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { font-size: 2rem; }
.project-links { display: flex; gap: 0.75rem; }
.icon-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); transition: all var(--transition); }
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover { border-color: var(--olive); color: var(--forest); background: #edf0e5; }
.project-card h3 { color: var(--forest); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.project-card p { max-width: 560px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 0.5rem; }
.project-tags span { padding: 0.2rem 0.58rem; border-radius: 999px; color: var(--brown); background: #f1e8dc; font-size: 0.72rem; font-weight: 600; }

/* Education timeline */
.timeline { position: relative; max-width: 850px; padding-left: 1.8rem; }
.timeline::before { position: absolute; top: 9px; bottom: 7px; left: 0; width: 1px; border-radius: 2px; background: #c6cbb9; content: ''; }
.timeline-item { position: relative; padding: 0 0 2.5rem 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 6px; left: -2.12rem; width: 11px; height: 11px; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px rgba(163, 95, 64, 0.12); }
#education .timeline-dot { border-color: var(--bg); }
.timeline-date { display: block; margin-bottom: 0.35rem; color: var(--clay); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.timeline-content h3 { margin-bottom: 0.15rem; color: var(--forest); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.timeline-org { margin-bottom: 0.65rem; color: var(--olive); font-size: 0.88rem; font-weight: 700; }
.timeline-content > p:last-of-type { max-width: 720px; margin-bottom: 0.85rem; color: var(--text-muted); font-size: 0.92rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-tags span { padding: 0.2rem 0.6rem; border: 1px solid rgba(75, 89, 66, 0.14); border-radius: 999px; color: #63705d; background: rgba(250, 248, 240, 0.65); font-size: 0.73rem; }

/* Certificates */
.certs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.cert-card { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--bg-card); cursor: pointer; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.cert-card:hover { border-color: rgba(97, 117, 78, 0.38); box-shadow: 0 16px 38px rgba(51, 57, 41, 0.11); transform: translateY(-4px); }
.cert-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e3e0d4; }
.cert-img-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.4s ease; }
.cert-card:hover .cert-img-wrap img { transform: scale(1.035); }
.cert-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(32, 57, 46, 0.42); opacity: 0; transition: opacity var(--transition); }
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-zoom-icon { color: white; font-size: 2rem; }
.cert-label { padding: 0.8rem 0.9rem; color: var(--text); font-size: 0.84rem; font-weight: 600; text-align: center; }

/* Footer */
footer { padding: 2.7rem 0; color: rgba(245, 241, 230, 0.76); background: var(--forest-deep); text-align: center; }
footer p { font-size: 0.88rem; }
footer .accent-text { color: #d6c5a4; }
.footer-sub { margin-top: 0.35rem; color: rgba(245, 241, 230, 0.45); font-size: 0.74rem; }

/* Scroll progress */
#scroll-progress { position: fixed; z-index: 101; top: 0; left: 0; width: 0; height: 3px; background: var(--clay); transition: width 0.08s linear; }

/* Marquee */
.marquee-strip { overflow: hidden; padding: 0.9rem 0; border-block: 1px solid rgba(238, 233, 213, 0.15); color: #e8e0c9; background: #344d3e; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; animation: marquee-scroll 32s linear infinite; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.marquee-track span { padding: 0 1rem; }
.msep { color: #c89b6a; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero text animation */
.hero-eyebrow { opacity: 0; }
.hero-tagline, .hero-badges, .hero-cta { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-tagline.visible, .hero-badges.visible, .hero-cta.visible { opacity: 1; transform: none; }
#hero-name { perspective: 600px; }
.letter { display: inline-block; opacity: 0; transform: translateY(36px) rotateX(25deg); animation: letter-reveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes letter-reveal { to { opacity: 1; transform: none; } }

/* About card float */
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.about-card.floating { animation: float-card 7s ease-in-out infinite; }

/* Custom cursor */
#cursor-ring { position: fixed; z-index: 9997; width: 32px; height: 32px; border: 1px solid rgba(205, 196, 164, 0.72); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s ease, height 0.2s ease, background 0.2s ease; }
#cursor-dot { position: fixed; z-index: 9998; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); pointer-events: none; transform: translate(-50%, -50%); }
body.cursor-hover #cursor-ring { width: 48px; height: 48px; background: rgba(205, 196, 164, 0.12); }
@media (hover: none), (pointer: coarse) { #cursor-ring, #cursor-dot { display: none; } }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(23, 45, 36, 0.9); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox-img { max-width: 90vw; max-height: 88vh; border: 5px solid var(--bg-card); border-radius: 12px; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35); transform: scale(0.96); transition: transform 0.3s ease; }
#lightbox.open #lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(245, 241, 230, 0.3); border-radius: 50%; color: #f5f1e6; background: rgba(245, 241, 230, 0.1); cursor: pointer; transition: background var(--transition); }
.lightbox-close:hover { background: rgba(245, 241, 230, 0.22); }

@media (max-width: 960px) {
  .nav-inner { gap: 1rem; }
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.76rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 2rem; }
  .hero-name { font-size: clamp(4rem, 7vw, 6.3rem); }
  .about-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 2.2rem; }
  .portfolio-card--featured { grid-column: span 12; }
  .portfolio-card--personal { grid-column: span 6; }
  .skills-board { grid-template-columns: 1fr; }
  .skills-manifesto { min-height: 300px; }
  .skills-manifesto h3 { margin-top: 1.5rem; }
  .skills-manifesto p { margin-top: 1.5rem; }
  .certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #navbar { padding: 0.55rem 0.65rem; }
  .nav-inner { min-height: auto; align-items: flex-start; flex-direction: column; gap: 0.25rem; padding: 0.55rem 0.9rem 0.65rem; border-radius: 20px; }
  .nav-logo { font-size: 1.08rem; }
  .nav-links { width: 100%; gap: 1.1rem; overflow-x: auto; padding: 0.15rem 0 0.25rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a { font-size: 0.75rem; }
  #hero { min-height: 0; padding: 9rem 0 5.5rem; }
  .hero-layout, .container { width: min(100% - 2rem, 1120px); }
  .hero-layout { grid-template-columns: 1fr; gap: 2.7rem; }
  .hero-content { width: 100%; }
  .hero-note { justify-self: start; width: min(100% - 0.5rem, 460px); }
  .hero-illustration { height: clamp(190px, 58vw, 250px); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card, .portfolio-card--featured, .portfolio-card--personal { grid-column: 1; }
  .portfolio-card--featured { grid-template-columns: 1fr; }
  .portfolio-card--featured .portfolio-art { min-height: 195px; }
  .hero-name { max-width: 100%; font-size: clamp(3.5rem, 15vw, 6rem); }
  .hero-tagline { max-width: 460px; }
  .scroll-indicator { right: 1rem; bottom: 1.5rem; }
  section { padding: 5.2rem 0; }
  .section-num { top: 1rem; right: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { width: 100%; max-width: 390px; }
  .about-stats { gap: 1.2rem 1.7rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 270px; padding: 1.5rem; }
}
@media (max-width: 500px) {
  .certs-grid { grid-template-columns: 1fr; }
  .skills-manifesto { min-height: 320px; padding: 1.5rem; }
  .skill-row { grid-template-columns: 30px minmax(0, 1fr); gap: 0.7rem; padding: 1rem; }
  .hero-name { letter-spacing: -0.055em; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-note { padding: 0.9rem; border-radius: 20px; }
  .hero-note-stamp { right: -10px; bottom: 69px; width: 66px; height: 66px; font-size: 0.5rem; }
  .badge { font-size: 0.72rem; }
  .cert-img-wrap { aspect-ratio: 1.3 / 1; }
  .timeline { padding-left: 1.35rem; }
  .timeline-item { padding-left: 1rem; }
  .timeline-dot { left: -1.67rem; }
  .timeline-content h3 { font-size: 1.3rem; }
  #lightbox { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}
