@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
  --olive:      #99AA38;
  --cream:      #E8E2C0;
  --dark-green: #1C3A1E;
  --orange:     #FF7D00;
  --red:        #C0392B;
  --navy:       #1A2340;
  --mint:       #CFFFB3;
  --beige:      #EDE8DC;

  /* Site colors */
  --bg:         #EDE8DC;
  --accent:     #C03221;
  --accent-dark:#9B2B1E;
  --text:       #1A1A18;
  --text-muted: #4A4540;
  --border:     #C8BFB0;
  --footer-bg:  #0A0E0A;
  --footer-text:#666;
  --white:      #FDFAF5;

  --font-main:  'Onest', system-ui, sans-serif;
  --font-serif: 'Onest', system-ui, sans-serif;

  --container:  1200px;
  --radius:     18px;
  --radius-sm:  10px;
  --transition: 0.22s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }

/* ---------- SKIP LINK (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- SECTION SPACING ---------- */
.section { padding: 100px 0; }

/* ---------- SECTION TITLE (H2) ---------- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #1C1510;
  padding: 18px 0;
}

.nav {
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--active { color: var(--accent); font-weight: 500; }
.nav__link--active::after { transform: scaleX(1); }

/* ============================================================
   BUTTONS — spec: 16px semibold, padding 16px top/bottom 24px sides, gap 12px
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--social {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  gap: 8px;
}
.btn--social:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--social-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--social-outline:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.section-cta {
  margin-top: 80px;
}

.hero { padding-top: 80px; padding-bottom: 80px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__image-wrap {
  position: relative;
}

.hero__photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  background: var(--border);
  border: 1.5px solid #1C1510;
  min-height: 420px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 4px;
}
.hero__title--mobile  { display: none; }
.hero__title--desktop { display: block; }

.hero__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
}

/* ============================================================
   PUBLICATIONS SECTION
   ============================================================ */
.publications { background: var(--bg); }

.publications__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.publications__track {
  flex: 1;
  overflow: hidden;
}

.pub-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px 56px;
  position: relative;
  min-height: 280px;
}

.pub-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--text);
}

.pub-card__text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.pub-card__link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
  overflow: hidden;
  /* icon always visible */
    min-width: 44px;
    width: 44px;
    transition: width 0.38s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}

.pub-card__link:hover {
  width: 180px;
  background: var(--accent-dark);
}

.pub-card__link__icon {
    flex-shrink: 0;
    min-width: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    color: #FDFAF5;
}

.pub-card__link__icon svg {
    width: 12px;
    height: 12px;
    stroke: #FDFAF5;
    flex-shrink: 0;
}

.pub-card__link__text {
  padding-left: 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
  order: 2;
  pointer-events: none;
  flex-shrink: 0;
}

.pub-card__link:hover .pub-card__link__text {
  opacity: 1;
  transform: translateX(0);
}

.pub-card__credit {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-style: italic;
}

.pub-card__credit a {
    color: var(--accent);
    text-decoration: underline;
    word-break: break-all;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.slider-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.slider-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   PROJECTS PREVIEW SECTION
   ============================================================ */
.projects-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 48px;
}

.projects-preview__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text);
}

.projects-preview__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.projects-preview__image {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-height: 260px;
  background: var(--bg);
}

.projects-preview__cta {
  display: flex;
  justify-content: center;
}

/* ============================================================
   CONTACT / SOCIAL MEDIA SECTION
   ============================================================ */
.contact { padding-top: 0; padding-bottom: 80px; }

.contact .container {
    padding: 0 0px;
}
.contact__card {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 90px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
   margin-bottom: 32px;
}
.contact__title--mobile  { display: none; }
.contact__title--desktop { display: block; }

.contact__email {
  color: rgba(255,255,255,0.95);
  font-size: 1.0rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  margin-bottom: 12px;
}
.contact__email:hover { color: var(--white); }

.contact__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  padding: 28px 0;
  border-radius: var(--radius);
  margin: 0 16px 16px;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-text);
  letter-spacing: 0.03em;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-bio__inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-bio .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-bio__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bio__text p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* INTERESTS GRID */
.interests__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.interest-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  transition: background 0.45s ease, border-color 0.45s ease;
  cursor: default;
}

.interest-card:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.interest-card__num {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.45s ease;
}

.interest-card:hover .interest-card__num {
  color: rgba(255,255,255,0.65);
}

.interest-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.45s ease;
}

.interest-card:hover .interest-card__title {
  color: var(--white);
}

.interest-card__text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: auto;
  transition: color 0.45s ease;
}

.interest-card:hover .interest-card__text {
  color: rgba(255,255,255,0.82);
}

/* SPEAKING */
.speaking__inner {
  max-width: 800px;
  margin: 0 auto;
}

.speaking .section-title {
  text-align: left;
}

.speaking__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* FLOATING BTN */
.floating-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.floating-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-tabs {
  padding: 20px 0;
  position: relative;
}

/* Fade masks on left/right edges */
.projects-tabs::before,
.projects-tabs::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.projects-tabs::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent);
}
.projects-tabs::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 30%, transparent);
}

/* Invisible hover trigger zones */
.projects-tabs__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  cursor: pointer;
}
.projects-tabs__zone--left  { left: 0; }
.projects-tabs__zone--right { right: 0; }

.projects-tabs__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.projects-tabs__track::-webkit-scrollbar { display: none; }

.tab-pill {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid #0A0E0A;
  background: transparent;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all var(--transition);
}

.tab-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.tab-pill--active:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: none;
}
.tab-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* PROJECT DETAIL */
.project-detail { padding-bottom: 60px; }

.project-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  text-align: center;
}

.project-detail__desc {
  max-width: 780px;
  margin: 0 auto 48px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.link--accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.link--accent:hover { text-decoration-color: var(--accent); }

.link--accent {
    white-space: nowrap;
}

.project-detail__media {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-height: 460px;
  background: var(--bg);
  margin-bottom: 60px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.project-nav__btn {
  border-radius: 100px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content > * {
  animation: fadeUp 0.6s ease both;
}
.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.2s; }
.hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.hero__content > *:nth-child(4) { animation-delay: 0.4s; }
.hero__content > *:nth-child(5) { animation-delay: 0.5s; }

.hero__image-wrap {
  animation: fadeUp 0.7s ease 0.05s both;
}

/* ============================================================
   HAMBURGER / MOBILE NAV
   ============================================================ */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 200;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__mobile-overlay.is-open {
  display: flex;
  opacity: 1;
}
.nav__mobile-overlay .nav__link {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--text);
  transition: color 0.2s ease;
}
.nav__mobile-overlay .nav__link:hover,
.nav__mobile-overlay .nav__link--active { color: var(--accent); }

/* ============================================================
   TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero__grid { gap: 48px; }
  .interests__grid { gap: 16px; }
}

@media (max-width: 768px) {
    .contact__title--mobile { display: block; }
    .contact__title--desktop { display: none; }
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .section-cta {
        margin-top: 40px;
    }

    /* ---- NAV ---- */
    .nav {
        justify-content: flex-end;
    }

    .nav__list {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    /* ---- HERO ---- */
    .hero {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex;
        flex-direction: column;
    }

    .hero__title--mobile {
        display: block;
        order: 1;
        margin-bottom: 16px;
    }

    .hero__title--desktop {
        display: none;
    }

    .hero__image-wrap {
        order: 2;
        margin: 0;
    }

    .hero__content {
        order: 3;
        padding-top: 24px;
        padding-bottom: 24px;
        gap: 16px;
        align-items: flex-start;
        text-align: left;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__photo {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius);
        aspect-ratio: 3/4;
        object-position: top;
        min-height: unset;
        border: 2px solid #1C1510;
    }

    .hero__text {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .hero__content .btn--primary {
        align-self: center;
    }

    .hero__content .btn--outline {
        align-self: flex-end;
    }

  /* ---- PUBLICATIONS ---- */
  .publications__slider { gap: 0; }
  .slider-btn { display: none; }
  .pub-card { padding: 22px 18px 58px; }
  .pub-card__title { font-size: 1rem; }
  .pub-card__text { font-size: 0.82rem; }

/* ---- PROJECTS PREVIEW ---- */
.projects-preview__grid {
    grid-template-columns: 1fr;
    gap: 0;
    display: flex;
    flex-direction: column-reverse;
}
.projects-preview__image {
    min-height: 220px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.projects-preview__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.projects-preview__info .btn--outline {
    margin-left: auto;
}
.projects-preview__name { font-size: 1.1rem; }
.projects-preview__desc { font-size: 0.85rem; }

/* ---- CONTACT ---- */
.contact { padding-bottom: 64px; }
.contact__card { padding: 48px 24px; border-radius: var(--radius); gap: 28px; max-width: 90%; margin: 0 auto; }
.contact__title { font-size: 4rem; letter-spacing: 0.02em; margin-bottom: 20px; word-break: break-word; }
.contact__links {
    gap: 10px;
    flex-direction: row;
    align-items: center;
    margin-top: -35px;
}
.contact__links .btn--social {
    font-size: 12px;
    padding: 10px 16px;
    gap: 8px;
}


/* ---- ABOUT BIO ---- */
.about-bio__text p { font-size: 0.88rem; }

/* ---- INTEREST CARDS ---- */
.interests__grid { grid-template-columns: 1fr; gap: 12px; }
.interest-card { padding: 28px 24px 32px; }
.interest-card__title { font-size: 1.05rem; }

/* ---- SPEAKING ---- */
.speaking__text { font-size: 0.88rem; }

/* ---- PROJECTS PAGE TABS ---- */
.projects-tabs::before,
.projects-tabs::after { width: 40px; }
.projects-tabs__zone { width: 40px; }
.projects-tabs__track { padding: 0 20px; }

/* ---- PROJECT DETAIL ---- */
.project-detail__title { font-size: 1.4rem; text-align: left; }
.project-detail__desc { margin-left: 0; margin-right: 0; max-width: 100%; font-size: 0.88rem; }
.project-detail__media { min-height: 280px; margin-bottom: 40px; }
.project-nav { flex-direction: row; justify-content: space-between; gap: 12px; }
.project-nav__btn { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
.project-nav__btn span { display: none; }

/* ---- FLOATING BTN ---- */
.floating-btn { bottom: 16px; left: 16px; padding: 12px 20px; font-size: 14px; }

/* ---- BUTTONS ---- */
.btn { font-size: 15px; padding: 14px 22px; }
}

@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 32px; }

  .hero__content { gap: 14px; }
  .hero__title { font-size: 1.55rem; }

  .contact__title { font-size: 1.9rem; }

  .pub-card { padding: 24px 18px 60px; }

  .interest-card { padding: 22px 20px 26px; }

  .projects-preview__image { min-height: 200px; }

  /* Publications infinite scroll strip gets full width */
  .publications__track { margin: 0 -16px; }
  .pub-card { border-radius: var(--radius); }
}
