/* ── TOKENS ───────────────────────────────────── */
:root {
  --bg:          #F4F2ED;
  --bg2:         #EAE7E0;
  --surface:     #FFFFFF;
  --border:      #D8D3C8;
  --border-lt:   #E4E0D8;

  --ink:         #1C2B22;
  --ink-mid:     #4A5E50;
  --ink-muted:   #7A8F80;

  --forest:      #2D5A3D;
  --forest-mid:  #3D7252;
  --forest-lt:   #eaf2ea;
  --forest-glow: rgba(45,90,61,.15);

  --orange-ultra-light : #ca400010;
  --orange-light : #ca400052;
  --orange-mid : #e77000;
  --orange-dark :#CA4000;

  --ff-head: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --r:         10px;
  --r-sm:      6px;
  --shadow:    0 2px 16px rgba(28,43,34,.07);
  --shadow-md: 0 6px 28px rgba(28,43,34,.12);
  --t:         .22s ease;
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── NAV ──────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  background: transparent;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
nav.nav-hidden {
  transform: translateY(-100%);
}

/* floating pill that holds the links — desktop only */
.nav-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .1rem;
  background: rgba(244,242,237,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3rem .4rem;
  box-shadow: 0 2px 20px rgba(28,43,34,.08);
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange-dark);
  letter-spacing: .01em;
  white-space: nowrap;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  z-index: 210;
  position: relative;
}
.nav-logo span { color: var(--forest); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .05rem;
}
.nav-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--ink-mid);
  padding: .38rem .72rem;
  border-radius: 99px;
  transition: color var(--t), background var(--t), box-shadow var(--t);
  position: relative;
}
.nav-links button:hover {
  color: var(--forest);
  background: var(--forest-lt);
}
.nav-links button.active {
  color: var(--forest);
  background: var(--forest-lt);
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(45,90,61,.18),
              0 0 12px rgba(45,90,61,.18);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1.1rem;
  background: var(--orange-dark);
  color: #fff !important;
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background var(--t), box-shadow var(--t);
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(45,90,61,0);
  z-index: 210;
  position: relative;
}
.nav-cta:hover {
  background: var(--orange-mid);
  box-shadow: 0 0 18px var(--orange-light);
}

/* ── BURGER BUTTON ──────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(244,242,237,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  z-index: 210;
  position: relative;
  transition: background var(--t), box-shadow var(--t);
  flex-shrink: 0;
}
.burger:hover {
  background: var(--forest-lt);
  border-color: var(--forest-mid);
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}
/* animated X state */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ──────────────────────────── */
.mobile-drawer {
  display: none; /* hidden on desktop */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 190;
  background: rgba(244,242,237,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 80px 1.5rem 1.5rem;
  flex-direction: column;
  gap: .35rem;
  /* slide-in animation */
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px rgba(28,43,34,.10);
}
.mobile-drawer.open {
  transform: translateY(0);
}
.mobile-drawer button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: var(--ink-mid);
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  text-align: left;
  transition: color var(--t), background var(--t);
  width: 100%;
}
.mobile-drawer button:hover,
.mobile-drawer button.active {
  color: var(--forest);
  background: var(--forest-lt);
}
.mobile-drawer button.active {
  font-weight: 500;
}
.mobile-drawer .drawer-cta {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.6rem;
  background: var(--orange-dark);
  color: #fff;
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background var(--t);
}
.mobile-drawer .drawer-cta:hover { background: var(--orange-mid); }

/* ── MOBILE BREAKPOINT ──────────────────────── */
@media (max-width: 768px) {
  .nav-inner { display: none; }   /* hide desktop pill */
  .nav-cta   { display: none; }   /* hide desktop CTA  */
  .burger    { display: flex; }   /* show burger       */
  .mobile-drawer { display: flex; } /* drawer ready     */
}

/* ── PAGE SYSTEM ──────────────────────────────── */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ─────────────────────────────────────── */
.hero-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 64px);
  position: relative;
}

/* glow lives on the wrapper so overflow:hidden on hero doesn't clip it */
.hero-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-70%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(45,90,61,.16) 0%,
    rgba(45,90,61,.04) 50%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}

.hero {
  min-height: unset;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 3rem;
  gap: 3rem;
  position: relative;
  max-width: 960px;
  width: 100%;
  z-index: 1;
}

.hero-text { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest-mid);
  border-radius: 2px;
}

.hero-name {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: .9rem;
  letter-spacing: -.01em;
}
.hero-name span { color: var(--forest); }

.hero-role {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-size: .85rem;
}

.hero-desc {
  font-size: .97rem;
  color: var(--ink-mid);
  max-width: 400px;
  line-height: 1.85;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.6rem;
  margin-top: .5rem;
  background: var(--orange-dark);
  color: #fff;
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background var(--t), transform var(--t);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-mid); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.6rem;
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: .84rem;
  font-weight: 400;
  transition: border-color var(--t), color var(--t), transform var(--t);
  background: none;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-1px); }

.hero-social {
  display: flex;
  gap: .65rem;
}
.hero-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: .82rem;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.hero-social a:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--forest-lt);
}

/* Illustration placeholder */
.hero-illu {
  width: min(360px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  gap: .6rem;
}
.hero-illu i { font-size: 2.2rem; opacity: .25; }


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
/* ── PAGE CONTENT WRAPPER ─────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 5vw, 3rem) 6rem;
}
.page-content.wide { max-width: 1040px; }

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-lt);
}
.page-eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: .6rem;
}
.page-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.page-subtitle {
  margin-top: .65rem;
  font-size: .93rem;
  color: var(--ink-muted);
  max-width: 520px;
}


.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .85rem;
  border-radius: var(--r-sm);
  background: var(--forest-lt);
  color: var(--forest);
  border: 1px solid rgba(45,90,61,.15);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.tag.alt {
  background: var(--bg2);
  color: var(--ink-mid);
  border-color: var(--border);
}

/* ── PUBLICATIONS ─────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-phd-card {
  background: var(--orange-ultra-light);
  border: 1px solid var(--orange-light);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--t), box-shadow var(--t);
}
.pub-phd-card:hover { border-color: var(--orange-dark); box-shadow: var(--shadow-md); }
.pub-phd-year{
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--orange-dark);
  min-width: 48px;
  line-height: 1.5;
  padding-top: .15rem;
}

.pub-phd-icon{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding-top: .25rem;
  padding: .2rem .65rem;
  font-family: var(--ff-head);
  border-radius: 99px;
  border: 1.5px solid var(--orange-dark);
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--orange-dark);
}
.pub-phd-authors { font-size: .82rem; color: var(--forest); margin-bottom: .2rem; }
.pub-phd-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pub-phd-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  border: 1.5px solid var(--orange-mid);
  font-size: .71rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--orange-mid);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.pub-phd-link:hover { border-color: var(--orange-mid); color: var(--orange-mid); background: var(--orange-light); }


.pub-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--t), box-shadow var(--t);
}
.pub-card:hover { border-color: var(--forest-mid); box-shadow: var(--shadow-md); }

.pub-year {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--orange-dark);
  min-width: 48px;
  line-height: 1.5;
  padding-top: .15rem;
}
.pub-title {
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--ink);
  font-size: .96rem;
  margin-bottom: .3rem;
  line-height: 1.5;
}
.pub-authors { font-size: .82rem; color: var(--ink-muted); margin-bottom: .2rem; }
.pub-journal { font-size: .8rem; color: var(--orange-dark); margin-bottom: .75rem; }
.pub-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-size: .71rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-mid);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.pub-link:hover { border-color: var(--forest); color: var(--forest); background: var(--forest-lt); }

.pub-icon{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding-top: .25rem;
  padding: .2rem .65rem;
  font-family: var(--ff-head);
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}


/* ── PROJECTS ─────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.project-card:hover { border-color: var(--forest-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.project-icon {
  width: 36px; height: 36px;
  background: var(--forest-lt);
  border: 1px solid rgba(45,90,61,.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: .2rem;
}
.project-title {
  font-family: var(--ff-head);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.project-desc { font-size: .87rem; color: var(--ink-mid); line-height: 1.7; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: .35rem; }
.tech-pill {
  padding: .14rem .52rem;
  border-radius: 4px;
  background: var(--bg2);
  border: 1px solid var(--border-lt);
  font-size: .68rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: .03em;
}
.project-footer {
  display: flex;
  gap: .75rem;
  border-top: 1px solid var(--border-lt);
  padding-top: .9rem;
  margin-top: .1rem;
}
.project-footer a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 450;
  background-color : var(--orange-light);
  border-radius: 9999px;
  letter-spacing: .03em;
  color: var(--orange-dark);
  transition: color var(--t);
  padding: .4rem .6rem;
}
.project-footer a:hover { color: var(--bg);
  background-color: var(--orange-dark); }

/* ── APPS ─────────────────────────────────────── */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.app-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.app-card:hover { border-color: var(--forest-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.app-preview {
  height: 148px;
  background: var(--forest-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  border-bottom: 1px solid var(--border-lt);
  color: var(--forest);
}
.app-preview-img{
  height: 148px;
}
.app-body { padding: 1.4rem; display: inline-flex; flex-direction: column; flex: 1;}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  padding: .16rem .6rem;
  border-radius: 99px;
  background: var(--forest-lt);
  color: var(--forest);
  border: 1px solid rgba(45,90,61,.2);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.app-badge i { font-size: .4rem;  }
.app-title { font-family: var(--ff-head); font-size: 1.08rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.app-desc { font-size: .85rem; color: var(--ink-mid); line-height: 1.65; margin-bottom: 1rem; }
.app-actions { display: flex; gap: .6rem; margin-top: auto;}
.btn-app-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .48rem 1rem;
  background: var(--forest);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .77rem;
  font-weight: 500;
  transition: background var(--t);
  margin-top: auto;
}
.btn-app-view:hover { background: var(--forest-mid); }
.btn-app-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .48rem 1rem;
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .77rem;
  font-weight: 400;
  transition: border-color var(--t), color var(--t);
}
.btn-app-code:hover { border-color: var(--forest); color: var(--forest); }

/**/
/* SKILLS */

.skills-section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

/* Expertise cards */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1rem;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: all .25s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  border-color: var(--forest-mid);
  box-shadow: var(--shadow-md);
}

.expertise-icon {
  font-size: 1.8rem;
  margin-bottom: .8rem;
}

.expertise-card h4 {
  font-family: var(--ff-head);
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--ink);
}

.expertise-card p {
  font-size: .85rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Tools */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  padding: 1.2rem;
  text-align: center;
  transition: all .25s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest-mid);
  box-shadow: var(--shadow);
}

.tool-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto .75rem;
}

.tool-card span {
  display: block;
  font-size: .85rem;
  color: var(--ink);
}

/* Languages */

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1rem;
}

.language-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
}

.language-flag {
  font-size: 2rem;
}

.language-card h4 {
  font-size: .95rem;
  margin-bottom: .2rem;
}

.language-card p {
  font-size: .8rem;
  color: var(--ink-muted);
}
/* ── CV ───────────────────────────────────────── */


.phd-download {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1.1rem;
  background: var(--orange-dark);
  color: var(--bg);
  border-radius: 99px;
  font-family: var(--ff-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background var(--t), box-shadow var(--t);
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(45,90,61,0);
  z-index: 210;
  position: relative;
}
.phd-download:hover {
  background : var(--forest);
  transform: translateY(-1px);
}
.cv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.timeline-group-title {
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  /*border-bottom: 1px solid var(--border-lt);*/
}
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 1.1rem; padding-bottom: 1.75rem; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 25px; bottom: 0;
  width: 2px;
  background: var(--border-lt);
  border-radius: 9999px; 
}

.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  background: var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-period { font-size: .68rem; font-weight: 500; letter-spacing: .08em; color: var(--forest-mid); text-transform: uppercase; margin-bottom: .15rem; }
.timeline-role { font-family: var(--ff-body); font-weight: 500; color: var(--ink); font-size: .92rem; margin-bottom: .1rem; }
.timeline-org { font-size: .83rem; color: var(--ink-muted); margin-bottom: .35rem; }
.timeline-desc { font-size: .81rem; color: var(--ink-muted); line-height: 1.6; }
.cv-download { margin-top: 3rem; }

.timeline-item-now { display: flex; gap: 1.1rem; padding-bottom: 1.75rem; position: relative; }
.timeline-item-now::before {
  content: '';
  position: absolute;
  left: 7px; top: 30px; bottom: 0;
  width: 2px;
  background: var(--border-lt);
  border-radius: 9999px; 
}
.timeline-dot-now {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--orange-dark);
  background: var(--orange-dark);
  flex-shrink: 0;
  margin-top: 4px;
  margin-left: -2px;
}
.timeline-period-now { font-size: .68rem; font-weight: 500; letter-spacing: .08em; color: var(--orange-dark); text-transform: uppercase; margin-bottom: .15rem; }
.timeline-role-now { font-family: var(--ff-body); font-weight: 500; color: var(--orange-dark); font-size: .92rem; margin-bottom: .1rem; }

/* ── CONTACT ──────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: .85rem; }
.contact-info p { font-size: .92rem; color: var(--ink-muted); margin-bottom: .5rem; line-height: 1.75; }

.contact-item {display: grid;grid-template-columns: 36px 1fr;gap: 1rem; align-items: start;margin-bottom: 1rem;}
.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-lt);
  color: var(--forest);
  border: 1px solid rgba(45,90,61,.15);
  text-decoration: none;
  transition: all .2s ease;
}
.contact-icon:hover {
  background: var(--forest);
  color: white;
  transform: translateY(-2px);
}

.contact-text {
  color: var(--ink-mid);
  line-height: 1.55;
  padding-top: 4px; /* aligns first text line with icon center */
}
.contact-form { display: flex; flex-direction: column; gap: .85rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--ff-body);
  font-size: .9rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--forest); }
.contact-form textarea { min-height: 120px; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--bg);
  color: var(--forest-mid);
  text-align: center;
  padding: 1.75rem;
  font-size: .76rem;
  letter-spacing: .04em;
}
.footer-logo {
height: 30px;
width: auto;
margin-left: auto;
margin-right: auto;
}
footer p {
margin-top: 10px;
}
footer span { color: var(--orange-mid); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 3rem 2rem 4rem; gap: 3rem; }
  .hero-wrap::before { display: none; }
  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-illu { margin: 0 auto; }
}
@media (max-width: 820px) {
    .skills-wrap,
.lang-grid,
.cv-split,
.contact-wrap {
grid-template-columns: 1fr;
gap: 2rem;
}
@media (max-width: 640px) {
  .projects-grid, .apps-grid { grid-template-columns: 1fr; }
  .pub-card { flex-direction: column; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
