/* Komal Pugalia — portfolio
   Rules: solid colours only (no gradients anywhere), two typefaces,
   motion is transform/opacity only and honours reduced-motion. */

@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --paper: #f5efe3;
  --paper-2: #ece4d3;
  --ink: #17171c;
  --ink-soft: #4a4a52;
  --cream: #fbf6ea;

  --blue: #2f3fd0;
  --tomato: #e4462b;
  --butter: #f3c845;
  --forest: #1e5a43;
  --plum: #5a2a6b;
  --pink: #f4a7c3;
  --lilac: #bfaef0;
  --orange: #f0812f;
  --teal: #16707a;
  --sage: #b4cf9f;
  --night: #1d2147;
  --brick: #9c3324;
  --sky: #9fd3f0;

  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --container: 1240px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  font-family: var(--body); background: var(--paper); color: var(--ink);
  line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 0.98;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--ink);
  cursor: pointer; text-decoration: none; font-weight: 800; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; background: var(--ink); color: var(--cream);
  line-height: 1.2; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--butter); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: var(--paper);
  display: grid; place-items: center; overflow: hidden; cursor: pointer;
}
.intro[hidden] { display: none; }
.intro-words {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(3.4rem, 13vw, 11rem); line-height: 1; display: flex; gap: 0.25em;
  flex-wrap: wrap; justify-content: center; padding: 0 20px; position: relative; z-index: 2;
}
.intro-words span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(-6deg) scale(0.8); }
.intro-words span.in { animation: pop 0.45s var(--ease-out) forwards; }
@keyframes pop {
  60% { opacity: 1; transform: translateY(-6%) rotate(2deg) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
.intro-star {
  position: absolute; width: 70px; height: 70px; z-index: 1; opacity: 0; transform: scale(0) rotate(-40deg);
}
.intro-star.in { animation: starpop 0.5s var(--ease-out) forwards; }
@keyframes starpop {
  70% { opacity: 1; transform: scale(1.25) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.intro-dot {
  position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; z-index: 3;
  transform: scale(0); left: 50%; top: 50%; margin: -20vmax 0 0 -20vmax;
}
.intro-dot.in { animation: grow 0.6s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
@keyframes grow { to { transform: scale(4); } }
.intro.out { animation: fadeout 0.45s ease forwards; }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
.intro-skip {
  position: absolute; bottom: 24px; right: 24px; z-index: 4; background: none; border: 0;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: var(--paper);
  border-bottom: 2px solid var(--ink); height: var(--header-h);
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.wordmark {
  font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; text-decoration: none;
  letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px;
}
.wordmark .dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--tomato); display: inline-block;
  transition: background-color 0.4s;
}
.wordmark:hover .dot { background: var(--blue); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px;
  transition: background-color 0.2s;
}
.nav a:not(.btn):hover { background: var(--paper-2); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.tag {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; background: var(--cream);
}
.hero h1 { font-size: clamp(3.4rem, 8.6vw, 8.4rem); }
.hero h1 .line { display: block; }
.hl {
  display: inline-block; padding: 0 0.12em; margin: 0.03em 0; color: var(--cream); border-radius: 6px;
}
.hl-blue { background: var(--blue); transform: rotate(-1.5deg); }
.hl-tomato { background: var(--tomato); transform: rotate(1.2deg); }
.hero-lede { font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.7; max-width: 620px; margin: 28px 0 32px; color: var(--ink-soft); }
.hero-lede strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.portrait-wrap { position: relative; justify-self: center; width: min(420px, 100%); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  border: 3px solid var(--ink); background: var(--butter);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-family: var(--display); text-transform: uppercase; line-height: 1;
}
.sticker-round {
  width: 132px; height: 132px; border-radius: 50%; background: var(--tomato); color: var(--cream);
  border: 3px solid var(--ink); left: -40px; bottom: 40px; font-size: 1.05rem; padding: 14px;
  animation: spin 18s linear infinite;
}
.sticker-round svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker-round .core { font-size: 1.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker-note {
  right: -22px; top: 30px; background: var(--butter); border: 3px solid var(--ink); border-radius: 10px;
  padding: 10px 14px; font-size: 1.1rem; transform: rotate(6deg); color: var(--ink);
}
.star { position: absolute; width: 56px; height: 56px; color: var(--blue); }
.star-a { right: 10px; bottom: -22px; }
.star-b { left: 30%; top: -26px; width: 34px; height: 34px; color: var(--tomato); }
.float { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(8deg); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); overflow: hidden;
}
.stat { padding: 22px 24px; border-right: 2px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat .lbl { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--blue); color: var(--cream); overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0;
}
.marquee-inner { display: inline-flex; animation: scroll 36s linear infinite; }
.marquee span {
  font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
}
.marquee span::after { content: "✦"; font-size: 1.1rem; color: var(--butter); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.section-head p { max-width: 460px; color: var(--ink-soft); }

/* ---------- Shelf (category index) ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shelf-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 210px; padding: 20px; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--c); color: var(--fg, var(--cream)); text-decoration: none; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 0 0 var(--ink);
}
.shelf-card:hover, .shelf-card:focus-visible { transform: translate(-4px, -4px) rotate(-0.6deg); box-shadow: 6px 6px 0 var(--ink); }
.shelf-card .no { font-family: var(--display); font-size: 1rem; opacity: 0.85; }
.shelf-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.9rem; line-height: 1; letter-spacing: 0.4px; }
.shelf-card .meta { display: flex; justify-content: space-between; align-items: end; font-size: 0.84rem; font-weight: 700; }
.shelf-card .peek {
  position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--ink); overflow: hidden; background: var(--cream);
  transform: scale(0.6) rotate(-12deg); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.shelf-card .peek img { width: 100%; height: 100%; object-fit: cover; }
.shelf-card:hover .peek, .shelf-card:focus-visible .peek { transform: scale(1) rotate(0); opacity: 1; }
.shelf-card .go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg, var(--cream)); color: var(--c); font-weight: 800; font-size: 1.1rem;
  transition: transform 0.3s var(--ease-out);
}
.shelf-card:hover .go { transform: rotate(-45deg); }

/* ---------- Sticky category bar ---------- */
.catbar {
  position: sticky; top: var(--header-h); z-index: 150; background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.catbar-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px; scrollbar-width: none; max-width: var(--container); margin: 0 auto; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a {
  flex: none; text-decoration: none; font-size: 0.82rem; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--cream);
  transition: background-color 0.25s, color 0.25s;
}
.catbar a:hover { background: var(--paper-2); }
.catbar a.active { background: var(--c); color: var(--fg, var(--cream)); }

/* ---------- Category sections ---------- */
.cat { border-top: 2px solid var(--ink); }
.cat-hero { background: var(--c); color: var(--fg, var(--cream)); padding: 72px 0 64px; position: relative; overflow: hidden; }
.cat-hero .container { position: relative; z-index: 1; }
.cat-hero .big-no {
  position: absolute; right: -0.04em; bottom: -0.2em; font-family: var(--display);
  font-size: clamp(12rem, 30vw, 26rem); line-height: 1; opacity: 0.14; pointer-events: none; z-index: 0;
}
.cat-hero h2 { font-size: clamp(3rem, 8vw, 6.6rem); margin: 10px 0 18px; }
.cat-hero .blurb { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 720px; font-weight: 500; }
.cat-hero .skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-hero .skills span {
  border: 2px solid currentColor; border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700;
}
.cat-body { padding: 56px 0 80px; }

.project { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 40px 0; border-bottom: 2px dashed var(--ink); }
.project:last-child { border-bottom: 0; }
.project-info { position: sticky; top: calc(var(--header-h) + 76px); align-self: start; }
.project-info .client { color: var(--ink-soft); }
.project-info h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; margin: 8px 0 14px; letter-spacing: 0.4px; }
.project-info p { color: var(--ink-soft); font-size: 0.97rem; }
.project-info .count { margin-top: 16px; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--cream);
}
.chip.alt { background: var(--c); color: var(--fg, var(--cream)); }

.project-info .pno, .card .pno, .collection .pno {
  display: inline-block; font-family: var(--display); font-size: 0.95rem; letter-spacing: 1px;
  background: var(--c); color: var(--fg, var(--cream)); padding: 2px 10px; border-radius: 999px; margin-bottom: 12px;
}
.project-info .client, .card .client, .collection .client { display: block; }
.plink { margin-top: 16px; }

/* Even grid: 6 columns, every row full (sizes chosen in app.js) */
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.grid6 > * { grid-column: span 2; }
.grid6 > .w { grid-column: span 3; }
.grid6 > .f { grid-column: span 4; grid-row: span 2; }
.grid6 > .f .media { aspect-ratio: auto; flex: 1; min-height: 0; }
.grid6 > .f .media img { position: absolute; inset: 0; }
.grid6 > .f .cap { font-size: 0.92rem; }
.grid-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* Collections (merch): two cards per row */
.collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.collection { display: flex; flex-direction: column; gap: 10px; }
.collection .cover .cap, .collection .cover .badge { display: none; }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tile.mini { border-radius: 8px; }
.tile.mini .cap, .tile.mini .badge { display: none; }
.tile.mini .media img { padding: 0; }
.tile.mini:hover, .tile.mini:focus-visible { transform: translateY(-3px); box-shadow: 3px 3px 0 var(--c, var(--ink)); }
.collection .card-body { margin-top: 8px; }
.collection h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; margin: 6px 0 8px; letter-spacing: 0.4px; }
.collection p { color: var(--ink-soft); font-size: 0.95rem; }
.collection .client { color: var(--ink-soft); }

/* Runs of single-piece projects */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; padding: 40px 0; border-bottom: 2px dashed var(--ink); }
.cards:last-child { border-bottom: 0; }
.cards.solo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.cards.solo .card { display: contents; }
.cards.solo .card-body { max-width: 440px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card > .tile, .card > .paper-tile { width: 100%; }
.card > .paper-tile { min-height: 220px; }
.card .client { color: var(--ink-soft); }
.card h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1; margin: 6px 0 10px; letter-spacing: 0.4px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.tile {
  position: relative; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--cream);
  cursor: pointer; padding: 0; text-align: left; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.tile:hover, .tile:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--c, var(--ink)); }
.tile .media { aspect-ratio: var(--ar, 1); overflow: hidden; background: var(--paper-2); position: relative; display: block; }
.tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.tile.contain .media img { object-fit: contain; padding: 8px; }
.tile:hover .media img { transform: scale(1.04); }
.tile .cap {
  padding: 10px 12px; font-size: 0.82rem; font-weight: 700; line-height: 1.35; border-top: 2px solid var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.tile .badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--ink); color: var(--cream);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 1.2px; padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.tile .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--ink); display: grid; place-items: center; z-index: 1;
  transition: transform 0.3s var(--ease-out);
}
.tile:hover .play { transform: scale(1.12); }
.tile .play::after { content: ""; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

/* Writing tiles (docs, blogs) */
.paper-tile {
  border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); padding: 18px; text-align: left;
  cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 170px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s;
}
.paper-tile:hover, .paper-tile:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--c); }
.paper-tile .k { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
.paper-tile h4 { font-size: 1.02rem; line-height: 1.3; font-weight: 800; }
.paper-tile p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.paper-tile .more { margin-top: auto; font-weight: 800; font-size: 0.82rem; }

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
.about h2 .hl { color: var(--ink); background: var(--butter); }
.about p { font-size: 1.08rem; color: #d8d3c6; margin-bottom: 18px; }
.about p strong { color: var(--cream); }
.about .quote {
  border: 2px solid var(--cream); border-radius: var(--radius); padding: 24px; margin-top: 28px;
  font-size: 1.05rem; background: var(--night);
}
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.brand-box { border-radius: var(--radius); padding: 22px; color: var(--ink); }
.brand-box h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 10px; letter-spacing: 0.4px; }
.brand-box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.brand-box li { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 0.85rem; background: var(--cream); }
.does { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.does div { border: 2px solid #3a3a44; border-radius: 10px; padding: 14px 16px; font-weight: 700; font-size: 0.92rem; }
.does div b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; color: var(--butter); letter-spacing: 0.4px; }

/* ---------- Contact ---------- */
.contact { background: var(--tomato); color: var(--cream); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.contact h2 { font-size: clamp(3rem, 10vw, 8.6rem); }
.contact p { font-size: 1.15rem; max-width: 560px; margin: 22px auto 34px; }
.contact .btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.contact .btn { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.contact .btn:hover { background: var(--butter); }
.contact .btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.contact .btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.contact .star { color: var(--butter); width: 80px; height: 80px; }
.contact .s1 { left: 8%; top: 18%; }
.contact .s2 { right: 9%; bottom: 16%; color: var(--ink); width: 54px; height: 54px; }
.footer { background: var(--ink); color: #bdb7aa; padding: 28px 0; font-size: 0.86rem; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--cream); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 900; background: var(--ink); color: var(--cream);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 2px solid #33333c; }
.lb-title { font-weight: 800; font-size: 0.98rem; line-height: 1.3; }
.lb-title small { display: block; font-weight: 600; color: #a9a397; font-size: 0.8rem; }
.lb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lb-btn {
  background: var(--cream); color: var(--ink); border: 0; border-radius: 999px; height: 42px; min-width: 42px;
  padding: 0 14px; font-weight: 800; cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; font-size: 0.86rem;
}
.lb-btn:hover { background: var(--butter); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 18px 70px; min-height: 0; overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-stage iframe { width: min(1200px, 100%); height: 100%; border: 0; border-radius: 8px; background: var(--cream); }
.lb-doc {
  width: min(820px, 100%); height: 100%; overflow-y: auto; background: var(--cream); color: var(--ink);
  border-radius: 10px; padding: 40px clamp(20px, 5vw, 56px); white-space: pre-wrap; font-size: 0.98rem; line-height: 1.7;
}
.lb-doc h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin-bottom: 18px; white-space: normal; line-height: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: var(--cream); color: var(--ink); border: 0; cursor: pointer; font-size: 1.3rem; font-weight: 800;
}
.lb-nav:hover { background: var(--butter); }
.lb-pages { width: min(1100px, 100%); height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 4px; }
.lb-pages figure { margin: 0; }
.lb-pages img { width: 100%; max-height: none; border-radius: 6px; background: var(--cream); }
.lb-pages figcaption { text-align: center; font-size: 0.78rem; color: #a9a397; margin-top: 6px; font-weight: 700; }
.lb-sheet { white-space: normal; width: min(1100px, 100%); }
.lb-sheet h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; margin: 26px 0 10px; }
.lb-sheet .tbl { overflow-x: auto; border: 2px solid var(--ink); border-radius: 8px; }
.lb-sheet table { border-collapse: collapse; font-size: 0.84rem; min-width: 640px; width: 100%; }
.lb-sheet th, .lb-sheet td { border-bottom: 1px solid #d9d0bd; padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.lb-sheet th { background: var(--sage); font-weight: 800; }
.lb-sheet tr:nth-child(even) td { background: #f3ecdc; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-bottom { padding: 12px 20px; border-top: 2px solid #33333c; font-size: 0.86rem; color: #c9c3b6; display: flex; gap: 16px; justify-content: space-between; }
.lb-loading { position: absolute; font-weight: 700; color: #8f897d; z-index: 0; }
.lb-stage > :not(.lb-loading):not(.lb-nav) { position: relative; z-index: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 180; width: 50px; height: 50px; border-radius: 50%;
  background: var(--butter); border: 2px solid var(--ink); font-weight: 800; cursor: pointer; font-size: 1.2rem;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .portrait-wrap { width: min(340px, 86%); margin-top: 16px; }
  .project { grid-template-columns: 1fr; gap: 20px; }
  .project-info { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 2px solid var(--ink); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: 12px 14px; }
  .menu-btn { display: inline-flex; margin-left: auto; background: var(--ink); color: var(--cream); border: 0;
    border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
  .container { padding: 0 16px; }
  .catbar-inner { padding: 10px 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .sticker-round { width: 104px; height: 104px; left: -18px; font-size: 0.9rem; }
  .sticker-note { right: -8px; font-size: 0.95rem; }
  .brands { grid-template-columns: 1fr; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid6 > *, .grid6 > .w { grid-column: span 1; }
  .grid6 > .f { grid-column: span 2; grid-row: auto; }
  .grid6 > .f .media { aspect-ratio: var(--ar, 1); flex: none; }
  .grid-wide { grid-template-columns: 1fr; }
  .cards, .cards.solo { grid-template-columns: 1fr; gap: 36px; }
  .cards.solo .card-body { margin-top: -18px; }
  .collections { grid-template-columns: 1fr; gap: 40px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shelf-card { min-height: 150px; padding: 14px; }
  .shelf-card h3 { font-size: 1.35rem; }
  .shelf-card .meta { font-size: 0.72rem; }
  .shelf-card .go { width: 30px; height: 30px; font-size: 0.95rem; }
  .shelf-card .peek { display: none; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lb-stage { padding: 12px 8px 70px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; }
  .lb-prev { left: calc(50% - 58px); } .lb-next { right: calc(50% - 58px); }
  .lb-title { font-size: 0.86rem; }
  .lb-actions .hide-sm { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
.collection .cover .media img { object-fit: cover; padding: 0; }

/* ======================================================================
   Layout v3: every project reads heading first, then its work below.
   (Placed last so it overrides the earlier side-by-side rules.)
   ====================================================================== */
.lc { text-transform: none; }

/* Shelf boxes: just the heading (and a small arrow) */
.shelf-card { justify-content: flex-end; gap: 14px; min-height: 180px; }
.shelf-card h3 { font-size: 2rem; padding-right: 44px; }
.shelf-card .go { position: absolute; right: 18px; bottom: 18px; }

.project { display: block; padding: 48px 0; border-bottom: 2px dashed var(--ink); }
.project:last-child { border-bottom: 0; }
.phead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 48px;
  align-items: end; margin-bottom: 26px;
}
.phead .client { display: block; color: var(--ink-soft); }
.phead h3 {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.98; margin-top: 8px; letter-spacing: 0.4px;
}
.phead-text p { color: var(--ink-soft); font-size: 0.98rem; }
.phead .count { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.phead .plink { margin-top: 14px; }

/* a project with a single piece: one large tile, not full bleed */
.grid6 > .solo { grid-column: 1 / span 4; }

/* cards for runs of single-piece projects: heading, text, then the piece pinned to the bottom */
.cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; padding: 48px 0; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card .card-body { margin: 0; }
.card .client { display: block; color: var(--ink-soft); }
.card > .tile, .card > .paper-tile { margin-top: auto; }

/* Merch collections: heading row, then every piece at the same size */
.collections { display: block; }
.collection { display: block; padding: 40px 0; border-bottom: 2px dashed var(--ink); }
.collection:last-child { border-bottom: 0; }
.collection .phead { margin-bottom: 20px; }
.collection .phead h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.shelfrow { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.shelfrow > .tile .cap { font-size: 0.76rem; padding: 8px 10px; }
.shelfrow > .tile .badge { display: none; }

@media (max-width: 980px) {
  .shelfrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phead { grid-template-columns: 1fr; align-items: start; gap: 10px; }
}
@media (max-width: 760px) {
  .shelf-card { min-height: 110px; padding: 14px; }
  .shelf-card h3 { font-size: 1.3rem; padding-right: 34px; }
  .shelf-card .go { right: 12px; bottom: 12px; }
  .grid6 > .solo { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .shelfrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .project { padding: 40px 0; }
}

/* 12-column project grid (v3) */
.grid6 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.grid6 > * { grid-column: span 3; }
.grid6 > .t { grid-column: span 4; }
.grid6 > .f { grid-column: span 6; grid-row: span 2; }
.grid6 > .solo { grid-column: 1 / span 6; }
@media (max-width: 760px) {
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid6 > *, .grid6 > .t { grid-column: span 1; }
  .grid6 > .f, .grid6 > .solo { grid-column: 1 / -1; grid-row: auto; }
  .grid6 > .f .media { aspect-ratio: var(--ar, 1); flex: none; }
}

/* Header = one menu listing every kind of branding, all equal (v4) */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.header-inner { gap: 12px; }
.nav { margin-left: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.nav-cats { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; padding: 2px; }
.nav-cats::-webkit-scrollbar { display: none; }
.nav .nav-cats a {
  flex: none; text-decoration: none; font-size: 0.8rem; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.nav .nav-cats a:hover { background: var(--paper-2); }
.nav .nav-cats a.active { background: var(--c); color: var(--fg, var(--cream)); }
.nav > .btn { flex: none; }
@media (max-width: 760px) {
  .nav { flex-direction: column; align-items: stretch; gap: 10px; flex: none; }
  .nav .nav-cats { flex-direction: column; overflow: visible; gap: 8px; }
  .nav .nav-cats a { font-size: 1rem; padding: 10px 16px; }
  .nav > .btn { justify-content: center; }
}

/* header fit: all 11 kinds visible on desktop; dropdown below 1180px */
.site-header .header-inner { max-width: none; padding: 0 24px; }
.nav .nav-cats { justify-content: center; gap: 5px; }
.nav .nav-cats a { font-size: 0.76rem; padding: 5px 10px; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; margin-left: auto; background: var(--ink); color: var(--cream); border: 0;
    border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 18px; border-bottom: 2px solid var(--ink);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .nav-cats { flex-direction: column; overflow: visible; gap: 8px; justify-content: flex-start; }
  .nav .nav-cats a { font-size: 1rem; padding: 10px 16px; }
  .nav > .btn { justify-content: center; }
}

/* hero without the photo: one column */
.hero-grid { grid-template-columns: 1fr; }
.hero-lede { max-width: 760px; }
