/* ==========================================================================
   Chelsea Li · portfolio
   Colors, type and motion live in :root. Layout: 1120px reading column,
   1200px for the home grid, 16px gutters on phones.
   ========================================================================== */

:root {
  --ink: #1b1b1b;
  --ink-2: #4b5059;
  --muted: #8a909a;
  --line: #e7ecf2;
  --blue: #4a8edb;
  --panel: #eef4fb;
  --panel-line: #dbe7f5;
  --chip: #f1f4f8;
  --bg: #ffffff;

  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --col: 1600px;
  --wide: 1600px;
  --gutter: 80px;   /* side margin, like Erica Lee's site; scales down on smaller screens */
  --radius: 16px;

  /* Motion (values taken from the reference sites: Jo Choi, Erica Lee, Esther Lee) */
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);   /* hovers, pills, chips */
  --ease-tab: cubic-bezier(.3, 1.3, .5, 1);       /* sliding tab pill */
  --ease-rise: cubic-bezier(.2, .9, .3, 1);       /* page-load rise-in */
  --ease-reveal: cubic-bezier(.2, .8, .2, 1);     /* scroll reveals */
  --ease-img: cubic-bezier(.2, .7, .2, 1);        /* image hover zoom */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-modal: cubic-bezier(.22, .61, .36, 1);
  --ease-modal-in: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --stagger: 70ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
::selection { background: #d6e6fa; }

.wrap { width: min(100% - 2 * var(--gutter), var(--col)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto;
  height: 108px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; width: 52px; height: 52px; transition: transform .6s var(--ease-out); }
.logo img { width: 100%; height: 100%; }
.logo:hover { transform: rotate(-8deg) scale(1.06); }
.header-links { display: flex; gap: 36px; font-size: 15px; color: var(--ink-2); }
.header-links a, .header-links span { position: relative; }
.header-links span { cursor: default; opacity: .55; }
.u-line { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.u-line:hover { background-size: 100% 1px; color: var(--ink); }

/* ---------- Hero (home / play / about) ---------- */
.hero { text-align: left; padding: 40px 0 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--blue); }
.hero .eyebrow { text-transform: lowercase; letter-spacing: .02em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(48px, 7vw, 72px); line-height: 1; }
.hero p { margin: 18px 0 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* Work / Play / About switcher with a sliding pill */
.switcher {
  position: relative; display: inline-flex; margin: 32px auto 0; padding: 4px;
  background: var(--panel); border-radius: 999px;
}
.switcher a {
  position: relative; z-index: 1; padding: 9px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .4s var(--ease-out);
}
.switcher a[aria-current="page"] { color: var(--ink); }
.switcher a:not([aria-current]):hover { color: var(--ink); }
.switcher .pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(20, 40, 70, .08), 0 2px 8px rgba(20, 40, 70, .06);
  transition: transform .35s var(--ease-tab), width .35s var(--ease-tab);
}

/* ---------- Home: project grid ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 64px; margin-top: 64px; }
.project-card { display: block; }
.cover {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); isolation: isolate;
}
.cover > img, .cover > iframe, .cover > .cover-art { width: 100%; height: 100%; object-fit: cover; border: 0; }
.cover > img, .cover > .cover-art { transition: transform .5s var(--ease-img); }
.project-card:hover .cover > img, .project-card:hover .cover > .cover-art { transform: scale(1.025); }
.cover iframe { pointer-events: none; }
.cover-art { display: flex; align-items: center; justify-content: center; }
.cover-art.sandbox { background: #1f4ee5; }
.cover-art.sandbox img { width: 26%; height: auto; }
.cover-art.provost { background: #000; }
.cover-art.provost img { width: 46%; height: auto; }
.cover .view {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.project-card:hover .cover .view { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; gap: 16px; }
.card-meta h2 { font-size: 24px; }
.card-meta .year { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-desc { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.chips { display: flex; gap: 8px; margin-top: 14px; }
.chip {
  padding: 4px 10px; border-radius: 6px; background: var(--chip);
  font-size: 12px; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s;
}
a.chip:hover { background: #e2ebf6; color: var(--ink); }

.next-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 96px; padding: 28px 0 0; border-top: 1px solid var(--line);
}
.next-row .big { font: 600 20px/1 var(--display); letter-spacing: -.02em; display: inline-flex; gap: 8px; }
.next-row .big .arr { transition: transform .5s var(--ease-out); }
.next-row a:hover .arr { transform: translateX(6px); }
.next-row p { font-size: 15px; color: var(--ink-2); }

/* ---------- Project pages ---------- */
.back { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.back .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.back:hover .arr { transform: translateX(-4px); }
.org { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 10px; }
.title-row h1 { font-size: clamp(44px, 6.4vw, 72px); line-height: 1.05; }

.tabs { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--panel-line); border-radius: 999px; background: #fff; flex: none; }
.tabs a { position: relative; z-index: 1; padding: 7px 16px; font-size: 14px; color: var(--ink-2); border-radius: 999px; transition: color .4s var(--ease-out); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a:not([aria-current]):hover { color: var(--blue); }
.tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--panel); border-radius: 999px; transition: transform .35s var(--ease-tab), width .35s var(--ease-tab); }

.meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.meta dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.overview { margin-top: 28px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 500; letter-spacing: -.005em; }

.section { margin-top: 96px; }
.section .eyebrow { display: block; text-transform: uppercase; }
.section h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 34px); line-height: 1.2; }
.section h2 + p, .section .eyebrow + p { margin-top: 16px; }
.section > p, .lede { font-size: 16px; color: var(--ink-2); max-width: var(--col); }
.label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.label + p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.divider { height: 1px; background: var(--line); margin: 56px 0; border: 0; }
.caption { margin: 40px 0 14px; font-size: 14px; color: var(--ink-2); }
.caption:first-child { margin-top: 0; }

/* Two-column case rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 0; }
.split > .text { padding-top: 0; }
.media { margin-top: 32px; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.media-frame > img, .media-frame > video { width: 100%; height: 100%; object-fit: cover; }
.media-frame > iframe { width: 100%; height: 100%; border: 0; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-16x15 { aspect-ratio: 16 / 15; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-9x16 { aspect-ratio: 9 / 16; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-2x3 { aspect-ratio: 2 / 3; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.panel { background: var(--panel); border-radius: var(--radius); padding: 24px; }

/* Image tiles that open in the lightbox */
.zoom { cursor: zoom-in; }
.tile { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #e6edf5; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-img); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.panel .tile { border-radius: 10px; }

/* "View on Instagram" pill, shown on hover */
.ig-pill {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: #f4f6f8; color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .18);
  opacity: 0; transform: translateY(-4px) scale(.96);
  transition: opacity .25s ease, transform .35s var(--ease-spring);
}
.ig-pill img { width: 14px; height: 14px; }
.ig-pill svg { width: 10px; height: 10px; }
a.tile:hover .ig-pill, a.tile:focus-visible .ig-pill { opacity: 1; transform: none; }
@media (hover: none) { .ig-pill { opacity: 1; transform: none; } }

/* Text links with an arrow */
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; }
.arrow-link .arr { transition: transform .5s var(--ease-out); }
.arrow-link:hover .arr { transform: translateX(5px); }
.arrow-link:hover { color: var(--blue); }

/* Cover + side text (flipbooks) */
.book { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; margin-top: 32px; }
.book .tile { aspect-ratio: 816 / 1056; box-shadow: 0 18px 40px -18px rgba(20, 30, 50, .35); }
.book .tile.cover-mag { aspect-ratio: 1082 / 1388; }
.book h3 { font: 600 18px/1.4 var(--body); }
.book small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.book a.side { display: block; padding-top: 4px; }
.book a.side:hover h3 { color: var(--blue); }
.book a.side .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.book a.side:hover .arr { transform: translateX(5px); }

/* Sticky "that's me!" note */
.me-note { position: absolute; right: 0; top: -44px; display: flex; align-items: flex-end; gap: 4px; color: var(--blue); font-size: 12px; font-weight: 600; pointer-events: none; }
.me-note svg { width: 70px; height: 44px; }

/* Marquee (Question of the Week) */
.marquee { overflow: hidden; margin-right: calc(50% - 50vw); margin-top: 28px; }
.marquee .track { display: flex; gap: 24px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .tile { flex: none; width: 250px; aspect-ratio: 9 / 16; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }

/* Back to School: YouTube loop with a link overlay */
.yt-loop { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; }
.yt-loop img, .yt-loop .yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-loop .yt { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.yt-loop.playing .yt { opacity: 1; }
.yt-loop a { position: absolute; inset: 0; z-index: 2; }
.watch {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.yt-loop:hover .watch { opacity: 1; transform: none; }
@media (hover: none) { .watch { opacity: 1; transform: none; } }

/* Closing note */
.closing p { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--ink); }

/* Footer nav */
.page-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 120px; padding: 28px 0 64px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2);
}
.page-nav a { display: inline-flex; gap: 6px; transition: color .3s; }
.page-nav a:hover { color: var(--ink); }
.page-nav .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.page-nav a.next:hover .arr { transform: translateX(5px); }
.page-nav a.prev:hover .arr { transform: translateX(-5px); }

/* ---------- Play ---------- */
.gallery { display: grid; grid-template-columns: 373px 373px; justify-content: start; gap: 0 84px; margin-top: 64px; }
.gallery .col { display: flex; flex-direction: column; gap: 48px; }
.gallery .col:first-child { padding-top: 56px; }
.art-card { display: block; }
.art-card .tile { border-radius: 12px; }
.art-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.art-meta h3 { font-size: 18px; }
.art-meta span { font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: start; margin-top: 80px; }
.about-intro h2 { font-size: clamp(34px, 4vw, 44px); }
.about-intro p { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.about-intro .photo { aspect-ratio: 440 / 560; border-radius: var(--radius); overflow: hidden; }
.about-intro .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.jobs { margin-top: 32px; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.job h3 { font-size: 24px; }
.job .role { font-size: 16px; font-weight: 600; }
.job .what { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.job .when { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.job .when a { display: block; margin-top: 4px; color: var(--blue); }
.job .when a .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.job .when a:hover .arr { transform: translateX(4px); }

/* ---------- Lightbox ---------- */
/* Erica Lee's lightbox: tinted, blurred backdrop; the image swings up into place */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 48px; cursor: zoom-out;
  background: rgba(20, 20, 20, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease-modal), background .7s var(--ease-modal), backdrop-filter .7s var(--ease-modal), -webkit-backdrop-filter .7s var(--ease-modal), visibility 0s linear .7s;
}
.lightbox.open {
  opacity: 1; visibility: visible; background: rgba(20, 20, 20, .55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition-delay: 0s;
}
.lightbox img {
  max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.6) rotate(-6deg);
  transition: transform .95s var(--ease-modal-in), opacity .65s var(--ease-modal-in);
}
.lightbox.open img { opacity: 1; transform: none; transition-delay: .12s; }
.lightbox button {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(20, 30, 50, .12); cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink);
  transition: transform .4s var(--ease-out);
}
.lightbox button:hover { transform: rotate(90deg); }
body.lb-open { overflow: hidden; }

/* ---------- Motion: page rise-in, reveal on scroll, page exit ---------- */
/* Page load: everything marked [data-rise] waits (html.ld-pre), then rises in with a 70ms stagger */
@media (prefers-reduced-motion: no-preference) {
  html.ld-pre [data-rise], html.ld-pre .site-header { opacity: 0; }
  html.ld-in .site-header { animation: navPop .7s cubic-bezier(.25, .8, .35, 1) both; }
  html.ld-in [data-rise] {
    animation: riseIn .55s var(--ease-rise) both;
    animation-delay: calc(.12s + var(--i, 0) * var(--stagger));
  }
  /* Scroll reveal: soft settle for wide blocks, a little pop for small cards */
  .rv { opacity: 0; }
  .rv.in { animation: revealSoft .75s var(--ease-reveal) var(--rd, 0s) both; }
  .rv-pop { opacity: 0; }
  .rv-pop.in { animation: revealPop .75s var(--ease-reveal) var(--rd, 0s) both; }
  html.leaving body { opacity: 0; transform: translate3d(0, -6px, 0); }
  body { transition: opacity .22s cubic-bezier(.27, 0, .51, 1), transform .22s cubic-bezier(.27, 0, .51, 1); }
}
@keyframes navPop { 0% { opacity: 0; transform: scale(.98); } 100% { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes revealSoft {
  0% { opacity: 0; transform: translateY(24px) scale(.97); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.006); }
  78% { transform: translateY(1px) scale(.999); }
  100% { opacity: 1; transform: none; }
}
@keyframes revealPop {
  0% { opacity: 0; transform: translateY(26px) scale(.92) rotate(var(--rot, 1.5deg)); }
  45% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  72% { transform: translateY(2px) scale(.995); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .projects { gap: 56px 32px; }
  .split, .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-intro .photo { max-width: 440px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .meta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { height: 84px; }
  .header-links { gap: 20px; font-size: 14px; }
  .projects { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .title-row { flex-direction: column; align-items: flex-start; }
  .meta { grid-template-columns: 1fr 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .panel { padding: 12px; }
  .book { grid-template-columns: 1fr; }
  .book .tile { max-width: 300px; }
  .gallery { grid-template-columns: 1fr; gap: 40px; }
  .gallery .col:first-child { padding-top: 0; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .job .when { text-align: left; }
  .next-row { flex-direction: column; align-items: flex-start; }
  .section { margin-top: 72px; }
  .marquee .tile { width: 180px; }
  .me-note { display: none; }
  .lightbox { padding: 16px; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.tile { display: block; width: 100%; font: inherit; cursor: zoom-in; }

/* Size caps for tall or very large images */
.signage { grid-template-columns: repeat(2, minmax(0, 400px)); }
@media (max-width: 640px) {
  .row-fit { grid-template-columns: 1fr 1fr !important; }
  .row-fit > :first-child { grid-column: 1 / -1; }
  .signage { grid-template-columns: 1fr 1fr; }
}
.cover-art.notability { background: #5AABF0; }
.cover-art.notability img { width: 22%; height: auto; }
.cover-art.rmgp { background: #000; }
.cover-art.rmgp img { width: 34%; height: auto; }

/* Play: trim a sliver off the top edge of each image (some sources have a dark line there) */
.gallery .tile img { transform: scale(1.03); transform-origin: 50% 100%; }
.gallery .tile.cover-trim img { transform: none; }
@media (hover: hover) and (pointer: fine) { .gallery .art-card:hover .tile img { transform: scale(1.075); } }
.gallery .tile { box-shadow: 0 0 0 1px rgba(20, 30, 50, .08), 0 18px 40px -22px rgba(20, 30, 50, .35); }

/* ---------- Calm logo covers: brand color, slow drifting glow, film grain, light sweep on hover ---------- */
.cover-art.calm { position: relative; overflow: hidden; }
.cover-art.calm .mark { position: relative; z-index: 2; height: auto; mix-blend-mode: screen; transition: transform .8s var(--ease-soft); }
.cover-art.calm.sandbox .mark { width: 22%; mix-blend-mode: normal; }
.cover-art.calm.provost .mark { width: 44%; }
.cover-art.calm.rmgp .mark { width: 30%; }
.project-card:hover .cover-art.calm .mark { transform: scale(1.04); }
.project-card:hover .cover-art.calm { transform: none; }

.cover-art.calm .glow { position: absolute; z-index: 1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.cover-art.calm .g1 { left: -12%; top: -30%; animation: drift1 16s ease-in-out infinite alternate; }
.cover-art.calm .g2 { right: -14%; bottom: -36%; animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(28%, 22%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-24%, -18%) scale(.9); } }
.cover-art.calm.sandbox { background: #1f4ee5; }
.cover-art.calm.sandbox .g1 { background: #5c86ff; }
.cover-art.calm.sandbox .g2 { background: #0d2fb5; opacity: .7; }
.cover-art.calm.provost { background: #050505; }
.cover-art.calm.provost .g1 { background: #c8102e; opacity: .28; }
.cover-art.calm.provost .g2 { background: #3a3a3a; opacity: .5; }
.cover-art.calm.rmgp { background: #050505; }
.cover-art.calm.rmgp .g1 { background: #9aa3b5; opacity: .34; }
.cover-art.calm.rmgp .g2 { background: #e2393c; opacity: .1; }

/* A soft band of light that sweeps across once on hover */
.cover-art.calm .sheen { position: absolute; inset: -20%; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-70%); opacity: 0; }
.project-card:hover .cover-art.calm .sheen { animation: sweep 1.3s var(--ease-soft) forwards; }
@keyframes sweep { 0% { transform: translateX(-70%); opacity: 1; } 100% { transform: translateX(70%); opacity: 1; } }

/* Film grain */
.cover-art.calm .grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .cover-art.calm .glow { animation: none; } }

/* ---------- Covers: one frame over a soft color, cropped by the edge, with a round logo badge (after Jo Choi) ---------- */
.cover .frame { position: absolute; z-index: 1; overflow: hidden; border-radius: 10px; background: #fff;
  box-shadow: 0 30px 60px -28px rgba(15, 25, 45, .45), 0 2px 8px rgba(15, 25, 45, .1);
  transition: transform .6s var(--ease-spring); }
.cover .frame img, .cover .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .f-wide  { width: 80%; aspect-ratio: 16 / 9; left: 10%; top: 19%; }
.cover .f-wide.f-right { left: auto; right: -6%; top: 22%; width: 88%; }
.cover .f-square { width: 58%; aspect-ratio: 1; left: 21%; top: 18%; }
.cover .f-tall { width: 46%; aspect-ratio: 816 / 1056; left: 27%; top: 16%; }
.project-card:hover .cover .frame { transform: translateY(-10px) scale(1.015); }

.cover .badge { position: absolute; z-index: 3; left: 5%; bottom: 7%; width: 13%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(10, 20, 40, .45);
  transition: transform .5s var(--ease-spring); }
.project-card:hover .cover .badge { transform: rotate(-12deg) scale(1.1); }
.cover .badge img { width: 54%; height: auto; }
.b-notability { background: #5AABF0; }
.b-sandbox { background: #1f4ee5; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 10px 24px -10px rgba(10, 20, 40, .45) !important; }
.b-provost { background: #c8102e; }
.b-provost img { filter: invert(1); width: 46%; }
.b-rmgp { background: #0b0b0b; }
.b-rmgp .dots { display: flex; }
.b-rmgp .dots i { width: 1.15em; height: 1.15em; border-radius: 50%; display: block; font-size: clamp(10px, 1.6vw, 18px); }
.b-rmgp .dots i:first-child { background: #e2393c; }
.b-rmgp .dots i:last-child { background: #a7adb8; margin-left: -.35em; }

.cover .f-card { width: 74%; aspect-ratio: 3 / 2; left: 13%; top: 13%; }
/* Sandbox: the mascot's head peeks up from the bottom edge, and rises a little more on hover */
.cover .peek { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 66%; height: auto;
  transform: translate(-50%, 22%); transition: transform .65s var(--ease-spring); }
.project-card:hover .cover .peek { transform: translate(-50%, 8%) rotate(-2deg); }
/* Sandbox: the mascot is tucked in from the left edge; on hover he leans out and tilts */
.cover .peek-side { position: absolute; z-index: 1; left: 0; bottom: 0; height: 92%; width: auto;
  transform-origin: 0% 100%; transform: translateX(-14%) rotate(0deg); transition: transform .7s var(--ease-spring); }
.project-card:hover .cover .peek-side { transform: translateX(4%) rotate(6deg); }

/* Tighter top of project pages so the first piece of work shows in the first screen */
.overview + .section { margin-top: 56px; }

/* ==========================================================================
   Homepage covers, one theme: a soft gradient field with the work shown where
   it lived (phones for social), or the campaign video full-bleed.
   ========================================================================== */
.cover { container-type: inline-size; }
.cover.full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-img); }
.project-card:hover .cover.full video { transform: scale(1.025); }

.cover.grad::before { content: ""; position: absolute; inset: -20%; z-index: 0; background: var(--g); filter: blur(28px); animation: gradDrift 18s ease-in-out infinite alternate; }
@keyframes gradDrift { to { transform: translate(4%, -3%) rotate(6deg) scale(1.06); } }
.g-sandbox { background: #2a57e8; --g: radial-gradient(40% 55% at 18% 22%, #9fb8ff 0, transparent 70%), radial-gradient(45% 60% at 85% 80%, #6e8dff 0, transparent 70%), radial-gradient(50% 60% at 70% 10%, #1b3fcf 0, transparent 70%), linear-gradient(135deg, #3d68f2, #1f4ee5); }
.g-provost { background: #141416; --g: radial-gradient(42% 60% at 16% 18%, rgba(200,16,46,.85) 0, transparent 70%), radial-gradient(45% 60% at 88% 88%, rgba(200,16,46,.55) 0, transparent 70%), radial-gradient(40% 55% at 85% 12%, #3a3b40 0, transparent 70%), linear-gradient(135deg, #2a2a2e, #0e0e10); }
.g-rmgp { background: #d92d31; --g: radial-gradient(42% 55% at 18% 18%, #ff9a85 0, transparent 70%), radial-gradient(45% 60% at 88% 85%, #ff5a4f 0, transparent 70%), radial-gradient(40% 55% at 85% 10%, #9a1216 0, transparent 70%), linear-gradient(135deg, #ef4a43, #c51f27); }
.cover.grad > *:not(.view) { position: relative; z-index: 1; }
.cover.grad .frame { position: absolute; }
@media (prefers-reduced-motion: reduce) { .cover.grad::before { animation: none; } }

/* Two phones, side by side (after Esther Lee) */
.phones { position: absolute !important; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5cqw; }
.phone { --pw: 25cqw; width: var(--pw); aspect-ratio: 9 / 19.5; padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .17);
  background: linear-gradient(145deg, #fbfbfc, #e6e7ea); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 50px -20px rgba(10,20,50,.5), inset 0 0 0 1px rgba(255,255,255,.8);
  font-size: calc(var(--pw) * .052); color: #111; transition: transform .6s var(--ease-spring); }
.phone:nth-child(2) { transition-delay: .05s; }
.project-card:hover .phone:nth-child(1) { transform: translateY(-2.5cqw) rotate(-2deg); }
.project-card:hover .phone:nth-child(2) { transform: translateY(-2.5cqw) rotate(2deg); }
.phone .scr { height: 100%; border-radius: calc(var(--pw) * .14); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone .sb { display: flex; align-items: center; justify-content: space-between; padding: .55em 1.2em .2em; font-size: .78em; }
.phone .sb b { font-weight: 600; }
.phone .sb .island { width: 34%; height: 1.5em; border-radius: 1em; background: #111; }
.phone .sb i { width: 1.9em; height: .7em; border-radius: .2em; border: 1px solid #111; }
.phone svg { width: 1.3em; height: 1.3em; }
.ig-top { display: flex; align-items: center; justify-content: space-between; padding: .35em .8em .45em; }
.ig-logo { font: 1.45em/1 "Grand Hotel", cursive; }
.ig-top .ic { display: flex; gap: .7em; }
.post-h { display: flex; align-items: center; gap: .45em; padding: .4em .8em; }
.av { width: 1.9em; height: 1.9em; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: #e9ebef; overflow: hidden; }
.av img { width: 62%; height: auto; }
.av-sb { background: #1f4ee5; box-shadow: 0 0 0 .14em #fff, 0 0 0 .26em #e1306c; }
.nm { font-weight: 600; font-size: .9em; }
.post-img { width: 100%; overflow: hidden; background: #eee; }
.post-img.sq { aspect-ratio: 1; }
.post-img.wide { aspect-ratio: 1200 / 628; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acts { display: flex; align-items: center; gap: .7em; padding: .55em .8em .3em; }
.acts .sp { flex: 1; }
.bars { padding: .25em .8em; display: grid; gap: .35em; }
.bars i { height: .5em; border-radius: .3em; background: #e3e5ea; display: block; }
.scr.li { background: #f3f2ef; }
.li-top { display: flex; align-items: center; gap: .5em; padding: .35em .7em .5em; background: #fff; }
.av-me { width: 1.5em; height: 1.5em; background: #d9dde3; }
.search { flex: 1; height: 1.4em; border-radius: .35em; background: #eef3f8; }
.li-in { width: 1.45em; height: 1.45em; border-radius: .25em; background: #0a66c2; color: #fff; font: 700 .95em/1.45em Arial, sans-serif; text-align: center; }
.li-card { background: #fff; margin-top: .45em; padding-bottom: .4em; }
.av-neu { background: #c8102e; border-radius: .3em; }
.av-neu img { filter: invert(1); width: 55%; }
.nm2 { display: grid; gap: .25em; font-size: .8em; }
.nm2 i { display: block; width: 5em; height: .45em; border-radius: .3em; background: #e3e5ea; }
.li-acts { justify-content: space-around; }
.li-acts span { width: 2.4em; height: .5em; border-radius: .3em; background: #e3e5ea; }
.li-card.ghost .nm2 i:first-child { width: 7em; }

/* Notability: footage, then the logo on Active Blue (after Jo Choi) */
.nb-card { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(90, 171, 240, .82); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .9s cubic-bezier(.4,0,.2,1); }
.nb-card img { width: 50%; height: auto; transform: translateY(8px) scale(.97); opacity: 0; transition: transform 1s var(--ease-soft) .2s, opacity .7s ease .2s; }
.nb-reel.nb-show .nb-card { opacity: 1; }
.nb-reel.nb-show .nb-card img { transform: none; opacity: 1; }

/* Sandbox phones: one post each, with the app tab bar at the bottom */
.phone .scr { position: relative; }
.bars.dim i { background: #eef0f3; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .7em .6em 1.1em; border-top: 1px solid #eee; background: #fff; }
.tabbar i { width: 1.15em; height: 1.15em; border-radius: .3em; border: .14em solid #111; }

/* Provost: one LinkedIn post on a laptop */
.laptop-m { position: absolute !important; left: 50%; top: 13%; width: 80%; translate: -50% 0; font-size: 1.05cqw; transition: transform .6s var(--ease-spring); }
.project-card:hover .laptop-m { transform: translateY(-1.5cqw); }
.laptop-m .lid { background: #1b1b1d; border-radius: 1.4em 1.4em .4em .4em; padding: 1em; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.laptop-m .lscr { aspect-ratio: 16 / 10; background: #f4f2ee; border-radius: .3em; overflow: hidden; display: flex; flex-direction: column; color: #111; }
.laptop-m .base { height: 1.6em; margin: 0 -6%; background: linear-gradient(#d9dbe0, #a9adb5); border-radius: 0 0 2.2em 2.2em / 0 0 1.4em 1.4em; }
.li-nav { display: flex; align-items: center; gap: 1em; padding: .7em 3em; background: #fff; border-bottom: 1px solid #e6e6e6; }
.li-nav .search { width: 30%; flex: none; height: 2em; }
.nav-ic { margin-left: auto; display: flex; gap: 2em; }
.nav-ic i { width: 1.6em; height: 1.6em; border-radius: .35em; background: #c9cdd3; display: block; }
.li-body { flex: 1; display: grid; grid-template-columns: 22% 1fr 22%; gap: 1.6em; padding: 1.6em 3em 0; min-height: 0; }
.li-side > div { background: #fff; border-radius: .7em; margin-bottom: 1.2em; border: 1px solid #e6e6e6; padding-bottom: 1em; overflow: hidden; }
.li-prof { display: grid; justify-items: center; gap: .6em; }
.li-prof .banner { width: 100%; height: 3.4em; background: #d6dde6; }
.li-prof .av-me { width: 4em; height: 4em; margin-top: -2.4em; border: .3em solid #fff; }
.li-side i, .li-box i { display: block; height: .8em; width: 70%; border-radius: .4em; background: #e3e5ea; margin: .6em auto 0; }
.li-feed { min-height: 0; overflow: hidden; }
.li-feed .li-card { margin: 0; border-radius: .7em; border: 1px solid #e6e6e6; font-size: 1.3em; padding-bottom: .5em; }

/* ---------- Logo: the bear steps through 4 hand-drawn frames, 0.3s each (1 2 3 4 3 2) ---------- */
.logo.bear { width: 64px; height: auto; aspect-ratio: 404 / 310; }
.bear-f { position: relative; display: block; width: 100%; height: 100%; }
.bear-f img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: 1.8s step-end infinite; }
.bear-f img:nth-child(1) { opacity: 1; animation-name: blink1; }
.bear-f img:nth-child(2) { animation-name: blink2; }
.bear-f img:nth-child(3) { animation-name: blink3; }
.bear-f img:nth-child(4) { animation-name: blink4; }
@keyframes blink1 { 0% { opacity: 1; } 16.667% { opacity: 0; } }
@keyframes blink2 { 0% { opacity: 0; } 16.667% { opacity: 1; } 33.333% { opacity: 0; } 83.333% { opacity: 1; } }
@keyframes blink3 { 0% { opacity: 0; } 33.333% { opacity: 1; } 50% { opacity: 0; } 66.667% { opacity: 1; } 83.333% { opacity: 0; } }
@keyframes blink4 { 0% { opacity: 0; } 50% { opacity: 1; } 66.667% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bear-f img { animation: none; } .bear-f img:nth-child(1) { opacity: 1; } }
@media (max-width: 640px) { .logo.bear { width: 54px; } }

/* Full-width layout: comfortable line lengths for text, everything else uses the wide column */
.section > p, .lede { max-width: 860px; }
.overview { max-width: 1040px; }
.split > .text p { max-width: 620px; }
.closing p { max-width: 900px; }
@media (max-width: 1200px) { :root { --gutter: 48px; } }

/* ==========================================================================
   Refinement pass (after Carolyn Hoa): fewer sizes, lighter weights, two text
   colors (near-black + soft grey), neutral surfaces, hairlines over boxes.
   ========================================================================== */
:root { --ink: #0a0a0a; --ink-2: #6e6e73; --muted: #86868b; --line: #ececee; --panel: #f5f5f7; --panel-line: #e6e6ea; --chip: transparent; }
body { font-size: 15px; line-height: 1.7; }

/* Headings: smaller, lighter, tighter */
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(36px, 4.2vw, 48px); line-height: 1.1; }
.hero p { font-size: 16px; color: var(--ink-2); margin-top: 14px; }
.hero .eyebrow { color: var(--muted); }
.title-row h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.section h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.3; }
.overview { font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; line-height: 1.6; color: var(--ink); }
.about-intro h2 { font-size: clamp(26px, 2.6vw, 32px); }
.about-intro p { font-size: 16px; }

/* Labels: grey, not blue */
.eyebrow, .section .eyebrow { color: var(--muted); font-weight: 500; letter-spacing: .1em; font-size: 11px; }
.label { color: var(--muted); font-weight: 500; }
.org { color: var(--muted); font-weight: 500; }
.meta dt { color: var(--muted); font-weight: 500; }
.meta dd { font-size: 15px; }

/* Body copy: soft grey, one size */
.section > p, .lede, .label + p, .card-desc, .caption, .about-intro p { color: var(--ink-2); font-size: 15px; }
.closing p { font-size: 16px; color: var(--ink-2); }

/* Project cards on the homepage */
.card-meta { margin-top: 18px; }
.card-meta h2 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.card-desc { margin-top: 2px; }
.chips { gap: 0; margin-top: 4px; }
.chip { padding: 0; border-radius: 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.chip + .chip::before { content: "·"; margin: 0 6px; color: var(--muted); }
a.chip:hover { background: none; color: var(--ink); }
.projects { gap: 64px 40px; }

/* Neutral surfaces instead of blue boxes */
.panel { background: var(--panel); }
.switcher { background: #f2f2f4; }
.switcher a { font-size: 14px; padding: 8px 18px; }
.tabs { border-color: var(--line); }
.tabs .pill { background: #f2f2f4; }

/* Experience list: one quiet line per job */
.job { padding: 16px 0; }
.job h3 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.job .role { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.job .when { font-size: 14px; }
.job .when a { color: var(--ink); font-size: 13px; }

/* Footer nav + small links */
.page-nav { font-size: 14px; }
.next-row .big { font-size: 17px; font-weight: 500; }
.arrow-link { font-size: 15px; }
.arrow-link:hover { color: var(--ink); opacity: .6; }
.job { grid-template-columns: 1fr 1fr 260px; }
.job .when { display: flex; justify-content: flex-end; align-items: baseline; gap: 18px; }
.job .when a { margin-top: 0; order: -1; }
@media (max-width: 640px) { .job .when { justify-content: flex-start; } }

/* Type scale, close to Erica Lee's: small and flat (12–32px), hierarchy from weight and spacing */
.hero h1 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; }
.hero p { font-size: 15px; margin-top: 10px; }
.title-row h1 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }
.section h2 { font-size: 20px; line-height: 1.35; }
.overview { font-size: 18px; line-height: 1.6; }
.about-intro h2 { font-size: 24px; }
.about-intro p { font-size: 15px; }
.meta dd, .job h3, .job .role { font-size: 14px; }
.eyebrow, .section .eyebrow, .label, .meta dt, .org { font-size: 11px; }
.card-meta h2 { font-size: 16px; }
.card-desc { font-size: 14px; }
.art-meta h3 { font-size: 16px; }
.closing p { font-size: 15px; }
.next-row .big { font-size: 16px; }
.switcher { margin-top: 24px; }
.projects { margin-top: 48px; }

/* Softer, less rounded corners everywhere */
:root { --radius: 8px; }
.cover, .media-frame, .yt-loop, .about-intro .photo, .panel { border-radius: 8px; }
.tile, .panel .tile, .gallery .tile, .art-card .tile, .book .tile { border-radius: 6px; }
.cover .frame { border-radius: 6px; }
.lightbox img { border-radius: 6px; }

/* Play: everything visible in the first screen */
.gallery { margin-top: 36px; grid-template-columns: 300px 300px; gap: 0 56px; }
.gallery .col { gap: 32px; }
.gallery .col:first-child { padding-top: 0; }

/* About: smaller photo, experience list higher */
.about-intro { grid-template-columns: 1fr 340px; gap: 64px; margin-top: 48px; }
.about-intro + .section, .about-intro ~ .section { margin-top: 64px; }
@media (max-width: 960px) { .about-intro .photo { max-width: 340px; } }
/* Play: the three pieces sit in one row, captions stacked so they never wrap awkwardly */
.gallery { grid-template-columns: repeat(3, minmax(0, 300px)); gap: 40px; align-items: start; }
.art-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; }
.art-meta span { text-align: left; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
/* About: experience sits in the text column under the intro; the photo stays beside it */
.about-intro .exp { margin-top: 56px; }
.about-intro .exp h2 { margin-top: 8px; font-size: 20px; }
.about-intro .exp .job { grid-template-columns: 1.1fr 1.3fr auto; gap: 16px; }
.about-intro .photo { position: sticky; top: 32px; }

/* ==========================================================================
   Polish pass: calmer motion, aligned experience list, matching corners,
   narrower reading column on project pages (like Erica Lee / Carolyn Hoa)
   ========================================================================== */

/* Motion: no bounce or overshoot, just a soft fade and rise */
@media (prefers-reduced-motion: no-preference) {
  html.ld-in .site-header { animation: fadeOnly .8s cubic-bezier(.22, 1, .36, 1) both; }
  html.ld-in [data-rise] { animation: riseCalm .9s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.08s + var(--i, 0) * 60ms); }
  .rv.in, .rv-pop.in { animation: riseCalm .9s cubic-bezier(.22, 1, .36, 1) var(--rd, 0s) both; }
}
@keyframes riseCalm { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.cover .frame, .phone, .laptop-m, .cover .peek-side { transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important; transition-duration: .7s !important; }
.ig-pill { transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.switcher .pill, .tabs .pill { transition: transform .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1); }

/* Experience: three clean columns, company and role left, dates right */
.about-intro .exp .job { grid-template-columns: 38% 1fr auto; gap: 24px; align-items: baseline; }
.job .when { display: block; text-align: right; white-space: nowrap; }

/* Work / Play / About switcher and tabs: same gentle corners as the rest */
.switcher { border-radius: 8px; }
.switcher a, .switcher .pill { border-radius: 6px; }
.tabs { border-radius: 8px; }
.tabs a, .tabs .pill { border-radius: 6px; }

/* No "View project" chip on the covers */
.cover .view { display: none; }

/* Project pages: a narrower reading column with wider side margins */
:root { --col: 1000px; }
.section > p, .lede, .overview { max-width: none; }

/* About: a comfortable reading width for the intro and the experience list */
.about-intro { grid-template-columns: minmax(0, 600px) 340px; justify-content: space-between; }
@media (max-width: 1100px) { .about-intro { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }

/* Question of the Week: stays inside the page column, with soft faded edges */
.marquee { margin-right: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.about-intro { justify-content: start; gap: 96px; }
/* About: main photo framed on her face; a small "outside of work" pair under the intro */
.about-intro .photo img { object-position: 55% 45%; }
.life { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.life .tile { aspect-ratio: 4 / 3; }
/* About: all photos in the right column */
.about-intro .photos { display: grid; gap: 12px; align-self: start; }
.about-intro .photo { position: static; }
.about-intro .photos .life { margin-top: 0; }
/* About: a small even photo gallery in the right column */
.about-intro { grid-template-columns: minmax(0, 600px) minmax(0, 420px); }
.gallery-me { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: start; }
.gallery-me .tile { aspect-ratio: 3 / 4; }
@media (max-width: 960px) { .gallery-me { grid-template-columns: repeat(3, 1fr); } }
.about-intro .exp .job { grid-template-columns: 30% 1fr auto; gap: 16px; }
.about-intro .exp .job .role { white-space: nowrap; }
@media (max-width: 1100px) { .about-intro .exp .job .role { white-space: normal; } }
/* Experience: company with the role underneath, date on the right */
.about-intro .exp .job { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 24px; align-items: center; padding: 14px 0; }
.about-intro .exp .job h3 { grid-column: 1; grid-row: 1; }
.about-intro .exp .job > div:not(.when) { grid-column: 1; grid-row: 2; }
.about-intro .exp .job .role { white-space: normal; font-size: 13px; }
.about-intro .exp .job .when { grid-column: 2; grid-row: 1 / span 2; }

/* About, final layout: text and experience span the column; photos below as a staggered gallery */
.about-intro { display: block; max-width: none; }
.about-intro > div:first-child { max-width: none; }
.about-intro p { max-width: 880px; }
.about-intro .exp .job { grid-template-columns: 1fr 1fr auto; grid-template-rows: auto; gap: 24px; padding: 14px 0; align-items: baseline; }
.about-intro .exp .job h3, .about-intro .exp .job > div:not(.when), .about-intro .exp .job .when { grid-row: auto; grid-column: auto; }
.about-intro .exp .job .role { font-size: 14px; white-space: normal; }
.life-gallery { margin-top: 72px; }
.masonry { column-count: 3; column-gap: 12px; margin-top: 16px; }
.g-item { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: #eee; border-radius: 6px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) { .g-item:hover img { transform: scale(1.02); } }
@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 640px) { .about-intro .exp .job { grid-template-columns: 1fr auto; } .about-intro .exp .job > div:not(.when) { grid-column: 1; } }
/* Gallery rows: every photo keeps its own shape (landscape stays landscape), rows share one height */
.masonry { column-count: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.g-item { margin: 0; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 300px); aspect-ratio: var(--ar); }
.g-item img { height: 100%; object-fit: cover; }
@media (max-width: 640px) { .g-item { flex-basis: calc(var(--ar) * 160px); } }

/* About (final): text + experience on the left at one width; a zig-zag photo column on the right */
.about-intro { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 80px; align-items: start; margin-top: 40px; }
.about-intro p { max-width: none; }
.about-intro .exp .job { grid-template-columns: 250px 1fr auto; gap: 16px; align-items: baseline; padding: 13px 0; }
.about-intro .exp .job .role { white-space: nowrap; font-size: 14px; }
.about-intro .exp .job .when { text-align: right; }
.zig { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin-left: auto; width: 100%; }
.z-item { display: block; padding: 0; border: 0; background: #eee; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.z-item img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.z-item.l { width: 100%; }
.z-item.p { width: 62%; }
.z-item.p:nth-of-type(4n+2) { margin-left: auto; }
.z-item.p:nth-of-type(4n) { margin-right: auto; }
@media (hover: hover) and (pointer: fine) { .z-item:hover img { transform: scale(1.02); } }
@media (max-width: 1100px) { .about-intro { grid-template-columns: 1fr; } .zig { max-width: none; flex-direction: row; flex-wrap: wrap; } .z-item.l, .z-item.p { width: calc(50% - 8px); margin: 0; } .about-intro .exp .job .role { white-space: normal; } }
/* About photo slider: one landscape photo at a time, swipe or drag, a thin progress bar beneath */
.slider { width: 100%; max-width: 560px; margin-left: auto; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 6px; scrollbar-width: none; cursor: grab; aspect-ratio: 4 / 3; background: #eee; }
.slides::-webkit-scrollbar { display: none; }
.slides.drag { cursor: grabbing; scroll-snap-type: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }
.slider-bar { position: relative; height: 3px; margin-top: 14px; border-radius: 2px; background: #e6e6ea; overflow: hidden; cursor: pointer; }
.slider-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #0a0a0a; transition: transform .25s ease-out; }
@media (max-width: 1100px) { .slider { max-width: none; margin-left: 0; } }
/* Slider segments, Stories-style */
.slider-dots { display: flex; gap: 6px; margin-top: 14px; }
.slider-dots button { flex: 1; height: 3px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #e3e3e8; transition: background .3s ease; }
.slider-dots button:hover::before { background: #c7c7cc; }
.slider-dots button[aria-selected="true"]::before { background: #0a0a0a; }
.slides[data-side="next"] { cursor: e-resize; }
.slides[data-side="prev"] { cursor: w-resize; }
/* About: keep the photo slider close to the text */
.about-intro { gap: 64px; }
.slider { margin-left: 0; max-width: 520px; }
/* About: the photo slider fills the whole right column */
.slider { max-width: none; width: 100%; }
/* About: slider between the two earlier sizes */
.slider { max-width: 600px; }
/* About: slightly smaller slider, centred in the right column so it sits beside the intro only */
.slider { max-width: 480px; margin-left: auto; margin-right: auto; }

/* Embedded Heyzine flipbooks */
.flip { position: relative; margin-top: 24px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #f2f2f4; }
.flip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.flip-note { margin-top: 12px; font-size: 14px; }
.flip-note .arrow-link { font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .flip { aspect-ratio: 3 / 4; } }

/* Home: tags as their own small boxes again */
.chips { gap: 6px; margin-top: 10px; }
.chip { padding: 4px 9px; border-radius: 5px; background: #f2f2f4; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.chip + .chip::before { content: none; }
a.chip:hover { background: #e8e8ec; color: var(--ink); }

/* Play: no zoom on hover; the Travelogue cover shows in full inside its frame */
.gallery .tile img, .gallery .art-card:hover .tile img { transform: none !important; }
.gallery .tile.cover-trim { background: #f2f2f4; }
.gallery .tile.cover-trim img { object-fit: contain; padding: 22px; box-sizing: border-box; }
/* Play: trim the thin dark line at the top of the video still and the drawing; cards lift gently on hover */
.gallery .tile:not(.cover-trim) img { transform: scale(1.04) !important; transform-origin: 50% 100%; }
.gallery .art-card .tile { transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) {
  .gallery .art-card:hover .tile { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(20,30,50,.08), 0 26px 50px -24px rgba(20,30,50,.4); }
}

/* Contact footer: Erica's grey band and one-line sign-off, Carolyn's plain text links */
.site-footer { margin-top: 120px; padding: 64px 0 28px; background: #f7f7f8; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.foot-hi { font: 500 15px/1.4 Figtree, sans-serif; color: var(--ink-2); }
.foot-line { display: inline-block; margin-top: 8px; font: 600 clamp(22px, 2.2vw, 28px)/1.25 Figtree, sans-serif; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.foot-mail { white-space: nowrap; }
.foot-line .arr, .foot-link .arr { display: inline-block; font-size: .8em; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.foot-line:hover .foot-mail { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.foot-line:hover .arr, .foot-link:hover .arr { transform: translate(2px, -2px); }
.foot-side { display: flex; gap: 28px; }
.foot-link { font: 500 15px/1.4 Figtree, sans-serif; color: var(--ink-2); text-decoration: none; transition: color .3s; }
.foot-link:hover { color: var(--ink); }
.foot-copy { margin-top: 56px; text-align: center; font: 500 12px/1 Manrope, sans-serif; color: var(--muted); }
@media (max-width: 700px) { .site-footer { margin-top: 88px; padding-top: 44px; } .foot-copy { margin-top: 40px; } }

/* Main nav in the header's top-right corner (replaces the hero switcher) */
.top-nav { display: flex; gap: 32px; font: 500 15px/1 Figtree, sans-serif; }
.top-nav a { color: var(--ink-2); padding: 4px 0; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1.5px; background-image: linear-gradient(currentColor, currentColor); }
@media (max-width: 700px) { .top-nav { gap: 22px; font-size: 14px; } }
/* About: keep the intro close to its heading so they read as one block */
.hero-about .about-text h1 + p { margin-top: 28px; }
.about-text p { line-height: 1.7; }
.hero-about .about-intro { margin-top: 0; }
