/* =========================================================
   Jennifer Janson — Personal Portfolio
   Palette: deep navy ink + warm gold + cream
   Type: Fraunces (display serif) + Inter (sans)
   ========================================================= */

:root {
  --ink:        #0e1a2b;
  --ink-soft:   #1c2c40;
  --navy-700:   #16273d;
  --gold:       #d9a441;
  --gold-deep:  #c08a2c;
  --cream:      #f7f3ea;
  --cream-2:    #efe8da;
  --paper:      #fffdf8;
  --text:       #1f2733;
  --text-soft:  #5a6573;
  --line:       rgba(14, 26, 43, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(14, 26, 43, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Layout helpers ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.kicker--light { color: var(--gold); }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.section__sub { margin-top: 1.1rem; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(217,164,65,0.7); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(217,164,65,0.85); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--ink); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav.is-scrolled {
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; }
.nav__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--ink); color: var(--gold); border-radius: 10px;
  font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0.02em;
}
.nav__name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.2s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { background: var(--ink); color: var(--cream) !important; padding: 0.55rem 1.2rem; border-radius: 100px; transition: transform 0.2s, background 0.2s; }
.nav__cta:hover { transform: translateY(-2px); background: var(--ink-soft); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: var(--cream); overflow: hidden;
  padding: 7rem var(--pad) 5rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.75rem;
  font-weight: 600; color: var(--gold); margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(2.8rem, 1.5rem + 7vw, 6rem); font-weight: 500; letter-spacing: -0.02em; color: #fff; margin-bottom: 1.6rem; }
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: rgba(247,243,234,0.82); max-width: 38ch; margin-bottom: 2.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn--ghost { color: var(--cream); border-color: var(--line-light); }
.hero .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Portrait / monogram */
.hero__portrait { display: grid; place-items: center; }
.portrait { position: relative; width: clamp(260px, 30vw, 380px); }
.portrait__photo {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid rgba(217,164,65,0.35);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.portrait::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid rgba(217,164,65,0.4); border-radius: 14px;
}

/* =========================================================
   Stats
   ========================================================= */
.stats { background: var(--ink); color: var(--cream); padding-bottom: clamp(3rem, 6vw, 5rem); }
.stats__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid var(--line-light); }
.stat__num { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--gold); line-height: 1; margin-bottom: 0.7rem; }
.stat__label { font-size: 0.9rem; color: rgba(247,243,234,0.7); line-height: 1.45; }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--cream); }
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__heading h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); }
.about__heading { position: sticky; top: 6rem; }
.about__body p { margin-bottom: 1.4rem; color: var(--text-soft); }
.about__body .lead { font-size: 1.3rem; color: var(--ink); font-family: var(--font-serif); font-weight: 380; line-height: 1.45; }

/* =========================================================
   Timeline
   ========================================================= */
.journey { background: var(--paper); }
.timeline { list-style: none; position: relative; max-width: 820px; margin: 0 auto; padding-left: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(217,164,65,0.45);
}
.timeline__item { position: relative; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -2.4rem; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold); transform: translateX(-1px);
  box-shadow: 0 0 0 5px rgba(217,164,65,0.12);
}
.timeline__card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline__card--feature { background: var(--ink); color: var(--cream); border-color: transparent; }
.timeline__card--feature h3, .timeline__card--feature .timeline__year { color: #fff; }
.timeline__card--feature p { color: rgba(247,243,234,0.78); }
.timeline__year { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 0.5rem; }
.timeline__card--feature .timeline__year { color: var(--gold); }
.timeline__card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.timeline__org { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.8rem; font-weight: 500; }
.timeline__card--feature .timeline__org { color: rgba(247,243,234,0.6); }
.timeline__card a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.timeline__card a:hover { border-color: var(--gold-deep); }
.timeline__card--feature a { color: var(--gold); }
.timeline__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.timeline__tags li { font-size: 0.78rem; padding: 0.3rem 0.8rem; border-radius: 100px; background: rgba(217,164,65,0.16); color: var(--gold); border: 1px solid rgba(217,164,65,0.25); }

/* =========================================================
   Hypatia
   ========================================================= */
.hypatia { background: var(--ink); color: var(--cream); }
.hypatia__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hypatia h2 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.hypatia__lede { color: rgba(247,243,234,0.82); font-size: 1.15rem; margin: 1.2rem 0 1.8rem; max-width: 44ch; }
.hypatia__quote {
  border-left: 3px solid var(--gold); padding: 0.4rem 0 0.4rem 1.3rem; margin-bottom: 2rem;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: rgba(247,243,234,0.9);
}
.hypatia__quote cite { display: block; margin-top: 0.6rem; font-size: 0.9rem; font-style: normal; color: var(--gold); }
.hypatia__services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.service { background: rgba(255,255,255,0.04); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform 0.3s var(--ease), background 0.3s; }
.service:hover { transform: translateY(-5px); background: rgba(217,164,65,0.08); }
.service h3 { color: #fff; font-size: 1.12rem; margin-bottom: 0.5rem; }
.service p { font-size: 0.92rem; color: rgba(247,243,234,0.7); }

/* =========================================================
   Beyond Work
   ========================================================= */
.beyond { background: var(--cream); }
.beyond__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.beyond__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.beyond__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.beyond__card--wide { grid-column: span 2; }
.beyond__card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.beyond__card p { color: var(--text-soft); }
.beyond__card strong { color: var(--ink); }

/* =========================================================
   Connect
   ========================================================= */
.connect { background: var(--ink); color: var(--cream); text-align: center; }
.connect__inner { max-width: 760px; margin: 0 auto; }
.connect h2 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.connect__sub { color: rgba(247,243,234,0.8); font-size: 1.1rem; margin: 1.2rem auto 2.8rem; max-width: 50ch; }
.connect__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.connect__link {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.2rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.connect__link:hover { transform: translateY(-5px); background: rgba(217,164,65,0.08); border-color: rgba(217,164,65,0.4); }
.connect__link-label { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); }
.connect__link-handle { font-size: 0.9rem; color: rgba(247,243,234,0.7); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #0a1422; color: rgba(247,243,234,0.7); padding: 2.5rem 0; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; }
.footer__mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--gold); color: var(--ink); border-radius: 9px; font-family: var(--font-serif); }
.footer__brand p { font-family: var(--font-serif); color: var(--cream); font-size: 1.05rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { font-size: 0.9rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: 0.85rem; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .hypatia__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__heading { position: static; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--ink); padding: 2rem 2.4rem; transform: translateX(100%);
    transition: transform 0.4s var(--ease); box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--cream); font-size: 1.15rem; }
  .nav__cta { color: var(--ink) !important; background: var(--gold); }
  .nav__toggle { display: flex; z-index: 110; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-scrolled .nav__toggle.is-open span { background: var(--cream); }

  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__portrait { display: none; }
  .hero { min-height: auto; padding-top: 8rem; }
}

@media (max-width: 620px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .hypatia__services { grid-template-columns: 1fr; }
  .beyond__grid { grid-template-columns: 1fr; }
  .beyond__card--wide { grid-column: span 1; }
  .connect__links { grid-template-columns: 1fr; }
  .nav__name { display: none; }
  .timeline__tags li { font-size: 0.72rem; }
}
