/* ═══════════════════════════════════════════════════════════
   CAROLINE LIAO — PORTFOLIO  v2
   ─────────────────────────────────────────────────────────
   QUICK EDITS:
     --blue   → baby blue accent colour
     --cream  → page background
     --ink    → text / dark colour
   FONTS: Cormorant Garamond (headings) + Inter (body)
═══════════════════════════════════════════════════════════ */

:root {
  --ink:       #0c0c0c;
  --ink-mid:   #555;
  --ink-light: #999;
  --cream:     #F6F3EE;
  --white:     #ffffff;
  --blue:      #89C4E1;
  --blue-dim:  rgba(137,196,225,0.15);
  --warm:      #C97B62;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(0.25, 0, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ─── NAV ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover { opacity: 0.5; }

.nav-li-icon { display: none; flex-shrink: 0; }


/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* The big 廖 character — fills the right of the hero */
.hero-bg-char {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-serif);
  font-size: clamp(280px, 40vw, 600px);
  font-weight: 300;
  line-height: 1;
  color: rgba(0,0,0,0.1);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.hero-content {
  padding: 0 clamp(32px, 7vw, 100px);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
}

.name-first {
  font-size: clamp(4rem, 10vw, 10rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.name-last {
  font-size: clamp(4rem, 10vw, 10rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.name-last em {
  font-style: italic;
}

/* Brief bio line in hero */
.hero-bio {
  margin-top: 28px;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  max-width: 420px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-degree {
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

.hero-footer {
  position: absolute;
  bottom: 36px;
  left: clamp(32px, 7vw, 100px);
  right: clamp(32px, 7vw, 100px);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}

/* scroll-cue inherits rgba(255,255,255,0.3) from .hero-footer — no extra rule needed */


/* ─── SKILLS / OVERVIEW ──────────────────────────── */
.skills-section {
  padding: 76px clamp(32px, 7vw, 100px) 52px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.skills-section-header {
  margin-bottom: 40px;
}

.skills-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 6px;
}

.skills-section-sub {
  font-size: 0.78rem;
  color: var(--ink-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.skills-col {
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.skills-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-mid);
}



/* ─── ROLE STRIP ─────────────────────────────────── */
.role-strip {
  padding: 52px clamp(32px, 7vw, 100px) 36px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.role-strip-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.role-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.role-strip-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.role-strip-sep {
  color: var(--ink-light);
  font-weight: 300;
}

.role-strip-org {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--ink-mid);
}

.role-strip-year {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.role-strip-ig {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
}

.role-strip-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 640px;
}

.role-strip-bullets {
  list-style: none;
  max-width: 640px;
}

.role-strip-bullets li {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-mid);
  padding-left: 1.1em;
  position: relative;
}

.role-strip-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-light);
  font-weight: 300;
}


/* ─── POSTER GRID ────────────────────────────────── */
/*
  Layout (3 columns):
    Row 1: [1 wide=2cols] [2]
    Row 2: [3] [4 wide=2cols]
    Row 3: [5] [6] [7]
    Row 4: [8] [9 wide=2cols]
    Row 5: [10 full=3cols]
  To change sizing add/remove pg-wide or pg-full class in HTML
*/
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.pg-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}
.pg-item.pg-wide { grid-column: span 2; }
.pg-item.pg-full { grid-column: span 3; aspect-ratio: unset; max-height: 340px; }

/* First item spans 2 rows + 2 cols so items 2 & 3 stack cleanly beside it */
.poster-grid .pg-item:first-child {
  grid-row: span 2;
  aspect-ratio: unset;
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.92);
}
.pg-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Caption overlay */
.pg-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.05) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 18px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.pg-item:hover .pg-caption { opacity: 1; }

.pg-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}
.pg-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}


/* ─── PLACEHOLDER (Vnova) ────────────────────────── */
.placeholder-gallery {
  height: 220px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e5e0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-top: 1px solid rgba(0,0,0,0.08);
}


/* Vnova role strip needs top spacing to separate from grid */
.role-strip--spaced { margin-top: 60px; border-top: 1px solid rgba(0,0,0,0.1); }

/* ─── CONCEPTS ───────────────────────────────────── */
.concepts-section {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 80px;
}

.concepts-header {
  padding: 64px clamp(32px, 7vw, 100px) 0;
  margin-bottom: 48px;
}

.concepts-label {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
}

.concepts-sub {
  font-size: 0.8rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

/* ── Each concept entry ── */
.concept-entry {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.concept-meta {
  padding: 36px clamp(32px, 7vw, 100px) 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.concept-meta-left {
  flex-shrink: 0;
  min-width: 220px;
}

.concept-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.concept-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 4px;
}

.concept-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
}

.concept-brand {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.concept-meta-desc {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 520px;
  padding-top: 4px;
}

.concept-view-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.concept-view-link:hover {
  color: var(--warm);
  border-color: var(--warm);
}

/* ── concept gallery wrapper + nav buttons ── */
.concept-gallery-wrap {
  display: flex;
  align-items: stretch;
  margin-top: 4px;
}

.concept-nav-btn {
  flex-shrink: 0;
  width: 36px;
  background: rgba(0,0,0,0.055);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.concept-nav-btn:hover {
  background: rgba(0,0,0,0.12);
  color: var(--ink);
}

/* ── horizontal scroll strip ── */
.concept-gallery {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 4px;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.concept-gallery::-webkit-scrollbar { display: none; }

.concept-strip-item {
  height: 300px;
  flex-shrink: 0;
  max-width: min(72vw, 560px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  background: #1a1a1a;
  aspect-ratio: unset;
}

.concept-strip-item img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.92);
}

.concept-strip-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Placeholder tile for upcoming concepts */
.concept-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e5e0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 4px;
}


/* ─── FOOTER ─────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(32px, 7vw, 100px);
  border-top: 1px solid rgba(0,0,0,0.1);
  background: var(--ink);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--warm); }


/* ─── LIGHTBOX ───────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,10,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.6);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.lightbox-close:hover { color: var(--white); transform: rotate(90deg); }

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: none;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.lightbox-bar {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
}

.lightbox-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.lightbox-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
}
.lightbox-link:hover { opacity: 0.7; }


/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }

  .hero-content { padding: 0 24px; }
  .hero-footer   { left: 24px; right: 24px; }

  .skills-section        { padding: 56px 24px 64px; }
  .skills-grid           { grid-template-columns: 1fr; gap: 18px; }
  .skills-header         { margin-bottom: 34px; }

  .role-strip           { padding: 36px 24px 24px; }
  .concepts-header      { padding: 48px 24px 0; }
  footer                { padding: 24px; }

  /* Grid collapses to 2 columns on tablet */
  .poster-grid          { grid-template-columns: repeat(2, 1fr); }
  .pg-item.pg-full      { grid-column: span 2; }
  /* wide items become normal on small screens */
  .pg-item.pg-wide      { grid-column: span 2; }

  .hero-bg-char { font-size: clamp(180px, 50vw, 320px); }

  .concept-meta         { flex-direction: column; gap: 16px; padding: 36px 24px 20px; }
  .concept-strip-item   { height: 220px; max-width: 80vw; }
}

@media (max-width: 560px) {
  .nav-links a:first-child .nav-li-text { display: none; }
  .nav-links a:first-child .nav-li-icon { display: block; }
  .name-first, .name-last  { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-bg-char             { right: -8vw; opacity: 0.6; }
  .hero-bio                 { max-width: 100%; }
  .hero-degree              { line-height: 1.5; }

  /* Single column on mobile */
  .poster-grid         { grid-template-columns: 1fr; gap: 3px; }
  .pg-item.pg-wide,
  .pg-item.pg-full     { grid-column: span 1; }
}
