/* ===== Portfolio — Dark Editorial Theme ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #080c12;
  color: #b0b8c8;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
}

/* dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(100,255,218,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

::selection { background: #64ffda; color: #080c12; }

a { color: #64ffda; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .82; }

img { max-width: 100%; display: block; }

/* Utility */
.accent   { color: #64ffda; }
.muted    { color: #6a7384; }
.mono     { font-family: 'IBM Plex Mono', monospace; }
.serif    { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ------------------------------------------------------------------ */
/*  FADE-UP  reveal animation                                         */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* hero stagger */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-anim-1 { animation-delay: .1s; }
.hero-anim-2 { animation-delay: .25s; }
.hero-anim-3 { animation-delay: .4s; }
.hero-anim-4 { animation-delay: .55s; }
.hero-anim-5 { animation-delay: .7s; }

/* ------------------------------------------------------------------ */
/*  NAVIGATION                                                        */
/* ------------------------------------------------------------------ */
.pf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  background: rgba(8,12,18,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(100,255,218,.07);
}

.pf-nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500; color: #e8ecf1;
  letter-spacing: .3px;
}
.pf-nav-brand .accent { color: #64ffda; }

.pf-nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.pf-nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .6px;
  text-transform: uppercase; color: #6a7384; transition: color .2s;
}
.pf-nav-links a:hover,
.pf-nav-links a.active { color: #e8ecf1; opacity: 1; }

.pf-nav-links .nav-contact {
  border: 1px solid rgba(100,255,218,.35);
  border-radius: 4px;
  padding: .35rem .9rem;
  color: #64ffda;
  font-size: .78rem;
}
.pf-nav-links .nav-contact:hover { background: rgba(100,255,218,.08); opacity: 1; }

.pf-nav-toggle {
  display: none; background: none; border: 1px solid rgba(100,255,218,.2);
  color: #64ffda; font-size: 1.2rem; padding: .25rem .5rem; cursor: pointer;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/*  LAYOUT                                                            */
/* ------------------------------------------------------------------ */
.pf-wrap {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.pf-section {
  padding: 6rem 0 2rem;
}

.pf-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: #64ffda;
  margin-bottom: .6rem;
}

.pf-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500; color: #e8ecf1;
  line-height: 1.25; margin-bottom: 2.4rem;
}

/* ------------------------------------------------------------------ */
/*  HERO                                                              */
/* ------------------------------------------------------------------ */
.pf-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: 64px;
}

.pf-hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem; color: #64ffda; font-weight: 500;
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.4rem;
}
.pf-hero-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: #64ffda;
}

.pf-hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 500; color: #e8ecf1;
  line-height: 1.12; max-width: 820px;
  margin-bottom: 1.6rem;
}
.pf-hero-headline em {
  font-style: italic; color: #64ffda;
}

.pf-hero-sub {
  max-width: 580px; font-size: .94rem; line-height: 1.72;
  color: #8892a4; margin-bottom: 2.2rem;
}

.pf-hero-buttons { display: flex; gap: .8rem; flex-wrap: wrap; }

.pf-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.4rem; border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: .84rem; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none;
  border: 1px solid transparent;
}
.pf-btn-fill {
  background: #64ffda; color: #080c12; border-color: #64ffda;
}
.pf-btn-fill:hover { background: #52e8c5; border-color: #52e8c5; opacity: 1; }
.pf-btn-ghost {
  background: transparent; color: #b0b8c8;
  border-color: rgba(176,184,200,.25);
}
.pf-btn-ghost:hover { border-color: #64ffda; color: #64ffda; opacity: 1; }

/* ------------------------------------------------------------------ */
/*  METRICS ROW                                                       */
/* ------------------------------------------------------------------ */
.pf-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(100,255,218,.1);
  border-radius: 6px;
  margin-top: 3.5rem;
}
.pf-metric {
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.pf-metric + .pf-metric {
  border-left: 1px solid rgba(100,255,218,.1);
}
.pf-metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem; font-weight: 500; color: #e8ecf1;
  line-height: 1;
}
.pf-metric-value .counter-suffix { font-size: 2rem; }
.pf-metric-label {
  font-size: .78rem; color: #6a7384; margin-top: .4rem;
}

/* ------------------------------------------------------------------ */
/*  WORK CARDS  (Section 01)                                          */
/* ------------------------------------------------------------------ */
.pf-work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(100,255,218,.08);
  border: 1px solid rgba(100,255,218,.08);
  border-radius: 6px; overflow: hidden;
}
.pf-work-card {
  background: #0c1018; padding: 2rem 1.8rem;
}
.pf-work-card.featured { border-left: 2px solid #64ffda; }
.pf-work-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: #64ffda; margin-bottom: .6rem;
}
.pf-work-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 500; color: #e8ecf1;
  margin-bottom: .6rem;
}
.pf-work-card p {
  font-size: .86rem; color: #8892a4; line-height: 1.68;
}

/* ------------------------------------------------------------------ */
/*  RECOGNITION TABLE  (Section 02)                                   */
/* ------------------------------------------------------------------ */
.pf-recog-list { list-style: none; }
.pf-recog-item {
  display: grid; grid-template-columns: 80px 1fr 220px;
  gap: 1rem; align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(100,255,218,.06);
  font-size: .9rem;
}
.pf-recog-item:last-child { border-bottom: none; }
.pf-recog-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem; color: #64ffda;
}
.pf-recog-name { color: #e8ecf1; }
.pf-recog-org  { color: #6a7384; text-align: right; font-size: .84rem; }
.pf-badge-latest {
  display: inline-block; font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem; font-weight: 500; letter-spacing: .5px;
  padding: .15rem .5rem; border-radius: 3px;
  background: rgba(100,255,218,.1); color: #64ffda;
  margin-left: .5rem; vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/*  WRITING  (Section 03)                                             */
/* ------------------------------------------------------------------ */
.pf-writing-list { list-style: none; }
.pf-writing-item {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 1rem; align-items: start;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(100,255,218,.06);
  transition: background .2s;
}
.pf-writing-item:last-child { border-bottom: none; }
.pf-writing-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem; color: rgba(100,255,218,.35); font-weight: 500;
}
.pf-writing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500; color: #e8ecf1;
  margin-bottom: .4rem; line-height: 1.3;
}
.pf-writing-desc {
  font-size: .84rem; color: #6a7384; line-height: 1.6;
  margin-bottom: .6rem;
}
.pf-writing-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; font-weight: 500;
  padding: .2rem .6rem; border-radius: 3px;
  background: rgba(100,255,218,.06);
  color: #8892a4;
}
.pf-pill-soon { color: #64ffda; background: rgba(100,255,218,.1); }
.pf-writing-arrow {
  font-size: 1.1rem; color: #6a7384;
  transition: transform .2s, color .2s;
  padding-top: .2rem;
}
.pf-writing-item:hover .pf-writing-arrow {
  color: #64ffda; transform: translate(3px, -3px);
}

/* ------------------------------------------------------------------ */
/*  RESEARCH & PATENTS  (Section 04)                                  */
/* ------------------------------------------------------------------ */
.pf-research-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.pf-research-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 500; color: #e8ecf1;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(100,255,218,.1);
}
.pf-research-list { list-style: none; }
.pf-research-list li {
  font-size: .86rem; color: #8892a4; line-height: 1.6;
  padding: .6rem 0; padding-left: 1rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.pf-research-list li::before {
  content: ''; position: absolute; left: 0; top: 1rem;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(100,255,218,.35);
}
.pf-research-list li:last-child { border-bottom: none; }
.pf-research-more {
  font-size: .84rem; color: #6a7384; font-style: italic;
  padding-left: 1rem; margin-top: .3rem;
}
.pf-research-more a { color: #64ffda; }

/* ------------------------------------------------------------------ */
/*  SPEAKING  (Section 05)                                            */
/* ------------------------------------------------------------------ */
.pf-speaking-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem; font-weight: 400; color: rgba(232,236,241,.08);
  line-height: 1; margin-bottom: .4rem;
}
.pf-speaking-label {
  font-size: .92rem; color: #8892a4; margin-bottom: 2rem;
  max-width: 500px;
}
.pf-tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.pf-tag-pill {
  font-size: .78rem; padding: .35rem .8rem;
  border: 1px solid rgba(100,255,218,.15); border-radius: 20px;
  color: #8892a4; transition: all .2s;
}
.pf-tag-pill:hover { border-color: #64ffda; color: #64ffda; }
.pf-speaking-note {
  font-size: .86rem; color: #6a7384; font-style: italic;
  max-width: 640px; line-height: 1.65;
}

/* ------------------------------------------------------------------ */
/*  COMMUNITY  (Section 06)                                           */
/* ------------------------------------------------------------------ */
.pf-community-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(100,255,218,.06);
  border: 1px solid rgba(100,255,218,.06);
  border-radius: 6px; overflow: hidden;
}
.pf-community-card {
  background: #0c1018; padding: 1.8rem 1.6rem;
}
.pf-community-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500; color: #e8ecf1;
  margin-bottom: .5rem;
}
.pf-community-card p {
  font-size: .84rem; color: #8892a4; line-height: 1.65;
  margin-bottom: .8rem;
}
.pf-community-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.pf-community-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .66rem; padding: .15rem .5rem;
  border-radius: 3px; background: rgba(100,255,218,.06);
  color: #6a7384;
}

/* ------------------------------------------------------------------ */
/*  EDUCATION  (Section 07)                                           */
/* ------------------------------------------------------------------ */
.pf-edu-list { list-style: none; }
.pf-edu-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 1.5rem; padding: 1.4rem 0;
  border-bottom: 1px solid rgba(100,255,218,.06);
}
.pf-edu-item:last-child { border-bottom: none; }
.pf-edu-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem; color: #64ffda; padding-top: .15rem;
}
.pf-edu-degree {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500; color: #e8ecf1;
  margin-bottom: .15rem;
}
.pf-edu-school { font-size: .86rem; color: #8892a4; }
.pf-edu-detail { font-size: .82rem; color: #6a7384; margin-top: .2rem; }

/* ------------------------------------------------------------------ */
/*  CONTACT                                                           */
/* ------------------------------------------------------------------ */
.pf-contact {
  padding: 6rem 0 4rem;
}
.pf-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.pf-contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500; font-style: italic; color: #64ffda;
  line-height: 1.2; margin-bottom: 1rem;
}
.pf-contact-sub {
  font-size: .9rem; color: #8892a4; line-height: 1.7;
}
.pf-contact-links { list-style: none; }
.pf-contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(100,255,218,.06);
  transition: padding-left .2s;
}
.pf-contact-link:hover { padding-left: .4rem; }
.pf-contact-link:last-child { border-bottom: none; }
.pf-contact-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: #6a7384;
  min-width: 80px;
}
.pf-contact-value { font-size: .88rem; color: #e8ecf1; }
.pf-contact-arrow { color: #6a7384; transition: color .2s, transform .2s; }
.pf-contact-link:hover .pf-contact-arrow {
  color: #64ffda; transform: translate(3px, -3px);
}

/* ------------------------------------------------------------------ */
/*  FOOTER                                                            */
/* ------------------------------------------------------------------ */
.pf-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 0; margin-top: 2rem;
  border-top: 1px solid rgba(100,255,218,.06);
  font-size: .78rem; color: #6a7384;
}
.pf-footer-domain {
  font-family: 'IBM Plex Mono', monospace; color: #6a7384;
}

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .pf-work-grid,
  .pf-community-grid { grid-template-columns: 1fr; }
  .pf-research-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .pf-contact-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .pf-metrics        { grid-template-columns: repeat(2, 1fr); }
  .pf-metric:nth-child(3) { border-left: none; }
  .pf-metric:nth-child(n+3) { border-top: 1px solid rgba(100,255,218,.1); }
}

@media (max-width: 768px) {
  .pf-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(8,12,18,.97); flex-direction: column; padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(100,255,218,.07); gap: .7rem;
  }
  .pf-nav-links.open { display: flex; }
  .pf-nav-toggle { display: block; }

  .pf-hero-headline { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .pf-recog-item { grid-template-columns: 60px 1fr; }
  .pf-recog-org  { grid-column: 2; text-align: left; font-size: .78rem; }

  .pf-writing-item { grid-template-columns: 36px 1fr; }
  .pf-writing-arrow { display: none; }

  .pf-edu-item { grid-template-columns: 1fr; gap: .3rem; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .pf-metrics { grid-template-columns: 1fr 1fr; }
  .pf-hero { min-height: auto; padding-top: 6rem; padding-bottom: 2rem; }
  .pf-section { padding: 4rem 0 1.5rem; }
}
