/* Adam Hajnos portfolio — site layer on top of the design system (ds/adam-hajnos/tokens.css + bundle.css).
   Two modes, one token set: Light (Editorial Collision) and Dark (After Hours).
   Grid is used sparingly: one rail line, rules that frame rows, and dividers between cells. */

/* Anything below the footer reads as footer, never as a gap */
html, body { background: #171717; }

.site {
  --bg: #fafaf8;
  --fg: #171717;
  --fg-2: #62625f;
  --rule: #d9d9d6;
  --ph: #efefec;
  --ph-fg: #62625f;
  --mark: #d81d65;
  --icon: #d81d65;
  --contact-bg: #171717;
  --contact-fg: #fafaf8;
  --contact-fg-2: #a3a3a0;
  --contact-rule: #323232;
  --contact-dot: #e8457f;
  --t: 320ms cubic-bezier(.4,0,.2,1);
  --margin: clamp(16px, 3.6vw, 56px);
  --rail: 0px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  position: relative;
  overflow-x: clip;
}
.site[data-theme="dark"] {
  --bg: #171717;
  --fg: #fafaf8;
  --fg-2: #a3a3a0;
  --rule: #2e2e2e;
  --ph: #212121;
  --ph-fg: #a3a3a0;
  --mark: #e8457f;
  --icon: #e8457f;
  --contact-bg: #171717;
  --contact-fg: #fafaf8;
  --contact-fg-2: #a3a3a0;
  --contact-rule: #2e2e2e;
  --contact-dot: #e8457f;
}

.site, .site :where(header, nav, section, footer, div, p, h1, h2, h3, span, a, figure, button, li, ol, ul) {
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.site a { color: inherit; }
.site :focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--fg); color: var(--bg) !important; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin) 0 calc(var(--margin) + var(--rail)); box-sizing: border-box; position: relative; }
.rail-n { position: absolute; left: var(--margin); top: 30px; width: 40px; font: 500 13px/1 var(--font-text); letter-spacing: .04em; color: var(--fg); }
.rail-n::after { content: ""; display: block; width: 40px; height: 1px; background: var(--fg); margin-top: 14px; }

.label { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.dash { display: inline-block; width: 64px; height: 1px; background: currentColor; vertical-align: middle; opacity: .6; }
.arrow { transition: transform var(--t); flex: none; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.nav__in { display: flex; align-items: stretch; min-height: 76px; padding-left: var(--margin); }
.nav__brand { display: flex; align-items: center; padding-right: 40px; margin-right: 40px; border-right: 1px solid var(--rule); text-decoration: none; position: relative; z-index: 2; background: var(--bg); }
.logo { display: block; height: 52px; width: auto; }
.logo--dark { display: none; }
.site[data-theme="dark"] .logo--light { display: none; }
.site[data-theme="dark"] .logo--dark { display: block; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a, .mnav a { font: 500 15px/1 var(--font-text); text-decoration: none; position: relative; padding: 14px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--mark); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__end { margin-left: auto; display: flex; align-items: center; padding-left: 32px; border-left: 1px solid var(--rule); }

/* Theme toggle: two real buttons; the asterisk between them turns one arm (60°) per switch */
.toggle { display: flex; align-items: center; gap: 2px; border: 1px solid var(--rule); padding: 3px; }
.toggle button { appearance: none; border: 0; background: transparent; color: var(--fg-2); font: 500 13px/1 var(--font-text); letter-spacing: .02em; padding: 0 14px; min-height: 36px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.toggle button:hover { color: var(--fg); }
.toggle button[aria-pressed="true"]:hover { color: var(--bg); }
.toggle__ast { width: 14px; height: 14px; flex: none; margin: 0 4px; transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.toggle__ast path { fill: var(--mark); }
/* Theme switch: one real switch, labels either side, knob slides */
.switch { appearance: none; border: 0; background: transparent; padding: 0 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--fg); font: 500 13px/1 var(--font-text); letter-spacing: .02em; }
.switch__l { color: var(--fg-2); transition: color var(--t); }
.switch[aria-checked="false"] .switch__l--light, .switch[aria-checked="true"] .switch__l--dark { color: var(--fg); }
.switch__track { position: relative; width: 44px; height: 24px; box-sizing: border-box; border: 1px solid var(--fg); border-radius: 0; transition: border-color var(--t); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 0; background: var(--fg); transition: transform var(--t), background-color var(--t); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(20px); }
.switch:hover .switch__track { border-color: var(--mark); }
.mnav .switch { margin-top: 20px; align-self: flex-start; }
.nav__menu { display: none; margin-left: auto; align-self: center; appearance: none; background: transparent; border: 1px solid var(--rule); color: var(--fg); font: 500 15px/1 var(--font-text); padding: 0 16px; min-height: 44px; cursor: pointer; }
.mnav { border-top: 1px solid var(--rule); background: var(--bg); padding: 8px var(--margin) 24px; display: flex; flex-direction: column; }
.mnav a { font: 700 32px/1.1 var(--font-display); letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mnav .toggle { margin-top: 20px; align-self: flex-start; }

/* ---------- Hero: type on the page, the room on the right ---------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); }
.hero__photo { position: absolute; top: 0; bottom: 0; right: 0; left: 0; overflow: hidden; background: var(--ph); z-index: 0; }
/* Legibility wash: strongest under the type, gone before the face */
.hero__photo::before, .hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity var(--t); }
.hero__photo::before { background: linear-gradient(90deg, rgba(250,250,248,.92) 0%, rgba(250,250,248,.86) 34%, rgba(250,250,248,.7) 42%, rgba(250,250,248,.3) 47%, rgba(250,250,248,0) 50%); }
.hero__photo::after { opacity: 0; background: linear-gradient(90deg, rgba(23,23,23,.92) 0%, rgba(23,23,23,.8) 28%, rgba(23,23,23,.35) 39%, rgba(23,23,23,0) 45%), linear-gradient(0deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,0) 30%); }
.site[data-theme="dark"] .hero__photo::before { opacity: 0; }
.site[data-theme="dark"] .hero__photo::after { opacity: 1; }
/* Smooth swap: the light room stays put underneath; only the dark room fades over it (no dip to background mid-transition) */
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: opacity var(--t); }
.hero__photo .p-light { z-index: 0; }
.hero__photo .p-dark { z-index: 1; opacity: 0; }
.site[data-theme="dark"] .hero__photo .p-dark { opacity: 1; }
/* Wide screens: keep the 1440 framing instead of zooming in. The photo stops at twice the hero's
   height, anchors right, and its left edge fades into the page background behind the headline. */
@media (min-width: 1441px) {
  .hero__photo { left: auto; width: auto; height: 100%; aspect-ratio: 2 / 1; max-width: 100%; background: none; }
  .hero__photo::before { background: linear-gradient(90deg, rgb(250,250,248) 0%, rgba(250,250,248,.86) 34%, rgba(250,250,248,.7) 42%, rgba(250,250,248,.3) 47%, rgba(250,250,248,0) 50%); }
  .hero__photo::after { background: linear-gradient(90deg, rgb(23,23,23) 0%, rgba(23,23,23,.8) 28%, rgba(23,23,23,.35) 39%, rgba(23,23,23,0) 45%), linear-gradient(0deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,0) 30%); }
}
.hero__in { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 80px; min-height: 720px; box-sizing: border-box; display: flex; flex-direction: column; }
.hero__head { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 5.6vw, 84px); line-height: .94; letter-spacing: -.045em; }
.hero__head .ln { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.hero__head .ln > span { display: inline-block; animation: ah-reveal 700ms cubic-bezier(.16,1,.3,1) both; }
.hero__head .dot { color: var(--mark); }
.site .dot { display: inline-block; margin-left: .07em; }
.hero__meta { margin-top: auto; padding-top: 48px; width: min(500px, 42%); }
.hero__role { margin: 0 0 14px; font: 600 26px/1.15 var(--font-display); letter-spacing: -.015em; }
.hero__lead { margin: 0 0 32px; font-size: 19px; line-height: 1.45; color: var(--fg-2); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* About hero (After Hours): the homepage hero with the night portrait. Always dark, whatever the
   theme toggle says, because a dark photo can't fade into a light page. */
.hero--after { --fg: #fafaf8; --fg-2: #a3a3a0; --mark: #e8457f; background: #171717; color: var(--fg); border-bottom-color: #2e2e2e; }
.hero--after .hero__photo { background: #171717; }
.hero--after .hero__photo::before { opacity: 0; }
.hero--after .hero__photo::after { opacity: 1; }
.hero--after .hero__photo .p-dark { opacity: 1; }
.hero--after .hero__soft { color: var(--fg-2); }
.hero--after .hero__lead { color: #d9d9d6; }
/* "Hi, I’m Adam Hajnos." sits on one line, so it runs smaller than the homepage headline to end inside the fade, clear of the face. */
.hero--after .hero__head { font-size: clamp(44px, 4.4vw, 76px); }
.tlink { font: 600 17px/1 var(--font-text); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 6px; text-decoration-thickness: 1px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.tlink:hover .arrow { transform: translateX(3px); }

/* ---------- Section head row ---------- */
.shead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.shead h2 { margin: 0; display: flex; align-items: center; gap: 20px; font: 500 34px/1 var(--font-display); letter-spacing: -.02em; }
.shead .dash { width: 80px; }
.shead a { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; min-height: 44px; }
.shead a:hover .arrow { transform: translateX(3px); }
.band { border-bottom: 1px solid var(--rule); }

/* ---------- Selected work: one large, two stacked ---------- */
.work__more { display: none; }
.work__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.cell { position: relative; padding: 28px 0 36px; display: flex; flex-direction: column; gap: 18px; }
.cell--a { grid-row: 1 / 3; padding-right: 32px; border-right: 1px solid var(--rule); }
.cell--b, .cell--c { padding-left: 32px; }
.cell--b { border-bottom: 1px solid var(--rule); }
.cell__top { display: flex; align-items: center; gap: 20px; }
.cell__num { position: relative; display: inline-flex; align-items: center; width: 22px; height: 20px; font: 500 14px/1 var(--font-text); }
.cell__num .n { display: inline-block; transition: opacity 180ms, transform 180ms cubic-bezier(.16,1,.3,1); }
.cell__num .a { position: absolute; left: 0; width: 15px; height: 16px; opacity: 0; transform: rotate(-60deg) scale(.6); transition: opacity 180ms, transform 240ms cubic-bezier(.16,1,.3,1); }
.cell__num .a path { fill: var(--mark); }
.cell:hover .cell__num .n, .cell:focus-within .cell__num .n { opacity: 0; transform: translateY(-6px); }
.cell:hover .cell__num .a, .cell:focus-within .cell__num .a { opacity: 1; transform: none; }
.cell__top .dash { width: 48px; color: var(--fg-2); }
.cell__title { margin: 0; flex: 1; font: 500 clamp(26px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: -.02em; }
.cell__title a { text-decoration: none; }
.cell__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.cell:hover .cell__top .arrow, .cell:focus-within .cell__top .arrow { transform: translateX(4px); }
.media { margin: 0; position: relative; background: var(--ph); color: var(--ph-fg); display: flex; flex-direction: column; justify-content: space-between; padding: 16px; box-sizing: border-box; overflow: hidden; }
.media .k { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.media .d { font: 500 15px/1.35 var(--font-text); max-width: 34ch; }
.cell--a .media { flex: 1; min-height: 460px; }
.cell--b .media, .cell--c .media { aspect-ratio: 16 / 7; }
.cell__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: start; }
.cell__why { margin: 0; font: 500 18px/1.38 var(--font-text); max-width: 40ch; }
.cell__cat { margin: 0; font-size: 14px; color: var(--fg-2); grid-column: 1; }
.cell__role { grid-column: 2; grid-row: 1; font: 400 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; border: 1px dashed var(--fg-2); color: var(--fg-2); padding: 6px 8px; white-space: nowrap; }
.cell__aside { grid-column: 1 / -1; display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--fg-2); margin-top: 4px; }
.cell__aside svg { width: 13px; height: 14px; flex: none; margin-top: 4px; }
.cell__aside svg path { fill: var(--mark); }
.cell__aside b { color: var(--fg); font-weight: 600; }

/* ---------- What I do: statement + four capabilities with line icons ---------- */
.do__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.do__lead { padding: 36px 32px 48px 0; border-right: 1px solid var(--rule); }
.do__lead h3 { margin: 0; font: 700 clamp(36px, 3.4vw, 50px)/1 var(--font-display); letter-spacing: -.035em; }
.do__lead h3 .dot { color: var(--mark); }
.cap { padding: 40px 24px 48px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; }
.cap:last-child { border-right: 0; padding-right: 0; }
.cap__top { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--font-text); }
.cap__top .dash { width: 28px; color: var(--fg-2); }
.cap h4 { margin: 0; font: 600 21px/1.15 var(--font-display); letter-spacing: -.01em; }
.cap svg.ico { width: 48px; height: 48px; display: block; stroke: var(--icon); fill: none; stroke-width: 1.25; stroke-linecap: square; }
.cap p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 26ch; }

.cs-quote { margin: 0; padding: 72px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-quote blockquote { margin: 0 0 24px; font: 700 clamp(32px, 4vw, 60px)/1.05 var(--font-display); letter-spacing: -.03em; max-width: 22ch; }
@media (max-width: 719px) { .cs-quote { padding: 48px 0; } .cs-quote blockquote { font-size: 30px; } }

/* ---------- Pitch: the ten-second version ---------- */
.pitch__in { padding-top: 96px; padding-bottom: 104px; }
.pitch__k { display: block; margin-bottom: 20px; }
.pitch__line { margin: 0; max-width: 30ch; font: 700 clamp(30px, 3.9vw, 56px)/1.08 var(--font-display); letter-spacing: -.025em; color: var(--fg); text-wrap: balance; }
.pitch__soft { color: var(--fg-2); }
.pitch__hi { color: var(--mark); }
.pitch__ph { color: var(--fg-2); font-weight: 600; }

/* ---------- Approach ---------- */
.approach__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding: 36px 0 96px; border-top: 1px solid var(--rule); }
.approach__lead h3 { margin: 0 0 20px; font: 700 clamp(32px, 3vw, 44px)/1.02 var(--font-display); letter-spacing: -.03em; max-width: 14ch; }
.approach__lead h3 .dot { color: var(--mark); }
.approach__lead p { margin: 0; color: var(--fg-2); max-width: 36ch; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: 0; }
.step__n { font: 700 48px/.85 var(--font-display); letter-spacing: -.04em; color: var(--fg-2); transition: color var(--t); }
.step:hover .step__n { color: var(--mark); }
.cap__top span:first-child { transition: color var(--t); }
.cap:hover .cap__top span:first-child { color: var(--mark); }
.step h4 { margin: 0 0 6px; font: 600 22px/1.1 var(--font-display); letter-spacing: -.015em; }
.step p { margin: 0; max-width: 48ch; }

/* ---------- Contact ---------- */
.contact { background: var(--contact-bg); color: var(--contact-fg); position: relative; z-index: 2; border-top: 1px solid transparent; }
.site[data-theme="dark"] .contact { border-top-color: var(--rule); }
.contact .label { color: var(--contact-fg-2); }
.contact .rail-n { color: var(--contact-fg); }
.contact .rail-n::after { background: var(--contact-fg); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; padding-top: 32px; padding-bottom: 80px; }
.contact__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.contact__k .dash { width: 40px; }
.contact__head { margin: 24px 0 20px; font: 700 clamp(48px, 6.6vw, 100px)/.95 var(--font-display); letter-spacing: -.04em; }
.contact__head .dot { color: var(--contact-dot); }
.contact__sub { margin: 0; font: 500 19px/1.45 var(--font-text); max-width: 62ch; }
.contact__act { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; align-self: end; }
.contact__list { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--contact-rule); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--contact-rule); font-size: 15px; }
.contact__list .k { color: var(--contact-fg-2); }
.contact__list a { color: var(--contact-fg); text-decoration: underline; text-decoration-color: var(--contact-dot); text-underline-offset: 4px; }
.contact__list a:hover { color: var(--contact-dot); }
.contact__list .pending { color: var(--contact-fg-2); font-style: italic; }

/* ---------- Footer: continues the dark contact block ---------- */
.foot { position: relative; z-index: 2; background: var(--contact-bg); color: var(--contact-fg); --rule: var(--contact-rule); --fg: var(--contact-fg); --fg-2: var(--contact-fg-2); }
.foot__grid { border-top: 1px solid var(--contact-rule); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.foot__cell { padding: 32px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 140px; box-sizing: border-box; }
.foot__cell:first-child { padding-left: 0; }
.foot__cell:last-child { border-right: 0; padding-right: 0; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.foot__links a { font: 400 12px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.foot__links a:hover { color: var(--mark); }
.social { display: flex; gap: 8px; }
.foot__small { font-size: 13px; color: var(--fg-2); }
.foot__small a { text-decoration: none; color: var(--fg); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav__links { gap: 24px; }
  .nav__brand { padding-right: 24px; margin-right: 24px; }
  .hero__meta { width: min(420px, 46%); }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .cell--a { grid-row: auto; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cell--a .media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .cell--b, .cell--c { padding-left: 0; }
  .do__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .do__lead { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .cap { border-bottom: 1px solid var(--rule); }
  .cap:nth-child(odd) { border-right: 0; }
  .cap:nth-child(even) { padding-left: 0; }
  .approach__body { grid-template-columns: minmax(0, 1fr); }
  .contact__in { grid-template-columns: minmax(0, 1fr); }
  .contact__act { align-self: start; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cell:nth-child(2) { border-right: 0; }
  .foot__cell:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .foot__cell:nth-child(4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .nav__links, .nav__end { display: none; }
  .nav__brand { border-right: 0; }
  .nav__menu { display: inline-flex; align-items: center; margin-right: var(--margin); }
}
@media (min-width: 861px) { .mnav { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 719px) {
  .site { --rail: 0px; }
  .logo { height: 46px; }
  .hero { display: flex; flex-direction: column; }
  .hero__photo { position: relative; order: 2; left: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .hero__photo::before, .hero__photo::after { display: none; }
  .hero__photo img { object-position: 64% 30%; }
  .hero__in { min-height: 0; padding-top: 40px; padding-bottom: 56px; }
  .hero__head { font-size: 11.2vw; }
  .hero__meta { width: 100%; padding-top: 32px; }
  .hero__role { font-size: 22px; }
  .shead { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 20px 0; }
  .shead h2 { font-size: 28px; }
  .shead .dash { width: 40px; }
  .cell--b .media, .cell--c .media { aspect-ratio: 4 / 3; }
  .cell__body { grid-template-columns: minmax(0, 1fr); }
  .cell__role { grid-column: 1; grid-row: auto; justify-self: start; }
  .do__grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  /* Mobile type: larger body sizes, no narrow measures — the screen is the measure */
  .site { font-size: 18px; }
  .site p { max-width: none !important; }
  .cap p, .step p, .cell__why, .contact__sub { font-size: 18px; line-height: 1.5; }
  .cap h4 { font-size: 24px; }
  .step h4 { font-size: 24px; }
  .cell__cat, .contact__list li { font-size: 16px; }
  .cell__title { font-size: 28px; }
  .do__lead h3, .approach__lead h3 { font-size: 36px; }
  .contact__head { font-size: 52px; }
  .label, .cap__top { font-size: 13px; }
  .cell__role { font-size: 12px; }
  .contact__sub { width: auto !important; height: auto !important; }
  /* Mobile vertical rhythm: 56 between sections · 16 label→content · 32 between blocks */
  .shead { padding: 56px 0 16px; gap: 16px; }
  .work__grid, .approach__body { border-top: 0; }
  .shead__more { display: none; }
  .pitch__in { padding-top: 56px; padding-bottom: 56px; }
  .pitch__line { font-size: 30px; line-height: 1.12; max-width: none; }
  /* Mobile standards pass: 24px side margins, 44px+ touch targets, 16px+ body, full-width primary actions */
  .site { --margin: 24px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__ctas > *, .contact__act > dc-import, .work__more > * { display: block; width: 100%; }
  .hero__ctas .ab, .contact__act .ab, .work__more .ab { width: 100%; justify-content: center; }
  .hero__ctas .ab__fill, .contact__act .ab__fill, .work__more .ab__fill { justify-content: center; }
  .hero__lead { font-size: 18px; color: var(--fg-2); }
  .foot__links a { min-height: 44px; font-size: 13px; }
  .foot__small { font-size: 15px; gap: 4px; }
  .foot__small a { min-height: 44px; display: inline-flex; align-items: center; }
  .contact__list li { flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; }
  .contact__k { flex-wrap: wrap; }
  .mnav a { min-height: 56px; display: flex; align-items: center; }
  /* Mobile section heads lead with the brand asterisk instead of the trailing rule */
  .shead h2 { gap: 12px; }
  .shead h2 .dash { display: none; }
  .shead h2::before { content: ""; flex: none; width: 20px; height: 21px; background: var(--mark); -webkit-mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; }
  .work__more { display: block; padding: 8px 0 56px; }
  .do__lead { padding: 0 0 32px; }
  .cap, .cap:nth-child(even) { padding: 32px 0; }
  .work { padding-bottom: 56px; }
  .cell, .cell--a, .cell--b, .cell--c { padding: 24px 0 40px; gap: 16px; }
  .cell--a { padding-top: 8px; }
  .cell__body { gap: 12px; }
  .approach__body { padding: 0 0 56px; gap: 32px; }
  .step { padding: 24px 0; }
  .contact__in { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .contact__head { margin: 16px 0 20px; }
  .cap, .cap:nth-child(even) { border-right: 0; padding: 28px 0; }
  .step { grid-template-columns: 52px minmax(0, 1fr); }
  .step__n { font-size: 32px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__cell, .foot__cell:nth-child(n) { padding: 24px 0; border-right: 0; border-top: 1px solid var(--rule); min-height: 0; }
  .foot__cell:first-child { border-top: 0; }
}

/* ============================================================
   AsteriskButton — signature interaction (Level 3).
   The fill is a CSS mask of the drawn brand asterisk, so the
   white label is revealed exactly where the shape has reached.
   ============================================================ */
.ab { position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; overflow: hidden; isolation: isolate; text-decoration: none !important; border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: 600 17px/1 var(--font-text); box-sizing: border-box; user-select: none; }
.ab--light { background: #171717; color: #fafaf8 !important; }
.ab--dark { background: #fafaf8; color: #171717 !important; }
.ab { transition: background-color var(--t, 0ms), color var(--t, 0ms), box-shadow var(--t, 0ms); }
.ab--secondary.ab--light { background: transparent; color: #171717 !important; box-shadow: inset 0 0 0 1px #171717; }
.ab--secondary.ab--dark { background: transparent; color: #fafaf8 !important; box-shadow: inset 0 0 0 1px #fafaf8; }
.ab--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.ab--sm .ab__fill { padding: 0 18px; }
.ab--sm .ab__label { gap: 10px; }
.ab--icon { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.ab--icon .ab__fill { padding: 0; justify-content: center; }
.ab:focus-visible { outline: 2px solid #d81d65; outline-offset: 3px; }
.ab:active { transform: translateY(1px); }
.ab__label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; transition: color 180ms cubic-bezier(.16,1,.3,1); }
.ab__arrow { transition: transform 200ms cubic-bezier(.16,1,.3,1); }
.ab.is-on .ab__arrow { transform: translateX(3px); }
.ab__fill {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; padding: 0 26px;
  background: #d81d65; color: #ffffff; pointer-events: none;
  -webkit-mask-image: url("ds/adam-hajnos/assets/logos/asterisk.svg");
  mask-image: url("ds/adam-hajnos/assets/logos/asterisk.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition-property: -webkit-mask-size, -webkit-mask-position, mask-size, mask-position;
}
.ab__fill .ab__label { color: #ffffff; }
.ab__shape { position: absolute; z-index: 1; pointer-events: none; transform-origin: 50.26% 52.15%; transition-property: transform; }
.ab__shape svg { display: block; width: 100%; height: 100%; }
.ab--b.is-on .ab__label { color: #ffffff; transition-delay: 70ms; }

/* ============================================================
   Case study — shares the homepage's tokens, nav, buttons and
   contact block; its own editorial layout for long-form proof.
   ============================================================ */
.cs-hero { padding: 64px 0 0; }
.cs-crumb { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.cs-crumb a { text-decoration: none; color: var(--fg-2); }
.cs-crumb a:hover { color: var(--fg); }
.cs-title { margin: 0; font: 700 clamp(56px, 8.6vw, 136px)/.9 var(--font-display); letter-spacing: -.045em; max-width: 11ch; }
.cs-title .dot { color: var(--mark); }
.cs-sum { margin: 36px 0 0; font: 500 clamp(20px, 1.8vw, 26px)/1.4 var(--font-text); max-width: 58ch; }
.cs-liner { margin: 64px 0 0; }
.cs-liner__k { margin: 0 0 12px; }
.cs-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .55fr) minmax(0, 1.9fr); margin: 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--rule); }
.cs-meta > div { padding: 22px 24px 26px; border-left: 1px solid var(--rule); }
.cs-meta > div:first-child { padding-left: 0; border-left: 0; }
.trk { display: inline-block; min-width: 26px; margin-right: 8px; color: var(--mark); font-weight: 600; letter-spacing: .06em; }
.cs-meta dd.sub { margin-top: 4px; font: 400 14px/1.4 var(--font-text); color: var(--fg-2); }
.cs-tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font: 600 17px/1.35 var(--font-display); letter-spacing: -.005em; }
.cs-tracks span { display: inline-block; width: 30px; font: 600 12px/1 var(--font-text); letter-spacing: .06em; color: var(--fg-2); }
.cs-meta div { margin: 0; }
.cs-meta dt { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.cs-meta dd { margin: 12px 0 0; font: 600 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.cs-meta__scope dd { font: inherit; }
.ph-t { color: var(--fg-2); font-style: italic; }
.cs-bleed { margin: 56px 0 0; aspect-ratio: 16 / 8; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-sec { padding: 128px 0 0; }
.cs-k { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.cs-k::before { content: ""; flex: none; width: 14px; height: 15px; background: var(--mark); -webkit-mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; }
.cs-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; }
.cs-h { margin: 0 0 20px; font: 700 clamp(30px, 2.9vw, 44px)/1.06 var(--font-display); letter-spacing: -.025em; max-width: 18ch; }
.cs-p { margin: 0 0 16px; font-size: 19px; line-height: 1.6; max-width: 56ch; }
.cs-p--2 { color: var(--fg-2); }
.cs-idea { padding: 128px 0 0; }
.cs-idea__line { margin: 0; font: 700 clamp(40px, 5.6vw, 88px)/1 var(--font-display); letter-spacing: -.04em; max-width: 16ch; }
.cs-idea__line .hi { color: var(--mark); }
.cs-idea--dark { position: relative; overflow: hidden; margin-top: 128px; padding: 144px 0; background: #171717; color: #fafaf8; --fg: #fafaf8; --fg-2: #a3a3a0; --mark: #e8457f; --rule: #2e2e2e; }
.cs-idea--dark .wrap { position: relative; z-index: 2; }
.cs-idea__ph { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; background: #242424; color: #a3a3a0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 8px; padding: 28px var(--margin); box-sizing: border-box; text-align: right; }
.cs-idea__ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #171717 0%, rgba(23,23,23,.6) 30%, rgba(23,23,23,0) 60%); pointer-events: none; }
.cs-idea__ph .k { position: relative; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.cs-idea__ph .d { position: relative; font-size: 15px; line-height: 1.4; max-width: 38ch; }
.cs-idea--dark .cs-idea__line { max-width: 14ch; }
.cs-idea--dark .cs-p { max-width: 46ch; }
.cs-sys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.cs-sys .media { aspect-ratio: 1 / 1; }
.cs-cap { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.cs-cap b { color: var(--fg); font-weight: 600; }
.cs-gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; margin-top: 40px; }
.cs-gal figure { margin: 0; }
.cs-gal--flush { margin-top: 0; }
.cs-gal .g1 { grid-column: 1 / 8; } .cs-gal .g1 .media { aspect-ratio: 4 / 3; }
.cs-gal .g2 { grid-column: 8 / 13; align-self: end; } .cs-gal .g2 .media { aspect-ratio: 3 / 4; }
.cs-gal .g3 { grid-column: 1 / 13; } .cs-gal .g3 .media { aspect-ratio: 21 / 9; }
.cs-gal .g4 { grid-column: 1 / 5; } .cs-gal .g4 .media { aspect-ratio: 4 / 5; }
.cs-gal .g5 { grid-column: 5 / 9; margin-top: 96px; } .cs-gal .g5 .media { aspect-ratio: 4 / 5; }
.cs-gal .g6 { grid-column: 9 / 13; } .cs-gal .g6 .media { aspect-ratio: 4 / 5; }
.cs-note { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-note svg { width: 56px; height: 60px; }
.cs-note svg path { fill: var(--mark); }
.cs-note p { margin: 0; font: 600 clamp(24px, 2.2vw, 32px)/1.25 var(--font-display); letter-spacing: -.015em; max-width: 34ch; }
.cs-credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.cs-credits dt { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.cs-credits dd { margin: 8px 0 0; font-size: 16px; }
.cs-next { display: block; margin-top: 128px; padding: 56px 0 72px; border-top: 1px solid var(--rule); text-decoration: none; }
.cs-next .label { display: block; margin-bottom: 16px; }
.cs-next__t { display: flex; align-items: center; gap: 24px; font: 700 clamp(44px, 6.4vw, 104px)/.95 var(--font-display); letter-spacing: -.04em; }
.cs-next__t svg { width: clamp(36px, 4vw, 64px); height: auto; transition: transform var(--t); flex: none; }
.cs-next:hover .cs-next__t svg, .cs-next:focus-visible .cs-next__t svg { transform: translateX(10px); }
.cs-next:hover .cs-next__t span { color: var(--mark); }
.cs-next__t span { transition: color var(--t); }

@media (max-width: 1023px) {
  .cs-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-meta__scope { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .cs-two { grid-template-columns: minmax(0, 1fr); }
  .cs-sys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-gal .g1, .cs-gal .g2 { grid-column: 1 / 13; }
  .cs-gal .g4 { grid-column: 1 / 7; } .cs-gal .g5 { grid-column: 7 / 13; margin-top: 0; } .cs-gal .g6 { grid-column: 1 / 7; }
  .cs-credits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .cs-hero { padding-top: 40px; }
  .cs-title { font-size: 15vw; }
  .cs-sum { font-size: 20px; }
  .cs-liner { margin-top: 40px; }
  .cs-meta { grid-template-columns: minmax(0, 1fr); }
  .cs-meta > div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cs-meta > div:first-child { border-top: 0; }
  .cs-bleed { aspect-ratio: 4 / 3; margin-top: 40px; }
  .cs-sec, .cs-idea { padding-top: 72px; }
  .cs-h { font-size: 30px; }
  .cs-p { font-size: 18px; }
  .cs-idea__line { font-size: 40px; }
  .cs-idea--dark { margin-top: 72px; padding: 0 0 56px; display: flex; flex-direction: column; }
  .cs-idea__ph { position: relative; width: 100%; aspect-ratio: 4 / 3; order: -1; margin-bottom: 40px; }
  .cs-idea__ph::before { background: linear-gradient(0deg, #171717 0%, rgba(23,23,23,0) 50%); }
  .cs-sys { grid-template-columns: minmax(0, 1fr); }
  .cs-gal { gap: 40px; }
  .cs-gal figure { grid-column: 1 / 13 !important; margin-top: 0 !important; }
  .cs-note { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .cs-note svg { width: 32px; height: 34px; }
  .cs-note p { font-size: 22px; }
  .cs-next { margin-top: 72px; padding: 40px 0 56px; }
  .cs-next__t { font-size: 40px; }
}

/* ============================================================
   Résumé
   ============================================================ */
.rs-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--fg); }
.rs-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.rs-title { margin: 0; font: 700 clamp(56px, 8vw, 128px)/.9 var(--font-display); letter-spacing: -.045em; }
.rs-title .dot { color: var(--mark); }
.rs-sum { margin: 32px 0 0; font: 500 clamp(20px, 1.8vw, 26px)/1.4 var(--font-text); max-width: 58ch; }
.rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 64px; padding-top: 56px; padding-bottom: 120px; }
.rs-side { align-self: start; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 36px; }
.rs-side h2, .rs-main h2 { margin: 0 0 14px; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.rs-side ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.7; }
.rs-side a { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.rs-side .ph-t { font-size: 16px; }
.rs-job { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.rs-job:first-of-type { border-top: 1px solid var(--fg); }
.rs-when { font: 500 14px/1.5 var(--font-text); color: var(--fg-2); padding-top: 4px; }
.rs-role { margin: 0; font: 700 clamp(22px, 2vw, 28px)/1.15 var(--font-display); letter-spacing: -.015em; }
.rs-co { margin: 4px 0 14px; font-size: 16px; color: var(--fg-2); }
.rs-job ul { margin: 0; padding: 0 0 0 18px; font-size: 17px; line-height: 1.55; }
.rs-job li { margin: 0 0 8px; }
.rs-job li::marker { color: var(--mark); }
.rs-early { padding: 28px 0 0; border-top: 1px solid var(--rule); }
.rs-early ul { list-style: none; margin: 0; padding: 0; }
.rs-early li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 6px 0; font-size: 16px; }
.rs-early li span:first-child { color: var(--fg-2); font-size: 14px; }
@media (max-width: 1023px) {
  .rs-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rs-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .rs-hero { padding: 40px 0 40px; }
  .rs-title { font-size: 15vw; }
  .rs-side { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rs-job, .rs-early li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rs-grid { padding-bottom: 72px; }
}

/* Keep every line inside the page, whatever the width */
.site { overflow-wrap: break-word; }
.rs-hero__row > *, .rs-grid > *, .rs-job > *, .rs-early li > * { min-width: 0; }
.rs-title { font-size: clamp(48px, 7vw, 112px); max-width: 100%; }
.rs-side a, .contact__list a { overflow-wrap: anywhere; }
.rs-hero .rs-sum { max-width: min(58ch, 100%); }
@media (max-width: 719px) { .rs-title { font-size: 13vw; } }

/* ============================================================
   Sub pages: Work index, About, 404
   ============================================================ */
.pg-hero { padding: 64px 0 48px; }
.pg-title { margin: 0; font: 700 clamp(48px, 7vw, 112px)/.92 var(--font-display); letter-spacing: -.045em; max-width: 14ch; }
.pg-title .dot, .pg-title .hi { color: var(--mark); }
.pg-sum { margin: 28px 0 0; font: 500 clamp(19px, 1.7vw, 24px)/1.4 var(--font-text); max-width: 62ch; }
.wk-list { list-style: none; margin: 0 0 120px; padding: 0; border-top: 1px solid var(--fg); }
.wk-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 120px 40px; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.wk-row .n { font: 500 14px/1 var(--font-text); color: var(--fg-2); transition: color var(--t); }
.wk-row h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 52px)/1 var(--font-display); letter-spacing: -.03em; transition: color var(--t); }
.wk-row h2 a { text-decoration: none; }
.wk-row h2 a::after { content: ""; position: absolute; inset: 0; }
.wk-row p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--fg-2); }
.wk-row .yr { font-size: 14px; color: var(--fg-2); text-align: right; }
.wk-row svg { width: 28px; height: 28px; transition: transform var(--t); }
.wk-row:hover h2, .wk-row:focus-within h2 { color: var(--mark); }
.wk-row:hover .n { color: var(--mark); }
.wk-row:hover svg, .wk-row:focus-within svg { transform: translateX(6px); }
.wk-row--soon h2, .wk-row--soon p { color: var(--fg-2); }
.ab-photo { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #171717; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.ab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px 80px; padding: 96px 0 120px; }
.ab-body h2 { margin: 0; font: 700 clamp(30px, 3vw, 44px)/1.05 var(--font-display); letter-spacing: -.025em; }
.ab-body h2 .dot { color: var(--mark); }
.ab-body p { margin: 0 0 18px; font-size: 19px; line-height: 1.6; max-width: 58ch; }
.ab-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.e404 { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; }
.e404__big { margin: 0; font: 700 clamp(120px, 24vw, 340px)/.8 var(--font-display); letter-spacing: -.06em; }
.e404__big span { color: var(--mark); font-size: .5em; vertical-align: top; }
.e404 h1 { margin: 40px 0 0; font: 700 clamp(32px, 4vw, 60px)/1 var(--font-display); letter-spacing: -.03em; }
.e404 p { margin: 20px 0 32px; font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.e404 .foot-note { margin-top: 48px; font-size: 14px; color: var(--fg-2); }
.e404 .foot-note b { color: var(--mark); }
@media (max-width: 1023px) {
  .wk-row { grid-template-columns: 48px minmax(0, 1fr) 32px; }
  .wk-row p, .wk-row .yr { grid-column: 2; text-align: left; }
  .wk-row svg { grid-column: 3; grid-row: 1; }
  .ab-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .pg-hero { padding: 40px 0 32px; }
  .pg-title { font-size: 13vw; }
  .ab-photo { aspect-ratio: 4 / 3; }
  .ab-body { padding: 56px 0 72px; gap: 24px; }
  .ab-body p { font-size: 18px; }
  .wk-list { margin-bottom: 72px; }
  .e404 { padding: 56px 0; min-height: 0; }
}

/* ============================================================
   Spacing system: one set of margins and section rhythm on every page
   Side margins: --margin (52px at 1440, 24px on mobile), always from .wrap.
   Page top: --page-top (64 / 40). Intro → content: --intro-gap (48 / 32).
   Last section → contact block: --sec-y (96 / 56).
   ============================================================ */
.site { --page-top: 64px; --intro-gap: 48px; --sec-y: 96px; }
@media (max-width: 719px) { .site { --page-top: 40px; --intro-gap: 32px; --sec-y: 56px; } }
/* No section may wipe out the side margins */
.site .wrap { padding-left: calc(var(--margin) + var(--rail)); padding-right: var(--margin); }
/* Page intros */
.pg-hero, .rs-hero { padding-top: var(--page-top); padding-bottom: var(--intro-gap); }
.cs-hero { padding-top: var(--page-top); }
.rs-grid { padding-top: var(--intro-gap); padding-bottom: var(--sec-y); }
/* Section endings before the contact block */
.wk-list { margin-bottom: var(--sec-y); }
.ab-body { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.e404 { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.approach__body { padding-bottom: var(--sec-y); }
.cs-next { padding-bottom: var(--sec-y); }
.pitch__in { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
/* 404 numeral: beat the generic .e404 p rule so it renders at display size */
.e404 p.e404__big { margin: 0; font: 700 clamp(120px, 24vw, 340px)/.8 var(--font-display); letter-spacing: -.06em; color: var(--fg); max-width: none; }
.e404 h1 { margin-top: var(--intro-gap); }
/* Mobile: page CTAs stack full width, same as the homepage and contact block */
@media (max-width: 719px) {
  .ab-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .ab-ctas > dc-import { display: block; width: 100%; }
  .ab-ctas .ab { width: 100%; justify-content: center; }
  .ab-ctas .ab__fill { justify-content: center; }
}

/* ── Logo signature micro-interaction (nav) ── */
.logo--sig { overflow: visible; }
.logo--sig .ink { fill: var(--fg); }
.nav__brand .logo--sig .ms{fill:none;stroke:#fff;stroke-width:46px;stroke-linecap:round;stroke-linejoin:round;stroke-dashoffset:0}
.nav__brand .logo--sig .dot,.nav__brand .logo--sig .tstar{transform-box:fill-box;transform-origin:50% 50%}
.nav__brand:hover .logo--sig .ms,.nav__brand:focus-visible .logo--sig .ms{animation-name:navSigDraw;animation-timing-function:linear;animation-fill-mode:both}
.nav__brand:hover .logo--sig .mfull,.nav__brand:focus-visible .logo--sig .mfull{animation:navSigShow 1ms linear 0.420s both}
.nav__brand:hover .logo--sig .dot,.nav__brand:focus-visible .logo--sig .dot{animation:navSigDot .26s cubic-bezier(.34,1.8,.64,1) 0.400s both}
@keyframes navSigDraw{from{stroke-dashoffset:var(--o)}to{stroke-dashoffset:0}}
@keyframes navSigShow{from{opacity:0}to{opacity:1}}
@keyframes navSigDot{0%{opacity:0;transform:scale(.3) rotate(-45deg)}60%{opacity:1}100%{opacity:1;transform:scale(1) rotate(0)}}
.nav__brand:hover .logo--sig .k0,.nav__brand:focus-visible .logo--sig .k0{animation-delay:0.000s;animation-duration:0.027s}
.nav__brand .logo--sig .k0{stroke-dasharray:662 4000;--o:662px}
.nav__brand:hover .logo--sig .k1,.nav__brand:focus-visible .logo--sig .k1{animation-delay:0.027s;animation-duration:0.013s}
.nav__brand .logo--sig .k1{stroke-dasharray:305 4000;--o:305px}
.nav__brand:hover .logo--sig .k2,.nav__brand:focus-visible .logo--sig .k2{animation-delay:0.041s;animation-duration:0.012s}
.nav__brand .logo--sig .k2{stroke-dasharray:216 4000;--o:216px}
.nav__brand:hover .logo--sig .k3,.nav__brand:focus-visible .logo--sig .k3{animation-delay:0.050s;animation-duration:0.012s}
.nav__brand .logo--sig .k3{stroke-dasharray:257 4000;--o:257px}
.nav__brand:hover .logo--sig .k4,.nav__brand:focus-visible .logo--sig .k4{animation-delay:0.062s;animation-duration:0.012s}
.nav__brand .logo--sig .k4{stroke-dasharray:159 4000;--o:159px}
.nav__brand:hover .logo--sig .k5,.nav__brand:focus-visible .logo--sig .k5{animation-delay:0.062s;animation-duration:0.012s}
.nav__brand .logo--sig .k5{stroke-dasharray:249 4000;--o:249px}
.nav__brand:hover .logo--sig .k6,.nav__brand:focus-visible .logo--sig .k6{animation-delay:0.074s;animation-duration:0.012s}
.nav__brand .logo--sig .k6{stroke-dasharray:208 4000;--o:208px}
.nav__brand:hover .logo--sig .k7,.nav__brand:focus-visible .logo--sig .k7{animation-delay:0.084s;animation-duration:0.012s}
.nav__brand .logo--sig .k7{stroke-dasharray:206 4000;--o:206px}
.nav__brand:hover .logo--sig .k8,.nav__brand:focus-visible .logo--sig .k8{animation-delay:0.095s;animation-duration:0.012s}
.nav__brand .logo--sig .k8{stroke-dasharray:214 4000;--o:214px}
.nav__brand:hover .logo--sig .k9,.nav__brand:focus-visible .logo--sig .k9{animation-delay:0.106s;animation-duration:0.015s}
.nav__brand .logo--sig .k9{stroke-dasharray:273 4000;--o:273px}
.nav__brand:hover .logo--sig .k10,.nav__brand:focus-visible .logo--sig .k10{animation-delay:0.121s;animation-duration:0.019s}
.nav__brand .logo--sig .k10{stroke-dasharray:327 4000;--o:327px}
.nav__brand:hover .logo--sig .k11,.nav__brand:focus-visible .logo--sig .k11{animation-delay:0.140s;animation-duration:0.014s}
.nav__brand .logo--sig .k11{stroke-dasharray:228 4000;--o:228px}
.nav__brand:hover .logo--sig .k12,.nav__brand:focus-visible .logo--sig .k12{animation-delay:0.154s;animation-duration:0.015s}
.nav__brand .logo--sig .k12{stroke-dasharray:229 4000;--o:229px}
.nav__brand:hover .logo--sig .k13,.nav__brand:focus-visible .logo--sig .k13{animation-delay:0.169s;animation-duration:0.012s}
.nav__brand .logo--sig .k13{stroke-dasharray:141 4000;--o:141px}
.nav__brand:hover .logo--sig .k14,.nav__brand:focus-visible .logo--sig .k14{animation-delay:0.178s;animation-duration:0.034s}
.nav__brand .logo--sig .k14{stroke-dasharray:456 4000;--o:456px}
.nav__brand:hover .logo--sig .k15,.nav__brand:focus-visible .logo--sig .k15{animation-delay:0.212s;animation-duration:0.012s}
.nav__brand .logo--sig .k15{stroke-dasharray:136 4000;--o:136px}
.nav__brand:hover .logo--sig .k16,.nav__brand:focus-visible .logo--sig .k16{animation-delay:0.224s;animation-duration:0.022s}
.nav__brand .logo--sig .k16{stroke-dasharray:241 4000;--o:241px}
.nav__brand:hover .logo--sig .k17,.nav__brand:focus-visible .logo--sig .k17{animation-delay:0.245s;animation-duration:0.061s}
.nav__brand .logo--sig .k17{stroke-dasharray:524 4000;--o:524px}
.nav__brand:hover .logo--sig .k18,.nav__brand:focus-visible .logo--sig .k18{animation-delay:0.307s;animation-duration:0.113s}
.nav__brand .logo--sig .k18{stroke-dasharray:381 4000;--o:381px}
@media (prefers-reduced-motion: reduce){.nav__brand .logo--sig *{animation:none !important}}
/* Signature logo never drops below the 160px brand minimum on mobile */
@media (max-width: 719px) { .nav__brand .logo--sig { height: auto; width: 160px; } }
/* Nav: links sit on the right, next to the Light/Dark switch */
.nav__brand { border-right: 0; margin-right: 0; }
.nav__links { margin-left: auto; padding-right: 32px; }
.nav__end { margin-left: 0; }
/* Contact list: no underline at rest, pink on hover/focus */
.contact__list a { text-decoration: none; transition: color var(--t); }
.contact__list a:hover, .contact__list a:focus-visible { color: var(--contact-dot); }
/* In-page jumps (Back to top, Contact) ease instead of snapping */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Same optical gap as the pink period, but keeps the line's gray */
.pg-title .dot--soft { color: inherit; }

/* ============================================================
   Work index: hover a row, it opens up and the work shows through
   Set each row's photo with style="--img: url(images/....jpg)" on .wk-bg
   ============================================================ */
.wk-row { isolation: isolate; transition: padding var(--t); }
.wk-row > *:not(.wk-bg) { position: relative; z-index: 1; }
.wk-bg { position: absolute; top: -1px; bottom: -1px; left: calc(-1 * var(--margin) - var(--rail)); right: calc(-1 * var(--margin)); z-index: 0; opacity: 0; pointer-events: none; background: #212121 var(--img, none) center / cover no-repeat; transition: opacity var(--t); }
.wk-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,23,.88) 0%, rgba(23,23,23,.72) 45%, rgba(23,23,23,.45) 100%); }
.wk-bg__ph { position: absolute; right: var(--margin); bottom: 12px; z-index: 1; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: #a3a3a0; }
.wk-row:not(.wk-row--soon):hover, .wk-row:not(.wk-row--soon):focus-within { padding: 56px 0; border-bottom-color: transparent; }
.wk-row:not(.wk-row--soon):hover .wk-bg, .wk-row:not(.wk-row--soon):focus-within .wk-bg { opacity: 1; }
.wk-row:not(.wk-row--soon):hover :is(.n, .yr, svg), .wk-row:not(.wk-row--soon):focus-within :is(.n, .yr, svg) { color: #fafaf8; }
.wk-row:not(.wk-row--soon):hover p, .wk-row:not(.wk-row--soon):focus-within p { color: #d9d9d6; }
.wk-row:not(.wk-row--soon):hover h2, .wk-row:not(.wk-row--soon):focus-within h2 { color: #e8457f; }
.wk-row :is(.n, .yr, p, svg) { transition: color var(--t), transform var(--t); }
@media (hover: none) { .wk-bg { display: none; } }
/* Links, globally: no underline. Pink on hover/focus is the signal.
   Low-specificity hover so component hovers (contact, footer, buttons) still win. */
.site a { text-decoration: none !important; }
:where(.site) a:where(:not(.ab)) { transition: color var(--t); }
:where(.site) a:where(:not(.ab)):hover, :where(.site) a:where(:not(.ab)):focus-visible { color: var(--mark); }

/* ============================================================
   What I do: icon micro-animations on card hover / focus
   Small moves, ~400ms, ease-out. Reduced motion: none (bundle.css).
   ============================================================ */
.cap svg.ico * { transform-box: fill-box; transform-origin: center; transition: transform 420ms cubic-bezier(.16,1,.3,1), opacity 300ms ease; }
/* 01 Identity: back card slides out, mark stamps */
.cap:hover .i-back { transform: translate(2px, -2px); }
.cap:hover .i-mark { animation: icoStamp 520ms cubic-bezier(.34,1.6,.64,1) both; }
@keyframes icoStamp { 0% { transform: scale(1); } 40% { transform: scale(.55); } 100% { transform: scale(1); } }
/* 02 Campaigns: horn kicks, sound waves ripple out in sequence */
.cap:hover .i-horn { transform: rotate(-6deg); transform-origin: 20% 50%; }
.cap:hover .i-w { animation: icoWave 900ms ease-out infinite; }
.cap:hover .i-w2 { animation-delay: 90ms; }
.cap:hover .i-w3 { animation-delay: 180ms; }
@keyframes icoWave { 0% { opacity: 0; transform: translateX(-3px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(4px); } }
/* 03 Art direction: crop tightens, ring finds focus */
.cap:hover .i-tl { transform: translate(4px, 4px); }
.cap:hover .i-tr { transform: translate(-4px, 4px); }
.cap:hover .i-br { transform: translate(-4px, -4px); }
.cap:hover .i-bl { transform: translate(4px, -4px); }
.cap:hover .i-ring { animation: icoFocus 600ms cubic-bezier(.16,1,.3,1) both; }
@keyframes icoFocus { 0% { transform: scale(1.5); opacity: .3; } 60% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1); } }
/* 04 Production: formats pop out one after another */
.cap:hover .i-f { animation: icoPop 460ms cubic-bezier(.34,1.6,.64,1) both; }
.cap:hover .i-f2 { animation-delay: 80ms; }
.cap:hover .i-f3 { animation-delay: 160ms; }
@keyframes icoPop { 0% { transform: scale(1); } 45% { transform: scale(.8); } 100% { transform: scale(1); } }
/* Résumé: project links under each role */
.rs-work { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 6px; }
.rs-work__k { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.rs-work ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; }
.rs-work li { margin: 0; }
.rs-work a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.rs-work a span { transition: transform var(--t); }
.rs-work a:hover span, .rs-work a:focus-visible span { transform: translateX(3px); }

/* ============================================================
   Testimonials: homepage band, About pull quote, long case quote
   ============================================================ */
.tst__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.tst__item { margin: 0; padding: 40px 48px 64px 0; display: flex; flex-direction: column; gap: 24px; }
.tst__item + .tst__item { padding: 40px 0 64px 48px; border-left: 1px solid var(--rule); }
.tst__item blockquote, .ab-quote blockquote { margin: 0; font: 600 clamp(24px, 2.2vw, 32px)/1.25 var(--font-display); letter-spacing: -.015em; max-width: 30ch; text-wrap: pretty; }
.tst__item blockquote::before, .ab-quote blockquote::before { content: "“"; color: var(--mark); margin-left: -.42em; }
.tst__item blockquote::after, .ab-quote blockquote::after { content: "”"; color: var(--mark); }
.tst__item figcaption, .ab-quote figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.tst__who { font: 600 15px/1.3 var(--font-text); color: var(--fg); }
.tst__org { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.ab-quote { margin: 40px 0 36px; padding: 4px 0 4px 28px; border-left: 2px solid var(--mark); display: flex; flex-direction: column; gap: 20px; }
.ab-quote blockquote { font-size: clamp(22px, 1.9vw, 27px); max-width: 34ch; }
.ab-quote blockquote::before { margin-left: 0; }
.cs-quote--long blockquote { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.15; max-width: 30ch; }
@media (max-width: 719px) {
  .tst__grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .tst__item, .tst__item + .tst__item { padding: 28px 0 40px; border-left: 0; }
  .tst__item + .tst__item { border-top: 1px solid var(--rule); }
  .tst__item blockquote { font-size: 24px; }
  .tst__item blockquote::before { margin-left: 0; }
  .ab-quote { padding-left: 20px; }
  .ab-quote blockquote { font-size: 22px; }
  .cs-quote--long blockquote { font-size: 26px; }
}

/* ============================================================
   Work: B-sides grid (everyday work, links out to Dribbble)
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wk-list { margin-bottom: 0; }
.bs { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.bs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 80px; align-items: end; margin-bottom: 40px; }
.bs-head h2 { margin: 0; font: 700 clamp(30px, 3vw, 44px)/1.05 var(--font-display); letter-spacing: -.025em; }
.bs-head h2 .dot { color: var(--mark); }
.bs-head p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.bs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.bs-tile { display: flex; flex-direction: column; gap: 12px; color: var(--fg); }
.bs-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph) var(--img, none) center / cover no-repeat; transition: transform 500ms cubic-bezier(.16,1,.3,1); }
.bs-ph { position: absolute; left: 14px; bottom: 12px; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ph-fg); }
.bs-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 16px; align-items: baseline; font-size: 16px; }
.bs-t { font-weight: 600; transition: color var(--t); }
.bs-y { font-size: 14px; color: var(--fg-2); }
.bs-cap svg { width: 18px; height: 18px; align-self: center; transition: transform var(--t), color var(--t); }
.bs-tile:hover .bs-img, .bs-tile:focus-visible .bs-img { transform: scale(.985); }
.bs-tile:hover :is(.bs-t, svg), .bs-tile:focus-visible :is(.bs-t, svg) { color: var(--mark); }
.bs-tile:hover .bs-cap svg, .bs-tile:focus-visible .bs-cap svg { transform: translate(2px, -2px); }
.bs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-more { aspect-ratio: 4 / 3; border: 1px solid var(--fg); justify-content: center; align-items: center; transition: background-color var(--t), color var(--t), border-color var(--t); }
.bs-more__in { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(22px, 2vw, 30px)/1 var(--font-display); letter-spacing: -.02em; }
.bs-more svg { width: 26px; height: 26px; transition: transform var(--t); }
.bs-more:hover, .bs-more:focus-visible { background: var(--mark); border-color: var(--mark); color: #fafaf8 !important; }
.bs-more:hover svg, .bs-more:focus-visible svg { transform: translate(3px, -3px); }
.bs-more { gap: 10px; text-align: center; padding: 0 24px; }
.bs-more__s { font-size: 16px; line-height: 1.4; color: inherit; opacity: .8; max-width: 28ch; }
@media (max-width: 1023px) {
  .bs-grid > li:has(.bs-more) { grid-column: 1 / -1; }
  .bs-more { aspect-ratio: auto; padding: 36px 24px; }
}
@media (max-width: 1023px) { .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bs-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 719px) {
  .bs-grid { gap: 28px 16px; }
  .bs-head { margin-bottom: 28px; }
  .bs-head p { font-size: 18px; }
  .bs-cap { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; font-size: 15px; }
  .bs-y { grid-column: 1; grid-row: 2; }
  .bs-cap svg { grid-column: 2; grid-row: 1; }
}
/* Work rows: the whole row is the link (title link's overlay spans the row, above the photo and text) */
.site .wk-row > h2 { position: static; z-index: 3; }
.wk-row h2 a::after { z-index: 2; cursor: pointer; }
/* Contact: the CTA follows the pitch (head → body → action); the right column is just the details */
.contact__cta { margin-top: 32px; }
@media (max-width: 719px) {
  .contact__cta { margin-top: 28px; }
  .contact__cta > dc-import { display: block; width: 100%; }
  .contact__cta .ab { width: 100%; justify-content: center; }
  .contact__cta .ab__fill { justify-content: center; }
}

/* ============================================================
   Résumé easter egg: "adam was here" drippy tag on the title.
   Strokes write on in order, then the paint runs. Plays once; decorative.
   ============================================================ */
.rs-title { position: relative; }
.rs-hero .rs-sum { margin-top: 52px; }
.rs-tag { position: absolute; right: .2em; bottom: -.56em; width: 3.4em; height: auto; color: var(--mark); overflow: visible; pointer-events: none; transform: rotate(-4deg); }
.rs-tag__s { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rsTagDraw 120ms cubic-bezier(.3,.1,.3,1) forwards; animation-delay: calc(250ms + var(--d) * 60ms); }
.rs-tag__drips > * { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: rsTagDrip 500ms cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(1100ms + var(--d) * 25ms); }
@keyframes rsTagDraw { to { stroke-dashoffset: 0; } }
@keyframes rsTagDrip { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .rs-tag__s { stroke-dashoffset: 0; animation: none; } .rs-tag__drips > * { transform: none; animation: none; } }
@media (max-width: 719px) { .rs-tag { width: 3.6em; right: auto; left: 2em; bottom: -.62em; } .rs-hero .rs-sum { margin-top: 44px; } }

/* ============================================================
   Footer: Playing in the studio (replaces the wordmark)
   ============================================================ */
.np { justify-content: center; gap: 14px; }
.np__k { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.np__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.np__eq i { width: 3px; height: 4px; background: var(--contact-dot); animation: npEq 900ms ease-in-out infinite alternate; }
.np__eq i:nth-child(2) { animation-delay: -300ms; }
.np__eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes npEq { from { height: 3px; } to { height: 12px; } }
.np__track { display: flex; align-items: center; gap: 14px; color: var(--fg); min-height: 44px; }
.np__disc { flex: none; width: 38px; height: 41px; overflow: visible; fill: var(--contact-dot); transform-origin: 50.3% 52.2%; animation: npSpin 12s linear infinite; }
/* Each arm of the asterisk pumps like an equalizer bar, scaling out from the center */
.np__arm { transform-box: view-box; transform-origin: 39px 43.5px; animation: npArm 700ms ease-in-out infinite alternate; }
.np__arm--0 { animation-duration: 620ms; animation-delay: -120ms; }
.np__arm--1 { animation-duration: 780ms; animation-delay: -480ms; }
.np__arm--2 { animation-duration: 540ms; animation-delay: -260ms; }
.np__arm--3 { animation-duration: 860ms; animation-delay: -640ms; }
.np__arm--4 { animation-duration: 680ms; animation-delay: -90ms; }
.np__arm--5 { animation-duration: 740ms; animation-delay: -390ms; }
@keyframes npArm { from { transform: scale(.74); } to { transform: scale(1.06); } }
@keyframes npSpin { to { transform: rotate(360deg); } }
.np__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np__t { font: 600 17px/1.2 var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t); }
.np__a { font-size: 14px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np__track:hover .np__t, .np__track:focus-visible .np__t { color: var(--contact-dot); }
.np__more { font: 400 12px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.np__more:hover, .np__more:focus-visible { color: var(--contact-dot); }
@media (prefers-reduced-motion: reduce) { .np__disc, .np__arm { animation: none; } }
@media (max-width: 719px) { .np__more { min-height: 44px; font-size: 13px; } }

/* ============================================================
   Real project photography in placeholder slots
   ============================================================ */
img.media--img { display: block; width: 100%; height: auto; padding: 0; object-fit: cover; background: var(--ph); }
.cs-sys img.media--img { aspect-ratio: 1 / 1; }
.cs-idea__ph--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-idea__ph--img::before { z-index: 1; }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media:has(.media__img) .k, .media:has(.media__img) .d { display: none; }
.wk-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-bg::after { z-index: 1; }

/* ============================================================
   Case study images: zoom on hover, open in a full-screen viewer
   ============================================================ */
.cs-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; overflow: hidden; position: relative; }
.cs-zoom--bleed { margin-top: 56px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-zoom .cs-bleed { margin: 0; border: 0; }
.cs-zoom img, button.cs-idea__ph img { transition: transform 700ms cubic-bezier(.16,1,.3,1); transform-origin: center; }
.cs-zoom:hover img, .cs-zoom:focus-visible img { transform: scale(1.035); }
button.cs-idea__ph { border: 0; cursor: zoom-in; overflow: hidden; font: inherit; }
.cs-zoom:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
@media (max-width: 719px) { .cs-zoom--bleed { margin-top: 40px; } }

.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(13,13,13,.94); color: #fafaf8; outline: none; animation: lbFade 280ms ease-out both; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--margin); }
.lb__count { font: 400 12px/1 var(--font-text); letter-spacing: .12em; color: #a3a3a0; }
.lb__fig { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 calc(var(--margin) + 64px) 32px; pointer-events: none; }
.lb__img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; display: block; transform-origin: var(--ox) var(--oy); animation: lbZoom 520ms cubic-bezier(.16,1,.3,1) both; pointer-events: auto; }
.lb__cap { max-width: 70ch; font-size: 15px; line-height: 1.45; color: #a3a3a0; text-align: center; pointer-events: auto; }
.lb__cap b { color: #fafaf8; font-weight: 600; }
.lb__btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid #3a3a3a; background: rgba(23,23,23,.6); color: #fafaf8; cursor: pointer; transition: border-color var(--t), color var(--t), background-color var(--t); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn:hover, .lb__btn:focus-visible { border-color: #e8457f; color: #e8457f; }
.lb__btn:focus-visible { outline: 2px solid #e8457f; outline-offset: 2px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: var(--margin); }
.lb__next { right: var(--margin); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (max-width: 719px) {
  .lb__fig { padding: 0 16px 96px; }
  .lb__img { max-height: calc(100vh - 230px); }
  .lb__nav { top: auto; bottom: 24px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb__img { animation: none; } .cs-zoom img { transition: none; } }
/* Viewer: every image is in the markup (static paths); only the active one shows */
.lb__stage { min-height: 0; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.lb__img { display: none; }
.lb__img.is-on { display: block; }

/* ============================================================
   Case study hero: the letterpress logo as a background,
   pushed right and faded into the page so the type stays clean
   ============================================================ */
.cs-hero { overflow: hidden; }
.cs-hero__top { position: relative; }
.cs-hero__top > :not(.cs-hero__bg) { position: relative; z-index: 1; }
.cs-hero__bg { position: absolute; z-index: 0; top: calc(-1 * var(--page-top)); bottom: -24px; right: calc(-1 * var(--margin)); width: 60%; pointer-events: none; background: #f1f1ef; }
.cs-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.cs-hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 12%, transparent 30%),
  linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.site[data-theme="dark"] .cs-hero__bg { background: #1c1c1c; }
.site[data-theme="dark"] .cs-hero__bg img { filter: invert(1) contrast(.92) brightness(.9); }
@media (max-width: 1023px) {
  .cs-hero__top { display: flex; flex-direction: column; }
  .cs-hero__bg { position: relative; order: 3; top: auto; bottom: auto; right: auto; width: calc(100% + 2 * var(--margin)); margin: 32px calc(-1 * var(--margin)) 0; aspect-ratio: 16 / 9; }
  .cs-hero__bg::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
}
@media (max-width: 719px) { .cs-hero__bg { aspect-ratio: 3 / 2; } }
/* Hero logo: shifted right so the fade only touches blank paper; it bleeds off the page edge */
@media (min-width: 1024px) {
  .cs-hero__bg { overflow: hidden; }
  .cs-hero__bg { right: calc(-1 * var(--margin) - 50px); }
  .cs-hero .cs-sum { max-width: 50ch; }
}
.cs-hero__bg img { position: relative; z-index: 0; }
.cs-hero__bg::after { z-index: 1; }

/* ============================================================
   Case study hero v2: full-bleed cover, the work first
   ============================================================ */
.cs-hero--cover { padding-top: 0; overflow: visible; }
.cs-cover { position: relative; height: clamp(560px, calc(100vh - 77px), 860px); overflow: hidden; background: #171717; color: #fafaf8; }
.cs-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(0deg, rgba(13,13,13,.88) 0%, rgba(13,13,13,.55) 32%, rgba(13,13,13,0) 62%),
  linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 22%); }
.cs-cover__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 28px; padding-bottom: 56px; }
.cs-cover .cs-crumb { margin: 0; color: rgba(250,250,248,.75); }
.cs-cover .cs-crumb a { color: rgba(250,250,248,.75); }
.cs-cover .cs-crumb [aria-current] { color: #fafaf8 !important; }
.cs-cover .cs-title { color: #fafaf8; font-size: clamp(64px, 11vw, 176px); max-width: none; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.cs-cover .cs-title .dot { color: #e8457f; }
.cs-cover__meta { margin: 20px 0 0; font: 400 13px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: rgba(250,250,248,.82); }
.cs-intro { padding-top: var(--intro-gap); }
.cs-intro .cs-sum { margin-top: 0; max-width: 58ch; }
@media (max-width: 719px) {
  .cs-cover { height: auto; aspect-ratio: 4 / 5; }
  .cs-cover__in { padding-top: 20px; padding-bottom: 32px; }
  .cs-cover .cs-title { font-size: 14.5vw; }
}
.cs-cover .cs-title { overflow-wrap: normal; white-space: nowrap; }

/* ============================================================
   Case study hero, alternate: the project seen through a giant asterisk
   ============================================================ */
.cs-hero--asterisk { padding-top: 0; overflow: hidden; }
.csx { position: relative; min-height: clamp(560px, calc(100vh - 77px), 820px); display: flex; }
.csx__mask { position: absolute; z-index: 0; width: min(60vw, 960px); aspect-ratio: 77.59 / 83.41; right: -13vw; top: 50%; transform: translateY(-50%); overflow: hidden;
  -webkit-mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat 50.3% 52.2% / 100% 100%;
          mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat 50.3% 52.2% / 100% 100%;
  animation: csxGrow 1300ms cubic-bezier(.16,1,.3,1) 150ms both; }
.csx__mask img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; display: block; }
.csx__in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 28px; padding-bottom: 56px; }
.csx .cs-crumb { margin: 0; }
.csx .cs-title { font-size: clamp(60px, 8.6vw, 136px); max-width: none; white-space: nowrap; overflow-wrap: normal; }
.csx__meta { color: var(--fg-2); }
@keyframes csxGrow { from { -webkit-mask-size: 0% 0%; mask-size: 0% 0%; } to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .csx__mask { animation: none; } }
@media (max-width: 1023px) { .csx__mask { width: 80vw; right: -30vw; } }
@media (max-width: 719px) {
  .csx { flex-direction: column; min-height: 0; }
  .csx__in { padding-bottom: 0; gap: 120px; }
  .csx__mask { position: relative; right: auto; top: auto; transform: none; width: 116vw; margin: 24px -8vw 0; order: 2; }
  .csx .cs-title { font-size: 14.5vw; }
}
/* Asterisk hero: headline and summary side by side with the asterisk, vertically centred */
.csx__in { justify-content: center; padding-top: 72px; }
.csx .cs-crumb { position: absolute; top: 28px; left: calc(var(--margin) + var(--rail)); }
.csx__text { max-width: min(46%, 620px); }
.csx .cs-title { font-size: clamp(56px, 7.2vw, 112px); }
.csx__meta { margin-top: 16px; }
.csx__sum { margin: 28px 0 0; font: 500 clamp(18px, 1.45vw, 21px)/1.5 var(--font-text); max-width: 46ch; }
.cs-hero--asterisk .cs-intro { padding-top: var(--sec-y); }
@media (max-width: 1023px) { .csx__text { max-width: 60%; } }
@media (max-width: 719px) {
  .csx__in { padding-top: 64px; }
  .csx__text { max-width: none; }
  .csx .cs-crumb { left: var(--margin); }
}
/* Cover hero: guarantee the photo fills edge to edge, whatever the host does to <img> sizing */
.cs-hero.cs-hero--cover { padding-top: 0 !important; padding-bottom: 0; margin-top: 0; }
.cs-cover { margin: 0; background: #171717 url("images/hunkydory-01-posters-wall.webp") 50% 45% / cover no-repeat; }
.cs-cover > .cs-cover__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; object-fit: cover; }
/* Inset banner hero: contained wide image, caption rail, headline + summary split below */
.cs-hero--inset { padding-top: 0; }
.csi { padding-top: 28px; }
.csi .cs-crumb { margin: 0 0 20px; }
.csi__fig { margin: 0; }
.csi__img { aspect-ratio: 3.2 / 1; max-height: 50vh; width: 100%; overflow: hidden; background: #171717; }
.csi__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; transform: scale(1.04); animation: csiIn 1400ms cubic-bezier(.16,1,.3,1) 100ms both; }
@keyframes csiIn { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1.04); opacity: 1; } }
.csi__cap { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; color: var(--fg-2); }
.csi__text { display: grid; grid-template-columns: 1fr minmax(0, 44ch); align-items: end; gap: 48px; margin-top: clamp(56px, 5vw, 88px); }
.csi .cs-title { font-size: clamp(56px, 8vw, 124px); max-width: none; white-space: nowrap; }
.csi__sum { margin: 0; font: 500 clamp(17px, 1.3vw, 19px)/1.5 var(--font-text); max-width: 44ch; padding-bottom: .55em; }
.cs-hero--inset .cs-intro .cs-liner { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .csi__img img { animation: none; } }
@media (max-width: 1023px) { .csi__text { grid-template-columns: 1fr; gap: 24px; } .csi__sum { max-width: 58ch; padding: 0; } }
@media (max-width: 719px) {
  .csi__img { aspect-ratio: 4 / 3; max-height: none; }
  .csi__cap { flex-direction: column; gap: 4px; }
  .csi__text { margin-top: 56px; }
  .csi .cs-title { font-size: 14.5vw; }
}
/* Asterisk hero v3: smaller asterisk, text higher, compact liner notes inside the hero */
.csx__mask { width: min(48vw, 760px); right: -6vw; }
.csx__in { justify-content: flex-start; padding-top: clamp(96px, 9vw, 132px); padding-bottom: 64px; }
.csx__text { max-width: min(50%, 640px); }
.csx__sum { margin-top: 24px; }
.csx__liner { margin-top: 40px; max-width: 520px; }
.csx__liner .cs-liner__k { margin-bottom: 10px; }
.csx__meta-list { margin: 0; border-top: 1px solid var(--fg); }
.csx__meta-list > div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.csx__meta-list dt { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.csx__meta-list dd { margin: 0; font: 600 16px/1.35 var(--font-display); }
.csx__meta-list .sub { display: block; margin-top: 2px; font: 400 14px/1.4 var(--font-text); color: var(--fg-2); }
.csx__tracks { font-weight: 500 !important; }
.cs-hero--asterisk .cs-zoom--bleed { margin-top: 0; }
@media (max-width: 1023px) { .csx__mask { width: 70vw; right: -26vw; } .csx__text { max-width: 58%; } }
@media (max-width: 719px) {
  .csx__in { padding-top: 64px; padding-bottom: 0; }
  .csx__text { max-width: none; }
  .csx__liner { max-width: none; }
  .csx__mask { width: 100vw; margin: 40px 0 0; }
}
@media (max-width: 719px) { .csx__meta-list > div { grid-template-columns: 112px 1fr; } }
/* Cover hero: shorter */
.cs-cover { height: clamp(440px, 64vh, 600px); }
.cs-cover .cs-title { font-size: clamp(56px, 9vw, 144px); }
.cs-cover__in { padding-bottom: 44px; }
@media (max-width: 719px) { .cs-cover { height: auto; aspect-ratio: 1 / 1; } }
/* Cover hero: summary + compact liner notes side by side */
.cs-hero--cover .cs-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.cs-hero--cover .cs-intro .cs-sum { max-width: 40ch; }
.cs-hero--cover .cs-liner { margin: 6px 0 0; }
@media (max-width: 1023px) { .cs-hero--cover .cs-intro { grid-template-columns: 1fr; gap: 48px; } .cs-hero--cover .cs-intro .cs-sum { max-width: 58ch; } }
/* Asterisk hero: asterisk back up so it fills the right half top to bottom */
.csx__mask { width: min(57vw, 900px); right: -9vw; }
.csx__text { max-width: min(46%, 620px); }
@media (max-width: 1023px) { .csx__mask { width: 74vw; right: -28vw; } }
@media (max-width: 719px) { .csx__mask { width: 112vw; margin: 40px -6vw 0; right: auto; } }
.cs-hero--cover .cs-intro .cs-sum { max-width: none; } .cs-hero--cover .cs-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
/* Split asterisk reveal: text left, contained asterisk right that opens to the full photo on hover */
.csx--split { min-height: clamp(640px, calc(100vh - 77px), 860px); }
.css__panel { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; right: 0; overflow: hidden; background: var(--bg); cursor: crosshair; outline: none; }
.css__mask { position: absolute; inset: 0;
  -webkit-mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat 50% 50% / auto 62%;
          mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat 50% 50% / auto 62%;
  transition: -webkit-mask-size 900ms cubic-bezier(.65,0,.35,1), mask-size 900ms cubic-bezier(.65,0,.35,1); }
.css__mask img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; transform: scale(1.12); transition: transform 1200ms cubic-bezier(.16,1,.3,1); }
.css__panel:hover .css__mask, .css__panel:focus-visible .css__mask { -webkit-mask-size: auto 900%; mask-size: auto 900%; }
.css__panel:hover .css__mask img, .css__panel:focus-visible .css__mask img { transform: scale(1); }
.css__panel:focus-visible { box-shadow: inset 0 0 0 3px var(--mark); }
.css__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--fg-2); transition: opacity 300ms; }
.css__panel:hover .css__hint, .css__panel:focus-visible .css__hint { opacity: 0; }
.csx--split .csx__text { max-width: min(calc(100% - 48px), 620px); }
.csx--split .csx__in { max-width: 50%; margin: 0; padding-right: 48px; }
@media (hover: none) { .css__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .css__mask, .css__mask img { transition: none; } }
@media (max-width: 1023px) { .csx--split .csx__in { max-width: 55%; } .css__panel { left: 55%; } .css__mask { -webkit-mask-size: auto 48%; mask-size: auto 48%; } }
@media (max-width: 719px) {
  .csx--split { min-height: 0; }
  .csx--split .csx__in { max-width: none; padding-right: var(--margin); }
  .css__panel { position: relative; left: auto; order: 2; aspect-ratio: 1 / 1; margin-top: 40px; }
  .css__mask { -webkit-mask-size: auto 78%; mask-size: auto 78%; }
}
@media (max-width: 719px) { .csx--split .csx__text { max-width: none; } }
/* Split hero: liner notes back below the hero */
.csx--split .csx__in { justify-content: center; padding-top: 72px; }
.css__intro { padding-top: var(--sec-y); }
.css__intro .cs-liner { margin-top: 0; }
.csx--split { min-height: clamp(560px, calc(100vh - 77px), 720px); }
.css__intro { padding-top: clamp(48px, 5vw, 72px); }
@media (max-width: 719px) { .csx--split { min-height: 0; } }
/* Every text link turns pink on hover/focus — wins over component-level hover colours (buttons excluded) */
.site a:not(.ab):not(.bs-more):hover, .site a:not(.ab):not(.bs-more):focus-visible,
.site a:not(.ab):not(.bs-more):hover *:not(img):not(svg):not(path), .site a:not(.ab):not(.bs-more):focus-visible *:not(img):not(svg):not(path) { color: var(--mark) !important; }
/* Split hero: tighter — less air above/below, asterisk fills more of its panel */
.csx--split { min-height: clamp(520px, calc(100vh - 77px), 600px); }
.csx--split .csx__in { padding-top: 64px; padding-bottom: 48px; }
.css__mask { -webkit-mask-size: auto 84%; mask-size: auto 84%; }
.css__hint { display: none; }
.css__intro { padding-top: 48px; }
@media (max-width: 1023px) { .css__mask { -webkit-mask-size: auto 64%; mask-size: auto 64%; } }
@media (max-width: 719px) { .csx--split { min-height: 0; } .css__mask { -webkit-mask-size: auto 84%; mask-size: auto 84%; } }
.cs-hero--asterisk .cs-intro.css__intro { padding-top: 40px; } .csx--split { min-height: clamp(520px, calc(100vh - 77px), 580px); }
/* Split hero v3: no photo zoom, tighter, liner-notes rule = bottom edge of hero */
.css__mask img, .css__panel:hover .css__mask img, .css__panel:focus-visible .css__mask img { transform: none; transition: none; }
.csx--split { min-height: clamp(480px, calc(100vh - 77px), 520px); }
.csx--split .csx__in { padding-top: 40px; padding-bottom: 32px; }
.css__mask { -webkit-mask-size: auto 90%; mask-size: auto 90%; }
.cs-hero--asterisk .cs-intro.css__intro { padding-top: 0; }
@media (max-width: 1023px) { .css__mask { -webkit-mask-size: auto 70%; mask-size: auto 70%; } }
@media (max-width: 719px) { .csx--split { min-height: 0; } .csx--split .csx__in { padding-top: 40px; } .css__panel { margin-top: 32px; } .css__mask { -webkit-mask-size: auto 86%; mask-size: auto 86%; } }
.cs-hero--asterisk .cs-intro.css__intro { padding-bottom: clamp(48px, 5vw, 80px); }
/* Split reveal: open only as far as needed (no dead time on hover-off); close starts instantly */
.css__mask { transition: -webkit-mask-size 650ms cubic-bezier(.22,1,.36,1), mask-size 650ms cubic-bezier(.22,1,.36,1); }
.css__panel:hover .css__mask, .css__panel:focus-visible .css__mask { -webkit-mask-size: auto 420%; mask-size: auto 420%; transition-duration: 800ms; transition-timing-function: cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .css__mask, .css__panel:hover .css__mask { transition: none; } }
/* Split reveal on tablet + touch: asterisk opens with scroll position (JS sets --p 0→1) and closes on scroll up */
@media (max-width: 1023px), (hover: none) {
  .css__panel { --base: 70%; cursor: default; }
  .css__mask, .css__panel:hover .css__mask, .css__panel:focus-visible .css__mask {
    -webkit-mask-size: auto calc(var(--base) + (420% - var(--base)) * var(--p, 0));
            mask-size: auto calc(var(--base) + (420% - var(--base)) * var(--p, 0));
    transition: none; }
}
@media (max-width: 719px) { .css__panel { --base: 86%; } }
@media (min-width: 1024px) and (hover: none) { .css__panel { --base: 90%; } }
/* Split reveal everywhere: scroll drives the opening; on desktop, hover jumps it fully open */
.css__panel { --base: 90%; }
.css__mask { -webkit-mask-size: auto calc(var(--base) + (420% - var(--base)) * var(--p, 0)); mask-size: auto calc(var(--base) + (420% - var(--base)) * var(--p, 0));
  transition: -webkit-mask-size 320ms cubic-bezier(.22,1,.36,1), mask-size 320ms cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (min-width: 1024px) {
  .css__panel:hover .css__mask, .css__panel:focus-visible .css__mask { -webkit-mask-size: auto 420%; mask-size: auto 420%; transition-duration: 800ms; transition-timing-function: cubic-bezier(.65,0,.35,1); }
}
@media (max-width: 1023px) {
  .css__panel { --base: 70%; }
  .csx--split .csx__in { padding-top: 28px; }
  .csx--split .cs-crumb { position: static; margin: 0 0 clamp(40px, 7vw, 64px); }
}
@media (max-width: 719px) { .css__panel { --base: 86%; } }
@media (prefers-reduced-motion: reduce) { .css__mask { transition: none; } }
@media (max-width: 1023px) { .csx--split .csx__in { gap: 0; justify-content: flex-start; } .csx--split .cs-crumb { margin-bottom: 40px; } }
/* Client quote: same three-tone treatment as the homepage "In short" line */
.cs-quote .q-soft { color: var(--fg-2); }
.cs-quote .q-hi { color: var(--mark); }
/* Asterisk cutout: same reveal as the split hero — scroll opens it (JS sets --p), hover on desktop opens fully. Position unchanged. */
.csx__mask { --base: 100%; outline: none; animation-fill-mode: backwards;
  -webkit-mask-size: calc(var(--base) + (420% - var(--base)) * var(--p, 0)) calc(var(--base) + (420% - var(--base)) * var(--p, 0));
          mask-size: calc(var(--base) + (420% - var(--base)) * var(--p, 0)) calc(var(--base) + (420% - var(--base)) * var(--p, 0));
  transition: -webkit-mask-size 320ms cubic-bezier(.22,1,.36,1), mask-size 320ms cubic-bezier(.22,1,.36,1); }
.csx__in { pointer-events: none; }
.csx__in > * { pointer-events: auto; }
@media (hover: hover) and (min-width: 1024px) {
  .csx__mask { cursor: crosshair; }
  .csx__mask:hover, .csx__mask:focus-visible { -webkit-mask-size: 420% 420%; mask-size: 420% 420%; transition-duration: 800ms; transition-timing-function: cubic-bezier(.65,0,.35,1); }
}
@media (prefers-reduced-motion: reduce) { .csx__mask { transition: none; } }
/* Asterisk cutout, small screens: text + liner notes use the full width (later desktop max-widths were leaking through) */
@media (max-width: 719px) {
  .csx .csx__text, .csx .csx__liner { max-width: none; }
  .csx:not(.csx--split) .csx__mask { width: 112vw; margin: 40px -6vw 0; right: auto; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .csx:not(.csx--split) .csx__text { max-width: 54%; }
}
@media (max-width: 719px) { .csx:not(.csx--split) .csx__mask { margin-bottom: 48px; } }
@media (min-width: 720px) and (max-width: 1023px) { .csx:not(.csx--split) .csx__text { max-width: 50%; } }
/* CaseHero placeholder (new case studies before the photo exists) */
.csx__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 22%; text-align: center; background: var(--ph, #e6e6e2); color: var(--fg-2); }
/* Flagship store gallery */
.cs-gal--store .g7 { grid-column: 1 / 5; } .cs-gal--store .g8 { grid-column: 5 / 9; } .cs-gal--store .g9 { grid-column: 9 / 13; }
.cs-gal--store .g7 .media, .cs-gal--store .g8 .media, .cs-gal--store .g9 .media { aspect-ratio: 4 / 5; }
.cs-gal--store .g3 .media { aspect-ratio: 16 / 9; }
.cs-gal--store .g1 { align-self: start; } .cs-gal--store .g1 .media { aspect-ratio: 4 / 3; }
.cs-gal--store .g2 { align-self: start; } .cs-gal--store .g2 .media { aspect-ratio: 4 / 5; }
@media (max-width: 1023px) { .cs-gal--store .g7 { grid-column: 1 / 7; } .cs-gal--store .g8 { grid-column: 7 / 13; } .cs-gal--store .g9 { grid-column: 1 / 13; } .cs-gal--store .g9 .media { aspect-ratio: 16 / 9; } }
/* Flagship gallery: last block is a 2×2 of landscape shots */
.cs-gal--store .g7 { grid-column: 1 / 7; } .cs-gal--store .g8 { grid-column: 7 / 13; } .cs-gal--store .g9 { grid-column: 1 / 7; } .cs-gal--store .g10 { grid-column: 7 / 13; }
.cs-gal--store .g7 .media, .cs-gal--store .g8 .media, .cs-gal--store .g9 .media, .cs-gal--store .g10 .media { aspect-ratio: 4 / 3; }
@media (max-width: 1023px) { .cs-gal--store .g9 { grid-column: 1 / 7; } .cs-gal--store .g9 .media { aspect-ratio: 4 / 3; } }
/* Insight band image: .cs-zoom's position:relative was collapsing it to 0 height — restore the absolute right-hand panel */
.cs-idea .cs-idea__ph.cs-zoom { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; cursor: zoom-in; }
@media (max-width: 719px) { .cs-idea .cs-idea__ph.cs-zoom { position: relative; width: 100%; aspect-ratio: 4 / 3; } }
/* Greatest hits: cans / stickers / website row sits under flyer + tote */
#cs-apps ~ .cs-gal .g4, #cs-apps ~ .cs-gal .g5, #cs-apps ~ .cs-gal .g6 { align-self: start; }
/* About: "Side B" five-photo mosaic */
.ab-snaps { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.ab-snaps__head h2 { margin: 0 0 40px; font: 700 clamp(36px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.ab-snaps__head h2 .dot { color: var(--mark); }
.ab-snaps__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.ab-snap { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ab-snap figcaption { color: var(--fg-2); }
.ab-snap__ph { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--ph, #e6e6e2); color: var(--fg-2); }
.ab-snap--a { grid-column: 1 / 6; grid-row: 1 / 3; } .ab-snap--a .ab-snap__ph { aspect-ratio: auto; min-height: 560px; }
.ab-snap--b { grid-column: 6 / 10; } .ab-snap--c { grid-column: 10 / 13; } .ab-snap--d { grid-column: 6 / 9; } .ab-snap--e { grid-column: 9 / 13; }
.ab-snap--b .ab-snap__ph, .ab-snap--c .ab-snap__ph, .ab-snap--d .ab-snap__ph, .ab-snap--e .ab-snap__ph { min-height: 240px; }
@media (max-width: 719px) {
  .ab-snaps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ab-snap--a { grid-column: 1 / 3; grid-row: auto; } .ab-snap--a .ab-snap__ph { min-height: 0; aspect-ratio: 4 / 5; }
  .ab-snap--b, .ab-snap--c, .ab-snap--d, .ab-snap--e { grid-column: auto; }
  .ab-snap--b .ab-snap__ph, .ab-snap--c .ab-snap__ph, .ab-snap--d .ab-snap__ph, .ab-snap--e .ab-snap__ph { min-height: 0; aspect-ratio: 1 / 1; padding: 12px; }
}
/* About photos: real images in the mosaic */
.ab-snap__img { position: relative; padding: 0; overflow: hidden; }
.ab-snap__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 720px) {
  .ab-snap--b .ab-snap__ph, .ab-snap--c .ab-snap__ph, .ab-snap--d .ab-snap__ph, .ab-snap--e .ab-snap__ph { min-height: 0; aspect-ratio: 4 / 5; }
  .ab-snap--b { grid-column: 6 / 9; } .ab-snap--c { grid-column: 9 / 13; } .ab-snap--d { grid-column: 6 / 9; } .ab-snap--e { grid-column: 9 / 13; }
  .ab-snap--a .ab-snap__ph { min-height: 0; height: 100%; }
}
/* About mosaic: equal-width small photos (big photo 6 cols, smalls 3 cols each) */
@media (min-width: 720px) {
  .ab-snap--a { grid-column: 1 / 7; }
  .ab-snap--b { grid-column: 7 / 10; } .ab-snap--c { grid-column: 10 / 13; }
  .ab-snap--d { grid-column: 7 / 10; } .ab-snap--e { grid-column: 10 / 13; }
}
/* Hero asterisk: size from the hero's height so the whole shape fits top to bottom (no crop) */
@media (min-width: 720px) {
  .csx:not(.csx--split) .csx__mask { height: calc(100% - 56px); width: auto; max-width: 60vw; top: 50%; transform: translateY(-50%); }
}
/* Case study: no extra gap between the hero and "The problem" */
.cs-hero--asterisk + .cs-sec { padding-top: 24px; }
.cs-hero--asterisk .csx__in { padding-bottom: 40px; }
@media (max-width: 719px) { .cs-hero--asterisk + .cs-sec { padding-top: 40px; } }
/* "The detail": no asterisk, three-tone type to match the client quote */
.cs-note--tone { display: block; padding: 56px 0; }
.cs-note--tone p { font: 700 clamp(26px, 2.8vw, 42px)/1.15 var(--font-display); letter-spacing: -.03em; max-width: 30ch; }
.cs-note--tone .q-soft { color: var(--fg-2); }
.cs-note--tone .q-hi { color: var(--mark); }
@media (max-width: 719px) { .cs-note--tone { padding: 40px 0; } .cs-note--tone p { font-size: 26px; } }
/* Site-wide: no orphans/widows. Headlines balance their lines; body copy avoids a lone last word. */
h1, h2, h3, h4, .cs-title, .cs-h, .cs-idea__line, .contact__head, .pitch__line, .cs-next__t, .vp-h, .ab-snaps__head h2,
.cs-quote blockquote, .cs-note p, .tst blockquote, .ab-quote blockquote { text-wrap: balance; }
p, li, dd, figcaption, blockquote p { text-wrap: pretty; }
/* Case study: career arc timeline + stat row + inline result */
.cs-arc { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.cs-arc li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 0 0; }
.cs-arc li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-arc__n { color: var(--mark) !important; }
.cs-arc b { font: 600 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.cs-arc li > span:last-child { color: var(--fg-2); font-size: 16px; line-height: 1.45; }
.cs-stats { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fg); border-bottom: 1px solid var(--rule); }
.cs-stats > div { padding: 20px 24px 24px 0; }
.cs-stats > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.cs-stats dt { font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.cs-stats dd { margin: 10px 0 0; font: 700 clamp(36px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.cs-result { margin: 32px 0 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 19px; line-height: 1.5; text-wrap: pretty; }
.cs-result b { color: var(--mark); }
@media (max-width: 1023px) { .cs-arc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-arc li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 719px) {
  .cs-arc { grid-template-columns: 1fr; } .cs-arc li, .cs-arc li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .cs-stats { grid-template-columns: 1fr; } .cs-stats > div, .cs-stats > div + div { padding: 16px 0; border-left: 0; } .cs-stats > div + div { border-top: 1px solid var(--rule); }
}
/* Client wordmark row (set in type, not logos) */
.cs-logos { list-style: none; margin: 40px 0 8px; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 36px; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--rule); }
.cs-logos li { font: 700 clamp(18px, 1.6vw, 24px)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--fg-2); }
/* Client row: one line on desktop, even rows below (no lone name on the last line) */
.cs-logos { gap: 14px 24px; }
@media (min-width: 1200px) { .cs-logos { flex-wrap: nowrap; justify-content: space-between; } .cs-logos li { font-size: clamp(17px, 1.45vw, 22px); white-space: nowrap; } }
@media (min-width: 720px) and (max-width: 1199px) { .cs-logos { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; } }
@media (max-width: 719px) { .cs-logos { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; } .cs-logos li { font-size: 17px; } }
@media (max-width: 719px) { .cs-logos { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 20px; } .cs-logos li { white-space: nowrap; font-size: 16px; } }
@media (max-width: 719px) { .cs-logos { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 16px; } }

/* Nav Contact link: land on the contact section with the sticky nav clear of it */
#contact { scroll-margin-top: 72px; }

/* Résumé tag on phones: tuck "adam was here" into the space beside "record." so it clears the Download button */
@media (max-width: 719px) { .rs-tag { width: 2.8em; left: auto; right: 0; bottom: .1em; } }

/* Contact form: reveals under the "Start a conversation" button */
.cf-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0; transition: grid-template-rows 520ms cubic-bezier(.16,1,.3,1), opacity 380ms ease 80ms, margin-top 520ms cubic-bezier(.16,1,.3,1); max-width: 560px; }
.cf-wrap[data-open="true"] { grid-template-rows: 1fr; opacity: 1; margin-top: 40px; }
.cf-wrap > .cf-in { overflow: hidden; min-height: 0; }
.cf { display: flex; flex-direction: column; gap: 24px; padding-bottom: 4px; }
.cf label { display: flex; flex-direction: column; gap: 8px; font: 500 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--contact-fg-2); }
.cf input, .cf textarea { font: 500 19px/1.4 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--contact-fg); background: transparent; border: 0; border-bottom: 1px solid var(--contact-rule); border-radius: 0; padding: 10px 0 12px; width: 100%; box-sizing: border-box; outline: none; transition: border-color var(--t); }
.cf textarea { min-height: 112px; resize: vertical; }
.cf input::placeholder, .cf textarea::placeholder { color: #7d7d7a; }
.cf input:focus, .cf textarea:focus { border-bottom-color: var(--contact-dot); }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__send { align-self: flex-start; font: 600 16px/1 var(--font-text); color: #171717; background: var(--contact-dot); border: 0; padding: 18px 28px; cursor: pointer; transition: background var(--t), color var(--t); }
.cf__send:hover, .cf__send:focus-visible { background: var(--contact-fg); }
.cf__send:disabled { opacity: .6; cursor: default; }
.cf__ok { font: 700 clamp(28px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -.02em; margin: 0; padding: 8px 0 4px; }
.cf__ok .dot { color: var(--contact-dot); }
.cf[hidden], .cf__done[hidden] { display: none; }
.cf__done { padding-bottom: 4px; }
.cf__ok:focus { outline: none; }
@media (max-width: 719px) { .cf-wrap { max-width: none; } .cf__send { align-self: stretch; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .cf-wrap { transition: none; } }
/* Contact form: the only focus cue is the existing underline turning pink (no outline box) */
.site .cf input:focus, .site .cf input:focus-visible, .site .cf textarea:focus, .site .cf textarea:focus-visible { outline: none; box-shadow: none; border-bottom-color: var(--contact-dot); }
/* ============================================================
   Case study: "Built" section (cs-built). Shows the making, not just the thinking.
   Headline + sub on the left, a deliverables ledger on the right, one proof stat,
   then one "behind the file" working image, full width and zoomable.
   cs-built--lite: ledger only (no stat, no image).
   ============================================================ */
.cs-built__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.cs-built__head { grid-column: 1 / 5; }
.cs-built__head .cs-p { margin-bottom: 20px; }
.cs-ledger { grid-column: 6 / 13; width: 100%; border-collapse: collapse; border-top: 1px solid var(--fg); font-size: 16px; line-height: 1.45; }
.cs-ledger th, .cs-ledger td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.cs-ledger tr > :last-child { padding-right: 0; }
.cs-ledger thead th { padding: 16px 24px 14px 0; font: 400 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.cs-ledger tbody th { font: 600 19px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--fg); }
.cs-ledger td { color: var(--fg-2); }
.cs-ledger { table-layout: fixed; }
.cs-ledger thead th:nth-child(1) { width: 30%; } .cs-ledger thead th:nth-child(2) { width: 37%; }
.cs-stats dt { text-wrap: balance; }
.cs-built__link { appearance: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--fg); font: 600 16px/1.4 var(--font-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; transition: color var(--t); }
.cs-built__link:hover, .cs-built__link:focus-visible { color: var(--mark); }
.cs-stats--one { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
.cs-stats--one > div { padding-right: 0; }
.cs-built__file { margin: 56px 0 0; }
.cs-built__file .media { aspect-ratio: 21 / 9; }
.cs-fn__mark { color: var(--mark); font-weight: 700; }
.cs-fn { display: block; margin-top: 6px; font-size: 13px; color: var(--fg-2); }
@media (max-width: 1023px) {
  .cs-built__head, .cs-ledger { grid-column: 1 / 13; }
  .cs-built__head .cs-p { max-width: 46ch; }
}
@media (max-width: 719px) {
  .cs-built__top { gap: 32px; }
  .cs-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs-ledger, .cs-ledger tbody, .cs-ledger tr, .cs-ledger th, .cs-ledger td { display: block; width: auto; }
  .cs-ledger tr { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
  .cs-ledger th, .cs-ledger td { padding: 0; border: 0; }
  .cs-ledger tbody th { width: auto; margin-bottom: 10px; font-size: 19px; }
  .cs-ledger td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
  .cs-ledger td::before { content: attr(data-label); padding-top: 3px; font: 400 11px/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
  .cs-stats--one { margin-top: 40px; }
  .cs-built__file { margin-top: 40px; }
  .cs-built__file .media { aspect-ratio: 4 / 3; }
}
/* Reweight: the making gets the room. Galleries and system tiles grow; the idea band and long quotes get tighter. */
.cs-gal { margin-top: 56px; gap: 72px 32px; }
.cs-sys { margin-top: 56px; gap: 32px; }
@media (min-width: 1024px) and (max-width: 1279px) { .cs-sys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) {
  .cs-idea--dark { margin-top: 112px; padding: 96px 0; }
  .cs-idea--dark .cs-idea__line { font-size: clamp(36px, 4.4vw, 68px); }
}
.cs-quote.cs-quote--long { padding: 48px 0; }
.cs-quote--long blockquote { font-size: clamp(24px, 2.3vw, 34px); max-width: 34ch; }
@media (max-width: 719px) {
  .cs-gal { margin-top: 40px; gap: 40px; }
  .cs-sys { margin-top: 40px; gap: 24px; }
  .cs-idea--dark .cs-idea__line { font-size: 34px; }
  .cs-quote.cs-quote--long { padding: 40px 0; }
  .cs-quote--long blockquote { font-size: 24px; }
}
/* Hero asterisk: keep the no-crop size, but put the shape back on its original centre line (pre–Oct 11).
   right = original offset (-9vw) + half the difference between the original width and the fitted width. */
@media (min-width: 1024px) {
  .csx:not(.csx--split) .csx__mask { right: calc(-9vw + (min(57vw, 900px) - (clamp(560px, calc(100vh - 77px), 820px) - 56px) * 0.9302) / 2); }
}
/* Tablet: back to the original size and position (the fitted height was stretching the shape here) */
@media (min-width: 720px) and (max-width: 1023px) {
  .csx:not(.csx--split) .csx__mask { height: auto; width: 74vw; max-width: none; right: -28vw; }
}
/* XL screens (wider than 1440): the page content stops at 1440 and centres, so the asterisk follows it
   instead of drifting to the window edge. Same spot relative to the content as on a 1440 laptop. */
@media (min-width: 1441px) {
  .csx:not(.csx--split) .csx__mask { right: calc((100vw - 1440px) / 2 - 75px); }
}
/* Stat count-up: steady digit widths so the row does not jitter */
.cs-stats dd { font-variant-numeric: tabular-nums; }
/* System row with three tiles (e.g. the JWP toolkit) */
@media (min-width: 1024px) { .cs-sys.cs-sys--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Three-tile system row: landscape tiles so print mockups show whole */
.cs-sys--3 .media, .cs-sys--3 img.media--img { aspect-ratio: 1420 / 1108; }
/* Embedded video (YouTube) in a case study */
.cs-video { margin: 56px 0 0; }
.cs-video__frame { position: relative; aspect-ratio: 16 / 9; background: #171717; overflow: hidden; }
.cs-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 719px) { .cs-video { margin-top: 40px; } }
/* Video poster that links out to YouTube (the canvas blocks embedded players) */
.cs-video__link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #171717; color: #fafaf8; text-decoration: none; }
.cs-video__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms cubic-bezier(.16,1,.3,1); }
.cs-video__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,23,23,.7) 0%, rgba(23,23,23,0) 45%); pointer-events: none; }
/* Play button: the raspberry asterisk with a white play triangle in its center. On hover it turns 60deg and grows a little. */
.cs-video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 96px; height: 103px; margin: -52px 0 0 -48px; display: grid; place-items: center; transition: transform 600ms cubic-bezier(.16,1,.3,1); }
.cs-video__play::before { content: ""; position: absolute; inset: 0; background: var(--mark); -webkit-mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; mask: url("ds/adam-hajnos/assets/logos/asterisk.svg") no-repeat center / contain; transition: transform 700ms cubic-bezier(.16,1,.3,1); }
.cs-video__play svg { position: relative; z-index: 1; width: 36px; height: 36px; margin: 4px 0 0 5px; fill: #fafaf8; }
.cs-video__label { position: absolute; z-index: 1; left: 24px; bottom: 20px; font: 600 16px/1.2 var(--font-text); }
.cs-video__link:hover img, .cs-video__link:focus-visible img { transform: scale(1.03); }
.cs-video__link:hover .cs-video__play, .cs-video__link:focus-visible .cs-video__play { transform: scale(1.12); }
.cs-video__link:hover .cs-video__play::before, .cs-video__link:focus-visible .cs-video__play::before { transform: rotate(60deg); }
.cs-video__link:hover .cs-video__label, .cs-video__link:focus-visible .cs-video__label { color: #e8457f; }
@media (max-width: 719px) { .cs-video__play { width: 64px; height: 69px; margin: -35px 0 0 -32px; } .cs-video__play svg { width: 24px; height: 24px; margin: 3px 0 0 3px; } .cs-video__label { left: 16px; bottom: 14px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .cs-video__link img, .cs-video__play, .cs-video__play::before { transition: none; } }
/* Insights gallery: "The detail" note sits inside the gallery, right after the stairs */
.cs-gal .cs-gal__note { grid-column: 1 / 13; }
.cs-gal__note .cs-k { margin-bottom: 0; }
/* "Reveal more images": the rest of a long gallery stays tucked away until asked for */
.cs-gal--more { margin-top: 72px; }
.cs-more-wrap { display: flex; justify-content: center; margin-top: 56px; }
.cs-more { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid var(--fg); background: none; color: var(--fg); font: 600 16px/1 var(--font-text); cursor: pointer; transition: color var(--t), border-color var(--t), background-color var(--t); }
.cs-more::after { content: "↓"; transition: transform var(--t); }
.cs-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.cs-more:hover, .cs-more:focus-visible { color: var(--mark); border-color: var(--mark); }
@media (max-width: 719px) { .cs-gal--more { margin-top: 40px; } .cs-more-wrap { margin-top: 40px; } .cs-more { width: 100%; justify-content: center; } }
/* Two videos side by side (Insights kickoff + recap) */
.cs-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.cs-videos .cs-video { margin: 0; }
.cs-videos .cs-video__play { width: 72px; height: 77px; margin: -39px 0 0 -36px; }
.cs-videos .cs-video__play svg { width: 27px; height: 27px; margin: 3px 0 0 4px; }
@media (max-width: 719px) { .cs-videos { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; } }
.site .cs-video__link { color: #fafaf8; }
.site .cs-video__link:hover .cs-video__label, .site .cs-video__link:focus-visible .cs-video__label { color: #e8457f; }
/* Client row leading a section (above its kicker) */
.cs-logos.cs-logos--lead { margin: 0 0 72px; }
@media (max-width: 719px) { .cs-logos.cs-logos--lead { margin-bottom: 48px; } }
/* Two-tile system row */
@media (min-width: 720px) { .cs-sys.cs-sys--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two-stat row */
@media (min-width: 720px) { .cs-stats.cs-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Idea band whose image is pure texture (e.g. the JWP Connatix gradient): on phones it becomes the band's background
   instead of a separate 4:3 block, so the band is about half as tall */
@media (max-width: 719px) {
  .cs-idea--dark.cs-idea--bgm { display: block; padding: 64px 0; }
  .cs-idea--bgm .cs-idea.cs-idea__ph, .cs-idea--bgm .cs-idea__ph.cs-zoom { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; order: 0; }
  .cs-idea--bgm .cs-idea__ph::before { background: linear-gradient(0deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,.25) 100%); }
}

/* Nav: larger signature logo, and a hamburger icon instead of the "Menu" word (label kept for screen readers) */
.nav__in { min-height: 80px; }
.nav__brand .logo--sig { height: 62px; width: auto; }
.nav__menu { width: 44px; height: 44px; padding: 0; border: 0; justify-content: center; }
.nav__burger { position: relative; display: block; width: 24px; height: 16px; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--t), opacity var(--t), top var(--t); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 7px; }
.nav__burger span:nth-child(3) { top: 14px; }
.nav__menu[aria-expanded="true"] .nav__burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger span:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] .nav__burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.nav__menu:hover, .nav__menu:focus-visible { color: var(--mark); }
@media (max-width: 719px) { .nav__brand .logo--sig { height: auto; width: 190px; } }
@media (prefers-reduced-motion: reduce) { .nav__burger span { transition: none; } }

/* Deliverables ledger: no rule above the header row or below the last row (inner dividers stay) */
.cs-ledger { border-top: 0; }
.cs-ledger tbody tr:last-child th, .cs-ledger tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) { .cs-ledger tbody tr:first-child { padding-top: 0; } .cs-ledger tbody tr:last-child { border-bottom: 0; } }

/* Case hero details: short lists (scope, role) balance their lines, so no item is left alone on the last line */
.csx__meta-list dd, .csx__tracks, .cs-liner dd { text-wrap: balance; }

/* About: second row of off-the-clock snapshots, four even portrait tiles (two across on phones) */
.ab-snap--row { grid-column: span 3; }
.ab-snap--row .ab-snap__ph { min-height: 0; aspect-ratio: 4 / 5; }
@media (max-width: 719px) { .ab-snap--row { grid-column: auto; } }

/* Odds and ends: tiles are display only, no link, so no hover push or pink */
.bs-tile--static { cursor: default; }
.bs-tile--static:hover .bs-img { transform: none; }
.bs-tile--static:hover .bs-t { color: inherit; }
/* Odds and ends tiles open the image viewer: a plain button that looks like the tile. */
.bs-zoom { width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; text-align: left; cursor: zoom-in; }
.bs-zoom:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

/* Résumé: neutral bullets, and the brand asterisk marks each section title (one accent per section, not per line) */
.rs-job li::marker { color: var(--fg-2); }
.rs-side h2, .rs-main h2 { display: flex; align-items: center; gap: 8px; }
.rs-side h2::before, .rs-main h2::before { content: ""; flex: none; width: 12px; height: 13px; background: var(--mark); -webkit-mask: url(ds/adam-hajnos/assets/logos/asterisk.svg) center / contain no-repeat; mask: url(ds/adam-hajnos/assets/logos/asterisk.svg) center / contain no-repeat; }

/* Homepage project cards: the description runs the full width of its card */
.cell__why, .cell__body .cell__aside { max-width: none; }

/* Homepage testimonials: one at a time, as a slider. Slides share one grid cell, so the height never jumps. */
.tst__slider { border-top: 1px solid var(--rule); padding-top: 40px; }
.tst__track { display: grid; }
.tst__track .tst__item.tst__slide { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.tst__track .tst__item.tst__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.tst__slide blockquote { max-width: 46ch; font-size: clamp(22px, 2vw, 30px); }
.tst__slide figcaption { margin-top: 24px; }
.tst__ctrl { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.tst__btn { appearance: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--rule); background: transparent; color: var(--fg); cursor: pointer; transition: color var(--t), border-color var(--t); }
.tst__btn svg { width: 20px; height: 20px; }
.tst__btn:hover, .tst__btn:focus-visible { color: var(--mark); border-color: var(--mark); }
.tst__count { min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .tst__slider { padding-top: 28px; } .tst__slide blockquote { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .tst__track .tst__item.tst__slide, .tst__track .tst__item.tst__slide.is-on { transition: none; transform: none; } }
/* Centered wide figure in a case-study gallery (e.g. Pinetop lake reveal render) */
.cs-gal .g-wide { grid-column: 3 / 11; } .cs-gal .g-wide .media { aspect-ratio: 1342 / 1172; }
@media (max-width: 1023px) { .cs-gal .g-wide { grid-column: 1 / 13; } }
/* Homepage Selected work: photo eases in on hover / keyboard focus */
.cell .media { overflow: hidden; }
.cell .media__img { transition: transform .8s cubic-bezier(.16,1,.3,1); will-change: transform; }
.cell:hover .media__img, .cell:focus-within .media__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .cell .media__img { transition: none; } .cell:hover .media__img, .cell:focus-within .media__img { transform: none; } }
/* Homepage client strip (above What I do): one ink color, optically balanced, no links */
.clients__in { padding-top: 56px; padding-bottom: 64px; }
.clients__k { margin: 0 0 32px; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 44px; }
.clients__item { flex: 0 0 calc(100% / 6); min-width: 0; padding: 0 14px; box-sizing: border-box; }
.clients__item { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.clients__logo { display: block; max-width: 100%; height: auto; background-color: var(--fg); opacity: .82; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
@media (max-width: 1023px) { .clients__grid { row-gap: 40px; } .clients__item { flex-basis: 25%; } }
@media (max-width: 719px) { .clients__in { padding-top: 40px; padding-bottom: 48px; } .clients__k { margin-bottom: 24px; } .clients__grid { row-gap: 32px; } .clients__item { flex-basis: 50%; padding: 0 10px; } .clients__item { min-height: 48px; } .clients__logo { max-width: 84%; } }

/* About: "Do you use AI?" section + homepage pointer (Oct 2026) */
.ab-ai { border-top: 1px solid var(--rule); }
#ai { scroll-margin-top: 80px; }
.ab-ai .cs-ledger { margin: 32px 0 36px; }
.ab-ai .cs-ledger thead th:nth-child(1) { width: 28%; }
.ab-ai .cs-ledger thead th:nth-child(2) { width: 34%; }
.ab-ai__proof { font: 600 clamp(20px, 1.7vw, 24px)/1.3 var(--font-display) !important; letter-spacing: -.01em; text-wrap: balance; }
.approach__lead h3.approach__phil { max-width: 18ch; }
.cap__link { display: inline-block; margin-top: 6px; color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.cap__link:hover, .cap__link:focus-visible { color: var(--mark); }
.cap svg.ico .i-pick { fill: var(--mark); stroke: var(--mark); }
.cap:hover .i-pick { animation: icoStamp 520ms cubic-bezier(.34,1.6,.64,1) both; }
.cap:hover .i-opt { opacity: .35; }
