/* ============================================================
   Leah Meurer — Diagnostic Medical Sonographer
   Palette: warm cream + eucalyptus teal + soft rose accent
   ============================================================ */

:root {
  --cream:        #FBF7F2;
  --cream-2:      #F4EDE4;
  --ink:          #1E2B2A;
  --ink-soft:     #465653;
  --teal:         #2F6F69;
  --teal-deep:    #234F4B;
  --teal-tint:    #DDE9E5;
  --rose:         #B97A72;
  --rose-soft:    #E9D2CC;
  --gold:         #C2A05E;
  --line:         #E7DECF;
  --white:        #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(35, 79, 75, .06);
  --shadow-md: 0 18px 50px -20px rgba(35, 79, 75, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1rem; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sans); font-weight: 500; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -10px rgba(47,111,105,.7); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(47,111,105,.75); }
.btn--ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled { background: rgba(251,247,242,.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em;
}
.nav__brand-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.05; display: flex; flex-direction: column; }
.nav__brand-cred { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: .95rem; font-weight: 400; color: var(--ink-soft); transition: color .25s; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--teal); transition: width .3s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::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: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 10%, var(--cream-2) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, var(--teal-tint) 0%, transparent 50%),
    var(--cream);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.hero__wave { position: absolute; left: -5%; right: -5%; bottom: 6%; width: 110%; height: 60%; }
.hero__wave path { stroke: var(--teal); stroke-width: 1.4; opacity: .18; }
.hero__wave path:nth-child(2) { stroke: var(--rose); opacity: .14; }
.hero__wave path:nth-child(3) { stroke: var(--teal-deep); opacity: .1; }

.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 120px 28px 90px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero__eyebrow { font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 1.1rem; }
.hero__title { font-size: clamp(3.1rem, 8vw, 5.4rem); display: flex; flex-direction: column; }
.hero__title-cred { font-family: var(--sans); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); font-weight: 600; margin-top: 1rem; }
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 30rem; margin-top: 1.6rem; }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__location { display: inline-flex; align-items: center; gap: .55rem; font-size: 1rem; color: var(--ink-soft); margin: .2rem 0 1.8rem; }
.hero__location svg { fill: var(--rose); }
.hero__location strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__stats { display: flex; gap: 2.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; flex-direction: column; }
.stat__num { font-family: var(--serif); font-size: 2.3rem; color: var(--teal-deep); line-height: 1; }
.stat__label { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; line-height: 1.3; }

/* Portrait */
.hero__portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative; margin: 0; width: clamp(260px, 32vw, 380px); aspect-ratio: 4/5;
  border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 8px solid var(--white);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait-badge {
  position: absolute; bottom: 22px; left: -18px; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); color: var(--teal-deep); font-size: .82rem; font-weight: 600;
  padding: .6rem 1rem; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.portrait-badge svg { fill: var(--teal); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid var(--ink-soft); border-radius: 100px; opacity: .5; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--ink-soft); border-radius: 4px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- Photo placeholders ---------- */
.placeholder {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .35rem;
  background:
    repeating-linear-gradient(45deg, rgba(47,111,105,.04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--teal-tint), var(--cream-2));
  color: var(--teal-deep); padding: 1.5rem;
}
.placeholder__art { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto .4rem; border-radius: 50%; background: rgba(255,255,255,.6); color: var(--teal); }
.placeholder--wide .placeholder__art { width: 72px; height: 72px; }
.placeholder__text { font-family: var(--serif); font-size: 1.15rem; margin: 0; color: var(--teal-deep); }
.placeholder__hint { font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); opacity: .75; margin: 0; background: rgba(255,255,255,.55); padding: .15rem .5rem; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section__eyebrow { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: .8rem; }
.section__eyebrow--center { text-align: center; }
.section__title { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18ch; }
.section__head { margin-bottom: 3.4rem; }

/* About */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.about__photo { margin: 0; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 8px solid var(--white); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__content p { font-size: 1.08rem; color: var(--ink-soft); }
.about__pullquote {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--teal-deep);
  border-left: 3px solid var(--rose); padding-left: 1.3rem; margin-top: 1.8rem; line-height: 1.45;
}

/* Timeline */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--rose-soft)); }
.timeline__item { position: relative; margin-bottom: 2.2rem; }
.timeline__dot { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); box-shadow: 0 0 0 5px var(--cream-2); }
.timeline__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.timeline__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.timeline__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.timeline__role { font-size: 1.4rem; }
.timeline__date { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--white); background: var(--teal); padding: .3rem .8rem; border-radius: 100px; white-space: nowrap; }
.timeline__org { color: var(--rose); font-weight: 600; margin: .35rem 0 1rem; font-size: 1.02rem; }
.timeline__points li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; color: var(--ink-soft); font-size: .98rem; }
.timeline__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-tint); border: 1.5px solid var(--teal); }
/* tighten the Experience -> Skills transition (last card has no trailing margin; trim section bottom) */
.timeline__item:last-child { margin-bottom: 0; }
.experience { padding-bottom: clamp(44px, 6vw, 72px); }

/* Skills */
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-tint); }
.skill-card h3 { font-size: 1.25rem; color: var(--teal-deep); margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.skill-card ul li { position: relative; padding-left: 1.3rem; margin-bottom: .5rem; color: var(--ink-soft); font-size: .95rem; }
.skill-card ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.strengths { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.6rem; }
.strengths span { background: var(--teal-tint); color: var(--teal-deep); font-size: .88rem; font-weight: 500; padding: .55rem 1.1rem; border-radius: 100px; }

/* Credentials */
.cred__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cred-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cred-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(var(--teal), var(--rose)); }
.cred-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cred__year { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: .5rem; }
.cred-card h3 { font-size: 1.3rem; color: var(--ink); }
.cred-card p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.education { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 720px; margin: 3.4rem auto 0; padding-top: 2.8rem; border-top: 1px solid var(--line); }
.education__photo { margin: 0; width: 196px; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid var(--white); }
.education__photo img { width: 100%; height: 100%; object-fit: cover; }
.education__text .section__eyebrow { margin-bottom: .5rem; }
.education__title { font-size: 1.6rem; margin: 0 0 .4rem; color: var(--teal-deep); }
.education__line { font-size: 1.02rem; margin: 0; }
.education__line span { color: var(--ink-soft); }
.education__note { color: var(--ink-soft); font-size: .96rem; font-style: italic; margin: .7rem 0 0; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--teal-deep), var(--teal)); color: var(--white); text-align: center; }
.contact .section__eyebrow { color: var(--rose-soft); }
.contact__inner { max-width: 760px; }
.contact__title { color: var(--white); margin: 0 auto .9rem; }
.contact__sub { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 32rem; margin: 0 auto 2.6rem; }
.contact__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 1.6rem 2rem; border-radius: var(--radius); min-width: 200px; backdrop-filter: blur(4px);
  transition: transform .35s var(--ease), background .35s;
}
.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.contact-card svg { fill: var(--rose-soft); margin-bottom: .4rem; }
.contact-card__label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.contact-card__value { font-family: var(--serif); font-size: 1.18rem; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 2.4rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.footer__name { font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.footer__name span { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; color: var(--rose-soft); }
.footer__note { font-size: .88rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 110px; }
  .hero__portrait { order: -1; }
  .portrait-frame { width: clamp(230px, 60vw, 300px); }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__media { max-width: 360px; margin: 0 auto; }
  .skills__grid, .cred__grid { grid-template-columns: repeat(2, 1fr); }

  .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.6rem;
    background: var(--cream); padding: 2rem 2.4rem; box-shadow: -10px 0 40px -16px rgba(0,0,0,.3);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 95; }
  .nav.is-menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .container, .nav__inner, .hero__inner { padding-left: 20px; padding-right: 20px; }
  .hero__stats { gap: 1.4rem; }
  .stat__num { font-size: 1.9rem; }
  .skills__grid, .cred__grid { grid-template-columns: 1fr; }
  .timeline__top { flex-direction: column; }
  .nav__brand-name { font-size: 1rem; }
  .education { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
