/* Julian Creates — portfolio styles */

/* "TAY Bang!" is the pixel script used for "Hello there," and the big Julian/Creates
   lettering. Drop its .woff2 into /assets/fonts/ (if your font license allows web use)
   and every visitor will see it; until then it shows only on machines with it installed. */
@font-face {
  font-family: "TAY Bang";
  src: local("TAY Bang!"), local("TAYBang"), url("/assets/fonts/TAYBang.woff2") format("woff2");
  font-display: swap;
}

:root {
  --white: #fff;
  --black: #000;
  --ink-60: rgba(0, 0, 0, .6);
  --ink-45: rgba(0, 0, 0, .45);
  --ink-10: rgba(0, 0, 0, .1);
  --ink-05: rgba(0, 0, 0, .05);
  --blue: #47abff;
  --tile-bg: #151515;
  --gutter: clamp(16px, 2.8vw, 42px);
  --header-h: 96px;
  --radius: 18px;
  --font: "Switzer", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "TAY Bang", "Instrument Sans", var(--font);
  --shadow: 0 6px 30px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 28px;
  background: var(--white); border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow);
}
.brand-logo img { width: 84px; height: auto; }
.brand-contact { font-family: var(--font-ui); font-size: 13px; line-height: 1.55; font-weight: 400; color: var(--black); }
.brand-contact span { color: var(--ink-60); }
.brand-contact a:hover { text-decoration: underline; }

.nav {
  display: flex; align-items: center; gap: 4px;
  background: var(--white); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow);
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
}
.nav a { display: inline-flex; padding: 8px 12px; border-radius: 8px; }
.nav a[aria-current="page"] { background: var(--ink-05); }
.nav-grid {
  display: grid; grid-template-columns: repeat(2, 7px); gap: 3px;
  padding: 10px 8px; margin-left: 6px; border: 0; background: none; cursor: pointer; border-radius: 8px;
}
.nav-grid i { width: 7px; height: 7px; background: #d9d9d9; border-radius: 1px; transition: background .25s; }
.nav-grid:hover i { background: var(--black); }

/* Rolling text hover */
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { display: block; transition: transform .45s var(--ease); }
.roll > span::after { content: attr(data-text); display: block; }
a:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-1.3em); }

/* Mobile menu */
.menu-toggle { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(36px, 11vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
.mobile-menu .mm-contact { margin-top: 32px; font-family: var(--font-ui); font-size: 15px; color: var(--ink-60); line-height: 1.8; }
.mobile-menu .mm-contact a { font-size: inherit; color: var(--black); }
.mobile-menu .close {
  position: absolute; top: 22px; right: var(--gutter); width: 44px; height: 44px;
  border: 0; background: var(--ink-05); border-radius: 12px; cursor: pointer; font-size: 22px; line-height: 1;
}

/* ---------- Layout ---------- */
main { padding-top: calc(var(--header-h) + 24px); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Home ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  gap: 40px; align-items: start; min-height: min(900px, calc(100svh - var(--header-h) - 24px - 62px));
  padding-bottom: 28px;
}
.hero-bg {
  position: absolute; inset: auto 0 0 0; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--font-pixel); color: #f1f1f1; line-height: .78; letter-spacing: -.02em;
  font-size: clamp(110px, 24vw, 360px); white-space: nowrap; overflow: hidden;
  padding-left: var(--gutter);
}
.hero-bg span { display: block; }
.hero-bg span:nth-child(2) { padding-left: .1em; }
.hero-text { position: relative; padding-top: 12px; max-width: 720px; }
.hello { font-family: var(--font-pixel); color: var(--blue); font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; font-style: italic; margin-bottom: 10px; }
.hero-name { font-family: var(--font-ui); font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px; }
.hero-bio { font-family: var(--font-ui); font-weight: 400; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; font-family: "Instrument Sans", var(--font-ui); font-weight: 600; font-size: 17px; }
.chip-label { background: var(--black); color: var(--white); border-radius: 999px; padding: 6px 14px; transition: transform .3s var(--ease); }
.chip-arrow {
  display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%;
  background: var(--black); color: var(--white); margin-left: 3px; transition: transform .3s var(--ease);
}
.chip:hover .chip-arrow { transform: rotate(45deg); }
.chip-arrow svg { width: 12px; height: 12px; }
.hero-photo {
  position: relative; justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 451 / 532;
  transform: rotate(4deg); overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Dither hover: a 1-bit dot version of the photo sits on top; the real photo
   shows through a soft oval that follows the cursor (or finger). */
.dither-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; cursor: crosshair; touch-action: pan-y;
}

.recent { display: inline-flex; align-items: center; gap: 12px; font-family: Arial, Helvetica, sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 40px; }
.recent:hover { text-decoration: underline; }
.pulse { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.pulse::before, .pulse::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--black); grid-area: 1 / 1; }
.pulse::before { animation: pulse-ring 2s ease-out infinite; }
.pulse::after { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse-dot { 0%, 80%, 100% { transform: scale(1); } 40% { transform: scale(1.15); } }

.work { padding-bottom: 80px; scroll-margin-top: calc(var(--header-h) + 16px); }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile-bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 14px; font-family: var(--font-ui); font-weight: 400; }
.card-kicker { grid-column: 1; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.card-title { grid-column: 1; font-size: 20px; line-height: 1.12; }
.card-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; transition: transform .3s var(--ease); }
.card:hover .card-arrow { transform: translate(3px, -3px); }
.card-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; color: var(--ink-60); }
.card-tags span + span::before { content: "·"; margin-right: 10px; }

.more { margin-top: 72px; }
.more h2, .section-label { font-family: var(--font-ui); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-60); margin-bottom: 16px; }
.more ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink-10); }
.more li a {
  display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-10); font-family: var(--font-ui); font-weight: 400;
}
.more li img { width: 64px; height: 44px; object-fit: cover; background: var(--tile-bg); }
.more .m-title { font-size: 18px; }
.more .m-type { font-size: 13px; color: var(--ink-60); }
.more li a svg { transition: transform .3s var(--ease); }
.more li a:hover svg { transform: translate(3px, -3px); }
.more li a:hover .m-title { text-decoration: underline; }

/* ---------- Project (case study) ---------- */
.project { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 2.6fr); gap: 40px; padding-bottom: 96px; }
.project-title { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; }
.project-main { min-width: 0; }
.project-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, .8fr); gap: 40px; margin-bottom: 56px; }
.project-headline { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; max-width: 640px; }
.project-intro p { color: var(--ink-60); font-size: 15px; line-height: 1.6; max-width: 600px; }
.project-intro p + p { margin-top: 12px; }
.meta { font-size: 14px; line-height: 1.5; }
.meta dt { color: var(--ink-60); }
.meta dd { margin: 2px 0 16px; }
.block-h { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.3; margin: 48px 0 12px; max-width: 760px; }
.block-p { color: var(--ink-60); font-size: 15px; line-height: 1.65; max-width: 760px; }
.media { display: grid; gap: 16px; margin: 32px 0; }
.media.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media img, .media video { width: 100%; height: auto; background: var(--ink-05); }
.media.cols-2 img { height: 100%; object-fit: cover; }
.placeholder {
  aspect-ratio: 16 / 10; border-radius: 10px;
  background: repeating-linear-gradient(-45deg, rgba(136,136,136,.18) 0 10px, transparent 10px 20px), #fafafa;
  display: grid; place-items: center; color: var(--ink-45); font-family: var(--font-ui); font-size: 13px;
}
.gallery .media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .media img, .gallery .media video { height: 100%; object-fit: cover; }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--ink-10); font-family: var(--font-ui); font-weight: 400; }
.next-project a { display: inline-flex; gap: 10px; align-items: center; font-size: 18px; }
.next-project a:hover { text-decoration: underline; }

/* ---------- Cover art ---------- */
.stack { max-width: 1000px; margin: 0 auto; padding-bottom: 96px; }
.stack .meta { display: grid; grid-template-columns: auto; margin-bottom: 24px; }
.stack .stack-imgs { display: grid; gap: 24px; }
.page-title { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 20px; }

/* ---------- Graphic design grid ---------- */
.gd { padding-bottom: 48px; }
.gd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; }
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--tile-bg); grid-column: span 2; aspect-ratio: 16 / 12.3; cursor: pointer; border: 0; padding: 0; width: 100%;
}
.tile.tall { grid-column: span 1; aspect-ratio: auto; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.045); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; text-align: left; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  font-family: var(--font-ui); font-weight: 400;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile-cap strong { display: block; font-weight: 400; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.tile-cap span { display: block; font-size: 13px; color: rgba(255,255,255,.68); margin-top: 4px; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,6,8,.94); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: min(1400px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 56px; }
.about-photo img { width: 100%; aspect-ratio: 330 / 430; object-fit: cover; }
.about-wordmark img { width: 100%; max-width: 720px; margin: 0 auto; }
.about-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 96px; }
.about-headline { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; margin-bottom: 12px; max-width: 620px; }
.about-body p { font-family: var(--font-ui); font-weight: 400; font-size: 15px; line-height: 1.6; max-width: 520px; }
.about-body p + p { margin-top: 14px; }
.awards { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink-10); font-family: var(--font-ui); font-weight: 400; font-size: 15px; }
.awards li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--ink-10); }
.awards li span:last-child { text-align: center; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
.contact-heading { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 18px; }
.contact-blurb { font-family: var(--font-ui); font-weight: 400; font-size: 14px; line-height: 1.6; max-width: 280px; margin-bottom: 18px; }
.contact-cta { font-family: var(--font-ui); font-size: 14px; }
.contact-cta:hover { text-decoration: underline; }
.contact-photo img { width: 100%; aspect-ratio: 270 / 355; object-fit: cover; }
.contact-based { margin-top: 18px; font-family: var(--font-ui); font-size: 14px; }
.contact-based span { display: block; font-weight: 500; margin-bottom: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; font-family: var(--font-ui); }
.form-title { grid-column: 1 / -1; font-size: 14px; margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: 400 14px/1.4 var(--font-ui); color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--ink-10);
  padding: 6px 0 10px; border-radius: 0; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--black); }
.submit { grid-column: 1 / -1; justify-self: start; border: 0; background: var(--black); color: var(--white); border-radius: 999px; padding: 10px 22px; font: 500 14px var(--font-ui); cursor: pointer; }
.submit:hover { opacity: .85; }
.hp { display: none; }

/* ---------- Simple pages ---------- */
.simple { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; padding-bottom: 96px; }
.simple a { text-decoration: underline; }

/* ---------- Scroll fade ---------- */
.js .fade { transition: opacity .9s ease, translate .9s var(--ease); }
.js .fade.out { opacity: 0; translate: 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .project { grid-template-columns: 1fr; gap: 20px; }
  .project-title { position: static; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact .form-wrap { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-contact, .nav { display: none; }
  .brand { padding: 10px 14px; }
  .menu-toggle {
    display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; padding: 15px; border: 0; cursor: pointer;
    background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  }
  .menu-toggle i { width: 7px; height: 7px; background: var(--black); border-radius: 1px; }
  main { padding-top: calc(var(--header-h) + 16px); }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-photo { justify-self: center; max-width: 360px; transform: rotate(3deg); }
  .hero-bg { font-size: clamp(80px, 26vw, 240px); bottom: 18%; }
  .featured { grid-template-columns: 1fr; gap: 40px; }
  .project-top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.tall { grid-column: span 2; aspect-ratio: 4 / 3; }
  .about-top, .about-bottom { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 600px) {
  .media.cols-2, .gallery .media { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding-top: 8px; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .more li a { grid-template-columns: 56px 1fr auto; }
  .more .m-type { display: none; }
  .more li img { width: 56px; height: 40px; }
  .awards li { grid-template-columns: 1fr; gap: 2px; }
  .awards li span:last-child { text-align: left; color: var(--ink-60); }
  .hello { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .fade.out { opacity: 1; translate: none; }
}

/* ---------- Animated case-study mockups ---------- */
.mock { margin: 36px 0; min-width: 0; }
.mock figcaption { margin-top: 12px; font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: var(--ink-60); }
.mock-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 36px 0; }
.mock-row .mock { margin: 0; }

.browser { background: #1c1c1f; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.08); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #2a2a2e; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #55555b; flex: none; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; max-width: 340px; margin: 0 auto; transform: translateX(-21px); height: 20px; border-radius: 6px; background: #3a3a3f;
  font: 400 11px/20px var(--font-ui); color: #b5b5bc; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px;
}
.screen { position: relative; overflow: hidden; aspect-ratio: 1512 / 878; background: #05050a; }
.screen > img { display: block; width: 100%; height: auto; }
.scroller { will-change: transform; }

/* Animations only run while a mockup is on screen */
.mock .scroller, .mock .rel-card, .mock .cursor, .mock .sm-node, .mock .sm-line { animation-play-state: paused !important; }
.mock.playing .scroller, .mock.playing .rel-card, .mock.playing .cursor, .mock.playing .sm-node, .mock.playing .sm-line { animation-play-state: running !important; }

/* Releases: cards lift one after another, cursor follows */
.rel-screen { aspect-ratio: 1512 / 878; }
.rel-screen > .rel-card { position: absolute; top: 25.85%; width: 29.23%; height: 50.46%; object-fit: cover; transform-origin: 50% 60%;
  animation: rel-lift 7.5s cubic-bezier(.4,0,.2,1) infinite; box-shadow: 0 0 0 rgba(0,0,0,0); }
.rel-screen > .rc1 { left: 3.70%; } .rel-screen > .rc2 { left: 35.38%; animation-delay: 2.5s; } .rel-screen > .rc3 { left: 67.06%; animation-delay: 5s; }
@keyframes rel-lift {
  0%, 4% { transform: none; box-shadow: 0 0 0 rgba(0,0,0,0); filter: none; }
  9%, 26% { transform: translateY(-3.5%) scale(1.045); box-shadow: 0 24px 40px rgba(0,0,0,.6), 0 0 0 2px rgba(196,139,220,.9); filter: brightness(1.08); }
  33%, 100% { transform: none; box-shadow: 0 0 0 rgba(0,0,0,0); filter: none; }
}
.cursor { position: absolute; width: 3.2%; left: 0; top: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
  animation: rel-cursor 7.5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes rel-cursor {
  0% { transform: translate(1900%, 1300%); }
  6%, 30% { transform: translate(560%, 1000%); }
  39%, 63% { transform: translate(1550%, 1000%); }
  72%, 96% { transform: translate(2540%, 1000%); }
  100% { transform: translate(1900%, 1300%); }
}

/* Text Club: number types in, RSVP fires, confirmation toast */
.tc-screen { aspect-ratio: 1270 / 285; container-type: inline-size; }
.tc-field { position: absolute; left: 60.9%; top: 39.3%; width: 28%; height: 10.2%; background: #050507;
  display: flex; align-items: center; font: 400 1.26cqw/1 var(--font-ui); color: #fff; letter-spacing: .01em; }
.tc-text:empty::before { content: "Your number"; color: #7d7d84; }
.tc-caret { width: 1px; height: 1.4cqw; background: #fff; margin-left: 1px; animation: tc-blink 1s steps(1) infinite; }
@keyframes tc-blink { 50% { opacity: 0; } }
.tc-btn { position: absolute; left: 89.2%; top: 37.4%; width: 5.5%; height: 13.6%; border-radius: 999px; display: grid; place-items: center;
  font: 600 1.05cqw/1 var(--font-ui); letter-spacing: .02em; color: #2b2b2b; background: #858585; transition: background .3s, color .3s, transform .3s; }
.tc-screen.ready .tc-btn { background: #c48bdc; color: #120a16; }
.tc-screen.sent .tc-btn { transform: scale(.92); background: #fff; }
.tc-toast { position: absolute; left: 56.8%; top: 66%; padding: .55cqw 1.1cqw; border-radius: 999px; background: #c48bdc; color: #120a16;
  font: 600 1.05cqw/1.2 var(--font-ui); opacity: 0; transform: translateY(30%); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; }
.tc-screen.sent .tc-toast { opacity: 1; transform: none; }

/* Site map: home hub, four branches draw in */
.sitemap { position: relative; padding: 32px 24px 28px; border-radius: 14px; background: #0b0b0e; color: #fff;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; }
.sm-lines { position: absolute; left: 24px; right: 24px; top: 32px; width: calc(100% - 48px); height: calc(100% - 60px); pointer-events: none; }
.sm-line { fill: none; stroke: #c48bdc; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sm-draw 9s ease-in-out infinite; }
.l1 { animation-delay: .5s; } .l2 { animation-delay: .7s; } .l3 { animation-delay: .9s; } .l4 { animation-delay: 1.1s; }
@keyframes sm-draw { 0% { stroke-dashoffset: 1; } 12%, 85% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 1; } }
.sm-node { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-family: var(--font-ui);
  animation: sm-pop 9s cubic-bezier(.2,.7,.2,1) infinite; }
.sm-root { width: 30%; margin: 0 auto 64px; }
.sm-kids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.k1 { animation-delay: 1.1s; } .k2 { animation-delay: 1.3s; } .k3 { animation-delay: 1.5s; } .k4 { animation-delay: 1.7s; }
@keyframes sm-pop { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 8%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px); } }
.sm-thumb { width: 100%; }
.browser.mini { border-radius: 7px; }
.browser.mini .browser-bar { height: 14px; gap: 3px; padding: 0 6px; }
.browser.mini .browser-bar i { width: 5px; height: 5px; }
.browser.mini .browser-url { display: none; }
.browser.mini img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sm-label { font-size: 14px; font-weight: 500; margin-top: 6px; }
.sm-sub { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 700px) {
  .mock-row { grid-template-columns: 1fr; }
  .browser-bar { height: 26px; } .browser-url { font-size: 10px; height: 16px; line-height: 16px; }
  .sm-root { width: 46%; margin-bottom: 40px; }
  .sm-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .sm-lines { display: none; }
  .tc-toast { font-size: 1.6cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .mock .sm-node { opacity: 1 !important; transform: none !important; }
  .mock .sm-line { stroke-dashoffset: 0 !important; }
}

/* Phone next to the browser: overlaps the bottom-right corner */
.devices { position: relative; }
.has-phone .devices { margin-right: 9%; margin-bottom: 7%; }
.phone {
  position: absolute; right: -11%; bottom: -9%; width: 25%; padding: 2.2%; border-radius: 13% / 6.2%;
  background: #111114; box-shadow: 0 30px 50px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone::before { content: ""; position: absolute; top: 3.4%; left: 50%; width: 30%; height: 2.3%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 2; }
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: 10% / 4.6%; background: #000; }
.phone-screen img { display: block; width: 100%; height: auto; }
.mock .phone .scroller { animation-play-state: paused !important; }
.mock.playing .phone .scroller { animation-play-state: running !important; }

/* =========================================================
   Dark, full-bleed case study (Club Indgo Website)
   ========================================================= */
body.dark-case { background: #050507; color: #ececf0; --accent: #c48bdc; --muted: rgba(255,255,255,.62); }
body.dark-case main { padding-top: 0; }
.dc { font-family: var(--font-ui); }
.dc h1, .dc h2, .dc h3 { font-family: "Inter", var(--font-ui); font-weight: 600; letter-spacing: -.03em; }

/* Hero */
.dc-hero { position: relative; height: clamp(560px, 94svh, 940px); overflow: hidden; display: flex; align-items: flex-end; }
.dc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.04); animation: dc-hero-in 2.4s var(--ease) both; }
@keyframes dc-hero-in { from { transform: scale(1.12); filter: brightness(.6); } to { transform: scale(1.04); filter: none; } }
.dc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,.35) 0%, rgba(5,5,7,0) 26%, rgba(5,5,7,.25) 55%, rgba(5,5,7,.92) 86%, #050507 100%); }
.dc-hero-copy { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vh, 80px); }
.dc-eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 18px; }
.dc-title { font-size: clamp(38px, 5.4vw, 86px); line-height: 1; max-width: 15ch; color: #fff; margin-bottom: 32px; }

.dc-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: var(--accent); color: #0d0811;
  font: 600 16px/1 "Inter", var(--font-ui); letter-spacing: -.01em; transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.dc-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.dc-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(196,139,220,.6); }
.dc-btn:hover svg { transform: translate(2px, -2px); }
.dc-btn-ghost { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.dc-btn-ghost:hover { background: #fff; color: #0d0811; }

/* Overview */
.dc-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.dc-intro p { font-size: clamp(20px, 1.75vw, 27px); line-height: 1.45; color: #e9e9ee; letter-spacing: -.01em; max-width: 34ch; }
.dc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 0; align-content: start; }
.dc-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.dc-meta dd { margin: 0; font-size: 15px; color: #fff; line-height: 1.45; }

/* Sections */
.dc-showcase { padding-bottom: clamp(40px, 6vw, 80px); }
.dc-showcase .mock { margin: 0; }
.dc-sec { padding-top: clamp(80px, 11vw, 160px); }
.dc-sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.dc-num { font: 500 13px/1 "Inter", var(--font-ui); color: var(--accent); letter-spacing: .1em; }
.dc-h { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.04; color: #fff; }
.dc-p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 720px; margin-left: 31px; }
.dc-sec .mock { margin: clamp(40px, 5vw, 64px) 0 0; }
.dc-lead { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: #fff; letter-spacing: -.02em; max-width: 26ch; margin: clamp(48px, 6vw, 80px) 0 0; }

.pillar { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.pillar.flip .pillar-copy { order: 2; }
.pillar .mock { margin: 0 !important; }
.pillar-k { display: block; font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.pillar-copy h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; color: #fff; margin-bottom: 12px; }
.pillar-copy p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 34ch; }

.dc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.dc-pair .mock { margin-top: clamp(40px, 5vw, 64px) !important; }

/* Mockups on dark */
.dark-case .browser { background: #18181b; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.09); }
.dark-case .browser-bar { background: #222226; }
.dark-case .mock figcaption { color: rgba(255,255,255,.48); margin-top: 14px; }
.dark-case .sitemap { background-color: #0d0d11; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.dark-case .phone { box-shadow: 0 30px 60px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12); }

.still-screen img.drift { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform-origin: 30% 10%; animation: dc-drift 16s ease-in-out infinite alternate; }
@keyframes dc-drift { from { transform: scale(1); } to { transform: scale(1.1) translateY(2%); } }
.mock .drift { animation-play-state: paused !important; }
.mock.playing .drift { animation-play-state: running !important; }
.video-screen { aspect-ratio: 1600 / 816; background: #fff; }
.video-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }

.phone-trio .trio { display: flex; justify-content: center; align-items: center; gap: 5%; padding: clamp(40px, 6vw, 88px) 4%;
  border-radius: 20px; background: radial-gradient(60% 70% at 50% 55%, rgba(196,139,220,.22), transparent 70%), #0b0b0f; box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.phone.phone-solo { position: relative; right: auto; bottom: auto; width: 23%; }
.phone.phone-solo:nth-child(2) { transform: translateY(-7%); }

/* Closing CTA */
.dc-cta { margin-top: clamp(96px, 13vw, 180px); padding: clamp(96px, 12vw, 160px) 0; text-align: center;
  border-top: 1px solid rgba(255,255,255,.08); background: radial-gradient(50% 80% at 50% 100%, rgba(196,139,220,.22), transparent 70%); }
.dc-cta-h { font-size: clamp(40px, 6.4vw, 104px); line-height: 1; color: #fff; margin: 0 auto 40px; max-width: 14ch; }
.dc-cta .dc-btn { padding: 20px 34px; font-size: 18px; }
.dc-next { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 64px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: 16px; }
.dc-next a { display: inline-flex; gap: 10px; align-items: center; }
.dc-next a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .dc-overview { grid-template-columns: 1fr; }
  .dc-p { margin-left: 0; }
  .pillar, .pillar.flip { grid-template-columns: 1fr; gap: 20px; }
  .pillar.flip .pillar-copy { order: 0; }
  .dc-pair { grid-template-columns: 1fr; }
  .dc-pair .mock + .mock { margin-top: 32px !important; }
  .dc-hero { height: clamp(520px, 86svh, 760px); }
  .dc-hero-img { object-position: 50% 30%; }
}
@media (max-width: 600px) {
  .dc-meta { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .phone.phone-solo { width: 30%; }
  .phone-trio .trio { gap: 3.5%; padding: 36px 3%; }
  .dc-next { flex-direction: column; }
  .dc-title { font-size: clamp(34px, 9.4vw, 46px); }
}
@media (prefers-reduced-motion: reduce) { .dc-hero-img { animation: none; transform: none; } }
/* keep the white header cards readable on the dark case study */
body.dark-case .site-header .brand, body.dark-case .site-header .nav, body.dark-case .menu-toggle { color: var(--black); }
body.dark-case .mobile-menu { color: var(--black); }
.pillar.flip { grid-template-columns: minmax(0, 1.7fr) minmax(0, .72fr); }
.pillar.flip .pillar-vis { order: 1; }
@media (max-width: 900px) { .pillar.flip { grid-template-columns: 1fr; } .pillar.flip .pillar-vis { order: 0; } }

/* Process timeline: Figma → Claude → Browser → Netlify */
.process { position: relative; }
.ps-track { position: absolute; left: 3%; right: 3%; top: 31px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.ps-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #fff); transform-origin: left; transform: scaleX(0); animation: ps-fill 10s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes ps-fill { 0% { transform: scaleX(0); } 72%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.ps { padding: 0 0 4px; }
.ps-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ps-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #111116; box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  animation: ps-on 10s ease infinite; flex: none; }
.ps-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: rgba(255,255,255,.7); }
.ps-tool { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ps-n { display: block; font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.ps h3 { font-size: clamp(22px, 2vw, 30px); color: #fff; margin-bottom: 10px; line-height: 1.1; }
.ps p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.s1 .ps-ico { animation-delay: 0s; } .s2 .ps-ico { animation-delay: 2.2s; } .s3 .ps-ico { animation-delay: 4.4s; } .s4 .ps-ico { animation-delay: 6.6s; }
@keyframes ps-on {
  0% { background: #111116; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
  6%, 80% { background: var(--accent); box-shadow: 0 0 0 6px rgba(196,139,220,.18), 0 10px 30px -6px rgba(196,139,220,.6); }
  92%, 100% { background: #111116; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
}
.ps-ico { color: inherit; }
.process .ps-fill, .process .ps-ico { animation-play-state: paused !important; }
.process.playing .ps-fill, .process.playing .ps-ico { animation-play-state: running !important; }
.process.playing .ps-ico svg { transition: color .3s; }
@media (max-width: 900px) {
  .ps-list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ps-track { display: none; }
}
@media (max-width: 520px) { .ps-list { grid-template-columns: 1fr; row-gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .ps-fill { transform: scaleX(1); } }
.ps-tool { background: #050507; padding: 2px 8px 2px 2px; position: relative; }
/* Wide featured card (Club Indgo Website cover) */
.card.wide { grid-column: 1 / -1; }
.card.wide .card-media { aspect-ratio: 16 / 9; background: #07060a; }
.card.wide .card-title { font-size: clamp(22px, 2vw, 28px); }

/* ---------- Theme: The Siren Closet ---------- */
body.theme-siren { --accent: #c4574c; background: #050505; }
.theme-siren .dc-h, .theme-siren .dc-cta-h { font-family: "Ballet", "Inter", serif; font-weight: 400; letter-spacing: 0; line-height: 1.05; }
.theme-siren .dc-h { font-size: clamp(44px, 5vw, 76px); padding-top: .12em; }
.theme-siren .dc-cta-h { font-size: clamp(56px, 8vw, 128px); max-width: none; }
.theme-siren .dc-btn { color: #fff; }
.theme-siren .dc-btn:hover { color: #0b0606; box-shadow: 0 14px 30px -10px rgba(196,87,76,.6); }
.theme-siren .dc-btn-ghost { color: #fff; }
.theme-siren .phone-trio .trio { background: radial-gradient(60% 70% at 50% 55%, rgba(196,87,76,.22), transparent 70%), #0b0909; }
.theme-siren .dc-cta { background: radial-gradient(50% 80% at 50% 100%, rgba(196,87,76,.22), transparent 70%); }
.theme-siren .ps-ico { animation-name: ps-on-siren; }
@keyframes ps-on-siren {
  0% { background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
  6%, 80% { background: var(--accent); box-shadow: 0 0 0 6px rgba(196,87,76,.18), 0 10px 30px -6px rgba(196,87,76,.6); }
  92%, 100% { background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
}
.theme-siren .ps-ico svg { color: #fff; }

/* Process timeline adapts to 3 or 4 steps */
.ps-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .ps-list { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ps-list { grid-template-columns: 1fr; } }

/* Static phone screenshots */
.phone-screen.shot { aspect-ratio: .58; background: #000; }
.phone-screen.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Annotated phone: callouts appear one by one */
.annotated .an-stage { position: relative; width: min(330px, 62%); margin: 0 auto; transform: translateX(-52%); padding: 24px 0; }
.annotated .phone.phone-solo { width: 100%; transform: none; }
.an-notes { list-style: none; margin: 0; padding: 0; position: absolute; top: 34px; bottom: 34px; left: calc(100% - 48px); width: min(420px, 120%); }
.an { position: absolute; top: var(--y); left: 0; display: flex; align-items: center; transform: translateY(-50%); animation: an-in 11s ease infinite; }
.an-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(196,87,76,.25); }
.an-line { flex: none; width: 90px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(255,255,255,.35)); }
.an-text { padding-left: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.an-text b { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.n1 { animation-delay: 0s; } .n2 { animation-delay: .9s; } .n3 { animation-delay: 1.8s; } .n4 { animation-delay: 2.7s; } .n5 { animation-delay: 3.6s; }
@keyframes an-in { 0% { opacity: 0; transform: translate(-8px, -50%); } 6%, 82% { opacity: 1; transform: translate(0, -50%); } 92%, 100% { opacity: 0; transform: translate(0, -50%); } }
.annotated .an { animation-play-state: paused !important; }
.annotated.playing .an { animation-play-state: running !important; }
@media (max-width: 760px) {
  .annotated .an-stage { transform: none; width: min(300px, 78%); }
  .an-notes { position: static; width: auto; margin-top: 28px; display: grid; gap: 16px; }
  .an { position: static; transform: none; animation: none; }
  .an-line { width: 24px; }
}
@media (prefers-reduced-motion: reduce) { .an { opacity: 1 !important; animation: none !important; } }
/* Siren hero: photo on the right, headline on a clean black panel */
@media (min-width: 901px) {
  .theme-siren .dc-hero-img { left: auto; right: 0; width: 66%; object-position: 30% 42%; }
  .theme-siren .dc-hero::after { background:
      linear-gradient(90deg, #050505 34%, rgba(5,5,5,.75) 42%, rgba(5,5,5,0) 62%),
      linear-gradient(180deg, rgba(5,5,5,.3) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 70%, #050505 100%); }
  .theme-siren .dc-hero { align-items: center; }
  .theme-siren .dc-hero-copy { padding-bottom: 0; padding-top: 60px; }
  .theme-siren .dc-title { font-size: clamp(36px, 3.9vw, 62px); max-width: 13ch; }
}
@media (max-width: 900px) {
  .theme-siren .dc-hero-img { object-position: 22% 30%; }
}

/* Phone screen recording with synced chapter list */
.phone-screen.vid { aspect-ratio: 1320 / 2448; background: #000; }
.phone-screen.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 380px); justify-content: center; align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: radial-gradient(60% 70% at 30% 50%, rgba(196,87,76,.18), transparent 70%), #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.pv .phone.phone-solo { width: 100%; transform: none; }
.pv-ch { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.pv-ch li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 16px; border-radius: 14px; opacity: .45; transition: opacity .35s, background .35s, box-shadow .35s; }
.pv-ch li.on { opacity: 1; background: rgba(255,255,255,.04); box-shadow: inset 2px 0 0 var(--accent); }
.pv-time { grid-row: span 2; font: 500 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.pv-ch b { color: #fff; font-weight: 600; font-size: 16px; }
.pv-ch li > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .pv-stage { grid-template-columns: 1fr; padding: 24px 16px; }
  .pv .phone.phone-solo { width: min(260px, 74%); margin: 0 auto; }
}

/* Visit-the-site button on standard case studies */
.visit { margin: 48px 0 0; }
.visit-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--ink, #111); color: #fff; font-family: var(--font-ui); font-size: 16px; transition: opacity .2s; }
.visit-btn:hover { opacity: .82; }
.visit-btn svg { width: 12px; height: 12px; }

/* Tile caption with the subtitle above the title */
.tile-cap.cap-swap span { margin: 0 0 6px; }

/* A lone image in a gallery row sits centered at half width */
.gallery .media > :only-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
@media (max-width: 760px) { .gallery .media > :only-child { width: 100%; } }

/* Odd last image in a gallery grid sits centered at half width */
.gallery .media > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
@media (max-width: 760px) { .gallery .media > :last-child:nth-child(odd) { width: 100%; } }

/* Resume menu: one click, two PDFs */
.nav-resume { position: relative; }
.nav-resume-btn { display: inline-flex; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; cursor: pointer; }
.nav-resume-btn[aria-expanded="true"] { background: var(--ink-05); }
.resume-menu {
  position: absolute; top: calc(100% + 14px); right: -12px; width: 270px; padding: 8px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
.nav-resume.open .resume-menu { opacity: 1; visibility: visible; transform: none; }
.resume-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.resume-menu a:hover, .resume-menu a:focus-visible { background: var(--ink-05); }
.resume-menu b { display: block; font-weight: 500; }
.resume-menu span { display: block; font-size: 13px; color: #777; margin-top: 2px; }
.mobile-menu small { font-size: .55em; opacity: .6; }

/* "See my most recent work" arrow: gentle downward nudge */
.recent-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.recent-arrow svg { animation: recent-bob 1.8s ease-in-out infinite; }
@keyframes recent-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .recent-arrow svg { animation: none; } }
