/* ==========================================================================
   Liza "Zai" Litten — portfolio
   Dark charcoal base with muted plum and oxblood accents.
   ========================================================================== */

:root {
  --bg: #131215;
  --bg-deep: #0c0b0d;
  --surface: #1c1a1f;
  --surface-2: #26232a;
  --text: #eeeaf2;
  --text-soft: #bdb5c6;
  --text-muted: #857d8f;
  --purple: #9a85bd;
  --purple-deep: #46355f;
  --red: #b8423c;
  --red-text: #cc5f54;
  --red-deep: #6e231f;
  --line: rgba(238, 234, 242, 0.1);
  --border: rgba(238, 234, 242, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint vignette + film grain for a printed, painterly texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(154, 133, 189, 0.07), transparent 70%),
    radial-gradient(50vw 50vh at -10% 110%, rgba(184, 66, 60, 0.06), transparent 70%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.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 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

::selection { background: var(--purple-deep); color: #fff; }

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

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 18, 21, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: var(--surface-2); color: var(--text); }

.nav-links a[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}

.nav-links .nav-resume {
  border: 1.5px solid var(--border);
  color: var(--text);
  margin-left: 6px;
}

.nav-links .nav-resume:hover { border-color: var(--text-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-resume { margin: 8px 0 0; text-align: center; }
}

/* ---------- Intro / header ---------- */

.intro {
  padding: clamp(24px, 4vw, 40px) 0 clamp(20px, 3vw, 32px);
}

.intro .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 10px;
}

.intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.role {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--text-soft);
  margin: 12px 0 0;
  padding-bottom: 8px;
}

/* Fraunces' italic ampersand reads like an "e", so use the body face */
.role .amp { font-family: var(--font-body); font-style: normal; font-size: 0.9em; }

/* hand-drawn brush underline */
.role::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: 0;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%239a85bd'/%3E%3Cstop offset='1' stop-color='%239a85bd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 13 C 40 5, 90 17, 130 9 S 185 6, 197 11' fill='none' stroke='url(%23g)' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.intro-text p {
  margin: 0 0 16px;
  color: var(--text-soft);
  max-width: 46ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}

.text-link:hover { gap: 12px; color: var(--red-text); }

@media (max-width: 760px) {
  .intro .wrap { grid-template-columns: 1fr; align-items: start; gap: 18px; }
}

/* ---------- Section headings ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Featured project ---------- */

.featured { padding: 8px 0 clamp(56px, 8vw, 96px); }

.feature-card {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--purple-deep);
}

.feature-media {
  position: relative;
  min-height: 100%;
  background: var(--bg-deep);
}

.feature-media > .feature-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.feature-logo {
  position: absolute;
  left: 5%;
  top: 7%;
  width: clamp(110px, 18%, 180px);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.feature-body {
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-body .eyebrow { margin: 0; }

.feature-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.feature-body p { margin: 0; color: var(--text-soft); }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.95rem;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 3px;
}

.facts dd { margin: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text); }
.btn-primary:hover { border-color: var(--text-soft); }

.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* highlight strip under the featured card */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(20px, 3vw, 32px);
}

.highlight {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
}

.highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* a single icon cut from an asset sheet, shown whole on its sheet colour */
.highlight.icon { background: #808080; }
.highlight.icon img { object-fit: contain; object-position: 50% 50%; padding: 4%; }

.highlight.logo-tile {
  background: radial-gradient(circle at 50% 40%, #2e2638, var(--surface) 72%);
}

.highlight.logo-tile img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 60%;
  object-fit: contain;
}

.highlight figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(12, 11, 13, 0.8);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlight:nth-child(3) { display: none; }
}

/* ---------- Project cards ---------- */

.projects {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--purple);
  box-shadow: 6px 6px 0 var(--purple-deep);
}

.project-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .thumb img { transform: scale(1.04); }

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body .genre {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0;
}

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.card-body .blurb {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card-body .facts {
  font-size: 0.88rem;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}

.card-body .more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, gap 0.2s;
}

.project-card:hover .more {
  background: var(--surface-2);
  border-color: var(--text-soft);
  gap: 12px;
}

/* ==========================================================================
   Project pages
   ========================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover { color: var(--text); gap: 12px; }

.project-hero { padding: clamp(16px, 3vw, 28px) 0 clamp(40px, 6vw, 64px); }

.project-hero .eyebrow { margin-bottom: 8px; }

.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.project-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.project-lede {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}

.project-lede:last-child { margin-bottom: 0; }

/* facts as a row of small stat blocks */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0 0 clamp(24px, 4vw, 40px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-row > div {
  flex: 1 1 160px;
  background: var(--surface);
  padding: 16px 20px;
}

.stat-row dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-row dd { margin: 0; font-weight: 500; }

.project-links { display: flex; flex-wrap: wrap; gap: 10px; }

.project-cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 10px 10px 0 var(--purple-deep);
  background: var(--bg-deep);
}

.project-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 760px) {
  .project-head { grid-template-columns: 1fr; align-items: start; }
}

.project-cover.contain {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg-deep) 75%);
}

.project-cover.contain.logo { min-height: clamp(260px, 36vw, 440px); }

.project-cover.contain.logo img { width: min(60%, 320px); }

.project-cover.contain img {
  width: auto;
  max-height: min(78vh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* ---------- Finished work / Process switch ---------- */

.view-switch {
  position: sticky;
  top: 64px;
  z-index: 40;
  padding: 14px 0;
  background: rgba(19, 18, 21, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.view-switch .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.view-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.view-tabs button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.view-tabs button:hover { color: var(--text); }

.view-tabs button[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
}

.view-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.view-panel[hidden] { display: none; }

.view-panel > .project-section:first-child { border-top: 0; }

/* short context box under the stats (e.g. who a project was made for) */
.project-note {
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 20px 24px;
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
}

.project-note h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.project-note p { margin: 0 0 12px; color: var(--text-soft); }

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

.project-section {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project-section .section-head { align-items: center; }

.section-intro {
  margin: -6px 0 24px;
  color: var(--text-soft);
  max-width: 64ch;
}

/* video embed */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.gallery.cols-1 { grid-template-columns: 1fr; }
.gallery.single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.gallery.compact { max-width: 760px; margin-inline: auto; }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }

.gallery { align-items: start; }

.gallery figure { margin: 0; }

.gallery .wide { grid-column: 1 / -1; }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.zoom:hover,
.zoom:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--purple);
  box-shadow: 6px 6px 0 var(--purple-deep);
  outline: none;
}

.zoom img { width: 100%; height: auto; }

/* small assets (icons, sprites, UI widgets) sit centred on a panel */
.zoom.contain {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 45%, var(--surface-2), var(--surface) 75%);
}

/* fit inside the panel with a margin, never larger than the file itself */
.zoom.contain img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: scale-down;
}

.zoom.pixel img { image-rendering: pixelated; }

/* light panel for dark-on-transparent artwork (e.g. a black logo) */
.zoom.contain.light { background: #e9e5ee; }

/* portrait piece shown beside a poster: same frame shape, no padding */
.zoom.contain.match-poster { aspect-ratio: 848 / 1200; background: #808080; }
.zoom.contain.match-poster img { inset: 0; width: 100%; height: 100%; object-fit: contain; }

.gallery figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.gallery figcaption strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* collapsible "see all" block under a curated selection */
.see-all { margin-top: clamp(20px, 3vw, 32px); }

.see-all summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s;
}

.see-all summary::-webkit-details-marker { display: none; }

.see-all summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.see-all[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.see-all summary:hover { border-color: var(--text-soft); }

.see-all .count { font-weight: 400; color: var(--text-muted); }

.see-all > .gallery { margin-top: clamp(20px, 3vw, 28px); }

/* design-notes toggle (swaps images for their annotated versions) */
.notes-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
}

.notes-toggle .switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.notes-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.2s, background 0.2s;
}

.notes-toggle[aria-pressed="true"] .switch { background: var(--purple-deep); }
.notes-toggle[aria-pressed="true"] .switch::after { transform: translateX(16px); background: var(--text); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 7, 9, 0.94);
  color: var(--text);
}

.lightbox::backdrop { background: transparent; }

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  padding: 14px 20px 22px;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(28, 26, 31, 0.8);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lightbox button:hover { border-color: var(--text-soft); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Previous / next project ---------- */

.project-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.pager-link:hover { border-color: var(--text-soft); transform: translateY(-2px); }

.pager-link span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pager-link strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.pager-link.next { text-align: right; }

/* ==========================================================================
   Simple page intro (Art, About)
   ========================================================================== */

.page-intro { padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }

.page-intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.page-intro .lede { color: var(--text-soft); max-width: 60ch; margin: 0 0 16px; }

.page-intro .note { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 24px; }

.page-intro .stat-row { margin-bottom: 0; max-width: 760px; }

/* ==========================================================================
   Art gallery
   ========================================================================== */

.art-gallery { padding-bottom: clamp(48px, 7vw, 88px); }

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2.5vw, 28px);
}

@media (max-width: 900px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .art-grid { grid-template-columns: 1fr; } }

.art-piece { margin: 0; }

/* 5:6 tiles: the median shape of the pieces, so most show uncropped.
   The full piece always opens in the lightbox. */
.art-piece .zoom { aspect-ratio: 5 / 6; }

.art-piece .zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 20%);
}

.art-piece figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-height: 34px;
}

.art-title { display: block; font-weight: 600; color: var(--text); line-height: 1.3; }

.art-date { display: block; font-size: 0.85rem; color: var(--text-muted); }

.process-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.process-btn:hover { border-color: var(--text-soft); color: var(--text); }

.process-btn svg { width: 12px; height: 12px; fill: currentColor; }

/* process video player */
.video-box {
  width: min(94vw, 1100px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
  overflow: visible;
}

.video-box::backdrop { background: rgba(8, 7, 9, 0.9); }

.video-box .video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-box .video-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.video-box .vb-close {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 14px;
  cursor: pointer;
}

.video-box .vb-close:hover { border-color: var(--text-soft); }

/* ==========================================================================
   Role landing pages (ui.html, props.html)
   ========================================================================== */

.role-gallery { padding-bottom: clamp(48px, 7vw, 88px); }

.piece figcaption { margin-top: 10px; }

.piece-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.piece-link:hover { text-decoration: underline; }

.role-more {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-intro p { color: var(--text-soft); margin: 0 0 16px; max-width: 68ch; }

.about-intro p:first-of-type { color: var(--text); font-size: 1.1rem; }

.about-intro .text-link { margin-top: 8px; }

.about-section {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

/* skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.chips li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline > li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(12px, 3vw, 40px);
  padding: 24px 0;
  border-top: 1px dashed var(--border);
}

.timeline > li:first-child { border-top: 0; padding-top: 0; }

.timeline .when { font-size: 0.9rem; color: var(--text-muted); padding-top: 4px; }

.timeline h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
}

.timeline .org { margin: 2px 0 10px; color: var(--purple); font-weight: 500; }

.timeline ul { margin: 0; padding-left: 18px; color: var(--text-soft); }

.timeline ul li { margin-bottom: 6px; }

@media (max-width: 700px) {
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
}

/* certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0;
}

.cert-card .issuer { margin: 0; color: var(--text-soft); }

.cert-card .date { margin: 0 0 10px; font-size: 0.88rem; color: var(--text-muted); }

.cert-card .text-link { margin-top: auto; align-self: flex-start; font-size: 0.92rem; }

/* education */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.edu-list li {
  padding: 18px 0 0;
  border-top: 2px solid var(--purple-deep);
}

.edu-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.edu-list span { color: var(--text-soft); }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(48px, 7vw, 80px) 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .eyebrow { display: block; }

.footer-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  overflow-wrap: anywhere;
}

.socials { display: flex; gap: 10px; }

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.socials a:hover {
  background: var(--purple-deep);
  border-color: var(--purple);
  transform: rotate(-8deg);
}

.socials svg { width: 20px; height: 20px; fill: currentColor; }

.footer-small {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
