/* ===========================================================================
   Lia Hannant — lighting technician
   Theme lifted from the CV: blush header band, violet hairline, warm grey ink.
   Display face: Cormorant Garamond (the wide-tracked name on the CV).
   UI face:      Poppins (the rounded geometric sans used for body + headings).
   =========================================================================== */

:root {
  --blush:        #ebd5cb;
  --blush-soft:   #f7ede8;
  --blush-tint:   #fbf6f3;
  --violet:       #7a28f0;
  --violet-deep:  #5d1cbb;
  --ink:          #2c2c2c;
  --ink-soft:     #4a4a4a;
  --muted:        #8a8480;
  --line:         #e7e0da;
  --paper:        #ffffff;
  --dark:         #211f22;

  --shell: 1120px;
  --r: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", "Century Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- typography */

.display {
  font-family: "Cormorant Garamond", "Didot", Georgia, serif;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.85rem, 8.4vw, 5.2rem);
  margin: 0;
  overflow-wrap: break-word;
}
.display--sm { font-size: clamp(1.7rem, 6vw, 3.4rem); letter-spacing: .1em; }
.display--xs { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: .08em; }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow--light { color: rgba(255,255,255,.55); }

.section__title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin: 0;
}

.rule {
  height: 1px;
  background: var(--ink);
  opacity: .8;
  margin: 26px 0 24px;
  max-width: 520px;
}

/* ------------------------------------------------------------------- nav */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__band { height: 4px; background: var(--violet); }

.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(122,40,240,.18), 0 6px 16px -10px rgba(44,36,32,.6);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.brand:hover .brand__logo {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(122,40,240,.4), 0 8px 20px -10px rgba(122,40,240,.7);
}
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand__name {
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
}
.brand__sub {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  color: var(--ink-soft); position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--violet); transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--ink); padding: 9px 18px !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: #fff; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46%;
  background: linear-gradient(180deg, var(--blush) 0%, var(--blush-soft) 60%, #fff 100%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  min-width: 0;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero__portrait { position: relative; width: 240px; height: 240px; justify-self: center; }
.hero__portrait img {
  width: 240px; height: 240px; object-fit: cover; object-position: 50% 30%;
  border-radius: 50%;
  filter: saturate(.92) contrast(1.04);
  box-shadow: 0 18px 40px -22px rgba(44,36,32,.55);
}
.hero__ring {
  position: absolute; inset: -14px; border: 1px solid rgba(122,40,240,.35); border-radius: 50%;
}

.hero__tagline {
  font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block; text-decoration: none;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  padding: 14px 28px; border: 1px solid var(--ink);
  transition: .3s var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--violet); border-color: var(--violet); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.hero__meta {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-size: .78rem; letter-spacing: .08em; color: var(--muted);
}
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--violet); }
.hero__meta li { display: flex; align-items: center; gap: 9px; }
.hero__meta svg { width: 13px; height: 13px; flex: none; opacity: .65; }

/* --------------------------------------------------------------- sections */

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tint { background: var(--blush-tint); }
.section--dark { background: var(--dark); color: #fff; }

.section__head { margin-bottom: 46px; }
.section__head--center { text-align: center; max-width: 620px; margin-inline: auto; }
.section__lede { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }

.grid-2 {
  display: grid;
  min-width: 0; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 70px);
  align-items: start;
}
.grid-2 .section__head { margin-bottom: 0; }

.prose p { margin: 0 0 20px; color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- projects */

.projects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px;
}

.card {
  background: #fff; border: 1px solid var(--line);
  text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -30px rgba(44,36,32,.5);
  border-color: var(--blush);
}

.card__media {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1d1a22 0%, #2c2333 55%, #171419 100%);
  display: grid; place-items: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__initial {
  position: relative;
  font-family: "Cormorant Garamond", serif; font-size: 3.4rem; letter-spacing: .12em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
/* two stage beams washing down from off-frame, tinted per project */
.card__beam {
  position: absolute; inset: 0;
  background:
    radial-gradient(110px 210px at 26% -14%, var(--wash-a, #ff5fa2), transparent 72%),
    radial-gradient(130px 240px at 74% -16%, var(--wash-b, #7a28f0), transparent 72%),
    radial-gradient(180px 120px at 50% 118%, rgba(255,255,255,.16), transparent 70%);
  opacity: .78;
  mix-blend-mode: screen;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.card:hover .card__beam { opacity: 1; transform: scale(1.06); }
.card__year {
  position: absolute; top: 14px; left: 14px;
  font-size: .68rem; letter-spacing: .22em; color: #fff;
  background: rgba(0,0,0,.32); padding: 5px 11px; backdrop-filter: blur(4px);
}

.card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__title {
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: 1.6rem; letter-spacing: .05em; margin: 0 0 6px; line-height: 1.2;
}
.card__role {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--violet);
  margin: 0 0 14px;
}
.card__summary { margin: 0 0 20px; font-size: .92rem; color: var(--ink-soft); flex: 1; }
.card__more {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px;
}
.card:hover .card__more { color: var(--ink); }
.card__more span { transition: transform .3s var(--ease); }
.card:hover .card__more span { transform: translateX(5px); }

/* ----------------------------------------------------------------- skills */

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.skill { text-align: center; padding: 0 8px; }
.skill__mark {
  display: block; width: 34px; height: 1px; background: var(--blush);
  margin: 0 auto 22px;
}
.skill__title {
  font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 1.55rem;
  margin: 0 0 12px; letter-spacing: .04em;
}
.skill__body { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------- cv */

.cv { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(34px, 6vw, 72px); }

.cv__heading {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.cv__heading--spaced { margin-top: 54px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.timeline li { position: relative; padding-bottom: 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--violet);
}
.timeline__year { font-size: .72rem; letter-spacing: .22em; color: var(--muted); }
.timeline__title {
  font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 1.45rem;
  margin: 2px 0 4px; letter-spacing: .04em;
}
.timeline__role { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 12px; }
.timeline__body { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.edu__item { margin-bottom: 26px; }
.edu__school { font-weight: 600; font-size: .98rem; margin: 0 0 6px; }
.edu__detail { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.edu__results { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-soft); }
.edu__results li { margin-bottom: 3px; }

.refs { display: grid; gap: 18px; }
.ref {
  border: 1px solid var(--line); padding: 18px 20px; background: #fff;
}
.ref__name { font-weight: 500; font-size: .95rem; margin: 0 0 4px; }
.ref__role { margin: 0; font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------- contact */

.contact__logo {
  width: 118px; height: 118px; border-radius: 50%;
  margin: 0 auto 30px;
  box-shadow: 0 0 0 1px rgba(200,160,255,.28), 0 0 60px -14px rgba(160,90,255,.65);
}

.contact { text-align: center; max-width: 720px; }
.contact { margin-inline: auto; }
.contact__lede { color: rgba(255,255,255,.7); margin: 26px auto 40px; max-width: 50ch; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact__links a {
  text-decoration: none; border: 1px solid rgba(255,255,255,.3);
  padding: 15px 30px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  transition: .3s var(--ease);
}
.contact__links a:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__logo { width: 26px; height: 26px; border-radius: 50%; }
.footer__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .74rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
}

/* ----------------------------------------------------------------- modal */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28,24,26,.55); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; background: #fff; max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 46px clamp(24px, 5vw, 52px) 44px;
  border-top: 4px solid var(--violet);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.modal__close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal__close:hover { color: var(--ink); }
.modal__title { margin: 0 0 8px; }
.modal__meta { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin: 0 0 24px; }
.modal__body { font-size: .96rem; color: var(--ink-soft); margin: 0 0 24px; }
.modal__gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 24px; }
.modal__gallery:empty { display: none; }
.modal__gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 6px 13px; color: var(--muted);
}

/* --------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ responsive */

.hero__inner > *, .grid-2 > *, .cv > * { min-width: 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text .rule { margin-inline: auto; }
  .hero__tagline { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .cv { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__sub { display: none; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 28px 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav__cta { text-align: center; margin-top: 14px; }
}
