/* Nicola Simmons portfolio — combined direction mockup (draft v2, 2026-11-17)
   Type: Hanken Grotesk (titles + text) with Instrument Serif italic accents. Accent color is switchable for review. */
:root {
  --paper: #F5F1EA;
  --paper-2: #EDE7DC;
  --ink: #1F1C19;
  --ink-2: #5B554E;
  --accent: #B83A6F;      /* pink */
  --accent-soft: #F4B6CE; /* accent on dark backgrounds */
  --accent-tint: #F9E1EA; /* small fills */
  --line: rgba(31, 28, 25, .14);
  --pvcc: #1F56C7;
  --danley: #4A1F1C;
  --sf: #2D3B2F;
  --pack: #A4492F;
  --tech: #26232F;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2);
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s;
  display: grid; place-items: center;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--paper);
}
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.is-view { width: 76px; height: 76px; background: var(--ink); }
.cursor.is-view span { opacity: 1; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav .logo img { height: 34px; width: auto; }
.nav ul { display: flex; gap: clamp(14px, 3vw, 36px); list-style: none; font-size: 15px; font-weight: 500; }
.nav ul a { position: relative; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons with "target" corner hover ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); border: 1px solid var(--ink);
  transition: background .3s, color .3s;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn .corner {
  position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); opacity: 0;
  transition: all .35s var(--ease);
}
.btn .c1 { top: -4px; left: -4px; border-top-width: 2px; border-left-width: 2px; }
.btn .c2 { top: -4px; right: -4px; border-top-width: 2px; border-right-width: 2px; }
.btn .c3 { bottom: -4px; left: -4px; border-bottom-width: 2px; border-left-width: 2px; }
.btn .c4 { bottom: -4px; right: -4px; border-bottom-width: 2px; border-right-width: 2px; }
.btn:hover .corner { opacity: 1; }
.btn:hover .c1 { top: -9px; left: -9px; } .btn:hover .c2 { top: -9px; right: -9px; }
.btn:hover .c3 { bottom: -9px; left: -9px; } .btn:hover .c4 { bottom: -9px; right: -9px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (from A) ---------- */
.hero {
  position: relative; min-height: calc(100svh - 72px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px);
}
.typed { font: 500 15px/1 var(--sans); letter-spacing: .02em; color: var(--accent); min-height: 1em; margin-bottom: 22px; }
.typed .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
  font: 500 clamp(46px, 7vw, 104px)/.98 var(--sans);
  letter-spacing: -.04em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.hero .lede { max-width: 30em; margin-top: 28px; color: var(--ink-2); font-size: 18px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.avail { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.avail span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4C8A57; margin-right: 8px; vertical-align: 1px; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
.loaded .fade-up { opacity: 1; transform: none; }

/* Floating cards: grayscale until hover */
.stack { position: relative; height: clamp(420px, 46vw, 640px); }
.card {
  position: absolute; width: 52%; aspect-ratio: 3 / 2;
  border-radius: 10px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 24px 50px -24px rgba(31, 28, 25, .45);
  will-change: transform;
  opacity: 0; transition: opacity 1s var(--ease);
}
.loaded .card { opacity: 1; }
.card .float { width: 100%; height: 100%; animation: bob 7s ease-in-out infinite; }
.card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}
.card:hover img, .card.in-color img { filter: none; transform: scale(1.06); }
.card .tag {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  background: var(--paper); font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: all .4s var(--ease);
}
.card:hover .tag, .card.in-color .tag { opacity: 1; transform: none; }
.card.k1 { top: 2%;  left: 4%;  --r: -6deg; z-index: 2; }
.card.k2 { top: 18%; right: 0;  --r: 5deg;  z-index: 3; }
.card.k3 { bottom: 4%; left: 12%; --r: 3deg; z-index: 4; }
.card.k4 { bottom: 14%; right: 6%; width: 36%; --r: -4deg; z-index: 1; }
.card { rotate: var(--r); transition: opacity 1s var(--ease), rotate .5s var(--ease); }
.card:hover { rotate: 0deg; z-index: 10; }
.card.k2 .float { animation-delay: -2s; } .card.k3 .float { animation-delay: -4s; } .card.k4 .float { animation-delay: -5.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hint { position: absolute; right: 0; bottom: -28px; font-size: 12px; color: var(--ink-2); }

/* ---------- Marquee (from C) ---------- */
.marquee { position: relative; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { font: italic 400 clamp(22px, 2.6vw, 34px)/1 var(--serif); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✶"; font-style: normal; font-size: .55em; color: var(--accent); font-family: var(--sans); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Work: category filter + C tiles ---------- */
.section { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font: 500 clamp(36px, 5vw, 64px)/1 var(--sans); letter-spacing: -.02em; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: all .25s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button sup { font-size: 10px; margin-left: 3px; opacity: .6; }

.tiles { display: grid; gap: 20px; }
.tile {
  --bg: var(--ink);
  position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px;
  min-height: 460px; padding: clamp(24px, 3.5vw, 48px);
  border-radius: 18px; overflow: hidden; background: var(--bg); color: #fff;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile.hide { display: none; }
.tile.dim { opacity: 0; transform: translateY(14px); }
.tile .meta { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; z-index: 2; }
.tile .num { font: 500 13px/1 var(--sans); letter-spacing: .1em; opacity: .7; }
.tile h3 { font: 500 clamp(32px, 3.6vw, 52px)/1.02 var(--sans); letter-spacing: -.015em; margin-top: 14px; }
.tile h3 em { font-style: italic; }
.tile p { opacity: .82; max-width: 30em; margin-top: 14px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips span { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.tile .go { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.tile .go .arrow { transition: transform .3s var(--ease); }
.tile:hover .go .arrow { transform: translateX(6px); }
.tile .owner { font-size: 12px; opacity: .65; }

/* fanned images with parallax layers */
.fan { position: relative; min-height: 360px; }
.fan figure {
  position: absolute; width: 58%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.6);
  transition: rotate .6s var(--ease), translate .6s var(--ease);
  will-change: transform;
}
.fan figure img { width: 100%; height: 100%; object-fit: cover; }
.fan figure:nth-child(1) { left: 0;   top: 14%; rotate: -5deg; z-index: 1; }
.fan figure:nth-child(2) { left: 22%; top: 0;   rotate: 2deg;  z-index: 2; }
.fan figure:nth-child(3) { left: 42%; top: 30%; rotate: 6deg;  z-index: 3; }
.tile:hover .fan figure:nth-child(1) { rotate: -9deg; translate: -14px 0; }
.tile:hover .fan figure:nth-child(3) { rotate: 10deg; translate: 14px 0; }
.fan .step {
  position: absolute; z-index: 4; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 999px;
}
.placeholder {
  position: absolute; inset: 6% 4%; border: 1.5px dashed rgba(255,255,255,.4); border-radius: 12px;
  display: grid; place-items: center; text-align: center; padding: 24px; font-size: 14px; opacity: .85;
}
.placeholder strong { display: block; font: italic 400 26px/1.1 var(--serif); margin-bottom: 8px; }

.more-work { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.more-work p { color: var(--ink-2); }

/* ---------- Footer (from A) ---------- */
footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 128px) 0 36px; }
footer h2 { font: 500 clamp(52px, 9vw, 140px)/.95 var(--sans); letter-spacing: -.03em; }
footer h2 em { font-style: italic; color: var(--accent); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 56px; align-items: end; }
footer .btn { border-color: var(--paper); }
footer .btn.primary { background: var(--paper); color: var(--ink); }
footer .links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
footer .links a:hover { color: var(--accent-soft); }
footer .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 72px; padding-top: 22px; border-top: 1px solid rgba(245,241,234,.15); font-size: 13px; opacity: .65; }
footer .base img { height: 26px; width: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(40px, 7vw, 96px) 0; }
.about-hero h1 { font: 500 clamp(44px, 6vw, 88px)/1 var(--sans); letter-spacing: -.02em; }
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero p { color: var(--ink-2); margin-top: 22px; max-width: 32em; }
.portrait { aspect-ratio: 4 / 5; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); font-size: 14px; text-align: center; padding: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 36px; }
.facts h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.facts li { list-style: none; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* Toolkit folder */
.toolkit { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.toolkit h2 { font: 500 clamp(36px, 5vw, 64px)/1 var(--sans); letter-spacing: -.02em; }
.toolkit h2 em { font-style: italic; color: var(--accent); }
.toolkit p { color: var(--ink-2); margin-top: 18px; max-width: 28em; }
.legend { font-size: 12px; color: var(--ink-2); margin-top: 14px; }

.note {
  margin: 0 auto; max-width: 1440px; padding: 10px var(--gutter);
  font-size: 12px; color: var(--ink-2); background: #FBE9D8; border-bottom: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stack { height: 380px; margin-top: 12px; }
  .tile { grid-template-columns: 1fr; min-height: 0; }
  .fan { min-height: 240px; }
  .about-hero, .toolkit { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .nav ul { gap: 14px; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero h1 .line > span, .fade-up, .reveal, .card { opacity: 1 !important; transform: none !important; }
}

/* ---------- v2: sans titles + italic serif accents ---------- */
h1, h2, h3 { letter-spacing: -.035em; }
h1 em, h2 em, h3 em, blockquote em, .serif-i {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: -.01em; line-height: .9;
}
html[data-accent="sage"]  { --accent: #4F6B57; --accent-soft: #BCD0BE; --accent-tint: #DDE7DC; }
html[data-accent="blue"]  { --accent: #3A56A0; --accent-soft: #B9C7EE; --accent-tint: #DFE5F5; }
html[data-accent="plum"]  { --accent: #6F3A63; --accent-soft: #DCB8D2; --accent-tint: #EBDCE6; }
.swatches { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.swatches button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--paper); outline: 1px solid var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--ink); }
.note { background: var(--accent-tint); }

/* hero mission */
.hero h1 { font-size: clamp(40px, 4.9vw, 76px); line-height: 1.02; }
.hero { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero .lede { font-size: 19px; }

/* tiles: wide features + 2-up grid */
.tiles { grid-template-columns: 1fr 1fr; }
.tile.wide { grid-column: 1 / -1; }
.tile:not(.wide) { grid-template-columns: 1fr; min-height: 0; }
.tile:not(.wide) h3 { font-size: clamp(26px, 2.6vw, 36px); }
.tile:not(.wide) .fan { min-height: 260px; }
.tile .fan figure img { transition: transform .8s var(--ease); }
.tile:hover .fan figure img { transform: scale(1.05); }
.result { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font: 600 13px/1 var(--sans); }
.result::before { content: "↗"; color: var(--accent-soft); }
.tile .go:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile .soon { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--ink); }
.tile.p-blush { color: var(--ink); }
.tile.p-blush .chips span { border-color: rgba(31,28,25,.3); }
.tile.p-blush .placeholder { border-color: rgba(31,28,25,.3); }
.tile.p-blush .result { background: rgba(31,28,25,.08); }
.tile.p-blush .result::before { color: var(--accent); }

/* ---------- Contact form in footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-grid .intro p { margin-top: 20px; max-width: 26em; color: rgba(245,241,234,.72); }
form.contact { display: grid; gap: 18px; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.contact label { display: grid; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,234,.6); }
form.contact input, form.contact textarea {
  font: 400 17px/1.4 var(--sans); color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid rgba(245,241,234,.3); padding: 10px 0; outline: none; transition: border-color .3s;
  text-transform: none; letter-spacing: 0;
}
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--accent-soft); }
form.contact .send { justify-self: start; margin-top: 6px; cursor: pointer; }
form.contact .status { font-size: 13px; color: var(--accent-soft); min-height: 1em; }
footer .links a .up { display: inline-block; margin-left: 4px; transition: transform .3s var(--ease); }
footer .links a:hover .up { transform: translate(2px, -2px); }
footer .links { margin-top: 56px; }

/* ---------- Freelance page ---------- */
.page-hero { padding: clamp(40px, 7vw, 104px) 0 clamp(32px, 5vw, 64px); max-width: 980px; }
.page-hero h1 { font: 500 clamp(44px, 6.4vw, 96px)/1 var(--sans); letter-spacing: -.04em; }
.page-hero h1 em { color: var(--accent); }
.page-hero p.lede { margin-top: 26px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.page-hero .ctas a.plain { font-weight: 600; font-size: 15px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.service { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: background .4s var(--ease); }
.service:hover { background: var(--accent-tint); }
.service .n { font: italic 400 30px/1 var(--serif); color: var(--accent); }
.service h3 { font: 600 22px/1.15 var(--sans); letter-spacing: -.02em; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service .for { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.service .for b { color: var(--ink); font-weight: 600; }
.gallery { columns: 3 300px; column-gap: 18px; }
.g-item { break-inside: avoid; margin-bottom: 18px; border-radius: 14px; overflow: hidden; position: relative; background: var(--paper-2); display: block; }
.g-item img { width: 100%; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { padding: 14px 16px 16px; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
.g-item figcaption b { display: block; font-weight: 600; }
.g-item figcaption span { font-size: 13px; color: var(--ink-2); }
.g-item .ph { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 20px; border: 1.5px dashed var(--line); border-radius: 14px 14px 0 0; color: var(--ink-2); font-size: 14px; }
.g-item .ph strong { display: block; font: italic 400 24px/1.1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.g-item.hide { display: none; }
.quote-ph { margin-top: 18px; padding: clamp(28px, 4vw, 56px); border-radius: 18px; background: var(--accent-tint); text-align: center; }
.quote-ph blockquote { font: 500 clamp(24px, 3vw, 38px)/1.2 var(--sans); letter-spacing: -.03em; max-width: 22em; margin: 0 auto; }
.quote-ph cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: var(--ink-2); }

/* ---------- Case study ---------- */
.cs-top { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.back { font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 8px; }
.back:hover { color: var(--ink); }
.cs-top h1 { font: 500 clamp(44px, 6.6vw, 104px)/1 var(--sans); letter-spacing: -.045em; margin-top: 22px; max-width: 12em; }
.cs-top h1 em { color: var(--accent); }
.cs-top .sub { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 32em; }
.cs-hero { height: clamp(320px, 62vw, 760px); overflow: hidden; border-radius: 18px; position: relative; }
.cs-hero .ph-img { position: absolute; inset: -12% 0; will-change: transform; }
.cs-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: clamp(32px, 5vw, 64px) 0; }
.glance > div { padding: 22px 22px 24px 0; }
.glance > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.glance h4, .k { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.glance p, .glance li { font-size: 15.5px; list-style: none; }
.glance .wide2 { grid-column: span 2; }
.problem-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 22px 0 !important; border-left: 0 !important; }
.problem-line p { font: 500 clamp(20px, 2.2vw, 28px)/1.3 var(--sans); letter-spacing: -.02em; max-width: 34em; }
.problem-line p em { color: var(--accent); }
.results-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 22px; border-radius: 14px; background: var(--accent-tint); }
.stat b { display: block; font: 500 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -.04em; }
.stat span { font-size: 14px; color: var(--ink-2); }
.cs-body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 8vw, 112px); }
.sidenav { position: sticky; top: 96px; }
.sidenav ol { list-style: none; border-left: 1px solid var(--line); }
.sidenav a { display: flex; gap: 12px; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); transition: color .3s, border-color .3s; }
.sidenav a span { font-variant-numeric: tabular-nums; opacity: .6; font-size: 12px; padding-top: 2px; }
.sidenav a:hover { color: var(--ink); }
.sidenav a.active { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.sidenav .progress { margin-top: 18px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sidenav .progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.cs-section { padding-top: 24px; margin-bottom: clamp(56px, 8vw, 104px); scroll-margin-top: 90px; }
.cs-section > .k { color: var(--accent); }
.cs-section h2 { font: 500 clamp(30px, 3.6vw, 48px)/1.05 var(--sans); letter-spacing: -.035em; max-width: 16em; }
.cs-section h2 em { color: var(--accent); }
.cs-section .tldr { font-size: 20px; line-height: 1.5; margin-top: 18px; max-width: 34em; }
.cs-section p.body { margin-top: 14px; color: var(--ink-2); max-width: 36em; }
.cs-section ul.points { margin-top: 18px; display: grid; gap: 10px; max-width: 38em; }
.cs-section ul.points li { list-style: none; padding-left: 26px; position: relative; }
.cs-section ul.points li::before { content: "✶"; position: absolute; left: 0; color: var(--accent); font-size: 13px; top: 3px; }
.why { margin-top: 26px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); background: #fff8; max-width: 40em; display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.why .tag { font: italic 400 24px/1 var(--serif); color: var(--accent); }
.why p { font-size: 15.5px; }
.ask { background: linear-gradient(transparent 62%, var(--accent-tint) 62%); border-bottom: 1px dashed var(--accent); }
.ask::after { content: " ✎"; color: var(--accent); font-size: .8em; }
.fig { margin-top: 28px; }
.fig img { border-radius: 14px; width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 40em; }
.fig figcaption b { color: var(--ink); }
.fig-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fig-2 .fig { margin-top: 0; }
.board { margin-top: 28px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 90px; gap: 10px; }
.board > div { border-radius: 10px; border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--ink-2); padding: 8px; background: var(--paper-2); }
.board .b1 { grid-column: span 2; grid-row: span 2; } .board .b2 { grid-column: span 2; } .board .b3 { grid-column: span 2; grid-row: span 2; }
.board .b4 { grid-column: span 2; } .board .sw { border-style: solid; color: #fff; font-weight: 600; }
.formatmap { margin-top: 28px; position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 18px; background: #1F56C7; color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.formatmap .core { width: clamp(150px, 18vw, 210px); aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); }
.formatmap .core img { width: 100%; height: 100%; object-fit: cover; }
.formatmap ul { list-style: none; display: grid; gap: 8px; }
.formatmap li { font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); opacity: 0; transform: translateX(var(--dx, -12px)); transition: all .6s var(--ease); }
.formatmap ul.r li { --dx: 12px; text-align: right; }
.formatmap.in li { opacity: 1; transform: none; }
.formatmap .cap { grid-column: 1 / -1; font-size: 13px; opacity: .75; text-align: center; }
.more { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.more-card { display: block; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.more-card .im { aspect-ratio: 16/10; overflow: hidden; }
.more-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.more-card:hover img { transform: scale(1.05); }
.more-card .t { padding: 18px 20px 22px; }
.more-card .t b { display: block; font: 600 22px/1.15 var(--sans); letter-spacing: -.02em; }
.more-card .t span { font-size: 14px; color: var(--ink-2); }

/* ---------- About: off the clock ---------- */

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .contact-grid, form.contact .two { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cs-body { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .results-row, .more-grid, .fig-2 { grid-template-columns: 1fr; }
  .formatmap { grid-template-columns: 1fr; justify-items: center; }
  .formatmap ul { width: 100%; grid-template-columns: 1fr 1fr; }
  .formatmap ul.r li { text-align: left; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .board > div { grid-column: span 1 !important; grid-row: span 1 !important; }
  .offclock { grid-template-columns: 1fr 1fr; }
}

/* ---------- v3: tighter titles ---------- */
.hero h1, .page-hero h1, .cs-top h1, .about-hero h1, footer h2 { letter-spacing: -.06em; }
.section-head h2, .toolkit h2, .cs-section h2, .tile h3, .sub-h, .service h3, .more-card .t b { letter-spacing: -.05em; }
h1 em, h2 em, h3 em { letter-spacing: -.02em; }
.sub-h { font: 500 clamp(32px, 4.4vw, 56px)/1 var(--sans); }
.sub-h em { color: var(--accent); }
.cs-section h2 { font-size: clamp(28px, 3vw, 40px); }
.tile:not(.wide) .fan { min-height: 220px; }

/* ---------- v3: pink toolkit folder ---------- */
.folder-stage { position: relative; height: 600px; display: grid; place-items: end center; padding-bottom: 20px; }
.folder { position: relative; width: min(440px, 94%); aspect-ratio: 1.4; }
.folder .back { position: absolute; inset: 0; background: #E98AB0; border-radius: 10px 22px 22px 22px; }
.folder .back::before { content: ""; position: absolute; left: 0; top: -24px; width: 40%; height: 32px; background: #E98AB0; border-radius: 16px 18px 0 0; }
.folder .front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72%; z-index: 20;
  background: linear-gradient(#F8BDD3, #F2A3C2); border-radius: 18px;
  transform-origin: bottom center; transform: perspective(900px) rotateX(0deg);
  transition: transform .8s var(--ease);
  box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 24px 40px -24px rgba(120,30,70,.45);
  display: grid; place-items: center;
}
.folder .front .label { background: #fff; padding: 10px 22px; border-radius: 999px; font: italic 400 28px/1 var(--serif); color: var(--accent); box-shadow: 0 6px 14px -8px rgba(120,30,70,.4); }
.folder .front .heart { position: absolute; right: 22px; top: 18px; color: #fff; font-size: 22px; rotate: 12deg; }
.folder-stage.open .folder .front { transform: perspective(900px) rotateX(-20deg); }
.sheet {
  position: absolute; left: 50%; bottom: 30%; z-index: 10; width: 248px; margin-left: -124px;
  background: var(--paper, #fff); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 18px 32px -16px rgba(80,20,50,.4); border: 1px solid rgba(184,58,111,.15);
  transform: translate(0, 60px) scale(.7) rotate(0deg); opacity: 0;
  transition: transform .9s cubic-bezier(.3, 1.4, .4, 1), opacity .4s;
}
.folder-stage.open .sheet { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--rot)); }
.folder-stage.open .sheet:hover { z-index: 30; transform: translate(var(--x), calc(var(--y) - 8px)) rotate(0deg) scale(1.04); }
.sheet .lbl { display: block; font: italic 400 20px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.sheet .icons { display: flex; gap: 10px 17px; flex-wrap: wrap; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 1px rgba(31,28,25,.08); }
.ico svg { width: 26px; height: 26px; }
.ico small { position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: 4px; white-space: nowrap; font: 600 9.5px/1 var(--sans); color: var(--ink-2); }
.sheet .icons { padding-bottom: 14px; }

/* ---------- v3: off the clock, photo expands on hover ---------- */
.offclock { display: flex; gap: 14px; margin-top: 28px; height: 300px; }
.hobby { flex: 1; position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); transition: flex .7s var(--ease), background .4s; cursor: default; outline: none; }
.hobby .photo { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ph); color: rgba(31,28,25,.45); font-size: 13px; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hobby .photo img { width: 100%; height: 100%; object-fit: cover; }
.hobby b { position: absolute; left: 20px; bottom: 18px; font: 500 22px/1.1 var(--sans); letter-spacing: -.04em; }
.hobby:hover, .hobby:focus-visible, .hobby:focus { flex: 2.6; }
.hobby:hover .photo, .hobby:focus .photo { opacity: 1; transform: none; }
.hobby:hover b, .hobby:focus b { background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 17px; }

@media (max-width: 900px) {
  .folder-stage { height: 470px; margin-top: 24px; }
  .folder { scale: .72; transform-origin: bottom center; }
  .offclock { flex-direction: column; height: auto; }
  .hobby { flex: none; height: 72px; transition: height .6s var(--ease); }
  .hobby:hover, .hobby:focus { height: 240px; }
}

/* ---------- v4: real photos ---------- */
.portrait:has(img) { border: 0; padding: 0; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hobby .photo { background: var(--paper-2); }
.hobby .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.hobby .photo img.on { opacity: 1; }
.hobby::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(31,28,25,.28)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.hobby:hover::after, .hobby:focus::after { opacity: 1; }
.hobby b { z-index: 2; }

/* ---------- v5: B&W preview, color + mouse scrub on hover ---------- */
.offclock { height: 460px; }
.hobby .photo { opacity: 1 !important; transform: none !important; }
.hobby .photo img { opacity: 0; transition: opacity .25s linear, filter .6s var(--ease), transform .8s var(--ease); filter: grayscale(1) contrast(1.05); }
.hobby .photo img.on { opacity: 1; }
.hobby:hover .photo img, .hobby:focus .photo img { filter: none; }
.hobby:hover, .hobby:focus { flex: 2.2; }
.hobby b { background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 17px; left: 16px; bottom: 16px; }
.hobby::after { opacity: 1; }
.dots { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .4s; }
.dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); transition: background .2s; }
.dots i.on { background: #fff; }
.hobby:hover .dots, .hobby:focus .dots { opacity: 1; }
@media (max-width: 900px) {
  .offclock { height: auto; }
  .hobby { height: 120px; }
  .hobby:hover, .hobby:focus { height: 360px; }
}

/* v6: plain white label, no pill */
.hobby b, .hobby:hover b, .hobby:focus b { background: none; padding: 0; color: #fff; font-size: 19px; left: 20px; bottom: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hobby::after { background: linear-gradient(transparent 50%, rgba(31,28,25,.5)); }

/* ---------- v7: logo images in the toolkit ---------- */
.ico.pic { background: none; box-shadow: none; }
.ico.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(31,28,25,.08); }
.sheet { width: 286px; margin-left: -143px; }
.sheet .icons { gap: 10px 14px; }
@media (max-width: 900px) { .folder { scale: .62; } }
.ico, .ico.pic img { border-radius: 12px; }
.ico.pic { box-shadow: 0 0 0 1px rgba(31,28,25,.08); }
.ico.pic img { box-shadow: none; }
/* v8: room for descenders (g, y) inside the headline reveal mask */
.hero h1 .line { padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .line > span { transform: translateY(120%); }
.loaded .hero h1 .line > span { transform: none; }

/* ---------- v9: project cards (one thumbnail, simple info, hover reveal) ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 28px; }
.proj { display: block; color: var(--ink); text-decoration: none; transition: opacity .3s, transform .3s; }
.proj.big { grid-column: 1 / -1; }
.proj.hide { display: none; }
.proj.dim { opacity: 0; transform: translateY(14px); }
.proj .thumb {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--bg); aspect-ratio: 4 / 3;
  clip-path: inset(10% 8% 10% 8% round 22px); transition: clip-path 1.1s var(--ease);
}
.proj.big .thumb { aspect-ratio: 16 / 8; }
.proj.in .thumb { clip-path: inset(0 0 0 0 round 22px); }
.proj .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); transition: transform 1.4s var(--ease); }
.proj.in .thumb img { transform: scale(1); }
.proj:hover .thumb img, .proj:focus-visible .thumb img { transform: scale(1.05); }
.proj .ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 14px; }
.proj .ph strong { font: italic 400 clamp(26px, 3vw, 40px)/1 var(--serif); color: #fff; }
.proj.light .ph { color: rgba(31,28,25,.6); }
.proj.light .ph strong { color: var(--accent); }
.proj .panel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 28px 24px; color: #fff;
  background: linear-gradient(transparent, rgba(20,16,18,.82));
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  transform: translateY(100%); transition: transform .6s var(--ease);
}
.proj .panel p { max-width: 34em; font-size: 15px; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .5s .1s, transform .6s .1s var(--ease); }
.proj .panel .go { flex: none; font-weight: 600; font-size: 14px; white-space: nowrap; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; opacity: 0; transform: translateY(12px); transition: opacity .5s .18s, transform .6s .18s var(--ease); }
.proj:hover .panel, .proj:focus-visible .panel { transform: none; }
.proj:hover .panel p, .proj:hover .panel .go, .proj:focus-visible .panel p, .proj:focus-visible .panel .go { opacity: 1; transform: none; }
.proj .go .arrow { display: inline-block; transition: transform .3s var(--ease); }
.proj:hover .go .arrow { transform: translateX(4px); }
.proj .info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.proj h3 { font: 500 clamp(24px, 2.4vw, 34px)/1.05 var(--sans); letter-spacing: -.05em; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.proj:hover h3 { background-size: 100% 1.5px; }
.proj .yr { font: italic 400 19px/1 var(--serif); color: var(--ink-2); white-space: nowrap; }
.proj .cats { margin-top: 8px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
@media (hover: none) { .proj .panel { display: none; } }
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; gap: 44px; }
  .proj.big .thumb { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .proj .thumb { clip-path: none; } .proj .thumb img { transform: none; } }
.cursor.is-soon { width: 76px; height: 76px; background: var(--accent); }
.cursor.is-soon span { opacity: 1; }

/* contact form: keep fields dark when typing or autofilled */
form.contact input, form.contact textarea { background: transparent !important; color: var(--paper); caret-color: var(--accent-soft); }
form.contact input::placeholder, form.contact textarea::placeholder { color: rgba(245,241,234,.35); }
form.contact input:-webkit-autofill, form.contact input:-webkit-autofill:hover, form.contact input:-webkit-autofill:focus, form.contact textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--paper); -webkit-box-shadow: 0 0 0 1000px var(--ink) inset; box-shadow: 0 0 0 1000px var(--ink) inset; transition: background-color 9999s;
}
.proj .ph { padding: 0 24px; }

/* ---------- v10: PVCC case study with real work ---------- */
.cs-hero.trio { height: auto; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: center; padding: clamp(24px, 4vw, 56px); background: #DCE6F4; }
.cs-hero.trio img { width: 100%; border-radius: 6px; box-shadow: 0 24px 40px -22px rgba(0,30,90,.45); }
.cs-hero.trio img:nth-child(1) { rotate: -3deg; }
.cs-hero.trio img:nth-child(3) { rotate: 3deg; }
.cs-section .cap { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 40em; }
.steps { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps div { padding: 16px; border-radius: 14px; background: var(--paper-2); }
.steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }
.steps p { margin-top: 10px; font-size: 14.5px; line-height: 1.45; }
.poster-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.poster-grid img { width: 100%; border-radius: 6px; box-shadow: 0 10px 20px -14px rgba(0,0,0,.4); transition: transform .4s var(--ease); }
.poster-grid img:hover { transform: translateY(-4px); }
.format-set { margin-top: 28px; display: grid; grid-template-columns: 1.1fr .62fr 1fr; grid-template-areas: "poster story post" "poster story tv" "x marquee marquee"; gap: 14px; padding: 18px; border-radius: 18px; background: #E8EEF8; align-items: start; }
.format-set figure { margin: 0; }
.format-set img { width: 100%; border-radius: 6px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.35); }
.format-set figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.f-poster { grid-area: poster; } .f-story { grid-area: story; } .f-post { grid-area: post; } .f-tv { grid-area: tv; } .f-x { grid-area: x; } .f-marquee { grid-area: marquee; }
blockquote.pm { margin-top: 30px; font: italic 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); color: var(--accent); }
blockquote.pm cite { display: block; margin-top: 8px; font: 500 13px/1.4 var(--sans); font-style: normal; color: var(--ink-2); letter-spacing: .02em; }
.fig.map img { border-radius: 14px; box-shadow: 0 18px 36px -24px rgba(0,0,0,.45); }
.poster-wall { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 22px; border-radius: 18px; background: #2A2530; }
.poster-wall figure { margin: 0; }
.poster-wall img { width: 100%; border-radius: 4px; box-shadow: 0 14px 24px -14px rgba(0,0,0,.8); transition: transform .4s var(--ease); }
.poster-wall figure:hover img { transform: translateY(-6px) rotate(-1deg); }
.poster-wall figcaption { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.7); text-align: center; }
.zp-set { margin-top: 24px; display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: #151515; }
.zp-set img { width: 100%; border-radius: 6px; }
.ig-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.results-row:has(.stat:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .steps, .poster-grid, .ig-grid { grid-template-columns: 1fr 1fr; }
  .poster-wall { grid-template-columns: repeat(3, 1fr); padding: 14px; }
  .format-set { grid-template-columns: 1fr 1fr; grid-template-areas: "poster story" "post tv" "x x" "marquee marquee"; }
  .results-row:has(.stat:nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .zp-set { grid-template-columns: 1fr 110px; }
  .cs-hero.trio { padding: 18px; gap: 10px; }
}
.format-set { max-width: 820px; grid-template-columns: 1fr .58fr .9fr; grid-template-areas: "poster story post" "poster story tv" "x marquee marquee"; }
.zp-set { max-width: 720px; grid-template-columns: 1fr 150px; }
.poster-grid, .ig-grid { max-width: 860px; }

/* ---------- v11: single-project pages (meta block + numbered images) ---------- */
.p-hero { margin-top: 8px; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.p-hero img { width: 100%; display: block; }
.p-hero.posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: clamp(16px, 3vw, 36px); background: #2A2530; }
.p-hero.posters img { border-radius: 4px; box-shadow: 0 14px 24px -14px rgba(0,0,0,.8); }
.p-hero.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 40px); padding: clamp(20px, 4vw, 56px); background: #DCE6F4; justify-items: center; }
.p-hero.pair img { max-width: 340px; border-radius: 6px; box-shadow: 0 20px 34px -20px rgba(0,30,90,.5); }
.p-hero.cover { padding: clamp(20px, 4vw, 56px); background: #DCE6F4; display: grid; place-items: center; }
.p-hero.cover img { max-width: 420px; box-shadow: 0 24px 40px -22px rgba(0,30,90,.5); }
.p-credit { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.pmeta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pmeta h4 { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pmeta p { margin-top: 8px; font-size: 15px; line-height: 1.45; }
.pintro { margin-top: 28px; max-width: 40em; font-size: 19px; line-height: 1.55; }
.pblock { margin-top: clamp(64px, 9vw, 112px); }
.pblock .k { color: var(--accent); font: 500 13px/1 var(--sans); letter-spacing: .1em; }
.pblock h2 { margin-top: 10px; font: 500 clamp(28px, 3.4vw, 44px)/1.05 var(--sans); letter-spacing: -.05em; }
.pblock > p.line { margin-top: 12px; max-width: 38em; color: var(--ink-2); font-size: 16.5px; }
.shots { margin-top: 24px; display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), 1fr); align-items: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 10px; display: block; }
.shots .tall img, .shots img.rcard { box-shadow: 0 10px 22px -14px rgba(0,0,0,.45); }
.shots figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.shots .span2 { grid-column: span 2; }
.shots .spanall { grid-column: 1 / -1; }
.shots.panel { padding: 18px; border-radius: 18px; background: #E8EEF8; }
.shots.dark { padding: 18px; border-radius: 18px; background: #1d1a20; }
.shots.dark figcaption { color: rgba(255,255,255,.65); }
.mock { border: 1.5px dashed var(--accent-soft); background: var(--accent-tint); border-radius: 12px; min-height: 220px; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--accent); }
.mock b { font: italic 400 22px/1.15 var(--serif); }
.mock span { margin-top: 6px; font-size: 13px; color: var(--ink-2); max-width: 26em; }
.mock.wide { min-height: 320px; }
@media (max-width: 900px) {
  .pmeta { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .span2 { grid-column: 1 / -1; }
  .p-hero.posters { grid-template-columns: repeat(3, 1fr); }
}
/* small project cards: show whole posters and covers */
.proj:not(.big) .thumb img { object-fit: contain; padding: clamp(14px, 2vw, 26px); }
.proj:not(.big) .thumb img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.more-card .im { background: #DCE6F4; }
.more-card img[src*="th-"], .more-card img[src*="/ap/"], .more-card img[src*="/rc/"] { object-fit: contain; padding: 14px; }
.mock small { display: block; margin-top: 10px; font: 500 11.5px/1.4 var(--sans); color: var(--ink-2); opacity: .8; }
.mock::before { content: "Mockup needed"; display: block; margin-bottom: 8px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mock.hero { min-height: clamp(320px, 42vw, 560px); border-radius: 18px; }
.mock.tallm { min-height: 420px; }
.proj .thumb .ph.mockph strong::before { content: "Mockup needed · "; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.more-card .im.ph-im { display: grid; place-items: center; text-align: center; background: var(--accent-tint); border-bottom: 1.5px dashed var(--accent-soft); }
.more-card .im.ph-im span { font: 600 10.5px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.more-card .im.ph-im b { font: italic 400 20px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.proj .thumb .ph.mockph { background: var(--accent-tint); color: var(--ink-2); outline: 1.5px dashed var(--accent-soft); outline-offset: -10px; border-radius: 22px; }
.proj .thumb .ph.mockph strong { color: var(--accent); font-size: clamp(20px, 2.2vw, 30px); }
.proj .thumb .ph.mockph strong::before { content: ""; }
/* v12: home grid, 3 main, 2 secondary, 3 small */
.projects { grid-template-columns: repeat(6, 1fr); gap: 56px 24px; }
.proj.big { grid-column: 1 / -1; }
.proj.mid { grid-column: span 3; }
.proj.sm { grid-column: span 2; }
.proj.mid .thumb { aspect-ratio: 4 / 3; }
.proj.sm .thumb { aspect-ratio: 4 / 5; }
.proj.sm h3 { font-size: clamp(20px, 1.8vw, 26px); }
.proj.sm .ph strong { font-size: clamp(18px, 1.8vw, 24px); }
@media (max-width: 900px) { .proj.mid, .proj.sm { grid-column: span 3; } }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } .proj.big, .proj.mid, .proj.sm { grid-column: 1 / -1; } .proj.sm .thumb { aspect-ratio: 4 / 3; } }
.proj.sm .thumb img[src*="/px/"] { object-fit: cover; padding: 0; filter: none; }
.proj.mid .thumb img[src*="/px/"] { object-fit: cover; padding: 0; filter: none; }
/* v13: freelance work by type */
.ftype { margin-top: clamp(48px, 7vw, 88px); }
.ftype .sub-h { font-size: clamp(26px, 3vw, 38px); }
.fproj { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.ftype .fproj:first-of-type { margin-top: 18px; }
.fhead h4 { font: 500 22px/1.15 var(--sans); letter-spacing: -.04em; }
.fhead p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.flabel { display: inline-block; margin-top: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fimgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fimgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.fimgs .mock { min-height: 0; aspect-ratio: 3 / 2; grid-column: span 3; }
.fimgs img + img + .mock, .fimgs img + .mock { grid-column: auto; aspect-ratio: 3 / 2; padding: 12px; }
.fimgs[style*="--n:1"] .mock { aspect-ratio: auto; min-height: 220px; }
@media (max-width: 900px) { .fproj { grid-template-columns: 1fr; } .fimgs { grid-template-columns: 1fr 1fr; } .fimgs .mock { grid-column: 1 / -1; } }
/* freelance: phone frames for social, flat process logos */
.phones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-tint), #EFE7DD); }
.phone { background: #111; border-radius: 22px; padding: 7px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.55); position: relative; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 28%; height: 6px; border-radius: 6px; background: #111; z-index: 2; }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; display: block; background: #222; }
.fimgs[style*="--n:1"] img { grid-column: 1 / -1; aspect-ratio: auto; max-height: 520px; object-fit: contain; background: #fff; }
@media (max-width: 900px) { .phones { grid-template-columns: repeat(3, 1fr); padding: 14px; } }
.phone img { object-fit: contain; background: #000; }
/* v14: freelance filter bar + hover strips + parallax */
.ffilter { position: sticky; top: 74px; z-index: 40; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin-bottom: 8px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.ffilter button { font: 600 13px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ffilter button:hover { border-color: var(--accent); color: var(--accent); }
.ffilter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ffilter button sup { margin-left: 4px; font-size: 10px; opacity: .7; }
.ftype { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ftype.fade { opacity: 0; transform: translateY(16px); }
.ftype.gone { display: none; }
.fimgs.strip { display: block; overflow: hidden; border-radius: 12px; position: relative; }
.fimgs.strip .track { display: flex; gap: 12px; width: max-content; transition: transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.fimgs.strip .track > * { flex: 0 0 auto; height: clamp(200px, 21vw, 300px); width: auto; aspect-ratio: 3 / 2; border-radius: 10px; }
.fimgs.strip .track > img { object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.fimgs.strip:hover .track > img { filter: saturate(1.08); }
.fimgs.strip .track > img:hover { transform: scale(1.03); }
.fimgs.strip .track > .mock { min-height: 0; padding: 14px; }
.fimgs.strip.scrolls::after { content: "Move to see more →"; position: absolute; right: 12px; bottom: 12px; font: 600 11px/1 var(--sans); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); opacity: 1; transition: opacity .3s; pointer-events: none; }
.fimgs.strip.scrolls:hover::after { opacity: 0; }
.fimgs.strip .track > * { opacity: 0; transform: translateY(24px); }
.fproj.in .fimgs.strip .track > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.fproj.in .fimgs.strip .track > *:nth-child(2) { transition-delay: .1s; }
.fproj.in .fimgs.strip .track > *:nth-child(3) { transition-delay: .2s; }
.fproj.in .fimgs.strip .track > *:nth-child(4) { transition-delay: .3s; }
@media (hover: none) { .fimgs.strip { overflow-x: auto; scroll-snap-type: x mandatory; } .fimgs.strip .track > * { scroll-snap-align: start; } .fimgs.strip.scrolls::after { content: "Swipe →"; } }
@media (max-width: 760px) { .ffilter { top: 64px; overflow-x: auto; flex-wrap: nowrap; } .ffilter button { flex: none; } }

/* v15: target corners on every button */
.tgt { position: relative; }
.tgt > .corner { position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.tgt > .c1 { top: -4px; left: -4px; border-top-width: 2px; border-left-width: 2px; }
.tgt > .c2 { top: -4px; right: -4px; border-top-width: 2px; border-right-width: 2px; }
.tgt > .c3 { bottom: -4px; left: -4px; border-bottom-width: 2px; border-left-width: 2px; }
.tgt > .c4 { bottom: -4px; right: -4px; border-bottom-width: 2px; border-right-width: 2px; }
.tgt:hover > .corner, .tgt:focus-visible > .corner { opacity: 1; }
.tgt:hover > .c1, .tgt:focus-visible > .c1 { top: -9px; left: -9px; } .tgt:hover > .c2, .tgt:focus-visible > .c2 { top: -9px; right: -9px; }
.tgt:hover > .c3, .tgt:focus-visible > .c3 { bottom: -9px; left: -9px; } .tgt:hover > .c4, .tgt:focus-visible > .c4 { bottom: -9px; right: -9px; }
.filters button.tgt, .ffilter button.tgt { overflow: visible; }

/* v15: freelance compact grid */
.services.four { grid-template-columns: repeat(4, 1fr); }
.ffilter { position: sticky; top: 74px; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; margin: 4px 0 18px; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ftile { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--paper-2); cursor: default; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ftile.fade { opacity: 0; transform: scale(.97); }
.ftile.gone { display: none; }
.ftile .fstack { position: absolute; inset: 0; }
.ftile .fstack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .35s ease, transform .9s var(--ease); }
.ftile .fstack img.on { opacity: 1; }
.ftile:hover .fstack img.on { transform: scale(1.08); }
.ftile .dots { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; opacity: 0; transition: opacity .3s; }
.ftile:hover .dots { opacity: 1; }
.ftile .dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); }
.ftile .dots i.on { background: #fff; }
.ftile .fpop { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.4); opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; }
.ftile:hover .fpop, .ftile:focus-visible .fpop { opacity: 1; transform: none; }
.fpop b { display: block; font: 600 15px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.fpop span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.fpop em { display: block; margin-top: 6px; font: 600 10px/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ftile.social { background: linear-gradient(140deg, var(--accent-tint), #EFE7DD); display: grid; place-items: center; cursor: pointer; }
.fphone { width: 58%; background: #111; border-radius: 22px; padding: 6px; box-shadow: 0 22px 34px -20px rgba(0,0,0,.6); transition: transform .6s var(--ease); }
.fphone img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 16px; display: block; }
.ftile.social:hover .fphone { transform: translateY(-8px) rotate(-2deg); }
.ftile.social::after { content: "Click to see all slides"; position: absolute; top: 12px; right: 12px; font: 600 10.5px/1 var(--sans); padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--ink); opacity: 0; transition: opacity .3s; }
.ftile.social:hover::after { opacity: 1; }
.ftile.ph .mock { position: absolute; inset: 0; border-radius: 16px; min-height: 0; padding: 18px; }
.ftile.ph .mock b { font-size: 19px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,16,18,.86); backdrop-filter: blur(6px); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; opacity: 0; transition: opacity .3s; }
.lightbox.show { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6vh 20vw; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track img, .lb-track video { flex: 0 0 auto; height: 78vh; max-width: 80vw; object-fit: contain; border-radius: 10px; scroll-snap-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; justify-self: center; }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font: 600 13px/1 var(--sans); }
@media (hover: none) { .ftile .fpop { opacity: 1; transform: none; } .ftile.social::after { content: "Tap to see slides"; opacity: 1; } }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(3, 1fr); } .services.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .services.four { grid-template-columns: 1fr; } .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { display: none; } .lb-track { padding: 8vh 8vw; } .lb-track img, .lb-track video { height: 70vh; max-width: 84vw; } .ftile .fpop { padding: 8px 10px; } .fpop b { font-size: 13px; } .fpop span { font-size: 11px; } .ffilter { top: 64px; flex-wrap: nowrap; overflow-x: auto; } .ffilter button { flex: none; } }
@media (hover: none) { .ftile .fpop span, .ftile .fpop em { display: none; } .ftile .fpop { left: 8px; right: auto; bottom: 8px; padding: 6px 10px; border-radius: 999px; } .ftile .fpop b { font-size: 12px; } }
.pblock .line b { color: var(--ink); }
/* tighter project pages */
.pblock .shots figure img { max-height: 440px; object-fit: contain; background: var(--paper-2); }
.pblock .shots .mock { min-height: 200px; }

/* v16: project page layout (Kenzi side nav + Munz big imagery + McConnell meta) */
.pmeta { border: 0; background: var(--accent-tint); border-radius: 16px; padding: 20px 24px; margin-top: 28px; }
.pintro { font-size: clamp(18px, 1.6vw, 21px); max-width: 38em; margin-top: 36px; }
.pbody { display: grid; grid-template-columns: 190px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.pnav { position: sticky; top: 110px; }
.pnav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.pnav li a { position: relative; display: block; padding: 8px 12px 8px 16px; margin-left: -1px; font: 500 13.5px/1.25 var(--sans); color: var(--ink-2); border-radius: 0 999px 999px 0; transition: background .3s, color .3s; }
.pnav li a::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink-2); transition: background .3s, border-color .3s; }
.pnav li a:hover { color: var(--ink); }
.pnav li a.active { background: var(--accent-tint); color: var(--ink); }
.pnav li a.active::before { background: var(--accent); border-color: var(--accent); }
.pnav-meta { margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.pmain .pblock { margin-top: 0; padding-top: 8px; margin-bottom: clamp(72px, 9vw, 120px); scroll-margin-top: 100px; }
.pmain .pblock .k { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pmain .pblock h2 { margin-top: 12px; font: 500 clamp(30px, 3.4vw, 46px)/1.04 var(--sans); letter-spacing: -.05em; max-width: 14em; }
.pmain .pblock > p.line, .pmain .pblock .points { max-width: 36em; font-size: 17px; line-height: 1.6; }
.pmain .shots { margin-top: 28px; gap: 16px; }
.pmain .shots img, .pmain .shots .mock { border-radius: 18px; }
.pmain .shots figure img { max-height: 620px; }
.pmain .shots[style*="--cols:1"] figure img, .pmain .shots[style*="--cols:1"] > img { max-height: none; }
.pmain blockquote.pm { margin-top: 36px; }
@media (max-width: 900px) {
  .pbody { grid-template-columns: 1fr; }
  .pnav { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); padding: 8px 0; margin: 0 -4px; }
  .pnav ol { display: flex; gap: 6px; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  .pnav li a { white-space: nowrap; border-radius: 999px; padding: 8px 12px; border: 1px solid var(--line); }
  .pnav li a::before, .pnav-meta { display: none; }
}
.pbody > * { min-width: 0; } .pbody { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); } @media (max-width: 900px) { .pbody { grid-template-columns: minmax(0, 1fr); } }

/* v17: compact story + gallery (NSO) */
.ptext { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.ptext .pblock { margin: 0 !important; padding: 22px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.ptext .pblock .k { margin-bottom: 10px; }
.ptext .pblock > p.line, .ptext .points { font-size: 15.5px; line-height: 1.6; max-width: none; margin-top: 0; }
.ptext .pblock > p.line + p.line { margin-top: 10px; }
.ptext .points { gap: 8px; margin-top: 0; }
.ptext #s3 { grid-row: span 2; }
.ptext blockquote.pm { margin-top: 18px; font-size: clamp(22px, 2.2vw, 28px); }
.pgallery { margin-top: clamp(56px, 7vw, 88px) !important; }
.gal { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gal > * { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--paper-2); }
.gal .g-wide { grid-column: span 2; }
.gal .g-tall { grid-row: span 2; }
.gal figure img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: none !important; transition: transform .8s var(--ease); }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11.5px; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gal figure:hover figcaption { opacity: 1; transform: none; }
.gal .mock { min-height: 0 !important; padding: 16px; border-radius: 16px; }
.gal .mock b { font-size: 18px; }
@media (hover: none) { .gal figcaption { opacity: 1; transform: none; } }
@media (max-width: 900px) { .ptext { grid-template-columns: 1fr; } .ptext #s3 { grid-row: auto; } .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
.gal .g-contain { background: #fff; }
.gal .g-contain img { object-fit: contain; padding: 12px; }
.gal > .mock { background: var(--accent-tint); }

/* v18: NSO process steps + big imagery */
.steps-list { list-style: none; counter-reset: st; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; max-width: 38em; }
.steps-list li { counter-increment: st; position: relative; padding-left: 44px; font-size: 17px; line-height: 1.6; }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 13px/1 var(--sans); }
.steps-list b { color: var(--ink); }
.pmain .pblock .points li::before { content: "✶"; color: var(--accent); }
.pmain .pblock > .line + .points { margin-top: 14px; }
.pmain .shots + .shots { margin-top: 16px; }
.pmain .shots figure.flat { background: #fff; border-radius: 18px; display: grid; place-items: center; padding: 16px; }
.pmain .shots figure.flat img { max-height: 460px; background: #fff; }
.pmain .shots figure:not(.flat) img { max-height: none; width: 100%; object-fit: cover; }
.pmain .shots[style*="--cols:2"] figure:not(.flat) img { aspect-ratio: 4 / 5; }
.pmain .mock.hero { min-height: clamp(360px, 40vw, 560px); }
.pmain .mock.wide { min-height: 300px; }
.pmain .mock.tallm { min-height: 100%; }
/* v19: points styling inside project pages + subtle motion */
.pmain .points { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.pmain .points li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.6; }
.pmain .points li::before { content: "✶"; position: absolute; left: 0; top: 3px; font-size: 13px; color: var(--accent); }
.rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rise.on { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(8% 6% 8% 6% round 18px); transition: clip-path 1.2s var(--ease); }
.reveal-img.on { clip-path: inset(0 0 0 0 round 18px); }
.reveal-img img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.reveal-img.on img { transform: scale(1); }
.pmain h2.rise { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) { .rise, .reveal-img, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

/* v20: floating process cards (like the home hero) */
.pblock.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.floats { position: relative; height: clamp(300px, 30vw, 420px); }
.floats.many { height: clamp(380px, 38vw, 540px); }
.fcard { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 22px 40px -22px rgba(31,28,25,.45), 0 0 0 1px rgba(31,28,25,.05); rotate: var(--r); transition: rotate .6s var(--ease), scale .6s var(--ease), box-shadow .6s, translate .25s linear; animation: fbob 6s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.3s); cursor: default; z-index: 1; }
.fcard img { display: block; width: 100%; border-radius: 9px; }
.fcard figcaption { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--sans); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.fcard:hover, .fcard:focus-within { rotate: 0deg; scale: 1.08; z-index: 10; box-shadow: 0 34px 60px -26px rgba(31,28,25,.55), 0 0 0 1px rgba(31,28,25,.05); animation-play-state: paused; }
.fcard:hover figcaption { opacity: 1; transform: none; }
.floats.one .fcard::after { content: "Hover to see"; position: absolute; top: -12px; right: -10px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 11px/1 var(--sans); rotate: 6deg; transition: opacity .3s; }
.floats.one .fcard:hover::after { opacity: 0; }
.floats.one .fcard img { filter: grayscale(1) contrast(.9); opacity: .75; transition: filter .6s, opacity .6s; }
.floats.one .fcard:hover img { filter: none; opacity: 1; }
.fmock { background: var(--accent-tint); border: 1.5px dashed var(--accent-soft); padding: 16px; text-align: center; display: grid; gap: 4px; place-content: center; min-height: 110px; }
.fmock b { font: italic 400 19px/1.1 var(--serif); color: var(--accent); }
.fmock span { font-size: 11.5px; color: var(--ink-2); }
@keyframes fbob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@media (max-width: 900px) {
  .pblock.split { grid-template-columns: minmax(0, 1fr); }
  .floats, .floats.many { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 4px 20px; }
  .floats.one { grid-template-columns: 1fr; max-width: 320px; }
  .fcard { position: relative; left: auto; top: auto; width: auto; }
  .fcard figcaption { opacity: 1; transform: none; font-size: 10.5px; }
  .floats.one .fcard img { filter: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fcard { animation: none; } }
.pblock.split:has(.floats.many) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.floats.many { height: clamp(420px, 40vw, 580px); }
.floats.many .fcard img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
@media (max-width: 900px) { .pblock.split, .pblock.split:has(.floats.many) { grid-template-columns: minmax(0, 1fr); } .floats.many { height: auto; } .fcard { rotate: 0deg; } .floats { overflow: hidden; } }
/* old logo card: full color, label on hover only */
.floats.one .fcard::after { content: none; }
.floats.one .fcard img { filter: none; opacity: 1; }

/* Bare floating cards: the image sits on its own, no white frame */
.floats.bare .fcard { padding: 0; background: none; border-radius: 10px; }
.floats.bare .fcard img { aspect-ratio: auto; background: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(31,28,25,.06); }
.floats.many.bare { height: clamp(480px, 46vw, 660px); }
@media (max-width: 900px) { .floats.many.bare { height: auto; } }

/* Staggered stack: cards overlap, the hovered one comes to the front */
.floats.many.bare.pile { height: clamp(580px, 61vw, 880px); }
.pblock.split:has(.floats.pile) .split-text { position: sticky; top: 110px; align-self: start; }
@media (max-width: 900px) { .pblock.split:has(.floats.pile) .split-text { position: static; } }
.floats.pile .fcard:hover, .floats.pile .fcard:focus-within { z-index: 20; scale: 1.04; }
@media (max-width: 900px) { .floats.many.bare.pile { height: auto; } }

/* Case study title: lines slide up out of a mask on load */
.cs-top h1.title-in .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.cs-top h1.title-in .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.cs-top h1.title-in .line:nth-child(2) > span { transition-delay: .12s; }
.cs-top h1.title-in em { display: inline-block; letter-spacing: .02em; opacity: .4; transition: letter-spacing 1.4s var(--ease) .25s, opacity 1.4s var(--ease) .25s; }
.loaded .cs-top h1.title-in .line > span { transform: none; }
.loaded .cs-top h1.title-in em { letter-spacing: -.045em; opacity: 1; }

/* Hero photo: slow zoom and lift on hover */
.p-hero.zoom { transition: box-shadow .8s var(--ease), translate .8s var(--ease); }
.p-hero.zoom img { transition: transform 1.6s var(--ease); }
.p-hero.zoom:hover { translate: 0 -4px; box-shadow: 0 30px 60px -30px rgba(31,28,25,.45); }
.p-hero.zoom:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .cs-top h1.title-in .line > span, .cs-top h1.title-in em { transform: none !important; letter-spacing: -.045em !important; opacity: 1 !important; } .p-hero.zoom img { transform: none !important; } }

/* Tighter case study rhythm (NSO) */
.pmain.tight .pblock { margin-bottom: clamp(40px, 5vw, 68px); }
.pmain.tight .pblock.split { align-items: start; }
.pmain.tight .split-text > p.line { margin-top: 12px; max-width: 36em; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.pmain.tight .floats.one { height: clamp(220px, 22vw, 300px); }
.pmain.tight .floats.many.bare.pile { height: auto; aspect-ratio: 1 / 1.5; }
@media (max-width: 900px) { .pmain.tight .floats.many.bare.pile, .pmain.tight .floats.one { aspect-ratio: auto; height: auto; } }


/* ---------- Home hero cards: larger, tidier collage (2026-11-17) ---------- */
.stack { height: clamp(440px, 42vw, 600px); }
.card { width: 60%; }
.card.k1 { top: 0; left: 0; right: auto; bottom: auto; --r: -5deg; z-index: 2; }
.card.k2 { top: 7%; right: 0; left: auto; bottom: auto; --r: 4deg; z-index: 3; }
.card.k3 { bottom: 5%; left: 4%; top: auto; right: auto; --r: 3deg; z-index: 4; }
.card.k4 { bottom: 0; right: 0; top: auto; left: auto; width: 54%; --r: -3deg; z-index: 3; }
.card:hover { z-index: 10; }
@media (max-width: 900px) { .stack { height: clamp(300px, 84vw, 520px); } }
.filters button sup, .ffilter button sup { display: none; }

/* ---------- Dark mode ---------- */
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin: -6px 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s; }
.theme-toggle:hover { background: var(--paper-2); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav ul { align-items: center; }
:root[data-theme="dark"] {
  --paper: #161412;
  --paper-2: #221F1C;
  --ink: #F2EDE6;
  --ink-2: #B3ABA1;
  --accent: #E77FA9;
  --accent-soft: #F4B6CE;
  --accent-tint: #3A2430;
  --line: rgba(242, 237, 230, .16);
  color-scheme: dark;
}
:root[data-theme="dark"] .nav .logo img { filter: invert(1); }
:root[data-theme="dark"] .why { background: #ffffff0d; }
:root[data-theme="dark"] .card .tag { background: var(--paper-2); color: var(--ink); }
body { transition: background-color .4s var(--ease), color .4s var(--ease); }
:root[data-theme="dark"] footer { --ink: #0D0B0A; --paper: #F5F1EA; border-top: 1px solid rgba(242, 237, 230, .1); }
:root[data-theme="dark"] .proj .panel .go,
:root[data-theme="dark"] .folder .front .label { color: #1F1C19; }
:root[data-theme="dark"] .gal .g-contain, :root[data-theme="dark"] .pmain .shots figure.flat { background: #F5F1EA; }
:root[data-theme="dark"] .proj.light .ph strong { color: #B83A6F; }
.pmain.tight .steps-list li { color: var(--ink-2); }
.pmain .shots[style*="--cols:3"] figure:not(.flat) img { aspect-ratio: 4 / 5; }

/* ---------- Subtle motion on case study pages ---------- */
/* project details fade in one by one on load */
.pmeta > div { opacity: 0; translate: 0 12px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.loaded .pmeta > div { opacity: 1; translate: 0 0; }
.loaded .pmeta > div:nth-child(2) { transition-delay: .08s; } .loaded .pmeta > div:nth-child(3) { transition-delay: .16s; } .loaded .pmeta > div:nth-child(4) { transition-delay: .24s; }
/* images: gentle zoom on hover, after they have revealed */
.pmain .shots figure { overflow: hidden; border-radius: 18px; }
.pmain .shots figure img { transition: transform 1.6s var(--ease), scale .9s var(--ease); }
.pmain .shots figure:hover img { scale: 1.025; }
.pmain .shots figure figcaption { transition: color .4s var(--ease); }
.pmain .shots figure:hover figcaption { color: var(--ink); }
/* process steps: number pops slightly on hover */
.steps-list li::before { transition: scale .35s var(--ease), background .35s var(--ease); }
.steps-list li:hover::before { scale: 1.12; }
/* quote and credit ease in with the section */
blockquote.pm { transition: opacity .9s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) { .pmeta > div { opacity: 1; translate: none; } .pmain .shots figure:hover img, .steps-list li:hover::before { scale: none; } }

/* ---------- About: expandable facts + subtle motion ---------- */
.facts details.more { border-bottom: 1px solid var(--line); }
.facts summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 18px; gap: 2px 12px; padding: 12px 0; font-size: 16px; transition: color .3s var(--ease); }
.facts summary::-webkit-details-marker { display: none; }
.facts summary .t { grid-column: 1; }
.facts summary .when { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.facts summary i { grid-column: 2; grid-row: 1; align-self: center; position: relative; width: 14px; height: 14px; }
.facts summary i::before, .facts summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: currentColor; border-radius: 2px; transition: rotate .4s var(--ease), opacity .3s; }
.facts summary i::after { rotate: 90deg; }
.facts details[open] summary i::after { rotate: 0deg; opacity: 0; }
.facts summary:hover { color: var(--accent); }
.facts .more-body { list-style: none; padding: 0 0 14px; display: grid; gap: 8px; animation: factIn .45s var(--ease); }
.facts .more-body li { border: 0; padding: 0 0 0 16px; position: relative; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.facts .more-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes factIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
/* stagger the three columns in */
.facts.reveal > div { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.facts.reveal.in > div { opacity: 1; translate: 0 0; }
.facts.reveal.in > div:nth-child(2) { transition-delay: .1s; } .facts.reveal.in > div:nth-child(3) { transition-delay: .2s; }
/* portrait: gentle zoom on hover */
.portrait img { transition: scale 1.2s var(--ease); }
.portrait:hover img { scale: 1.035; }
@media (prefers-reduced-motion: reduce) { .facts.reveal > div { opacity: 1; translate: none; } .facts .more-body { animation: none; } .portrait:hover img { scale: none; } }

/* ---------- Case study captions: overlay on hover ---------- */
.pmain .shots figure { position: relative; }
.pmain .shots figure figcaption {
  position: absolute; left: 16px; bottom: 16px; right: auto; z-index: 2; max-width: calc(100% - 32px);
  margin: 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 18, 16, .72); color: #fff !important; backdrop-filter: blur(8px);
  font: 500 13px/1.3 var(--sans); text-align: left;
  opacity: 0; translate: 0 8px; transition: opacity .4s var(--ease), translate .4s var(--ease);
  pointer-events: none;
}
.pmain .shots figure:hover figcaption, .pmain .shots figure:focus-within figcaption { opacity: 1; translate: 0 0; }
.pmain .shots figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(20,18,16,.28)); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.pmain .shots figure:hover::after { opacity: 1; }
/* touch screens have no hover, so keep the caption visible there */
@media (hover: none) { .pmain .shots figure figcaption { opacity: 1; translate: none; } }

/* Captions: text on a bottom gradient, no pill (overrides the block above) */
.pmain .shots figure figcaption {
  left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; backdrop-filter: none;
  padding: 56px 22px 18px; background: linear-gradient(transparent, rgba(20,18,16,.72));
  font: 500 14px/1.4 var(--sans);
}
.pmain .shots figure::after { content: none; }

/* ---------- Touch screens: show what hover would reveal ---------- */
@media (hover: none) {
  /* home project cards: description sits under the title instead of a hover panel */
  .proj .desc { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
  /* hero cards already cycle into color; keep their tags readable */
  /* case study floating cards: lay out as a grid with captions showing */
  .floats, .floats.many, .floats.many.bare.pile { height: auto !important; aspect-ratio: auto !important; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .floats.one { grid-template-columns: 1fr; max-width: 420px; }
  .fcard { position: relative; left: auto !important; top: auto !important; width: auto !important; rotate: 0deg; animation: none; }
  .fcard figcaption { position: static; translate: none; transform: none; opacity: 1; margin-top: 8px; white-space: normal; background: none; color: var(--ink-2); padding: 0; font-size: 13px; }
  .pblock.split:has(.floats.pile) .split-text { position: static; }
  /* hobby cards open on tap */
  .hobby.open { flex: 2.2; }
  .hobby.open .photo img { filter: none; }
  .hobby.open .dots { opacity: 1; }
}
.proj .desc { display: none; }
@media (hover: none) and (max-width: 760px) { .hobby.open { height: 360px; } }
@media (max-width: 600px) { .floats.many.bare.pile { grid-template-columns: 1fr !important; } }

/* ---------- About facts: simple lists with drawn lines and a staggered entrance ---------- */
.facts li { position: relative; border-bottom: 0; padding: 10px 0 10px 0; transition: padding-left .45s var(--ease), color .3s var(--ease); }
.facts li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.facts li::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1.5px; background: var(--accent); transition: width .45s var(--ease); }
.facts h4 { position: relative; padding-bottom: 10px; }
.facts h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .2s; }
.facts.reveal li { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .6s var(--ease), padding-left .45s var(--ease), color .3s var(--ease); }
.facts.reveal.in li { opacity: 1; translate: 0 0; }
.facts.reveal.in li::after, .facts.reveal.in h4::after { transform: scaleX(1); }
.facts.reveal.in li:nth-child(1) { transition-delay: .15s; } .facts.reveal.in li:nth-child(1)::after { transition-delay: .25s; }
.facts.reveal.in li:nth-child(2) { transition-delay: .25s; } .facts.reveal.in li:nth-child(2)::after { transition-delay: .35s; }
.facts.reveal.in li:nth-child(3) { transition-delay: .35s; } .facts.reveal.in li:nth-child(3)::after { transition-delay: .45s; }
.facts.reveal.in li:nth-child(4) { transition-delay: .45s; } .facts.reveal.in li:nth-child(4)::after { transition-delay: .55s; }
@media (hover: hover) {
  .facts.reveal.in li:hover { padding-left: 22px; color: var(--accent); transition-delay: 0s; }
  .facts li:hover::before { width: 12px; }
}
@media (prefers-reduced-motion: reduce) { .facts.reveal li { opacity: 1; translate: none; } .facts li::after, .facts h4::after { transform: none; } }

/* Off the clock labels: always white on a darker fade, both themes */
.hobby b, .hobby:hover b, .hobby:focus b { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hobby::after { background: linear-gradient(transparent 40%, rgba(20,18,16,.62)); opacity: 1; }
footer h2 { line-height: .76; } footer h2 em { display: block; line-height: .95; margin-top: .02em; }
footer h2 { margin-bottom: .32em; }
footer .eyebrow { display: block; margin-bottom: clamp(14px, 1.6vw, 24px); }
@media (max-width: 900px) { .hero .stack { margin-top: 40px; margin-bottom: 8px; } }

/* Phones: case study images go full width, one per row */
@media (max-width: 600px) {
  .shots, .pmain .shots { grid-template-columns: 1fr !important; }
  .shots .span2 { grid-column: auto; }
  .pmain .shots[style*="--cols:2"] figure:not(.flat) img, .pmain .shots[style*="--cols:3"] figure:not(.flat) img { aspect-ratio: auto; }
}

/* ---------- About on phones ---------- */
@media (max-width: 900px) {
  /* folder: no tall empty stage above it */
  .folder-stage { height: 380px; margin-top: 0; }
}
/* Off the clock on touch screens: fixed-size color cards, tap to see the next photo */
@media (hover: none), (max-width: 760px) {
  .offclock { flex-direction: column; height: auto; gap: 14px; }
  .hobby, .hobby:hover, .hobby:focus, .hobby.open { flex: none; height: 240px; transition: none; }
  .hobby .photo img { filter: none; }
  .hobby .dots { opacity: 1; }
  .hobby::after { opacity: 1; }
}

/* Off the clock on touch: pause mark when a slideshow is stopped */
.hobby .pausemark { display: none; }
@media (hover: none), (max-width: 760px) {
  .hobby.paused::before { content: ""; position: absolute; z-index: 3; top: 16px; right: 16px; width: 12px; height: 16px; border-left: 4px solid #fff; border-right: 4px solid #fff; filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
  .hobby .photo img { transition: opacity .6s ease; }
}

/* ---------- Toolkit on phones: readable cards instead of a scaled-down fan ---------- */
@media (max-width: 600px) {
  .folder-stage { height: auto; display: block; padding-bottom: 0; margin-top: 28px; }
  .folder { scale: 1; width: 100%; aspect-ratio: auto; display: grid; gap: 12px; }
  .folder .back { display: none; }
  .sheet, .folder-stage.open .sheet, .folder-stage.open .sheet:hover { position: relative; left: auto; bottom: auto; width: auto; margin: 0; transform: none; rotate: 0deg; }
  .sheet { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); padding: 16px 18px 18px; }
  .folder-stage.open .sheet { opacity: 1; translate: 0 0; }
  .folder-stage.open .s2 { transition-delay: .08s; } .folder-stage.open .s3 { transition-delay: .16s; } .folder-stage.open .s4 { transition-delay: .24s; }
  .sheet .lbl { font-size: 22px; margin-bottom: 14px; }
  .sheet .icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; justify-items: center; padding-bottom: 20px; }
  .ico { width: 54px; height: 54px; border-radius: 14px; }
  .ico svg { width: 34px; height: 34px; }
  .ico small { font-size: 11px; margin-top: 6px; }
  .folder .front, .folder-stage.open .folder .front { position: relative; height: 84px; transform: none; order: 99; }
}

/* ---------- Toolkit on phones v2: an open folder with the four sheets sticking out ---------- */
@media (max-width: 600px) {
  .folder-stage { margin-top: 36px; }
  .folder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 34px 12px 78px; }
  .folder .back { display: block; position: absolute; inset: 0; border-radius: 10px 22px 22px 22px; }
  .folder .back::before { top: -22px; height: 30px; width: 42%; }
  .sheet { z-index: 10; padding: 14px 12px 34px; translate: 0 36px; opacity: 0; transition: opacity .45s var(--ease), translate .6s cubic-bezier(.3, 1.4, .4, 1); }
  .folder-stage.open .sheet { translate: 0 0; opacity: 1; }
  .folder-stage.open .s1 { rotate: -2.5deg; } .folder-stage.open .s2 { rotate: 2deg; } .folder-stage.open .s3 { rotate: 1.5deg; } .folder-stage.open .s4 { rotate: -2deg; }
  .sheet .lbl { font-size: 19px; margin-bottom: 12px; }
  .sheet .icons { grid-template-columns: 1fr 1fr; row-gap: 26px; padding-bottom: 0; }
  .ico { width: 52px; height: 52px; }
  .folder .front, .folder-stage.open .folder .front { position: absolute; left: 0; right: 0; bottom: 0; height: 104px; z-index: 20; order: 0; transform: none; }
}
@media (max-width: 600px) {
  .folder { padding-bottom: 66px; }
  .sheet { padding-bottom: 50px; }
  .folder .front, .folder-stage.open .folder .front { height: 92px; }
}
.p-hero.browser { border: 1px solid var(--line); }

/* ---------- Sticker Farmer hero: moving site collage ---------- */
.sf-hero { position: relative; margin-top: 8px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #F2C500; isolation: isolate; }
.sf-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(242,197,0,0) 30%, rgba(160,120,0,.35) 100%); pointer-events: none; }
.sf-cols { position: absolute; inset: -20% -8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; rotate: -12deg; }
.sf-col { display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.sf-col img { width: 100%; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.sf-col.up { animation: sfUp 38s linear infinite; }
.sf-col.down { animation: sfDown 44s linear infinite; }
.sf-col.slow { animation-duration: 52s; }
@keyframes sfUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes sfDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.sf-device { position: absolute; z-index: 2; left: 50%; top: 50%; width: 62%; translate: -50% -50%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.08); }
.sf-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #EEE; border-bottom: 1px solid #ddd; }
.sf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d0d0; }
.sf-bar span { margin: 0 auto; font: 500 11px/1 var(--sans); color: #777; background: #fff; padding: 4px 30px; border-radius: 6px; }
.sf-screen { aspect-ratio: 1568 / 759; overflow: hidden; }
.sf-scroll { animation: sfScroll 34s ease-in-out infinite; }
.sf-scroll img { width: 100%; display: block; }
@keyframes sfScroll { 0%, 8% { transform: translateY(0); } 56%, 64% { transform: translateY(-83.8%); } 92%, 100% { transform: translateY(0); } }
@media (max-width: 760px) { .sf-hero { aspect-ratio: 4 / 5; } .sf-cols { grid-template-columns: repeat(2, 1fr); inset: -10% -20%; } .sf-cols .sf-col:nth-child(3) { display: none; } .sf-device { width: 88%; } }
@media (prefers-reduced-motion: reduce) { .sf-col, .sf-scroll { animation: none; } }

/* ---------- Freelance page: services lead to grouped work ---------- */
.ftile .fpop b { color: #1E1A1C; } .ftile .fpop span { color: #5A5357; }
.section-head .sec-note { color: var(--ink-2); font-size: 15px; }
a.service { color: inherit; text-decoration: none; cursor: pointer; }
a.service:hover, a.service:focus-visible { background: var(--accent-tint); }
a.service .see { margin-top: auto; padding-top: 8px; font: 600 13px/1 var(--sans); color: var(--accent); }
a.service .see .arrow { display: inline-block; transition: transform .3s var(--ease); }
a.service:hover .see .arrow { transform: translateX(4px); }
.fhead { grid-column: 1 / -1; margin: 22px 0 -2px; font: 600 20px/1.2 var(--sans); letter-spacing: -.03em; transition: opacity .35s var(--ease); }
.fhead:first-child { margin-top: 0; }
.fhead sup { font-size: 11px; color: var(--ink-2); margin-left: 2px; }
.fhead.fade { opacity: 0; } .fhead.gone { display: none; }
.ftile.social::after { border-radius: 6px; }
@media (hover: none) {
  .ftile .fpop { left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; border-radius: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); backdrop-filter: none; box-shadow: none; }
  .ftile .fpop b { color: #fff; font-size: 14px; }
  .ftile .fpop span { display: block; color: rgba(255,255,255,.85); font-size: 12px; }
  .ftile.ph .fpop { background: none; } .ftile.ph .fpop b { color: var(--ink); } .ftile.ph .fpop span { color: var(--ink-2); }
}
.fl-ways { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: stretch; }
.fl-way { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none; transition: border-color .3s, background .3s; }
.fl-way b { font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }
.fl-way span { color: var(--ink-2); font-size: 15px; }
.fl-way:hover, .fl-way:focus-visible { border-color: var(--accent); background: var(--accent-tint); }
@media (max-width: 900px) { .fl-ways { grid-template-columns: 1fr; } }

/* ---------- Swag: sticker wall ---------- */
.stk-wall { margin-top: 22px; padding: clamp(18px, 3vw, 36px); border-radius: 18px; background: #DCE6F4; }
.stk-label { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #1E3F8F; margin: 0 0 6px; }
.stk-label + .stk-grid + .stk-label { margin-top: 26px; }
.stk-grid { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(14px, 2.6vw, 34px); --k: 1; }
.stk-grid li { height: calc(var(--h) * var(--k)); max-width: 100%; rotate: var(--r); transition: rotate .45s var(--ease), scale .45s var(--ease); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stk-grid img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 8px rgba(20,40,90,.22)); transition: filter .45s var(--ease); }
.stk-grid li:hover, .stk-grid li.lift { rotate: 0deg; scale: 1.12; position: relative; z-index: 2; }
.stk-grid li:hover img, .stk-grid li.lift img { filter: drop-shadow(0 16px 18px rgba(20,40,90,.3)); }
@media (max-width: 1100px) { .stk-grid { --k: .8; } }
@media (max-width: 760px) { .stk-grid { --k: .58; } }
@media (prefers-reduced-motion: reduce) { .stk-grid li { transition: none; } }

/* ---------- Sticker Farmer: spinning live-site sticker ---------- */
.sf-badge { position: absolute; z-index: 3; right: clamp(14px, 3vw, 36px); bottom: clamp(14px, 3vw, 36px); width: clamp(104px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; background: #F7CE00; border: 5px solid #fff; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); display: grid; place-items: center; color: #111; text-decoration: none; transition: scale .4s var(--ease), rotate .4s var(--ease); rotate: -6deg; }
.sf-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-badge .ring { transform-origin: 100px 100px; animation: sfSpin 14s linear infinite; }
.sf-badge text { font: 800 17px/1 var(--sans); letter-spacing: .04em; fill: #111; }
.sf-badge .core { width: 40%; aspect-ratio: 1; border-radius: 50%; background: #111; color: #F7CE00; display: grid; place-items: center; font: 700 clamp(20px, 2.4vw, 28px)/1 var(--sans); transition: rotate .4s var(--ease); }
.sf-badge:hover, .sf-badge:focus-visible { scale: 1.08; rotate: 0deg; }
.sf-badge:hover .ring { animation-duration: 5s; }
.sf-badge:hover .core { rotate: 45deg; }
@keyframes sfSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sf-badge .ring { animation: none; } }
.stk-grid.big { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; justify-items: center; }
.stk-grid.big li:nth-child(1) { grid-column: 2; grid-row: 1 / span 2; }
.stk-grid.big li:nth-child(2) { grid-column: 3; grid-row: 1; }
.stk-grid.big li:nth-child(3) { grid-column: 3; grid-row: 2; }
.stk-grid.big li:nth-child(4) { grid-column: 1; grid-row: 1 / span 2; }
@media (max-width: 760px) { .stk-grid.big { --k: .44; gap: 12px; } }

/* ---------- Freelance grid v2: smaller framed covers, caption below, click to view all ---------- */
.fgrid { grid-template-columns: repeat(5, 1fr); gap: 22px 16px; }
.ftile { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.ftile.social { background: none; display: flex; place-items: initial; }
.ftile.social::after { content: none; }
.ftile.ph { cursor: default; }
.fcover { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; isolation: isolate; }
.fcover::before { content: ""; position: absolute; inset: -12%; background: var(--cv) center / cover; filter: blur(22px) saturate(1.1); opacity: .55; z-index: -1; }
.fcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.ftile:hover .fcover > img, .ftile:focus-visible .fcover > img { transform: scale(1.04); }
.ftile.social .fcover { background: linear-gradient(140deg, var(--accent-tint), #EFE7DD); }
.ftile.social .fcover::before { content: none; }
.ftile.social .fphone { width: auto; height: 88%; padding: 4px; border-radius: 14px; }
.ftile.social .fphone img { height: 100%; width: auto; aspect-ratio: 9 / 16; border-radius: 10px; }
.ftile.social:hover .fphone { transform: translateY(-4px) rotate(-2deg); }
.fcount { position: absolute; right: 8px; bottom: 8px; font: 600 10.5px/1 var(--sans); font-style: normal; padding: 6px 8px; border-radius: 6px; background: rgba(20,16,18,.72); color: #fff; }
.ftile.ph .fcover .mock { position: absolute; inset: 0; min-height: 0; padding: 14px; border-radius: 12px; }
.ftile.ph .fcover .mock b { font-size: 15px; } .ftile.ph .fcover .mock span { font-size: 12px; }
.fcap b { display: block; font: 600 14.5px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.fcap span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.fcap em { display: block; margin-top: 5px; font: 600 9.5px/1.2 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ftile:focus-visible { outline: none; } .ftile:focus-visible .fcover { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb-title { position: absolute; top: 22px; left: 24px; right: 80px; color: #fff; font: 600 16px/1.3 var(--sans); }
.lb-title span { display: block; font-weight: 400; font-size: 13px; color: rgba(255,255,255,.75); }
@media (max-width: 1100px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .fgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 18px 10px; } .fcap b { font-size: 13px; } .fcap span { font-size: 11.5px; } .lb-title { font-size: 14px; top: 18px; left: 16px; } }
.proj .thumb.fill img { object-fit: cover; padding: 0; filter: none; }
.sf-screen:has(.sf-video) { aspect-ratio: 1178 / 842; }
.sf-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-device:has(.sf-video) { width: 50%; }
@media (max-width: 760px) { .sf-device:has(.sf-video) { width: 80%; } }
/* More cards: photo mockups fill the frame (flats keep their padding) */
.more-card img[src*="/ap/"] { object-fit: cover; padding: 0; }
/* Homepage: last row of projects in landscape so mockups aren't cropped */
.proj.sm .thumb { aspect-ratio: 4 / 3; }
.proj.sm .thumb.fill img { object-fit: cover; padding: 0; filter: none; }
/* Give italic title words room so their left overhang isn't clipped during the reveal */
.cs-top h1.title-in .line { padding-left: .12em; margin-left: -.12em; padding-right: .12em; margin-right: -.12em; }

/* ---------- Swag: drag-and-peel sticker sheets ---------- */
.stk-board { position: relative; margin-top: 22px; border-radius: 18px; background: #DCE6F4; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 70px; user-select: none; -webkit-user-select: none; overflow: hidden; }
.stk-sheets { display: flex; gap: clamp(18px, 3vw, 40px); align-items: flex-start; justify-content: center; }
.stk-sheet { position: relative; margin: 0; flex: 0 0 auto; height: clamp(300px, 38vw, 520px); box-shadow: 0 2px 3px rgba(20,40,90,.12), 0 18px 34px -18px rgba(20,40,90,.45); border-radius: 6px; background: #fff; }
.stk-sheet .stk-back { display: block; width: 100%; height: 100%; border-radius: 6px; pointer-events: none; }
.stk-sheet figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 12px); font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #1E3F8F; text-align: center; }
.stk-on { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.stk { position: absolute; cursor: grab; touch-action: none; outline: none; rotate: var(--r, 0deg); transform: perspective(900px); transform-origin: 25% 85%; z-index: var(--z, 1);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), rotate .5s cubic-bezier(.34,1.56,.64,1), filter .35s ease; filter: drop-shadow(0 1px 1px rgba(20,40,90,.18)); }
.stk.free { filter: drop-shadow(0 2px 2px rgba(20,40,90,.25)) drop-shadow(0 5px 8px rgba(20,40,90,.14)); }
.stk img { width: 100%; height: auto; display: block; pointer-events: none; }
.stk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 65%); background-size: 250% 100%; background-position: 100% 0; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; opacity: 0; transition: opacity .3s, background-position .6s ease; pointer-events: none; }
.stk.peel { cursor: grabbing; transform: perspective(900px) rotateX(18deg) rotateY(-14deg) scale(1.1); filter: drop-shadow(10px 18px 10px rgba(20,40,90,.26)) drop-shadow(20px 32px 22px rgba(20,40,90,.18)); transition: transform .22s ease-out, rotate .5s cubic-bezier(.34,1.56,.64,1), filter .22s ease-out; }
.stk.peel::after { opacity: 1; background-position: 0 0; }
.stk:focus-visible { filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 3px var(--accent)); }
@media (hover: hover) { .stk:hover:not(.peel) { transform: perspective(900px) rotateX(8deg) rotateY(-6deg) scale(1.03); } }
.stk-reset { position: absolute; right: 14px; bottom: 14px; z-index: 9999; font: 600 12px/1 var(--sans); padding: 9px 13px; border-radius: 8px; border: 1px solid rgba(30,63,143,.25); background: rgba(255,255,255,.88); color: #1E3F8F; cursor: pointer; }
.stk-reset:hover { background: #fff; }
@media (max-width: 760px) { .stk-sheets { flex-direction: column; align-items: center; gap: 44px; } .stk-sheet { height: auto; width: min(100%, 300px); } .stk-sheet.old { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .stk, .stk.peel { transition: none; transform: none; } .stk::after { display: none; } }
.stk-sheet { height: auto; min-width: 0; }
.stk-sheet.new { flex: 0.6667 1 0; }
.stk-sheet.old { flex: 1.2942 1 0; }
@media (max-width: 760px) { .stk-sheet.new, .stk-sheet.old { flex: none; } .stk-sheet.new { width: min(78%, 300px); } .stk-sheet.old { width: 100%; } }
.stk { transform-origin: 50% 50%; }
.stk-note { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.stk { list-style: none; display: block; }
.stk::marker { content: none; }
.pmain .shots.wide-shots figure img { aspect-ratio: 3 / 2 !important; }
.stk-board { isolation: isolate; }
.stk-reset { z-index: 5; }
.stk-hint { position: absolute; top: 16px; left: 18px; z-index: 5; margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #1E3F8F; pointer-events: none; }
@media (max-width: 760px) { .stk-hint { top: 12px; left: 14px; font-size: 10px; } }
@media (max-width: 760px) {
  .stk-board { padding: 40px 14px 16px; border-radius: 14px; }
  .stk-sheets { gap: 40px; }
  .stk-sheet.new, .stk-sheet.old { width: 100%; max-width: 330px; }
  .stk-sheet.new { max-width: 230px; }
  .stk-sheet figcaption { top: calc(100% + 10px); }
  .stk-reset { position: static; display: block; margin: 42px auto 0; }
  .pmain .stk-board + .shots { margin-top: 18px; }
  .pmain .shots.wide-shots { gap: 12px; }
}
/* Homepage: hover shows only a View project button, no description */
.proj .panel { background: none; padding: 0 22px 22px; justify-content: flex-end; }
.proj .panel .go { box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }

/* Project details: six items in three columns */
.pmeta { grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 40px; }
@media (min-width: 901px) { .pmeta { padding: 24px clamp(32px, 4vw, 56px); } }
.loaded .pmeta > div:nth-child(5) { transition-delay: .32s; } .loaded .pmeta > div:nth-child(6) { transition-delay: .4s; }
@media (max-width: 900px) { .pmeta { grid-template-columns: 1fr 1fr; } }

/* Hero card category labels: may wrap to two lines, so a soft box instead of a pill */
.card .tag { border-radius: 6px; line-height: 1.35; padding: 6px 10px; right: 10px; width: max-content; max-width: calc(100% - 20px); }

/* More projects: sideways rail with arrows (swipe on touch, arrows always visible) */
.more-rail { position: relative; margin-top: 28px; }
.more-rail .more-grid { display: flex; gap: 20px; margin-top: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.more-rail .more-grid::-webkit-scrollbar { display: none; }
.more-rail .more-card { flex: 0 0 calc(50% - 10px); scroll-snap-align: start; }
.more-nav { position: absolute; top: calc((100% - 74px) / 2); translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 500 22px/1 var(--sans); box-shadow: 0 6px 20px rgba(31,28,25,.18); cursor: pointer; transition: opacity .3s, transform .3s var(--ease); z-index: 2; }
.more-nav.prev { left: -18px; } .more-nav.next { right: -18px; }
.more-nav:hover { transform: scale(1.08); }
.more-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.more-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .more-rail .more-card { flex-basis: 84%; }
  .more-nav { width: 44px; height: 44px; font-size: 18px; top: calc((84vw - 32px) * .3125); }
  .more-nav.prev { left: 6px; } .more-nav.next { right: 6px; }
}

/* More projects arrows sit beside the cards on desktop, below them on phones, never on top */
.more-rail { padding: 0 72px; }
.more-nav.prev { left: 0; } .more-nav.next { right: 0; }
.more-nav[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 900px) {
  .more-rail { padding: 0 0 64px; }
  .more-nav { top: auto; bottom: 0; translate: none; }
  .more-nav.prev { left: auto; right: 56px; } .more-nav.next { right: 0; }
}

/* Homepage intro headline (longer sentence, so smaller than the old two-line headline) */
.hero h1.intro { font-size: clamp(34px, 3.7vw, 58px); line-height: 1.06; }
.hero h1.intro .line:nth-child(4) > span { transition-delay: .24s; }
.hero h1.intro .line:nth-child(5) > span { transition-delay: .32s; }
.hero h1.intro + .ctas { margin-top: 38px; }
@media (max-width: 600px) { .hero h1.intro .line { display: inline; } .hero h1.intro .line > span { display: inline; transform: none; } .hero h1.intro .line::after { content: " "; } }
.hero h1.intro .ul { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-skip-ink: none; }


/* ---------- Freelance inquiry form ---------- */
.inq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.inq-intro { position: sticky; top: 110px; }
.inq-intro .body { margin-top: 20px; max-width: 26em; color: var(--ink-2); }
form.inquiry { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; }
form.inquiry .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.inquiry label, form.inquiry legend { display: grid; gap: 8px; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
form.inquiry legend span { display: inline; font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: 13px; margin-left: 6px; }
form.inquiry fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form.inquiry fieldset legend { margin-bottom: 12px; display: block; }
form.inquiry input[type=text], form.inquiry input[type=email], form.inquiry textarea, form.inquiry select {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; outline: none; transition: border-color .3s;
  text-transform: none; letter-spacing: 0;
}
form.inquiry select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%) right 0 center / 6px 6px no-repeat; }
form.inquiry select option { color: #1F1C19; }
form.inquiry textarea { min-height: 130px; resize: vertical; }
form.inquiry input::placeholder, form.inquiry textarea::placeholder { color: var(--ink-2); opacity: .55; }
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus { border-color: var(--accent); }
form.inquiry .chips { display: flex; flex-wrap: wrap; gap: 10px; }
form.inquiry .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 500 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); transition: border-color .25s, background .25s; }
form.inquiry .chip input { position: absolute; opacity: 0; pointer-events: none; }
form.inquiry .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
form.inquiry .chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { form.inquiry .chip:hover { border-color: var(--accent); } }
form.inquiry .send { justify-self: start; cursor: pointer; }
form.inquiry .status { font-size: 13px; color: var(--accent); min-height: 1em; margin-top: -10px; }
@media (max-width: 900px) { .inq-grid { grid-template-columns: 1fr; } .inq-intro { position: static; } }
@media (max-width: 600px) { form.inquiry .two { grid-template-columns: 1fr; } form.inquiry .chip { font-size: 14px; padding: 0 14px; } }

/* Social carousels: fanned stack of the first three slides, full post visible */
.ftile.social { background: none; }
.ffan { position: relative; width: 62%; aspect-ratio: 4 / 5; margin-bottom: 8%; }
.ffan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.55); transition: transform .6s var(--ease); }
.ffan img:nth-child(1) { transform: translate(16%, 2%) rotate(7deg); filter: brightness(.88); }
.ffan img:nth-child(2) { transform: translate(8%, 1%) rotate(3.5deg); filter: brightness(.94); }
.ffan img:nth-child(3) { transform: translate(-6%, 0); }
@media (hover: hover) {
  .ftile.social:hover .ffan img:nth-child(1) { transform: translate(24%, 3%) rotate(10deg); }
  .ftile.social:hover .ffan img:nth-child(2) { transform: translate(12%, 1%) rotate(5deg); }
  .ftile.social:hover .ffan img:nth-child(3) { transform: translate(-8%, -2%) rotate(-1.5deg); }
}
.fphone.story { width: 44%; margin-bottom: 8%; }
.fphone.story img { object-fit: cover; }
/* covers are 3:2, so size the fan by height so nothing gets cropped */
.ftile.social .fcover { place-items: center; overflow: hidden; }
.ffan { width: auto; height: 78%; margin: 0 14% 0 0; }
.fphone.story { width: auto; height: 86%; margin: 0; padding: 4px; border-radius: 14px; }
.fphone.story img { height: 100%; width: auto; aspect-ratio: 9 / 16; border-radius: 10px; }
.ftile.social .fphone.story { width: 32%; height: auto; }
.ftile.social .fphone.story img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }

/* Service boxes without body copy */
.services.four .service { min-height: 170px; }
@media (max-width: 700px) { .services.four .service { min-height: 0; } }

/* Freelance cards: hover slideshow */
.fcover > img.fslide { opacity: 0; transition: opacity .45s ease, transform .7s var(--ease); z-index: 1; }
.fcover > img.fslide.on { opacity: 1; }
.ftile.social .fphone.story { position: relative; }
.ftile.social .fphone.story img.fslide { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .45s ease; }
.ftile.social .fphone.story img.fslide.on { opacity: 1; }

/* Freelance carousels: phone mockup with the carousel running through it */
.ftile.carousel .fcover { container-type: size; background: linear-gradient(150deg, var(--bg1, #EEEBE6), var(--bg2, #DAD5CE)); }
.ftile.carousel::after { content: none !important; }
.ftile.carousel .fcover { background: radial-gradient(120% 90% at 50% 40%, var(--bg1, #EEEBE6), var(--bg2, #DAD5CE)); }
.igm { position: absolute; inset: 0; --step: 41.8cqh; scale: 1.75; transform-origin: 50% 50cqh; }
.igm-track { position: absolute; top: 23.8cqh; left: calc(50% - 19.2cqh); height: 48cqh; display: flex; gap: 3.4cqh; translate: calc(var(--i) * var(--step) * -1) 0; transition: translate .8s cubic-bezier(.65,0,.25,1); }
.igm-track img { height: 100%; width: 38.4cqh; flex: none; object-fit: cover; border-radius: .6cqh; box-shadow: 0 2.4cqh 4cqh -2cqh rgba(40,30,20,.45);; filter: blur(.9cqh); transition: filter .5s ease; }
.igm-track img.cur { filter: none; }
.igm-phone { position: absolute; top: 6cqh; left: calc(50% - 21cqh); width: 42cqh; height: 88cqh; border: 1.8cqh solid #141414; border-radius: 7cqh; display: grid; grid-template-rows: 16cqh 48cqh 1fr; overflow: hidden; box-shadow: 0 0 0 .35cqh #3a3a3a, 0 4cqh 7cqh -3cqh rgba(30,20,10,.55); pointer-events: none; }
.igm-top, .igm-bot { background: #fff; }
.igm-top { position: relative; border-radius: 5.2cqh 5.2cqh 0 0; }
.igm-status { position: absolute; top: 1.6cqh; left: 50%; width: 11cqh; height: 3cqh; margin-left: -5.5cqh; border-radius: 3cqh; background: #141414; }
.igm-user { position: absolute; left: 2.4cqh; bottom: 2.2cqh; display: flex; align-items: center; gap: 1.4cqh; }
.igm-user i { width: 4.4cqh; height: 4.4cqh; border-radius: 50%; background: linear-gradient(135deg, #F7B24B, #E1306C 55%, #8A3AB9); box-shadow: inset 0 0 0 .45cqh #fff, inset 0 0 0 5cqh #D9D2CB; }
.igm-user b { width: 11cqh; height: 1.3cqh; border-radius: 1cqh; background: #262626; opacity: .8; }
.igm-bot { position: relative; border-radius: 0 0 5.2cqh 5.2cqh; }
.igm-bot svg { width: 100%; height: 100%; fill: none; stroke: #262626; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.igm-acts { position: absolute; top: 1.8cqh; left: 2.4cqh; display: flex; gap: 1.6cqh; }
.igm-acts i, .igm-save { display: block; width: 2.8cqh; height: 2.8cqh; }
.igm-save { position: absolute; top: 1.8cqh; right: 2.4cqh; }
.igm-dots { position: absolute; top: 2.85cqh; left: 50%; transform: translateX(-50%); display: flex; gap: .55cqh; }
.igm-dots i { width: .8cqh; height: .8cqh; border-radius: 50%; background: #C8C8C8; transition: background .3s; }
.igm-dots i.on { background: #3897F0; }
.igm-bot b { position: absolute; left: 2.4cqh; top: 8.6cqh; height: 1.2cqh; border-radius: 1cqh; background: #262626; opacity: .7; width: 60%; }
.igm-bot b + b { top: 11.6cqh; width: 42%; opacity: .3; }

/* Freelance story ads: three story screens, hover moves through every ad */
.ftile.stories .fcover { container-type: size; background: linear-gradient(150deg, #EEEBE6, #D8D3CC); }
.ftile.stories::after { content: none !important; }
.stm { position: absolute; inset: 0; }
.sty { position: absolute; top: 9cqh; left: 50%; width: 46cqh; height: 82cqh; margin-left: -23cqh; border-radius: 5cqh; overflow: hidden; background: #111; box-shadow: 0 0 0 .5cqh rgba(255,255,255,.9), 0 4cqh 7cqh -3cqh rgba(30,20,10,.55); z-index: 2; }
.sty.s1 { transform: translateX(-46cqh) scale(.9); z-index: 1; }
.sty.s2 { transform: translateX(46cqh) scale(.9); z-index: 1; }
.sty::before { content: ""; position: absolute; top: 1.6cqh; left: 50%; width: 12cqh; height: 3cqh; margin-left: -6cqh; border-radius: 3cqh; background: #0d0d0d; z-index: 3; }
.sty-imgs img, .sty-imgs video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.sty-imgs img.on, .sty-imgs video.on { opacity: 1; }
.sty-top { position: absolute; top: 6.6cqh; left: 3cqh; display: flex; align-items: center; gap: 1.4cqh; z-index: 3; }
.sty-top i { width: 4.6cqh; height: 4.6cqh; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 .5cqh #fff, inset 0 0 0 5cqh #CFC8C0; }
.sty-top b { width: 11cqh; height: 1.5cqh; border-radius: 1cqh; background: #fff; opacity: .9; }
.sty-bot { position: absolute; left: 3cqh; right: 3cqh; bottom: 3.4cqh; display: flex; align-items: center; gap: 1.8cqh; z-index: 3; }
.sty-bot em { flex: 1; height: 5cqh; border: .45cqh solid rgba(255,255,255,.9); border-radius: 5cqh; }
.sty-bot i { width: 3.2cqh; height: 3.2cqh; border: .45cqh solid #fff; }
.sty-bot i.h { border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(.9); }
.sty-bot i.p { border-width: .45cqh .45cqh 0 0; transform: rotate(45deg) scale(.8); }
.sty-top, .sty-bot { filter: drop-shadow(0 .2cqh .6cqh rgba(0,0,0,.4)); }

/* Story ads: keep the whole ad visible, no overlays on top of the design */
.sty::before, .sty-top, .sty-bot { transition: opacity .35s; }
.ftile.stories.playing .sty::before, .ftile.stories.playing .sty-top, .ftile.stories.playing .sty-bot { opacity: 0; }
.sty { width: 45cqh; height: 80cqh; margin-left: -22.5cqh; top: 10cqh; border-radius: 3.2cqh; }

/* Carousel cards, resting state: slides laid out on a white strip across the phone (like the reference). Hover switches to the zoomed scroll. */
.igm { --step: 39.6cqh; transition: scale .7s cubic-bezier(.65,0,.25,1); }
.igm-track { gap: 1.2cqh; translate: calc(var(--pos, var(--i)) * var(--step) * -1) 0; transition: translate .8s cubic-bezier(.65,0,.25,1), transform .7s cubic-bezier(.65,0,.25,1), padding .5s, background-color .5s; }
.ftile.carousel:not(.playing) .igm { scale: var(--rs, .74); transform-origin: 50% 50%; }
.ftile.carousel:not(.playing) .igm-track { --pos: var(--mid); z-index: 2; padding: 1cqh; margin: -1cqh 0 0 -6cqh; box-sizing: content-box; background: #fff; border-radius: 2.4cqh; box-shadow: 0 3cqh 6cqh -2cqh rgba(30,20,10,.45); transform: perspective(170cqh) rotateY(-9deg) rotateX(4deg); }
.ftile.carousel:not(.playing) .igm-track img { filter: none; border-radius: 1.4cqh; box-shadow: none; }
.ftile.carousel:not(.playing) .igm-track img:nth-child(n+6) { display: none; }
.ftile.carousel.playing .igm-track { --pos: var(--i); }

/* Story ads resting state: story screens on a light wall with soft window light (like the reference) */
.ftile.stories .fcover { background: linear-gradient(118deg, #E4E2DF 0 34%, #F1F0EE 34% 46%, #E6E4E1 46% 58%, #EFEEEC 58% 66%, #E2E0DD 66%); }
.ftile.stories .fcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 30%, rgba(255,255,255,.35) 40%, transparent 50%); pointer-events: none; z-index: 4; transition: opacity .4s; }
.ftile.stories.playing .fcover::after { opacity: 0; }
.sty { transition: transform .6s cubic-bezier(.65,0,.25,1); }

/* Name next to the logo */
.nav .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .logo-name { font: 600 17px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 420px) { .nav .logo-name { font-size: 15px; } .nav .logo { gap: 8px; } }

/* Carousel cards: realistic mockup thumbnail at rest, zoomed scroll on hover */
.igm-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; transition: opacity .45s ease, transform .7s var(--ease); }
.ftile.carousel.playing .igm-thumb { opacity: 0; transform: scale(1.04); pointer-events: none; }
.ftile.carousel:not(.playing) .igm { scale: 1.75; transform-origin: 50% 50cqh; }
.ftile.carousel:not(.playing) .igm-track { --pos: var(--i); padding: 0; margin: 0; background: none; box-shadow: none; transform: none; }
.ftile.carousel:not(.playing) .igm-track img { border-radius: .6cqh; }
.ftile.carousel:not(.playing) .igm-track img:nth-child(n+6) { display: block; }
.ftile.carousel:not(.playing) .igm-track img:not(.cur) { filter: blur(.9cqh); }
.ftile.stories.playing .igm-thumb { opacity: 0; transform: scale(1.04); pointer-events: none; }


.inq-intro h2 em { color: var(--accent); }

/* Card covers fill the frame, no side bars */
.fcover > img:not(.fslide):not(.igm-thumb) { object-fit: cover; }
.fcover > img.fslide { object-fit: cover; }
.fcover::before { content: none; }

/* Story ads: no fake profile/username overlays at any point */
.sty::before, .sty-top, .sty-bot { display: none !important; }

.inq-intro h2 { font: 500 clamp(36px, 5vw, 64px)/1 var(--sans); letter-spacing: -.02em; }

/* Project search in the filter bar */
.fsearch { display: inline-flex; align-items: center; gap: 8px; height: 35px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: text; transition: border-color .3s, width .3s; }
.fsearch:focus-within { border-color: var(--accent); }
.fsearch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.fsearch input { width: 120px; border: 0; outline: 0; background: transparent; font: 500 13px/1 var(--sans); color: var(--ink); min-height: 0; padding: 0; }
.fsearch input::placeholder { color: var(--ink-2); }
@media (max-width: 760px) { .fsearch { flex: none; } .fsearch input { width: 110px; } }
.fempty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-2); }

.ftile.gone, .fhead.gone { display: none !important; }

/* LinkedIn variant of the phone hover */
.ftile.li .igm-acts { left: 2.4cqh; right: 2.4cqh; justify-content: space-between; }
.ftile.li .igm-bot svg { stroke: #666; }

/* About: resume-style experience */
.facts.resume { grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 5vw, 72px); }
.facts .jobs li { padding: 16px 0; }
.facts .job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.facts .job-top b { font-weight: 600; font-size: 17px; }
.facts .dates { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.facts .org { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.facts .jobs p { font-size: 15px; margin-top: 8px; color: var(--ink); max-width: 46em; }
@media (max-width: 860px) { .facts.resume { grid-template-columns: 1fr; } }

/* Off the clock: autoplay crossfade slideshow in full color, no progress bars */
.hobby .photo img { filter: none; transition: opacity 1.1s var(--ease), transform .8s var(--ease); }
.hobby .dots { display: none; }
.hobby { cursor: pointer; }

/* Off the clock: black and white at rest, color slideshow while hovered or tapped */
.hobby .photo img { filter: grayscale(1) contrast(1.05); transition: opacity 1.1s var(--ease), filter .6s var(--ease); }
.hobby.live .photo img, .hobby:hover .photo img { filter: none; }
@media (max-width: 900px) { .hobby.live { height: 360px; } }

/* Hover slideshows: the incoming slide fades in above the outgoing one, which stays put underneath */
.fcover > img.fslide.prev { opacity: 1; transition: none; z-index: 1; }
.fcover > img.fslide.on { z-index: 2; }

/* Freelance viewer arrows: same style as the "More projects" arrows on case study pages */
.lightbox .lb-prev, .lightbox .lb-next { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 500 22px/1 var(--sans); box-shadow: 0 6px 20px rgba(31,28,25,.18); cursor: pointer; transition: opacity .3s, transform .3s var(--ease); z-index: 2; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: scale(1.08); background: var(--paper); }
.lightbox .lb-prev:focus-visible, .lightbox .lb-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox .lb-prev[disabled], .lightbox .lb-next[disabled] { opacity: .3; pointer-events: none; }
.lightbox .lb-prev, .lightbox .lb-next, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: #F7F3EE; color: #1F1C19; }

/* Inquiry: "Something else" text field */
.inquiry .need-other { display: block; margin-top: 14px; }
.inquiry .need-other[hidden] { display: none; }

/* About intro: the paragraph being read turns bold and bright. Faux bold via text-shadow so lines don't reflow */
.about-hero > div > p.fade-up { transition: color .35s var(--ease), text-shadow .35s var(--ease); }
.about-hero > div > p.fade-up.lit { color: var(--ink); text-shadow: .3px 0 0 currentColor, -.3px 0 0 currentColor; }
:root[data-theme="dark"] .about-hero > div > p.fade-up.lit { color: #fff; }
/* Off the clock: quicker crossfade to match the faster slideshow */
.hobby .photo img { transition: opacity .55s var(--ease), filter .6s var(--ease); }

/* About experience: linked project list under each role */
.facts .job-projects { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 10px; font-size: 15px; }
.facts .job-projects span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts .job-projects a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .25s; }
.facts .job-projects a:hover, .facts .job-projects a:focus-visible { color: var(--accent); }
/* About: pull the toolkit closer to the experience list */
.about-hero ~ .section.toolkit { padding-top: 16px; }
@media (min-width: 861px) { .about-hero ~ .section.toolkit .folder-stage { margin-top: -50px; } }

/* Freelance carousels: View live post button */
.ftile .live-post { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; background: #F7F3EE; color: #1F1C19; font: 600 13px/1 var(--sans); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: opacity .3s var(--ease), translate .3s var(--ease), background .25s, color .25s; }
.ftile .live-post:hover, .ftile .live-post:focus-visible { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .ftile .live-post { opacity: 0; translate: 0 8px; pointer-events: none; }
  .ftile:hover .live-post, .ftile:focus-within .live-post { opacity: 1; translate: 0 0; pointer-events: auto; }
}
@media (max-width: 560px) { .ftile .live-post { right: 8px; bottom: 8px; padding: 8px 10px; font-size: 11.5px; } }
.lightbox .lb-post { position: absolute; left: 50%; bottom: 46px; translate: -50% 0; display: inline-flex; gap: 6px; padding: 11px 16px; border-radius: 10px; background: #F7F3EE; color: #1F1C19; font: 600 14px/1 var(--sans); text-decoration: none; transition: background .25s, color .25s; }
.lightbox .lb-post:hover, .lightbox .lb-post:focus-visible { background: var(--accent); color: #fff; }

.lb-track video { background: #000; }

/* Smaller View cursor for the freelance cards */
.cursor.is-view.is-small { width: 54px; height: 54px; font-size: 9.5px; }

/* ---------- Sticker Farmer hero: equal browser windows with parallax scrolling ---------- */
.sf-hero { background: #121212; }
.sf-hero::after { display: none; }
.sfx { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(70% 70% at 50% 50%, #262626, #121212 75%); }
.sfx-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.sfx-frame { position: absolute; left: 0; top: 0; width: 1000px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); will-change: transform; }
.sfx-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #EDEDED; border-bottom: 1px solid #ddd; }
.sfx-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFCFCF; }
.sfx-bar span { margin: 0 auto; transform: translateX(-24px); font: 500 12px/1 var(--sans); color: #777; background: #fff; padding: 5px 40px; border-radius: 6px; }
.sfx-view { height: 625px; overflow: hidden; }
.sfx-page { position: relative; width: 1000px; will-change: transform; }
.sfx-page img { display: block; width: 1000px; max-width: none; height: auto; }
.sfx-page video { position: absolute; left: 0; width: 1000px; max-width: none; object-fit: cover; }
.sfx-steps { position: relative; height: 625px; }
.sfx-steps img { position: absolute; inset: 0; width: 1000px; max-width: none; height: 625px; opacity: 0; transition: opacity .25s ease; }
.sfx-steps img.on { opacity: 1; }
.sfx-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 2; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); will-change: transform, opacity; }
@media (max-width: 760px) { .sfx-cursor { width: 20px; height: 20px; } }

/* Sticker Farmer ordering flow player */
.sff { margin-top: 28px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
.sff .sfx-bar span { font-size: 11px; padding: 5px 24px; }
.sff-view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.sff .sfx-steps { position: absolute; inset: 0; height: auto; }
.sff .sfx-steps img { width: 100%; height: 100%; object-fit: cover; }
.sff .sfx-cursor { opacity: 1; width: 22px; height: 22px; transition: none; }
@media (max-width: 600px) { .sff .sfx-cursor { width: 15px; height: 15px; } .sff .sfx-bar { height: 22px; } .sff .sfx-bar span { font-size: 9px; } }

/* Rumors collage: five campaign mockups in one grid */
.rcollage { margin-top: 24px; display: grid; gap: 12px; grid-template-columns: 1.15fr 1.25fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.rcollage figure { margin: 0; overflow: hidden; border-radius: 10px; min-height: 0; }
.rcollage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcollage .rc-flyer { grid-column: 1; grid-row: 1 / 3; }
.rcollage .rc-marquee { grid-column: 2; grid-row: 1; }
.rcollage .rc-tv { grid-column: 2; grid-row: 2; }
.rcollage .rc-laptop { grid-column: 3; grid-row: 1; }
.rcollage .rc-phone { grid-column: 3; grid-row: 2; }
.rcollage .rc-flyer img { object-position: 64% 50%; }
.rcollage .rc-phone img { object-position: 50% 45%; }
@media (max-width: 700px) {
  .rcollage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; gap: 8px; }
  .rcollage .rc-marquee { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 3 / 2; }
  .rcollage .rc-flyer { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 5; }
  .rcollage .rc-phone { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 5; }
  .rcollage .rc-tv { grid-column: 1; grid-row: 3; aspect-ratio: 4 / 3; }
  .rcollage .rc-laptop { grid-column: 2; grid-row: 3; aspect-ratio: 4 / 3; }
}

/* Full screen image viewer on project pages */
img.zv-able { cursor: zoom-in; }
body.has-cursor img.zv-able { cursor: none; }
.zv { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(14,12,11,.94); opacity: 0; transition: opacity .25s ease; }
.zv.on { opacity: 1; }
.zv img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); cursor: zoom-out; }
.zv-x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #F7F3EE; color: #1F1C19; font-size: 26px; line-height: 1; cursor: pointer; }
.zv-p, .zv-n { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #F7F3EE; color: #1F1C19; font-size: 20px; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transition: scale .25s; }
.zv-p { left: 22px; } .zv-n { right: 22px; }
.zv-p:hover, .zv-n:hover, .zv-x:hover { scale: 1.08; }
.zv-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font: 600 13px/1 var(--sans); }
.zv.one .zv-p, .zv.one .zv-n, .zv.one .zv-c { display: none; }
@media (max-width: 700px) { .zv img { max-width: 100vw; max-height: 78vh; border-radius: 0; } .zv-p, .zv-n { top: auto; bottom: 14px; translate: none; width: 46px; height: 46px; } .zv-c { bottom: 30px; } }

.cursor { z-index: 2100; }
.rcollage + .rcollage { margin-top: 14px; }
.zv[hidden] { display: none; }
/* Viewer arrows match the "More projects" and freelance lightbox arrows */
.zv-p, .zv-n, .zv-x { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #F7F3EE; color: #1F1C19; font: 500 22px/1 var(--sans); box-shadow: 0 6px 20px rgba(31,28,25,.18); cursor: pointer; transition: opacity .3s, transform .3s var(--ease); scale: none; }
.zv-x { font-size: 26px; }
.zv-p:hover, .zv-n:hover, .zv-x:hover { transform: scale(1.08); scale: none; }
.zv-p:focus-visible, .zv-n:focus-visible, .zv-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zv-p { left: 24px; } .zv-n { right: 24px; }
@media (max-width: 700px) { .zv-p, .zv-n, .zv-x { width: 44px; height: 44px; font-size: 18px; } .zv-x { font-size: 22px; } }
/* Phones: keep the whole menu on screen (the monogram stands in for the name) */

/* Home filters: a filtered view shows every match as an equal small card */
.projects.filtered { grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
.projects.filtered .proj { grid-column: auto !important; }
.projects.filtered .proj .thumb { aspect-ratio: 4 / 3 !important; }
.projects.filtered .proj h3 { font-size: 19px; }
.projects.filtered .proj .cats { font-size: 13px; }
@keyframes projIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .projects.filtered { grid-template-columns: 1fr 1fr; gap: 26px 12px; } .projects.filtered .proj h3 { font-size: 15px; } .projects.filtered .proj .yr { font-size: 12px; } .projects.filtered .proj .cats, .projects.filtered .proj .desc { display: none; } }
@media (prefers-reduced-motion: reduce) { .projects.filtered .proj { animation: none; } }

/* Phone menu: three-bar button opens a full screen menu */
.nav-burger { display: none; position: relative; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; z-index: 61; }
.nav-burger i:not(.corner) { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-burger i:nth-child(1) { top: 15px; } .nav-burger i:nth-child(2) { top: 21px; } .nav-burger i:nth-child(3) { top: 27px; }
.nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 49; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 40px; opacity: 0; transition: opacity .3s var(--ease); }
.mnav[hidden] { display: none; }
.mnav.on { opacity: 1; }
.mnav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.mnav ul a { display: block; font: 500 clamp(40px, 12vw, 56px)/1.15 var(--sans); letter-spacing: -.03em; color: var(--ink); text-decoration: none; padding: 6px 0; transform: translateY(12px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease), color .2s; }
.mnav.on ul a { transform: none; opacity: 1; }
.mnav.on li:nth-child(2) a { transition-delay: .05s; } .mnav.on li:nth-child(3) a { transition-delay: .1s; } .mnav.on li:nth-child(4) a { transition-delay: .15s; }
.mnav ul a[aria-current] { color: var(--accent); }
.mnav .mnav-theme { margin-top: 40px; width: auto; height: auto; padding: 12px 18px; gap: 10px; display: inline-flex; align-self: flex-start; border-radius: 999px; font: 500 15px/1 var(--sans); }
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav-burger { display: block; }
}
body.mnav-open { overflow: hidden; }

.projects { transition: opacity .22s ease, transform .22s ease; }
.projects.swapping { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .projects { transition: none; } }
