/* ============================================================
   Sylvia Lu — personal site
   Visual language inherited from the YOOVIP brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:        #07294E;
  --navy-deep:   #051d39;
  --azure:       #00B0F0;
  --ink:         #0A0A0A;
  --ink-2:       #3D4250;
  --paper:       #F4F5F7;
  --white:       #FFFFFF;
  --line:        #E2E5EA;

  --display: 'Poppins', sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 18px 50px -28px rgba(7, 41, 78, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--azure); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

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

/* ---------- Kicker / headings ---------- */
.kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--azure);
  display: inline-block;
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-weight: 600; font-size: 1.15rem; }

p { margin-bottom: 1.05rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--azure); }
.brand .sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--body);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--azure);
  border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0,176,240,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dce5f1;
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { font-size: 1.16rem; color: #c4d2e6; max-width: 38ch; }
.hero .kicker { color: var(--azure); }
.hero-portrait {
  position: relative;
  justify-self: center;
}
.hero-portrait img {
  width: 320px; height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0,176,240,0.4);
}
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 26px;
  border-radius: 999px;
  display: inline-block;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,176,240,0.4); }
.btn-primary { background: var(--azure); color: #04243f; }
.btn-primary:hover { color: #04243f; transform: translateY(-2px); background: #2bc0fb; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #fff; }
.btn-ghost:hover { color: #fff; border-color: var(--azure); transform: translateY(-2px); }

/* ============================================================
   Sections
   ============================================================ */
section.block { padding: clamp(54px, 8vw, 96px) 0; }
section.alt { background: var(--paper); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

/* Biography prose */
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 1.04rem; }
.prose .lead-para { font-size: 1.16rem; color: var(--ink); font-weight: 500; }

/* Credentials strip */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.cred {
  background: var(--white);
  padding: 26px 24px;
}
.cred .n { font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--navy); line-height: 1; }
.cred .l { font-size: .86rem; margin-top: 8px; color: var(--ink-2); }

/* ============================================================
   Cards / lists
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card h3::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--azure);
  flex: 0 0 auto;
}
.list-clean { list-style: none; }
.list-clean li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
  color: var(--ink-2);
}
.list-clean li:last-child { border-bottom: 0; }
.list-clean .role { color: var(--ink); font-weight: 500; }
.list-clean .meta { display: block; font-size: .82rem; color: #8a909e; margin-top: 2px; }

/* Award badge tag */
.tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azure);
  background: rgba(0,176,240,0.1);
  padding: 3px 9px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================================
   Chapters timeline
   ============================================================ */
.chapters {
  position: relative;
  margin-top: 8px;
  padding-left: 30px;
}
.chapters::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.chapter {
  position: relative;
  padding: 0 0 34px 4px;
}
.chapter:last-child { padding-bottom: 0; }
.chapter::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--azure);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.chapter .period {
  font-family: var(--display);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azure);
  display: block;
  margin-bottom: 4px;
}
.chapter h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.chapter p {
  color: var(--ink-2);
  max-width: 64ch;
  margin-bottom: 10px;
}
.chapter .insight {
  margin-bottom: 0;
  padding-left: 14px;
  border-left: 2px solid var(--azure);
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 560px) {
  .chapters { padding-left: 24px; }
  .chapter::before { left: -24px; }
}

.gallery {
  columns: 3;
  column-gap: 18px;
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery img { width: 100%; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  font-size: .84rem;
  color: var(--ink-2);
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.art-gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  margin: 0;
}
.art-gallery figure .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.art-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.art-gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 880px) { .art-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .art-gallery { grid-template-columns: 1fr; } }

/* Neat uniform gallery — even grid, fixed aspect, short captions */
.gallery-neat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-neat figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.gallery-neat .ph {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-neat .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-neat figure:hover .ph img { transform: scale(1.05); }
.gallery-neat figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.gallery-neat .cap-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  display: block;
  line-height: 1.35;
}
.gallery-neat .cap-meta {
  font-size: .82rem;
  color: #8a909e;
  display: block;
  margin-top: 4px;
}
@media (max-width: 880px) { .gallery-neat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-neat { grid-template-columns: 1fr; } }


/* ============================================================
   Publication / engagement lists
   ============================================================ */
.pub-section { margin-bottom: 46px; }
.pub-list { list-style: none; }
.pub-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: .95rem;
  color: var(--ink-2);
}
.pub-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azure);
}
.pub-list li:last-child { border-bottom: 0; }
.pub-list .date { color: #8a909e; font-size: .85rem; }

.venue-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.venue-cloud span {
  font-family: var(--display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}

/* Auto-scrolling logo / venue marquee */
.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  /* moves right to left, slow and steady; row is duplicated for a seamless loop */
  animation: marquee-ltr 80s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  min-width: 190px;
  padding: 0 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.marquee-item:hover {
  border-color: var(--azure);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* When a real logo image is dropped in, it sits inside .marquee-item and the
   text fallback is hidden automatically. Logos render in a consistent height. */
.marquee-item img {
  max-height: 38px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}
.marquee-item img + .ml-name { display: none; }
.marquee-item .sub {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: .72rem;
  color: #8a909e;
  letter-spacing: 0;
  margin-top: 2px;
}
@keyframes marquee-ltr {
  /* slides the track leftwards by half its width (one full set),
     producing continuous right-to-left motion */
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}


/* Engagements table — clean, scannable, press-kit style */
.eng-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.eng-table thead th {
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azure);
  padding: 0 18px 12px 0;
  border-bottom: 2px solid var(--navy);
}
.eng-table tbody td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.eng-table tbody tr:hover { background: var(--paper); }
.eng-table .e-event { color: var(--ink); font-weight: 500; }
.eng-table .e-role { white-space: nowrap; }
.eng-table .e-date { white-space: nowrap; color: #8a909e; }
.eng-table td.e-loc { color: #8a909e; }
@media (max-width: 720px) {
  .eng-table, .eng-table thead, .eng-table tbody, .eng-table tr, .eng-table td { display: block; width: 100%; }
  .eng-table thead { display: none; }
  .eng-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .eng-table tbody tr:hover { background: transparent; }
  .eng-table tbody td { border: 0; padding: 2px 0; }
  .eng-table .e-event { font-size: 1rem; }
  .eng-table .e-role::before { content: "Role: "; color: var(--azure); font-weight: 600; }
  .eng-table .e-loc::before { content: "Where: "; color: var(--azure); font-weight: 600; }
  .eng-table .e-date::before { content: "When: "; color: var(--azure); font-weight: 600; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: .82rem; color: var(--ink); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azure); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.contact-meta a { color: var(--navy); font-weight: 500; }
.contact-meta a:hover { color: var(--azure); }
.contact-meta .row { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-meta .row:last-child { border-bottom: 0; }
.contact-meta .label { font-family: var(--display); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--azure); width: 92px; flex: 0 0 auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #aebfd6;
  padding: 54px 0 30px;
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer-brand .dot { color: var(--azure); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: #aebfd6; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: .82rem; color: #7f93b0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-portrait { order: -1; justify-self: start; }
  .hero-portrait img { width: 230px; height: 230px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .brand .sub { display: none; }
  .gallery { columns: 1; }
}
