/* =========================================================
   TOKENS
   ========================================================= */
:root {
  /* Coffee palette, refined for contrast + range */
  --wine-950: #2A0F14;   /* deepest — headline ink on light bg */
  --wine-800: #4A1620;   /* primary accent */
  --wine-700: #6D2932;   /* secondary accent / hover */
  --wine-500: #8C4650;   /* muted accent, links on dark */
  --stone-300: #C7B7A3;  /* borders, dividers, muted text */
  --rose-400: #C99AA1;   /* accessible muted accent for labels on dark backgrounds */
  --cream-100: #F3EAD9;  /* page background */
  --cream-050: #FBF6EC;  /* card / raised surface */
  --ink: #241A16;        /* body text, warm near-black */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --radius-sm: 6px;
  --radius-md: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wine-800);
  color: var(--cream-050);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--wine-700);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--wine-800);
  color: var(--cream-050);
}
.btn--primary:hover { background: var(--wine-950); }

.btn--ghost {
  background: transparent;
  color: var(--wine-800);
  border-color: var(--stone-300);
}
.btn--ghost:hover { border-color: var(--wine-800); }

.btn--light {
  background: var(--cream-100);
  color: var(--wine-950);
  margin-top: 3rem;
}
.btn--light:hover { background: var(--cream-050); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(243, 234, 217, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 15, 20, 0.08);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--wine-950);
  margin-right: auto;
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--wine-800);
  transition: right 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  right: 0;
}
.nav__link.is-active {
  color: var(--wine-800);
}

.nav__cta {
  border: 1.5px solid var(--wine-800);
  color: var(--wine-800);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--wine-800);
  color: var(--cream-050);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--wine-950);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__progress {
  height: 2px;
  background: var(--wine-800);
  width: 0%;
  transition: width 0.1s linear;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wine-700);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.92;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  color: var(--wine-950);
}
.hero__name-line { display: block; }
.hero__name-line--accent {
  color: var(--wine-700);
  font-style: italic;
}

.hero__tagline {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--wine-500);
}

.hero__figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.hero__figure img {
  width: 100%;
  height: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--stone-300);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--wine-700);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter);
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--wine-950);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__heading--light {
  color: var(--cream-050);
}

/* One orchestrated entrance moment, on the hero only */
.hero__text > * {
  opacity: 0;
  animation: heroRise 0.8s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__name { animation-delay: 0.15s; }
.hero__tagline { animation-delay: 0.28s; }
.hero__actions { animation-delay: 0.4s; }
.hero__meta { animation-delay: 0.5s; }
.hero__figure {
  opacity: 0;
  animation: heroRiseFigure 0.9s var(--ease) forwards;
  animation-delay: 0.2s;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroRiseFigure {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__figure { animation: none; opacity: 1; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.about__copy p {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 62ch;
  color: var(--ink);
}
.about__copy p + p { margin-top: 1.25rem; }

.trait-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stone-300);
  margin-bottom: 2rem;
}
.trait-list__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--wine-800);
  margin-bottom: 0.3rem;
}
.trait-list__desc {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.5;
}

.languages__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine-500);
  margin-bottom: 0.5rem;
}
.languages__list {
  font-size: 1rem;
  color: var(--ink);
}

/* =========================================================
   EXPERTISE
   ========================================================= */
.expertise {
  background: var(--cream-050);
}
.expertise__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}
.cat__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wine-950);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-300);
}
.cat__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--stone-300);
  color: var(--wine-800);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pill:hover {
  border-color: var(--wine-700);
  background: rgba(74, 22, 32, 0.05);
}

/* =========================================================
   CREDENTIALS
   ========================================================= */
.credentials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.credentials__subhead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine-700);
  margin-bottom: 1.5rem;
}
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline__item {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-top: 1px solid var(--stone-300);
}
.timeline__item:last-child {
  border-bottom: 1px solid var(--stone-300);
}
.timeline__year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wine-500);
  margin-bottom: 0.3rem;
}
.timeline__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.timeline__org {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 0.15rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--wine-950);
  text-align: center;
}
.contact__intro {
  color: var(--cream-100);
  opacity: 0.8;
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 3rem auto 0;
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(243, 234, 217, 0.18);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__item:hover {
  border-color: rgba(243, 234, 217, 0.5);
  transform: translateY(-3px);
}
.contact__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-400);
}
.contact__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream-050);
  word-break: break-word;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--wine-950);
  color: var(--stone-300);
  text-align: center;
  padding: 1.75rem var(--gutter) 2.25rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(243, 234, 217, 0.12);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__figure {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
  .about__grid,
  .credentials__grid {
    grid-template-columns: 1fr;
  }
  .expertise__categories {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream-100);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    border-bottom: 1px solid rgba(42,15,20,0.08);
  }
  .nav__menu.is-open {
    max-height: 320px;
    padding: 0.5rem 0 1.5rem;
  }
  .nav__menu li {
    width: 100%;
    text-align: center;
  }
  .nav__link {
    display: block;
    padding: 0.9rem 0;
  }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 6rem; }
  .contact__grid { gap: 1rem; }
}
