/* ============================================================
   Eli Mounts — elimounts.com
   Warm & professional design system
   ============================================================ */

:root {
  /* Warm palette */
  --cream:      #faf5ec;
  --cream-2:    #f3ebdc;
  --paper:      #fffdf8;
  --ink:        #2a2018;
  --ink-soft:   #5b4f43;
  --ink-faint:  #8a7d6e;
  --line:       #e6dcc9;

  --clay:       #b85c38;   /* primary accent — terracotta */
  --clay-dark:  #9c4a2b;
  --gold:       #c89b4a;   /* secondary accent — warm gold */
  --forest:     #45604f;   /* tertiary — muted green */

  --shadow-sm: 0 1px 2px rgba(64, 45, 28, .06), 0 2px 8px rgba(64, 45, 28, .05);
  --shadow-md: 0 6px 24px rgba(64, 45, 28, .09), 0 2px 6px rgba(64, 45, 28, .05);
  --shadow-lg: 0 24px 60px rgba(64, 45, 28, .14), 0 6px 18px rgba(64, 45, 28, .07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 11px;
}

/* -------------------- reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--clay-dark); }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }

.container { width: min(var(--maxw), 100% - 3rem); margin-inline: auto; }

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .82rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; font-family: var(--mono); letter-spacing: -.02em; }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px rgba(184, 92, 56, .28); }
.btn--primary:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184, 92, 56, .34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--clay); transform: translateY(-2px); background: var(--paper); }

/* -------------------- nav -------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 245, 236, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: min(var(--maxw), 100% - 3rem); margin-inline: auto;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.nav__monogram {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.nav__name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--clay); transition: width .25s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s 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); }

/* -------------------- hero -------------------- */
.hero { position: relative; padding: 8.5rem 0 5rem; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(200, 155, 74, .20), transparent 60%),
    radial-gradient(50% 50% at 12% 8%, rgba(184, 92, 56, .14), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream) 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 95, 60, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 95, 60, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 80%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: min(var(--maxw), 100% - 3rem); margin-inline: auto;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 3.5rem; align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); font-weight: 500; margin-bottom: 1rem;
}
.hero__title { font-size: clamp(3.2rem, 8vw, 5.8rem); font-weight: 600; letter-spacing: -.025em; }
.hero__title { background: linear-gradient(135deg, var(--ink) 30%, var(--clay-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--ink-soft); max-width: 38ch; margin: 1.4rem 0 2rem; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__social { display: flex; gap: .75rem; margin-top: 2rem; }
.hero__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero__social a:hover { color: var(--clay); border-color: var(--clay); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* portrait */
.hero__portrait { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.portrait {
  position: relative; width: min(330px, 78vw); aspect-ratio: 4 / 5;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, var(--cream-2), #e8d9bf);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
  rotate: 2deg;
  transition: rotate .4s ease, transform .4s ease;
}
.portrait:hover { rotate: 0deg; transform: translateY(-4px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 6rem;
  color: var(--clay); background:
    radial-gradient(120% 120% at 30% 20%, rgba(200,155,74,.25), transparent 60%),
    linear-gradient(150deg, var(--cream-2), #e8d9bf);
  letter-spacing: .04em;
}
.portrait--fallback .portrait__fallback { display: grid; }
.portrait__cta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: .65rem 1.3rem; border-radius: 100px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease, color .2s ease;
}
.portrait__cta:hover { color: var(--clay); border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--forest); opacity: .35; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid var(--ink-faint); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--ink-faint); border-radius: 4px; transform: translateX(-50%); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 9px); } }

/* -------------------- sections -------------------- */
.section { padding: 6rem 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.6rem; }
.section__index { font-family: var(--mono); font-size: .9rem; color: var(--clay); font-weight: 500; }
.section__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.section__sub { color: var(--ink-soft); font-size: 1.1rem; margin: -1.6rem 0 2.4rem; max-width: 52ch; }

/* about */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.about__lead p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.about__lead strong { color: var(--ink); font-weight: 600; }
.about__facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.about__facts h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--clay); margin-bottom: 1.2rem; }
.about__facts dl > div { padding: .85rem 0; border-top: 1px solid var(--line); }
.about__facts dl > div:first-child { border-top: 0; padding-top: 0; }
.about__facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 600; }
.about__facts dd { font-size: .98rem; color: var(--ink); margin-top: .15rem; }

/* current work */
.current { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
.current__role { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.current__role::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--clay), var(--gold)); }
.current__now { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--forest); font-weight: 500; margin-bottom: .8rem; }
.current__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.current__org { font-size: 1.1rem; color: var(--ink-soft); margin-top: .35rem; font-weight: 500; }
.current__desc { margin-top: 1.2rem; font-size: 1.08rem; color: var(--ink-soft); }
.current__tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.current__tags li { font-size: .85rem; font-weight: 500; color: var(--ink); background: var(--cream-2); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 100px; }
.current__aside { display: flex; flex-direction: column; gap: 1.5rem; }
.stat { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-md); }
.stat__big { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat__label { display: block; margin-top: .6rem; font-size: .9rem; color: rgba(250,245,236,.75); }
.current__note { font-size: .98rem; color: var(--ink-faint); font-style: italic; padding: 0 .4rem; }

.logo-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; place-items: center; min-height: 104px; }
.logo-card__img { max-width: 100%; max-height: 72px; object-fit: contain; }
.logo-card__fallback { display: none; text-align: center; }
.logo-card--fallback .logo-card__fallback { display: block; }
.logo-card__mark { display: block; font-family: var(--serif); font-weight: 700; font-size: 2.1rem; letter-spacing: .1em; background: linear-gradient(135deg, var(--clay), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-card__name { display: block; font-size: .76rem; color: var(--ink-faint); margin-top: .35rem; letter-spacing: .02em; }

/* timeline */
.timeline { position: relative; margin-left: .5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), var(--line) 90%, transparent); }
.timeline__item { position: relative; padding-left: 2.6rem; padding-bottom: 1.8rem; }
.timeline__marker { position: absolute; left: 0; top: 1.7rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--clay); box-shadow: 0 0 0 4px var(--cream); }
.timeline__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.timeline__card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.timeline__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.timeline__top h3 { font-size: 1.25rem; }
.timeline__date { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }
.timeline__org { color: var(--clay); font-weight: 600; font-size: .98rem; margin: .25rem 0 .8rem; }
.timeline__card > ul:not(.chips) { display: grid; gap: .5rem; }
.timeline__card > ul:not(.chips) li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); font-size: 1rem; }
.timeline__card > ul:not(.chips) li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips li { font-size: .8rem; font-weight: 500; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 7px; }
.chips--mono li { font-family: var(--mono); font-size: .82rem; }

/* education */
.edu { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.edu__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); }
.edu__card--primary { display: flex; gap: 1.5rem; box-shadow: var(--shadow-md); }
.edu__logo { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.edu__logo-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.edu__logo-text { display: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #fff; }
.edu__logo--fallback { background: linear-gradient(145deg, var(--clay), var(--gold)); border-color: transparent; }
.edu__logo--fallback .edu__logo-text { display: block; }
.edu__body h3 { font-size: 1.45rem; }
.edu__degree { color: var(--ink); font-weight: 500; margin-top: .3rem; }
.edu__meta { color: var(--ink-soft); font-size: .95rem; margin-top: .35rem; }
.edu__meta strong { color: var(--clay); }
.edu__detail { color: var(--ink-soft); font-size: .98rem; margin-top: .8rem; }
.edu__side { display: grid; gap: 1.6rem; }
.edu__side h3 { font-size: 1.15rem; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project--feature { grid-column: 1 / -1; background: linear-gradient(150deg, var(--paper), var(--cream-2)); border-color: var(--gold); }
.project--feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(200,155,74,.22), transparent 70%); }
.project__flag { display: inline-block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; background: var(--forest); padding: .25rem .7rem; border-radius: 6px; margin-bottom: .9rem; }
.project__title { font-size: 1.5rem; }
.project--feature .project__title { font-size: 1.9rem; }
.project__type { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); margin: .3rem 0 .9rem; }
.project__desc { color: var(--ink-soft); font-size: 1.02rem; }
.project__soon { margin-top: 1rem; font-size: .85rem; color: var(--clay); font-style: italic; }
.project--placeholder { background: transparent; border-style: dashed; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.project--placeholder:hover { transform: none; box-shadow: none; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3rem; }
.skills__group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.skills__group h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--ink); }
.honors { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow-md); }
.honors__title { color: var(--gold); font-size: 1.4rem; margin-bottom: 1.4rem; }
.honors__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; }
.honors__list li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(250,245,236,.9); font-size: 1rem; }
.honors__list span { color: var(--gold); flex: none; }

/* contact */
.section--contact { background: linear-gradient(160deg, var(--ink), #3a2c1d); color: var(--cream); padding: 6.5rem 0; }
.section--contact .section__index { color: var(--gold); }
.contact { text-align: center; max-width: 640px; margin-inline: auto; }
.contact__title { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--cream); margin: .6rem 0 1rem; }
.contact__lead { color: rgba(250,245,236,.78); font-size: 1.15rem; margin-bottom: 2.2rem; }
.contact__actions { margin-bottom: 1.8rem; }
.section--contact .btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(200,155,74,.3); }
.section--contact .btn--primary:hover { background: #d8ab57; color: var(--ink); }
.contact__links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.contact__links a { color: rgba(250,245,236,.78); font-weight: 500; }
.contact__links a:hover { color: var(--gold); }

/* footer */
.footer { background: var(--ink); color: rgba(250,245,236,.6); padding: 2rem 0; border-top: 1px solid rgba(250,245,236,.12); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__brand { font-family: var(--serif); font-weight: 600; color: var(--cream); font-size: 1.1rem; }
.footer__copy { font-size: .88rem; }

/* -------------------- reveal animation -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------- responsive -------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__portrait { order: -1; }
  .hero__lead { max-width: none; }
  .about, .current, .edu, .skills { grid-template-columns: 1fr; }
  .about__facts { position: static; }
  .projects { grid-template-columns: 1fr; }
  .honors__list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: rgba(250,245,236,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem; transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-md); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__toggle { display: flex; }
  .nav { background: rgba(250,245,236,.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
  .section { padding: 4.5rem 0; }
  .timeline__top { flex-direction: column; gap: .2rem; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
