/* ============ Nick Elsby — black & white frame, the work brings the colour ============ */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: 'Plex Mono'; src: url('fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #fff;
  --fg: #0b0b0b;
  --dim: color-mix(in srgb, var(--fg) 45%, var(--bg));
  --rule: color-mix(in srgb, var(--fg) 14%, var(--bg));
  --guide: color-mix(in srgb, var(--fg) 5%, var(--bg));
  --safe: env(safe-area-inset-top, 0px);   /* iPhone status bar / Dynamic Island (page draws under it: viewport-fit=cover) */
  --pad: max(clamp(16px, 2.2vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gut: clamp(12px, 1.6vw, 28px);
  --bar: calc(56px + var(--safe));   /* the bar reaches up behind the status bar, so content scrolls under it */
  --frost: color-mix(in srgb, var(--bg) 60%, transparent);  /* nav + sticky section bars share one frosted glass */
  --frost-blur: 16px;
  --ease: cubic-bezier(.19, 1, .22, 1);      /* expo out */
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --mono: 'Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] { --bg: #0b0b0b; --fg: #f1f1ef; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: clamp(15px, 1.05vw, 18px); line-height: 1.4;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; font-weight: inherit; font-size: inherit; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: .02em; text-transform: uppercase; }
@media (min-width: 1600px) { .mono { font-size: 12px; } }
.label { color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); padding-inline: var(--pad); }
.skip { position: fixed; left: var(--pad); top: -100px; z-index: 200; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 10px; }

/* column guides behind the photo grids only (not the heroes / headings). Press G to make them louder. */
.work { position: relative; isolation: isolate; }
.guides {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); padding-inline: var(--pad);
}
.guides { -webkit-mask: linear-gradient(transparent, #000 clamp(80px, 10vw, 200px), #000 calc(100% - clamp(80px, 10vw, 200px)), transparent);
  mask: linear-gradient(transparent, #000 clamp(80px, 10vw, 200px), #000 calc(100% - clamp(80px, 10vw, 200px)), transparent); }   /* fade in and out at the section's ends */
.guides span { border-inline: 1px solid var(--guide); }
.guides.is-loud span { border-color: color-mix(in srgb, #ff2a2a 50%, transparent); background: color-mix(in srgb, #ff2a2a 4%, transparent); }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
  align-items: center; padding-inline: var(--pad);
  color: #fff; mix-blend-mode: difference;
}
.bar__mark { grid-column: 1 / span 2; font-weight: 800; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.01em; font-size: 15px; }
.bar__meta { grid-column: 3 / span 3; }
.bar__sep { opacity: .5; padding-inline: .3em; }
.bar__nav { grid-column: 6 / span 6; display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 1.6vw, 28px); white-space: nowrap; }
.bar__nav a[aria-current]::after { transform: scaleX(1); }
.bar__end { grid-column: 12 / span 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.bar__menu { display: none; }
@media (max-width: 1099px) {
  .bar__nav { display: none; }
  .bar__meta { grid-column: 4 / span 5; }
  .bar__end { grid-column: 9 / span 4; }
  .bar__menu { display: inline; }
}
.bar__nav a, .filter, .view, .lb__ctrl button, .contact__foot a { position: relative; }
.bar__nav a::after, .filter::after, .view::after, .lb__ctrl button::after, .contact__foot a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.bar__nav a:hover::after, .filter:hover::after, .view:hover::after, .lb__ctrl button:hover::after, .contact__foot a:hover::after { transform: scaleX(1); transform-origin: left; }
.theme { width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.theme__dot { width: 100%; height: 100%; background: currentColor; clip-path: inset(0 0 0 50%); transition: clip-path .6s var(--ease); }
@media (hover: hover) { .theme:hover .theme__dot { clip-path: inset(0 0 0 0); } }
/* the icon flips to its opposite half in dark mode */
[data-theme='dark'] .theme__dot { clip-path: inset(0 50% 0 0); }
@media (max-width: 759px) {
  .bar__meta { display: none; }
  .bar__mark { grid-column: 1 / span 7; font-size: 13px; }
  .bar__end { grid-column: 8 / span 5; }
}

/* ---------- intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: flex; position: fixed; inset: 0; z-index: 100; background: var(--fg); color: var(--bg);
  flex-direction: column; justify-content: space-between; padding: var(--pad);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io);
}
.intro__name { font-weight: 800; font-variation-settings: 'wdth' 125; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.01em; overflow: hidden; }
.intro__name .ch { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms + 100ms); }
.intro__count { align-self: flex-end; font-size: clamp(64px, 14vw, 220px); font-family: var(--sans); font-weight: 200; font-variation-settings: 'wdth' 62; line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.intro.is-out { clip-path: inset(0 0 100% 0); }
@keyframes rise { to { transform: none; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--bar) + 4vh); padding-bottom: var(--pad); }
.hero__meta { margin-bottom: auto; padding-top: 1vh; }
.hero__meta li { grid-column: span 2; color: var(--dim); }
.hero__meta li span { color: var(--fg); }
.hero__meta a { transition: color .3s; }
.hero__meta a:hover { color: var(--fg); }
.hero__kicker, .phead__kicker { display: block; margin-bottom: 1.2em; font-weight: 400; letter-spacing: .02em; line-height: 1.4; white-space: normal; }
.hero__kicker span, .phead__kicker span { color: var(--dim); }
.hero__meta li:first-child { grid-column: 1 / span 2; }
.hero__name {
  padding-inline: var(--pad); margin-bottom: 3vh; line-height: .78; text-transform: uppercase;
  font-weight: 800; letter-spacing: -.02em; white-space: nowrap;
}
.hero__line { display: flex; justify-content: space-between; font-size: 17vw; }
.hero__line .word { display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.hero__line .ch { display: inline-block; font-variation-settings: 'wght' 800, 'wdth' 125; will-change: transform; }
.js .hero__line .ch { transform: translateY(105%); }
.hero.is-in .hero__line .ch { transform: none; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.hero.is-in .word + .word .ch { transition-delay: calc(var(--i) * 45ms + 160ms); }
.hero__foot { align-items: end; row-gap: 20px; }
.hero__intro { grid-column: 1 / span 5; font-size: clamp(18px, 1.6vw, 28px); line-height: 1.2; font-variation-settings: 'wdth' 90; letter-spacing: -.01em; max-width: 30ch; }
.hero__cta { grid-column: 10 / span 3; justify-self: end; display: inline-flex; gap: .6em; align-items: baseline; }
.hero__cta .arrow { display: inline-block; animation: bob 2.4s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.js .hero__meta, .js .hero__foot { opacity: 0; transform: translateY(12px); }
.hero.is-in .hero__meta, .hero.is-in .hero__foot { opacity: 1; transform: none; transition: opacity 1s .5s, transform 1.2s .5s var(--ease); }
@media (max-width: 759px) {
  .hero { min-height: 92svh; }
  .hero__meta li { grid-column: span 6 !important; }
  .hero__line { flex-direction: column; }
  .hero__name { line-height: .8; }
  .hero__intro { grid-column: 1 / -1; }
  .hero__cta { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--rule); overflow: hidden; padding-block: 1.2vw; }
.ticker__track {
  display: flex; width: max-content; align-items: center; gap: 2.4vw; padding-left: 2.4vw;
  font-size: clamp(40px, 7vw, 120px); line-height: 1; text-transform: uppercase;
  font-weight: 800; font-variation-settings: 'wdth' 62; letter-spacing: -.01em; will-change: transform;
}
.ticker__track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.ticker__track i { display: inline-flex; width: .34em; height: .34em; flex: none; }
.ticker__track i svg { width: 100%; height: 100%; display: block; }

/* ---------- work ---------- */
.work { padding-top: clamp(48px, 8vw, 140px); }
.work__head {
  position: sticky; top: var(--bar); z-index: 20; align-items: baseline; padding-block: 10px;
  background: var(--frost); -webkit-backdrop-filter: blur(var(--frost-blur)); backdrop-filter: blur(var(--frost-blur));
}
.work__head .label { grid-column: 1 / span 6; }
.work__head .label span { color: var(--fg); }
.filters { grid-column: 3 / span 8; display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 32px); }
.filter { color: var(--dim); transition: color .3s; }
.filter sup { font-size: .75em; margin-left: .25em; vertical-align: .5em; }
.filter.is-on, .filter:hover, .view.is-on, .view:hover { color: var(--fg); }
.views { grid-column: 9 / span 4; justify-self: end; display: flex; gap: .5em; color: var(--dim); }
.view { color: var(--dim); }
@media (max-width: 759px) {
  .work__head .label { grid-column: 1 / span 7; }
  .views { grid-column: 8 / span 5; }
}

.tiles { padding-top: clamp(24px, 3vw, 56px); padding-bottom: clamp(60px, 8vw, 140px); row-gap: clamp(28px, 3vw, 56px); align-items: start; }
.tile { grid-column: span 4; }
.tile[hidden] { display: none; }
.tile__link { display: block; }
.tile__media { position: relative; aspect-ratio: var(--ar); background: var(--c); overflow: hidden; }
.tile__media img, .tile__media video { position: absolute; inset: 0; }
.tile__cap {
  display: grid; grid-template-columns: 3ch 1fr auto; gap: 1ch; padding-top: 8px; position: relative;
}
.tile__t, .tile__c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { .tile__c { display: none; } [data-page="home"] .tile__c { display: block; } }
.tile__c { color: var(--dim); }
.tile__t { position: relative; overflow: hidden; }
/* caption, not the picture, responds on hover */
.tile__n { transition: transform .6s var(--ease); display: inline-block; }
.tile__link:hover .tile__n { transform: translateX(6px); }

/* scroll reveal: media fades up once, caption rule draws */
.js [data-reveal] .tile__media { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.js [data-reveal] .tile__cap > * { opacity: 0; transition: opacity .8s .3s; }
.js [data-reveal].is-in .tile__media { opacity: 1; transform: none; }
.js [data-reveal].is-in .tile__cap > * { opacity: 1; }

/* list view */
.rows { padding: clamp(24px, 4vw, 60px) var(--pad) clamp(60px, 10vw, 180px); }
.row__link {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: baseline;
  border-bottom: 1px solid var(--rule); padding-block: .5vw .3vw; position: relative; isolation: isolate;
  transition: color .4s var(--ease);
}
.row__link:hover { color: var(--bg); }
.row__link:hover::before { transform: scaleY(1); }
.row__link:hover .row__c, .row__link:hover .row__k { color: inherit; }
.row__link::before { content: ''; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.row__n { grid-column: 1 / span 1; }
.row__t {
  grid-column: 2 / span 6; font-size: clamp(36px, 6.4vw, 120px); line-height: .95; text-transform: uppercase;
  font-weight: 800; font-variation-settings: 'wght' 800, 'wdth' 62; letter-spacing: -.01em;
  transition: font-variation-settings .6s var(--ease);
}
.row__c { grid-column: 9 / span 2; color: var(--dim); }
.row__k { grid-column: 11 / span 2; text-align: right; color: var(--dim); }
.row[hidden] { display: none; }
.row__link:hover .row__t { font-variation-settings: 'wght' 800, 'wdth' 125; }
.rows.is-in .row { animation: rowin .9s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 759px) {
  .row__n { grid-column: 1 / span 2; }
  .row__t { grid-column: 3 / span 10; }
  .row__c { grid-column: 3 / span 6; padding-bottom: 6px; }
  .row__k { grid-column: 9 / span 4; }
}

/* floating preview for list view */
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(180px, 18vw, 320px); pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.peek.is-on { opacity: 1; }
.peek > * { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease); }
.peek > .is-on { clip-path: inset(0 0 0 0); }

/* ---------- about ---------- */
.about { padding-block: clamp(80px, 12vw, 220px); border-top: 1px solid var(--rule); row-gap: 40px; }
.about .label { grid-column: 1 / span 2; }
.about__lead {
  grid-column: 3 / span 9; font-size: clamp(26px, 3.3vw, 60px); line-height: 1.05; letter-spacing: -.02em;
  font-weight: 500; font-variation-settings: 'wdth' 85; text-wrap: balance;
}
.about__lead .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.about__lead .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--k) * 18ms); }
.about__lead.is-in .w > span { transform: none; }
.about__col { grid-column: 3 / span 3; margin-top: clamp(20px, 4vw, 60px); }
.about__col + .about__col { grid-column: 6 / span 3; }
.about__col h3 { color: var(--dim); margin-bottom: 1em; }
.about__col li { border-top: 1px solid var(--rule); padding-block: .5em; }
@media (max-width: 759px) {
  .about .label, .about__lead { grid-column: 1 / -1; }
  .about__col { grid-column: 1 / span 6 !important; }
  .about__col + .about__col { grid-column: 7 / span 6 !important; }
}

/* ---------- contact ---------- */
.contact { background: var(--fg); color: var(--bg); padding-top: clamp(60px, 10vw, 180px); --rule: color-mix(in srgb, var(--bg) 20%, var(--fg)); }
.contact .label { padding-inline: var(--pad); color: color-mix(in srgb, var(--bg) 55%, var(--fg)); }
.contact__mail { display: block; padding: 2vw var(--pad) 4vw; }
.contact__line { display: flex; flex-wrap: nowrap; justify-content: space-between; font-size: 9vw; line-height: .9; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.roll { display: inline-flex; overflow: hidden; padding: .06em 0 .22em; }
.roll .ch { display: inline-block; font-variation-settings: 'wdth' 100; text-shadow: 0 1.3em currentColor; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 14ms); }
.contact__mail:hover .roll .ch { transform: translateY(-1.3em); }
.contact__foot { border-top: 1px solid var(--rule); padding-block: 18px; row-gap: 8px; }
.contact__foot > * { grid-column: span 3; }
.contact__foot .totop { justify-self: end; }
@media (max-width: 759px) {
  .contact__line { flex-direction: column; }
  .contact__foot > * { grid-column: span 6; }
}

/* ---------- custom cursor (fine pointers only, enabled by JS) ---------- */
.cursor { display: none; }
.has-cursor, html.has-cursor :is(a, button, summary, label, select, [role='button'], [data-cursor], .me__frame) { cursor: none; }
.has-cursor .cursor {
  display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
}
.cursor::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  -webkit-backdrop-filter: grayscale(1) invert(1); backdrop-filter: grayscale(1) invert(1);
  transform: scale(.12); transition: transform .5s var(--ease);
}
.cursor.is-link::before { transform: scale(.35); }
.cursor.is-label::before { transform: scale(1); }
.cursor.is-hidden::before { transform: scale(0); }
.has-cursor .cursor { transition: opacity .25s; }
.has-cursor .cursor.is-hidden { opacity: 0; }
.cursor__label { position: relative; color: #fff; mix-blend-mode: difference; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .1s; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: var(--bg); clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease-io); }
.lb.is-open .lb__bg { clip-path: inset(0 0 0 0); }
.lb__stage { position: absolute; inset: calc(var(--bar) + 8px) var(--pad) 64px; }
.lb__media { position: absolute; transform-origin: 0 0; background: var(--c); overflow: hidden; }
.lb__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: center;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .8s var(--ease);
}
.lb.is-open .lb__bar { opacity: 1; transform: none; transition-delay: .35s; }
.lb__count { grid-column: 1 / span 2; font-variant-numeric: tabular-nums; }
.lb__title { grid-column: 3 / span 3; }
.lb__cat { grid-column: 6 / span 3; color: var(--dim); }
.lb__ctrl { grid-column: 9 / span 4; display: flex; justify-content: flex-end; gap: clamp(16px, 2vw, 32px); }
@media (max-width: 759px) {
  .lb__count { grid-column: 1 / span 3; }
  .lb__title { grid-column: 4 / span 4; }
  .lb__cat { display: none; }
  .lb__ctrl { grid-column: 8 / span 5; gap: 12px; }
}
.lb-lock { overflow: hidden; }

/* theme switch: circular wipe via View Transitions */
::view-transition-new(root) { z-index: 2; mix-blend-mode: normal; }
::view-transition-old(root) { mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--bar) + 4vh) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__list a { display: flex; align-items: baseline; gap: 4vw; border-bottom: 1px solid var(--rule); overflow: hidden; }
.menu__t {
  font-size: clamp(44px, 12vw, 110px); line-height: 1; text-transform: uppercase; font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 62; display: inline-block; transform: translateY(100%); transition: transform .8s var(--ease);
}
.menu.is-open .menu__t { transform: none; transition-delay: calc(.2s + var(--k, 0) * 50ms); }
.menu__list a:nth-child(1) { --k: 0 } .menu__list a:nth-child(2) { --k: 1 } .menu__list a:nth-child(3) { --k: 2 } .menu__list a:nth-child(4) { --k: 3 }
.menu__list a:nth-child(5) { --k: 4 } .menu__list a:nth-child(6) { --k: 5 } .menu__list a:nth-child(7) { --k: 6 } .menu__list a:nth-child(8) { --k: 7 }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; }

/* ---------- page head (category / about) ---------- */
.phead { padding-top: calc(var(--bar) + clamp(40px, 8vh, 120px)); }
.phead__h { padding-inline: var(--pad); text-transform: uppercase; font-weight: 800; line-height: .8; letter-spacing: -.02em; white-space: nowrap; }
.phead__kicker { text-transform: uppercase; }
.phead__title { display: flex; justify-content: space-between; font-size: 20vw; }
.phead__title .word { display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.phead__title .ch { display: inline-block; font-variation-settings: 'wght' 800, 'wdth' 125; }
.js .phead__title .ch { transform: translateY(105%); }
.phead.is-in .phead__title .ch { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.phead__body { padding-block: clamp(32px, 5vw, 80px) clamp(40px, 6vw, 100px); align-items: start; }
.phead__count { grid-column: 1 / span 3; color: var(--dim); }
.phead__text { grid-column: 5 / span 7; columns: 2; column-gap: var(--gut); }
.phead__text p { margin-bottom: 1em; break-inside: avoid; max-width: 60ch; }
.phead__text .lead { column-span: all; font-size: clamp(22px, 2.4vw, 42px); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: 'wdth' 88; font-weight: 500; margin-bottom: 1.2em; max-width: 28ch; }
.phead__text a { text-decoration: underline; text-underline-offset: .15em; }
.js .phead__body { opacity: 0; transform: translateY(16px); }
.phead.is-in .phead__body { opacity: 1; transform: none; transition: opacity 1s .4s, transform 1.2s .4s var(--ease); }
@media (max-width: 759px) {
  .phead__count { grid-column: 1 / -1; margin-bottom: 16px; }
  .phead__text { grid-column: 1 / -1; columns: 1; }
}

/* ---------- disciplines (home) ---------- */
.disc { border-top: 1px solid var(--rule); padding-block: clamp(48px, 7vw, 120px) clamp(40px, 6vw, 100px); }
.disc__head { margin-bottom: clamp(16px, 2vw, 32px); }
.disc__head .label { grid-column: 1 / -1; }
.rows--disc { padding-block: 0; }
.rows--disc .row__t { font-size: clamp(44px, 8.5vw, 160px); }
.rows--disc .row { opacity: 0; }
.rows--disc.is-in .row { animation: rowin 1s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); opacity: 1; }

/* ---------- next page ---------- */
.next { display: block; border-top: 1px solid var(--rule); padding: clamp(32px, 5vw, 80px) var(--pad) clamp(24px, 3vw, 48px); overflow: hidden; }
.next__label { color: var(--dim); display: block; margin-bottom: 1em; }
.next__title { display: flex; justify-content: space-between; align-items: baseline; font-size: 12vw; line-height: .9; padding-bottom: .04em; text-transform: uppercase; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.next__title .word { display: inline-flex; }
.next__title .ch { display: inline-block; font-variation-settings: 'wght' 800, 'wdth' 125; transition: font-variation-settings .9s var(--ease); }
.next:hover .next__title .ch { font-variation-settings: 'wght' 800, 'wdth' 62; }
.next__arrow { font-weight: 300; transition: transform .9s var(--ease); }
.next:hover .next__arrow { transform: translateX(-1vw); }

/* ---------- about page ---------- */
.about__more { grid-column: 3 / span 6; margin-top: 8px; }
.about--page { border-top: 0; padding-top: clamp(32px, 5vw, 80px); }
.about__text { grid-column: 3 / span 8; }
.about__text p { max-width: 62ch; margin-bottom: 1em; font-size: clamp(16px, 1.15vw, 20px); }
.about__text .about__lead { max-width: none; font-size: clamp(26px, 3.3vw, 60px); margin-bottom: .8em; }
.about__pics { grid-column: 3 / span 8; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gut); margin-block: 20px; }
.about--page .about__col { grid-column: span 3; }
.about--page .about__col:first-of-type { grid-column: 3 / span 3; }
.about__col a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--rule); }
@media (max-width: 759px) {
  .about__text, .about__pics, .about__more { grid-column: 1 / -1; }
  .about--page .about__col { grid-column: span 6 !important; }
}

/* ---------- page-to-page transitions (browsers that support them) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .5s cubic-bezier(.76, 0, .24, 1) both; }
::view-transition-new(root) { animation: vt-in .8s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4vh); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; }
/* Mac Safari stand-in: a panel in the page colour wipes up off the live page (under the nav), like the snapshot wipe */
html.wipe-in body::after { content: ''; position: fixed; inset: 0; z-index: 47; background: var(--bg); pointer-events: none; animation: wipe-off .8s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes wipe-off { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }

/* packed column layout (positions set by app.js; plain grid without JS) */
.masonry .tiles { display: block; position: relative; }
.masonry .tile { position: absolute; left: 0; top: 0; margin: 0 !important; }

/* ---------- logo ---------- */
.bar__mark { display: inline-flex; align-items: center; gap: 10px; }
.bar__logo { width: auto; height: 26px; flex: none; transition: transform .8s var(--ease); }
.bar__mark:hover .bar__logo { transform: rotate(-8deg); }
.intro__logo { position: absolute; left: 50%; top: 50%; width: clamp(120px, 18vw, 280px); height: auto; transform: translate(-50%, -55%); clip-path: inset(100% 0 0 0); animation: logoin 1.1s .15s var(--ease-io) forwards; }
@keyframes logoin { to { clip-path: inset(0 0 0 0); } }
.contact__top { display: flex; justify-content: space-between; align-items: flex-start; padding-right: var(--pad); }
.contact__logo { width: clamp(56px, 7vw, 120px); height: auto; flex: none; }

/* ---------- top bar as a flexible row (fits the Contact button at every width) ---------- */
.bar { display: flex; gap: clamp(14px, 2vw, 32px); }
.bar__mark, .bar__meta, .bar__nav, .bar__end { grid-column: auto; }
.bar__nav { margin-left: auto; }
.bar__end { gap: clamp(12px, 1.4vw, 22px); }
.bar__cta { border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px 4px; transition: background .3s, color .3s; }
.bar__cta:hover, .bar__cta[aria-current] { background: #fff; color: #000; }
@media (max-width: 1099px) { .bar__end { margin-left: auto; } }
@media (max-width: 1240px) and (min-width: 1100px) { .bar__meta { display: none; } }
@media (max-width: 759px) { .bar__mark span { display: none; } .bar__meta { display: block; } }
@media (max-width: 400px) { .bar__meta { display: none; } }

/* ---------- contact page ---------- */
.cpage { padding-block: clamp(32px, 5vw, 80px) clamp(60px, 8vw, 140px); row-gap: 40px; align-items: start; grid-template-rows: auto auto 1fr; }
.cpage__info { grid-column: 1 / span 4; }
.cpage__lead { font-size: clamp(22px, 2.1vw, 36px); line-height: 1.1; letter-spacing: -.015em; font-weight: 500; font-variation-settings: 'wdth' 88; margin-bottom: .8em; }
.cpage__info > p:not(.cpage__lead) { color: var(--dim); max-width: 40ch; }
.cpage__details { margin: 32px 0 0; }
.cpage__details div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1em; align-items: baseline; border-top: 1px solid var(--rule); padding-block: .8em; }
.cpage__details dt { color: var(--dim); }
.cpage__details dd { margin: 0; font-size: clamp(17px, 1.3vw, 22px); }
.cpage__details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.cpage__details a:hover { background-size: 100% 1px; }
.cpage__areas { font-size: 15px !important; color: var(--dim); }
.cform { grid-column: 6 / span 7; grid-row: 1 / span 3; position: relative; }
/* left column: intro, then my photo, then the contact details; the form runs alongside */
.cpage__me { grid-column: 1 / span 3; grid-row: 2; }
.cpage__info--details { grid-row: 3; }
.cpage__info--details .cpage__details { margin-top: 0; }
.cform__label { color: var(--dim); margin-bottom: 24px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gut); }
.field { display: block; margin-bottom: 28px; }
.field > span { display: block; color: var(--dim); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: clamp(18px, 1.5vw, 26px); color: var(--fg); background: transparent;
  /* what people type comes out like a typewritten note */
  font-family: 'American Typewriter', 'Courier Prime', 'Courier New', Courier, monospace; font-variation-settings: normal; letter-spacing: 0;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 6px 0 10px; outline: none; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 7em; line-height: 1.3; }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.chips { border: 0; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { color: var(--dim); margin-bottom: 12px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 15px 7px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip span:hover { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.cform__send {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .6em;
  border: 1px solid var(--fg); padding: .3em .7em .25em; font-size: clamp(24px, 2.6vw, 44px); line-height: 1;
  text-transform: uppercase; font-weight: 800; font-variation-settings: 'wght' 800, 'wdth' 62; transition: color .5s var(--ease);
}
.cform__send::before { content: ''; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.cform__send:hover { color: var(--bg); }
.cform__send:hover::before { transform: scaleY(1); }
.cform__send .arrow { font-weight: 300; transition: transform .6s var(--ease); }
.cform__send:hover .arrow { transform: translateX(.2em); }
.cform__send:disabled { opacity: .5; }
.cform__status a { text-decoration: underline; }
.cform.is-sent .cform__status { color: var(--fg); }
.cform__hp { position: absolute !important; left: -9999px; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor .chip span { cursor: none; }
@media (max-width: 899px) {
  .cpage__info, .cform { grid-column: 1 / -1; grid-row: auto; }
  .cpage__me { grid-column: 1 / span 9; grid-row: auto; order: 4; }
  .cpage__info--details { grid-row: auto; order: 2; } .cform { order: 3; }
  .cform__row { grid-template-columns: 1fr; }
}

/* viewer: link to the client page */
.lb__title { grid-column: 3 / span 3; }
.lb__cat { grid-column: 6 / span 2; }
.lb__client { grid-column: 8 / span 2; position: relative; }
.lb__client::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.lb__client:hover::after { transform: scaleX(1); transform-origin: left; }
.lb__ctrl { grid-column: 10 / span 3; }
/* long titles stay on one line, so the bar never wraps */
.lb__title, .lb__cat, .lb__client { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* no client page: the title takes the room the link would have used */
.lb__bar:not(.has-client) .lb__title { grid-column: 3 / span 4; }
.lb__bar:not(.has-client) .lb__cat { grid-column: 7 / span 3; }
@media (max-width: 759px) {
  .lb__ctrl { grid-column: 8 / span 5; }
  .lb__title, .lb__bar:not(.has-client) .lb__title { grid-column: 4 / span 4; }
  .lb__client { grid-column: 4 / span 4; }
  .lb__bar.has-client .lb__title { display: none; }
}
.disc--clients { border-top: 0; padding-top: clamp(24px, 4vw, 64px); }
.phead__count a { color: var(--fg); }

.phead__links { display: flex; flex-wrap: wrap; gap: .4em 1.6em; }

/* header: a grey copy of the bar with a saturation blend sits on top of the real one,
   turning its colour-inverting 'difference' blend into a greyscale invert (like the cursor) */
.bar--sat { z-index: 51; mix-blend-mode: saturation; color: #808080; pointer-events: none; }
.bar--sat .bar__cta.is-hover, .bar--sat .bar__cta[aria-current] { background: #808080; color: #808080; }
.bar--sat a.is-hover::after { transform: scaleX(1); transform-origin: left; }
.bar--sat .theme.is-hover .theme__dot { clip-path: inset(0 0 0 0); }
.bar--sat .bar__mark.is-hover .bar__logo { transform: rotate(-8deg); }

/* nav: blur whatever scrolls under it (sits beneath the blended bar, so the bar still inverts over it) */
/* iOS 26 Safari checks fixed elements touching the top of the screen: if one has a background colour or a
   backdrop-filter, it paints the status-bar strip solid in that colour and hides the page behind it.
   So the fixed layer itself is completely plain, and the frosted glass is a child of it (which Safari ignores). */
.bar-blur { position: fixed; inset: 0 0 auto; z-index: 48; height: var(--bar); pointer-events: none; }
.bar-glass {
  position: absolute; inset: 0;
  background: var(--frost); -webkit-backdrop-filter: blur(var(--frost-blur)); backdrop-filter: blur(var(--frost-blur));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: auto; mask-size: auto;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0; transition: opacity .6s var(--ease);
}
.is-scrolled .bar-glass { opacity: 1; }
[data-theme='dark'] .bar-glass { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .08); }
html { background: var(--bg); }
body { background: none; }   /* html carries the colour; a body background would paint over the column guides */
/* docked under the nav: the section bar sits above the shared blur layer and drops its own glass */
.work__head.is-docked { z-index: 49; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lb-lock .work__head.is-docked { z-index: 20; }
@supports not (mix-blend-mode: saturation) { .bar--sat { display: none; } }

/* page changes: the bar stays put while the page wipes underneath it (no second animation) */
.bar { view-transition-name: bar; }
.bar--sat { view-transition-name: bar-sat; }
.intro-on .bar, .intro-on .bar--sat { view-transition-name: none; }
::view-transition-group(bar), ::view-transition-group(bar-sat) { animation: none; }
::view-transition-group(bar) { mix-blend-mode: difference; }
::view-transition-group(bar-sat) { mix-blend-mode: saturation; }
::view-transition-old(bar), ::view-transition-old(bar-sat) { display: none; }
::view-transition-new(bar), ::view-transition-new(bar-sat) { animation: none; }

/* viewfinder cursor over photos: autofocus brackets hunt, then lock */
.cursor__frame {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 100px; margin: -50px 0 0 -75px;
  /* the AF brackets: solid white with a soft dark halo, so they hold up on any colour (the centre keeps its inverted look) */
  --g: linear-gradient(#fff 0 0); --l: 18px; --t: 1.5px;
  background: var(--g) 0 0 / var(--l) var(--t) no-repeat, var(--g) 0 0 / var(--t) var(--l) no-repeat,
    var(--g) 100% 0 / var(--l) var(--t) no-repeat, var(--g) 100% 0 / var(--t) var(--l) no-repeat,
    var(--g) 0 100% / var(--l) var(--t) no-repeat, var(--g) 0 100% / var(--t) var(--l) no-repeat,
    var(--g) 100% 100% / var(--l) var(--t) no-repeat, var(--g) 100% 100% / var(--t) var(--l) no-repeat;
  filter: drop-shadow(0 0 .6px rgba(0, 0, 0, .7)) drop-shadow(0 0 3px rgba(0, 0, 0, .35));
  opacity: 0; transform: scale(1.6); transition: opacity .2s, transform .5s var(--ease);
}
.cursor.is-frame .cursor__frame { opacity: 1; transform: none; animation: af .75s var(--ease) both; }
@keyframes af { 0% { transform: scale(1.6); } 45% { transform: scale(.9); } 70% { transform: scale(1.04); } 100% { transform: none; } }
/* centre: split-prism focusing screen - outer ring, microprism collar, split circle that lines up as it 'focuses' */
.cursor.is-frame::before { transform: scale(0); }
.cursor__prism { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .5s var(--ease); }
.cursor__prism i, .cursor__tag { position: absolute; inset: 0; -webkit-backdrop-filter: grayscale(1) invert(1); backdrop-filter: grayscale(1) invert(1); }
.cursor__prism .p-ring { -webkit-mask: radial-gradient(circle, transparent 29.5px, #000 30px 31px, transparent 31.5px); mask: radial-gradient(circle, transparent 29.5px, #000 30px 31px, transparent 31.5px); }
.cursor__prism .p-collar {
  -webkit-mask: radial-gradient(circle, transparent 15.5px, #000 16px 23px, transparent 23.5px), repeating-conic-gradient(#000 0 3.5deg, transparent 3.5deg 9deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 15.5px, #000 16px 23px, transparent 23.5px), repeating-conic-gradient(#000 0 3.5deg, transparent 3.5deg 9deg);
  mask-composite: intersect;
}
.cursor__prism .p-top, .cursor__prism .p-bot { -webkit-mask-composite: source-in; mask-composite: intersect; transition: transform .6s var(--ease); }
.cursor__prism .p-top {
  -webkit-mask: radial-gradient(circle, #000 13px, transparent 13.5px), linear-gradient(#000 calc(50% - .75px), transparent 0);
  mask: radial-gradient(circle, #000 13px, transparent 13.5px), linear-gradient(#000 calc(50% - .75px), transparent 0);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.cursor__prism .p-bot {
  -webkit-mask: radial-gradient(circle, #000 13px, transparent 13.5px), linear-gradient(transparent calc(50% + .75px), #000 0);
  mask: radial-gradient(circle, #000 13px, transparent 13.5px), linear-gradient(transparent calc(50% + .75px), #000 0);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.cursor.is-frame .cursor__prism { opacity: 1; transform: none; }
.cursor.is-frame .p-top { animation: split-top .75s var(--ease) both; }
.cursor.is-frame .p-bot { animation: split-bot .75s var(--ease) both; }
@keyframes split-top { 0% { transform: translateX(-9px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-1px); } 100% { transform: none; } }
@keyframes split-bot { 0% { transform: translateX(9px); } 45% { transform: translateX(-3px); } 70% { transform: translateX(1px); } 100% { transform: none; } }
/* the View / Loop readout sits under the frame in its own little inverted pill */
.cursor__tag { inset: auto; left: 50%; top: 50%; width: 56px; height: 20px; margin: 55px 0 0 -28px; border-radius: 10px; opacity: 0; transition: opacity .2s;
  /* smoked glass: a blurred, darkened, colourless slice of the photo, so white text always reads */
  background: rgba(10, 10, 10, .28); -webkit-backdrop-filter: blur(8px) grayscale(1) brightness(.42); backdrop-filter: blur(8px) grayscale(1) brightness(.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
/* over a photo the label sits on that pill, so it's plain white rather than blended (blending is what made it vanish on mid-tones) */
.cursor--text.is-frame { mix-blend-mode: normal; }
.cursor--text.is-frame .cursor__label { color: #fff; }
.cursor.is-frame .cursor__tag { opacity: 1; transition-delay: .15s; }
.cursor.is-frame .cursor__label { transform: translateY(65px); }
/* frosted glass inside the outer ring (the rings and split circle invert the frosted view on top of it) */
.cursor__prism .p-glass { inset: 1px; border-radius: 50%; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(7px) saturate(1.1); backdrop-filter: blur(7px) saturate(1.1); }

/* ---------- liquid glass: lenses under the Contact pill and theme switch, plus a lit edge on the nav ---------- */
.glass {
  position: fixed; z-index: 49; pointer-events: none; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.5) brightness(1.04); backdrop-filter: blur(1.5px) saturate(1.5) brightness(1.04);
  box-shadow:
    inset 1px 1.5px 0 rgba(255, 255, 255, .55),   /* light catching the top edge */
    inset -1px -1px 0 rgba(255, 255, 255, .18),
    inset 0 -6px 12px -6px rgba(255, 255, 255, .25),
    0 6px 18px -6px rgba(0, 0, 0, .25);
}
.glass--bend { -webkit-backdrop-filter: var(--lens) blur(.6px) saturate(1.5) brightness(1.04); backdrop-filter: var(--lens) blur(.6px) saturate(1.5) brightness(1.04); }
.intro-on .glass { visibility: hidden; }   /* (the photo viewer covers them anyway; the menu keeps them) */
::view-transition-group(glass0), ::view-transition-group(glass1), ::view-transition-new(glass0), ::view-transition-new(glass1) { animation: none; }
::view-transition-old(glass0), ::view-transition-old(glass1) { display: none; }
/* cursor label on its own layer, blended as a whole against the page (and the cursor beneath it) */
.cursor--text { z-index: 151; mix-blend-mode: difference; }
.cursor--text::before { display: none; }
.cursor--text .cursor__label { mix-blend-mode: normal; }
/* cursor label on its own layer, blended as a whole against the page (and the cursor beneath it) */
.cursor--text { z-index: 151; mix-blend-mode: difference; }
.cursor--text::before { display: none; }
.cursor--text .cursor__label { mix-blend-mode: normal; }

/* clients list: calmer size, and the hover stretch is a nudge, not a shout */
/* (same on the Clients / List view of each page) */
.disc--clients .rows--disc .row__t, .rows:not(.rows--disc) .row__t { grid-column: 2 / span 7; font-size: clamp(30px, 4.4vw, 80px); line-height: 1; padding-block: .08em; }
.disc--clients .row__link:hover .row__t, .rows:not(.rows--disc) .row__link:hover .row__t { font-variation-settings: 'wght' 800, 'wdth' 85; }
@media (max-width: 759px) { .disc--clients .rows--disc .row__t, .rows:not(.rows--disc) .row__t { grid-column: 3 / span 10; font-size: clamp(26px, 8vw, 44px); } }

/* top bar: keep "North West, UK" together, so a wrap happens after the slash */
.bar__meta > span:last-child { white-space: nowrap; }

/* iPhone: Safari paints the status-bar strip solid if ANY full-width fixed element touches the top edge
   (even a transparent one), so every fixed layer starts just below the status bar. The page then scrolls
   up behind the status bar itself. (--bar still includes the status bar, for spacing content.) */
.bar, .bar-blur, .glass-layer { top: var(--safe); }
.bar, .glass-layer { height: calc(var(--bar) - var(--safe)); }
/* lenses ride in a layer laid out exactly like the bar, so they can't drift from it (iOS toolbar / bounce) */
.glass-layer { position: fixed; inset: 0 0 auto; height: var(--bar); z-index: 49; pointer-events: none; }
.glass-layer .glass { position: absolute; z-index: auto; }
/* keep the viewer's controls clear of the iPhone home indicator */
.lb__bar { bottom: env(safe-area-inset-bottom, 0px); }
.lb__stage { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
/* on screen when arriving by page wipe: no entrance of their own (see app.js 'pagereveal') */
.instant.hero .ch, .instant.phead .ch, .instant .phead__body, .instant .hero__meta, .instant .hero__foot,
.instant .tile__media, .instant .tile__cap > *, .instant .w > span { transition: none !important; }
.rows--disc.instant .row { animation: none !important; opacity: 1 !important; }

/* ---------- "get in touch" card in the photo viewer ---------- */
.lb__cta {
  --c: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2vh;
  padding: clamp(22px, 3vw, 52px);
}
.cta__top { display: flex; justify-content: space-between; opacity: 0; transition: opacity .6s .2s; }
.cta__rec { display: inline-flex; align-items: center; gap: .5em; }
.cta__rec b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rec 1.1s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.cta__h { display: flex; flex-direction: column; text-transform: uppercase; font-weight: 800; line-height: .84; letter-spacing: -.02em; white-space: nowrap; margin: 0; }
.cta__h .word { display: flex; overflow: hidden; padding-bottom: .05em; }
.cta__h .ch { display: inline-block; font-variation-settings: 'wght' 800, 'wdth' 125; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 32ms + var(--l, 0ms) + 150ms); }
.cta__h .word + .word .ch { --l: 160ms; }
.cta__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; opacity: 0; transform: translateY(14px); transition: opacity .8s .6s, transform 1.1s .6s var(--ease); }
.cta__s { max-width: 32ch; font-size: clamp(16px, 1.35vw, 24px); line-height: 1.22; font-variation-settings: 'wdth' 90; letter-spacing: -.01em; }
.cta__links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.cta__links a:not(.cta__go) { opacity: .7; transition: opacity .3s; }
.cta__links a:not(.cta__go):hover { opacity: 1; }
.cta__go { border: 1px solid currentColor; border-radius: 999px; padding: 13px 22px 12px; font-size: 12px; letter-spacing: .04em; transition: background .35s, color .35s; }
.cta__go:hover { background: var(--bg); color: var(--fg); }
.cta__go span { display: inline-block; margin-left: .4em; transition: transform .5s var(--ease); }
.cta__go:hover span { transform: translateX(5px); }
/* viewfinder corners that focus in, like the cursor */
.cta__corner { position: absolute; width: 22px; height: 22px; opacity: 0; --e: 1.5px solid currentColor; }
.cta__corner:nth-child(1) { left: 12px; top: 12px; border-left: var(--e); border-top: var(--e); }
.cta__corner:nth-child(2) { right: 12px; top: 12px; border-right: var(--e); border-top: var(--e); }
.cta__corner:nth-child(3) { left: 12px; bottom: 12px; border-left: var(--e); border-bottom: var(--e); }
.cta__corner:nth-child(4) { right: 12px; bottom: 12px; border-right: var(--e); border-bottom: var(--e); }
.lb__cta.is-in .cta__corner { animation: cta-af .9s .1s var(--ease) both; }
@keyframes cta-af { 0% { opacity: 0; transform: scale(2.2); } 50% { opacity: .6; transform: scale(.85); } 75% { transform: scale(1.06); } 100% { opacity: .6; transform: none; } }
.cta__corner:nth-child(1) { transform-origin: 100% 100%; } .cta__corner:nth-child(2) { transform-origin: 0 100%; }
.cta__corner:nth-child(3) { transform-origin: 100% 0; } .cta__corner:nth-child(4) { transform-origin: 0 0; }
.lb__cta.is-in .cta__top { opacity: .7; }
.lb__cta.is-in .cta__h .ch { transform: none; }
.lb__cta.is-in .cta__foot { opacity: 1; transform: none; }
@media (max-width: 759px) { .cta__links a:not(.cta__go) { display: none; } }
.lb__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta__more { font: inherit; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 4px 12px; color: inherit; opacity: .75; transition: opacity .3s; }
.cta__more:hover { opacity: 1; }
.cta__more span { display: inline-block; margin-left: .3em; transition: transform .5s var(--ease); }
.cta__more:hover span { transform: translateX(5px); }
/* end of a gallery page: the card as a panel under the grid */
.cta--end { position: relative; background: var(--fg); margin: clamp(48px, 7vw, 120px) var(--pad) 0; height: min(80svh, 760px); min-height: 420px; }
.work .rows:not([hidden]) ~ .cta--end { margin-top: clamp(24px, 3vw, 48px); }
/* touch screens: a one-off nudge that tapping the photo moves on */
.lb__hint {
  position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 3; translate: -50% 0;
  display: flex; gap: .8em; align-items: center; white-space: nowrap;
  background: var(--fg); color: var(--bg); border-radius: 999px; padding: 10px 16px 9px;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .7s var(--ease); pointer-events: none;
}
.lb__hint span + span { opacity: .55; }
.lb__hint.is-on { opacity: 1; transform: none; }

/* the sticky filter bar's glass lives on a child too (Safari samples sticky bars' own background/blur) */
.work__head { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.work__glass { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--frost); -webkit-backdrop-filter: blur(var(--frost-blur)); backdrop-filter: blur(var(--frost-blur)); }
.work__head.is-docked .work__glass { display: none; }

/* iPhone Safari paints the status-bar strip solid when a fixed element spanning (most of) the screen width sits
   at the top - even a see-through one - and Safari reports no status-bar gap, so we can't just move them down.
   It ignores narrow fixed elements and their absolutely positioned children, so each top layer is a zero-width
   fixed anchor with the visible full-width layer hanging off it. The blend modes move to the anchors so the
   bar still blends with the page. */
.topfix { position: fixed; top: 0; left: 0; width: 0; height: 0; }
.topfix--bar { z-index: 50; mix-blend-mode: difference; }
.topfix--sat { z-index: 51; mix-blend-mode: saturation; pointer-events: none; }
.topfix .bar { position: absolute; inset: auto; left: 0; top: var(--safe); width: var(--vw, 100vw); mix-blend-mode: normal; }
.bar-blur { width: 0; height: 0; }
.bar-glass { inset: auto; left: 0; top: 0; width: var(--vw, 100vw); height: calc(var(--bar) - var(--safe)); }
.glass-layer { width: 0; height: 0; }
@supports not (mix-blend-mode: saturation) { .topfix--sat { display: none; } }

/* ---------- the nav as a floating glass pill (once scrolled); docked filter bars join it ---------- */
:root { --pill-y: 6px; --pill-x: max(6px, calc(var(--pad) - 20px)); --pill-r: 22px; }
.bar-glass {
  left: var(--pill-x); top: var(--pill-y);
  width: calc(var(--vw, 100vw) - 2 * var(--pill-x)); height: calc(var(--bar) - var(--safe) - 2 * var(--pill-y));
  border-radius: var(--pill-r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(127, 127, 127, .12);
}
[data-theme='dark'] .bar-glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* a filter bar waiting to dock is its own little pill, then merges into the nav's */
.work__glass { inset: 0 var(--pill-x); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(127, 127, 127, .12); }
[data-theme='dark'] .work__glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* docked: lift the filter row so it sits as evenly inside the pill as the nav row does */
.work__head > :not(.work__glass) { transition: transform .45s var(--ease); }
.work__head.is-docked > :not(.work__glass) { transform: translateY(-4px); }

/* in the pill, the glass gives the contrast: plain colours, no invert / greyscale blend.
   (At the very top, over the page, the bar keeps its inverting blend.) */
.is-scrolled .topfix--bar { mix-blend-mode: normal; }
.is-scrolled .topfix .bar { color: var(--fg); }
.is-scrolled .topfix--sat { display: none; }
.is-scrolled .bar__cta:hover, .is-scrolled .bar__cta[aria-current] { background: var(--fg); color: var(--bg); }
html.is-scrolled::view-transition-group(bar) { mix-blend-mode: normal; }

/* ---------- scrolling down: the pill strips back to the logo in a circle, centred (motion drawn in app.js) ---------- */
html.nav-min .bar-glass { left: calc(var(--vw, 100vw) / 2 - var(--pill-r)); width: calc(2 * var(--pill-r)); }
/* the bar's contents are cut to the pill's shape, so the edges sweeping in strip the links away */
html.nav-min .topfix .bar { clip-path: inset(var(--pill-y) calc(var(--vw, 100vw) / 2 - var(--pill-r)) calc(100% - var(--pill-y) - 2 * var(--pill-r)) calc(var(--vw, 100vw) / 2 - var(--pill-r)) round var(--pill-r)); }
html.nav-min .topfix .bar__mark { transform: translateX(var(--logo-dx, 0px)); }
.topfix .bar__meta, .topfix .bar__nav, .topfix .bar__end, .topfix .bar__mark span { transition: opacity .35s .35s; }
html.nav-min .topfix .bar__meta, html.nav-min .topfix .bar__nav, html.nav-min .topfix .bar__end, html.nav-min .topfix .bar__mark span { opacity: 0; pointer-events: none; transition: opacity .3s .45s; }
.glass-layer { transition: opacity .3s .55s; }
html.nav-min .glass-layer { opacity: 0; transition: opacity .15s; }
/* while it's a circle, filter bars just scroll with the page (no docking, so nothing flickers) */
html.nav-min .work__head { position: relative; top: 0; }   /* top must reset: on a relative element it shifts it down */
/* ...and slide back in under the pill when it opens */
html.nav-open .work__head.is-docked { animation: dock-in .6s .25s var(--ease) both; }
@keyframes dock-in { from { transform: translateY(-70%); opacity: 0; } }
/* the location line clears out at once, so the travelling logo never runs over it */
html.nav-min .topfix .bar__meta { transition: opacity .12s; }
.bar-glass { -webkit-mask-position: calc(-1 * var(--pill-x)) calc(-1 * var(--pill-y)); mask-position: calc(-1 * var(--pill-x)) calc(-1 * var(--pill-y)); }
.bar-glass.is-morph { transition: opacity .6s var(--ease), height .6s var(--ease); }
/* "Menu" / "Close": same width either way, so nothing beside it shifts (or leaves its glass behind) */
.bar__menu { min-width: 5ch; text-align: right; }
/* theme change on touch screens: everything eases to the new colours together */
.theme-fading, .theme-fading *, .theme-fading *::before, .theme-fading *::after {
  transition: background-color .6s var(--ease-io), color .6s var(--ease-io), border-color .6s var(--ease-io), fill .6s var(--ease-io), box-shadow .6s var(--ease-io) !important;
}
.iris-anchor { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 300; pointer-events: none; }
.iris { position: absolute; left: 0; top: -160px; width: var(--vw, 100vw); height: calc(100lvh + 320px); }

/* ---------------- how it works: prices, steps, FAQs ---------------- */
.how { padding-block: clamp(32px, 5vw, 80px) clamp(40px, 6vw, 100px); row-gap: 32px; align-items: start; }
.how__intro { grid-column: 3 / span 9; }
.how__intro p { max-width: 62ch; margin-bottom: 1em; font-size: clamp(16px, 1.15vw, 20px); }
.how__intro .how__lead { font-size: clamp(24px, 2.6vw, 46px); line-height: 1.08; letter-spacing: -.015em; font-weight: 500; font-variation-settings: 'wdth' 88; max-width: 32ch; }
.how__me { grid-column: 10 / span 3; }
.how__block { border-top: 1px solid var(--rule); padding-block: clamp(40px, 6vw, 100px); row-gap: 32px; align-items: start; }
.how__block > .label { grid-column: 1 / span 2; }
.how__prices { grid-column: 3 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.price { position: relative; padding-top: 14px; }
.price::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; transform-origin: left; }
.price__n { color: var(--dim); }
.price__p { font-size: clamp(48px, 6.5vw, 120px); line-height: .9; letter-spacing: -.04em; font-weight: 500; font-variation-settings: 'wdth' 80; margin: .15em 0 .2em; }
.price__from { display: block; font-size: 11px; letter-spacing: 0; color: var(--dim); font-weight: 400; margin-bottom: .6em; }
.price__d { max-width: 34ch; }
.how__note { grid-column: 9 / span 4; padding-top: 14px; }
.how__note p { margin-bottom: 1em; max-width: 40ch; }
.how__cta { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: .55em 1.1em; transition: background .3s, color .3s; }
@media (hover: hover) { .how__cta:hover { background: var(--fg); color: var(--bg); } }
.how__steps { grid-column: 3 / span 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); position: relative; }
.how__steps li { border-top: 1px solid var(--rule); padding-top: 14px; }
.how__steps h3 { font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; letter-spacing: -.01em; margin: .5em 0 .4em; }
.how__steps p { max-width: 32ch; }
.faq { grid-column: 3 / span 8; border-bottom: 1px solid var(--rule); }
.faq__q { border-top: 1px solid var(--rule); }
.faq__q summary { list-style: none; cursor: pointer; display: flex; gap: 1em; justify-content: space-between; align-items: center; padding-block: 1em; font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.01em; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary i { flex: none; width: 14px; height: 14px; position: relative; }
.faq__q summary i::before, .faq__q summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .45s var(--ease); }
.faq__q summary i::after { transform: rotate(90deg); }
.faq__q.is-open summary i::after { transform: rotate(0); }
.faq__q summary i::before { transition: transform .45s var(--ease); }
.faq__q.is-open summary i { transform: rotate(180deg); }
.faq__q summary i { transition: transform .6s var(--ease); }
.faq__q summary > span { transition: transform .5s var(--ease), opacity .3s; }
@media (hover: hover) { .faq:hover .faq__q:not(:hover):not(.is-open) summary > span { opacity: .45; } .faq__q summary:hover > span { transform: translateX(8px); } }
.faq__a { overflow: hidden; }
.faq__a > div { padding-bottom: 1.2em; }
.faq__a p { max-width: 62ch; margin-bottom: .8em; font-size: clamp(16px, 1.1vw, 19px); color: var(--dim); }
@media (max-width: 1099px) {
  .how__steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .how__track { display: none; }
  .how__note { grid-column: 3 / span 8; }
}
@media (max-width: 759px) {
  .how__intro, .how__block > .label, .how__prices, .how__note, .how__steps, .faq { grid-column: 1 / -1; }
  .how__me { grid-column: 1 / span 8; }
  .how__prices { grid-template-columns: 1fr; }
}

/* ---------------- portrait: aperture reveal + viewfinder HUD ---------------- */
.me { margin: 0; }
.me__frame { position: relative; aspect-ratio: var(--ar); background: var(--c); overflow: hidden; cursor: pointer; outline-offset: 4px; -webkit-tap-highlight-color: transparent; }
.me__frame img { position: absolute; left: 0; top: 0; transition: left 1.1s var(--ease), top 1.1s var(--ease), width 1.1s var(--ease), height 1.1s var(--ease), transform 1.8s var(--ease); width: 100%; height: 100%; object-fit: cover; transform: scale(1.18) rotate(-2deg); }
.me.is-open .me__frame img { transform: none; }
.js .me__frame { clip-path: polygon(50% 50%, 50% 50%, 50% 50%); }
.js .me.is-open .me__frame { clip-path: none; }
.me__grain { position: absolute; inset: -50%; pointer-events: none; opacity: 0; transition: opacity 2.5s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.me.is-bw .me__grain { opacity: .55; animation: me-grain .4s steps(3) infinite; }
@keyframes me-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-7%, 4%); } 66% { transform: translate(5%, -6%); } }
.me__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* difference blend keeps the HUD readable over bright sky and dark t-shirt alike */
.me__hud { position: absolute; inset: clamp(8px, 4%, 16px); pointer-events: none; color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; mix-blend-mode: difference; }
.me__hud > * { opacity: 0; transition: opacity .5s, transform .9s var(--ease); }
.me.is-open .me__hud > * { opacity: 1; transform: none; }
.me__c { position: absolute; width: 16px; height: 16px; border: 0 solid #fff; }
.me__c--tl { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; transform: translate(10px, 10px); }
.me__c--tr { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; transform: translate(-10px, 10px); }
.me__c--bl { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; transform: translate(10px, -10px); }
.me__c--br { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; transform: translate(-10px, -10px); }
.me__t { position: absolute; font-weight: 400; transition-delay: .25s !important; }
.me__t--tl { left: 24px; top: 1px; } .me__t--tr { right: 24px; top: 1px; }
.me__t--bl { left: 24px; bottom: 0; } .me__t--br { right: 24px; bottom: 0; }
.me figcaption { display: flex; justify-content: space-between; gap: 1em; color: var(--dim); margin-top: .7em; }
.me__hint::after { content: 'Tap to snap'; }
@media (hover: hover) and (pointer: fine) { .me__hint::after { content: 'Click to snap'; } }
.about--me .about__text { grid-column: 3 / span 6; }
.about__portrait { grid-column: 10 / span 3; grid-row: 1 / span 2; }
@media (max-width: 759px) {
  .about--me .about__text { grid-column: 1 / -1; }
  .about__portrait { grid-column: 1 / span 9; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .me__frame img, .me__hud > * { transition: none; } }

/* developed shots sit on a strip of 35mm film: black rebate, sprocket holes down both sides, edge printing */
.me__frame { transition: background-color .6s; }
/* film base is black; only the sprocket holes are lit (drawn in the edge strips) */
.me.is-bw .me__frame { background: #0d0d0d; }
.me.is-bw .me__frame img { left: 13%; top: 6%; width: 74%; height: 88%; }
.me__edge { position: absolute; top: 0; bottom: 0; width: 13%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 96' preserveAspectRatio='none'%3E%3Crect width='10' height='96' fill='%230d0d0d'/%3E%3Cpath fill='%23ecebe6' d='M3.2 3.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 15.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 27.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 39.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 51.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 63.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 75.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9ZM3.2 87.6h3.6a.9.9 0 0 1 .9.9v3a.9.9 0 0 1-.9.9h-3.6a.9.9 0 0 1-.9-.9v-3a.9.9 0 0 1 .9-.9Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transition: transform 1.1s var(--ease); }
.me__edge--l { left: 0; transform: translateX(-101%); }
.me__edge--r { right: 0; transform: translateX(101%); }
.me.is-bw .me__edge { transform: none; }
.me__print { position: absolute; left: 13%; right: 13%; padding-inline: 0; height: 6%; display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  font: 500 clamp(6px, .55vw, 8px)/1 var(--mono); letter-spacing: .12em; color: #d8d8d0; background: #0d0d0d; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.me__print > span { opacity: 0; transition: opacity .8s; }
.me__print--t { transform-origin: top; } .me__print--b { transform-origin: bottom; }
.me__print--t { top: 0; } .me__print--b { bottom: 0; }
.me.is-bw .me__print { transform: none; }
.me.is-bw .me__print > span { opacity: .85; transition-delay: 1.6s; }
.me.is-bw .me__hud > * { opacity: 0; }

/* home: prices teaser */
a.price { display: block; }
@media (hover: hover) { a.price .price__p { transition: font-variation-settings .6s var(--ease); } a.price:hover .price__p { font-variation-settings: 'wdth' 62; } }

/* how it works: as you scroll, a line draws through the steps and each one lights up, its number rolling in */
.how__steps .how__track { position: absolute; left: 0; right: 0; top: 0; height: 2px; margin-top: -1px; border: 0; padding: 0; pointer-events: none; }
.how__track i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step__n { display: block; overflow: hidden; font-size: clamp(30px, 2.8vw, 48px); line-height: .95; letter-spacing: -.04em; font-weight: 500; font-variation-settings: 'wdth' 80; margin-top: .12em; padding-bottom: .02em; }
.step__n .ch { display: inline-block; }
.js .how__steps .step { transition: opacity .9s var(--ease); }
.js .how__steps .step:not(.is-lit) { opacity: .2; }
.js .step__n .ch { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js .step h3, .js .step p { transform: translateY(18px); transition: transform 1s var(--ease); }
.js .step p { transition-delay: .08s; }
.js .step.is-lit .step__n .ch, .js .step.is-lit h3, .js .step.is-lit p { transform: none; }
@media (max-width: 759px) {
  .how__steps { grid-template-columns: 1fr; row-gap: 40px; }
  .how__steps .step { padding-left: 22px; border-top: 0; padding-top: 0; }
  .how__steps .how__track { display: block; right: auto; bottom: 0; width: 2px; height: auto; margin: 0; background: var(--rule); }
  .how__track i { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .step__n { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .how__steps .step { opacity: 1 !important; } .js .step__n .ch, .js .step h3, .js .step p { transform: none !important; } }

/* prices arrive: the rule draws across, then the figures rise out of a mask while the type widens into place
   (no counting - the numbers are always the real ones) */
.price__num { display: inline-block; overflow: hidden; padding: .06em .04em .04em 0; margin: -.06em 0 -.04em; vertical-align: top; }
.price__num .ch { display: inline-block; }
.js .how__prices .price::before { transition: transform 1.3s var(--ease); transition-delay: calc(var(--k) * 180ms); }
.js .how__prices .price__num .ch { transition: transform 1.2s var(--ease), font-variation-settings 1.8s var(--ease); transition-delay: calc(var(--k) * 180ms + var(--i) * 70ms + .25s); }
.js .how__prices .price__n, .js .how__prices .price__from, .js .how__prices .price__d { transition: opacity .9s, transform 1.1s var(--ease); transition-delay: calc(var(--k) * 180ms + .55s); }
.js .how__prices:not(.is-in) .price::before { transform: scaleX(0); }
.js .how__prices:not(.is-in) .price__num .ch { transform: translateY(105%); font-variation-settings: 'wdth' 40; }
.js .how__prices:not(.is-in) .price__n, .js .how__prices:not(.is-in) .price__from, .js .how__prices:not(.is-in) .price__d { opacity: 0; transform: translateY(12px); }
.js .how__prices.is-done .price__num .ch { transition-delay: 0s; transition-duration: .6s; }
@media (prefers-reduced-motion: reduce) { .js .how__prices .price__num .ch, .js .how__prices .price::before, .js .how__prices .price__n, .js .how__prices .price__from, .js .how__prices .price__d { transition: none !important; transform: none !important; opacity: 1 !important; font-variation-settings: inherit !important; } }

/* ---------------- enquiry sent: typed note, rubber stamp, posted off, thank-you ---------------- */
.cform > * { transition: opacity .5s, transform .7s var(--ease), filter .5s; }
.cform.is-sending > :not(.note):not(.thanks) { opacity: 0; transform: translateY(14px); filter: blur(6px); pointer-events: none; }
.cform.is-sending > :nth-child(3) { transition-delay: .05s; } .cform.is-sending > :nth-child(4) { transition-delay: .1s; }
.cform.is-sending > :nth-child(5) { transition-delay: .15s; } .cform.is-sending > :nth-child(6) { transition-delay: .2s; }
.cform.is-sending > :nth-child(7) { transition-delay: .25s; } .cform.is-sending > :nth-child(8) { transition-delay: .3s; }
.note { position: absolute; left: 0; top: clamp(10px, 2vw, 32px); width: min(100%, 400px); z-index: 2; perspective: 1400px; animation: note-in .9s var(--ease) .1s both; }
@keyframes note-in { from { transform: translateY(80px) rotate(-6deg); opacity: 0; } to { transform: rotate(-2.5deg); opacity: 1; } }
.pola { position: relative; aspect-ratio: 88 / 107; transform-style: preserve-3d; }
.pola.is-flipped { transform: rotateY(180deg); }
.pola__front, .pola__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 30px 60px -24px rgba(0,0,0,.6); }
/* instant-film proportions: thin sides and top, deep bottom border */
.pola__front { background: #f6f5f1; padding: 6% 6% 0; }
.pola { aspect-ratio: 88 / 112; }
.pola__pic { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #222; }
.pola__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the deep bottom border, with a handwritten note */
.pola__hand { position: absolute; left: 6%; right: 6%; bottom: 0; height: 21%; display: flex; align-items: center; padding-left: 4%;
  font-family: 'Bradley Hand', 'Segoe Print', 'Comic Neue', cursive; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; color: #26241f; transform: rotate(-2deg); }
.pola__back { transform: rotateY(180deg); background: #151515; outline: 1px solid rgba(236, 235, 230, .14); outline-offset: -1px; color: #ecebe6; padding: 9% 8% 0; overflow: hidden;
  background-image: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.05), transparent 60%); }
.pola__brand { position: absolute; left: 8%; bottom: 5%; color: rgba(236,235,230,.35); font-size: 9px; letter-spacing: .16em; }
.note__type { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'American Typewriter', 'Courier Prime', 'Courier New', Courier, monospace; font-size: clamp(12px, 1vw, 15px); line-height: 1.5em; }
.note__caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: currentColor; margin-left: 1px; animation: caret .8s steps(1) infinite; }
.note.is-stamped .note__caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.note__stamp { position: absolute; right: 8%; bottom: 9%; display: grid; justify-items: center; gap: 2px; padding: .35em .8em .45em;
  border: 4px double #ecebe6; color: #ecebe6; border-radius: 6px; transform: rotate(-9deg); opacity: 0; mix-blend-mode: screen;
  font-family: var(--sans); text-transform: uppercase;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='200' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='200' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.note.is-stamped .note__stamp { opacity: .9; }
.note__stamp b { font-size: clamp(26px, 3vw, 46px); line-height: .9; font-weight: 800; font-variation-settings: 'wght' 800, 'wdth' 70; letter-spacing: .04em; }
.note__stamp small { font: 500 10px/1 var(--mono); letter-spacing: .14em; }
.thanks { position: absolute; inset: 0 0 auto 0; padding-top: clamp(20px, 3vw, 48px); }
.thanks__k { color: var(--dim); margin-bottom: 18px; opacity: 0; transition: opacity .8s .1s; }
.thanks__h { margin: 0 0 .35em; font-size: clamp(48px, 7.5vw, 140px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; font-weight: 800; font-variation-settings: 'wght' 800, 'wdth' 62; }
.thanks__h .word { display: inline-block; overflow: hidden; padding-bottom: .04em; vertical-align: top; }
.thanks__h .ch { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.thanks__s { max-width: 46ch; font-size: clamp(17px, 1.3vw, 22px); opacity: 0; transform: translateY(14px); transition: opacity .9s .6s, transform 1.1s .6s var(--ease); }
.thanks__s a { text-decoration: underline; text-underline-offset: .15em; }
.thanks__again { margin-top: 28px; border: 1px solid currentColor; border-radius: 999px; padding: .7em 1.2em; opacity: 0; transition: opacity .8s .9s, background .3s, color .3s; }
@media (hover: hover) { .thanks__again:hover { background: var(--fg); color: var(--bg); } }
.thanks.is-in .thanks__k, .thanks.is-in .thanks__again { opacity: 1; }
.thanks.is-in .ch { transform: none; }
.thanks.is-in .thanks__s { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .note { animation: none; } .thanks .ch, .thanks__s, .thanks__k, .thanks__again { transition: none !important; } }

/* ---------------- kind words: testimonial carousel (home) + quote on client pages ---------------- */
.kind { border-top: 1px solid var(--rule); padding-block: clamp(64px, 9vw, 160px); row-gap: 28px; align-items: start; }
.kind > .label { grid-column: 1 / span 2; }
.kind__h { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 0 0 clamp(16px, 3vw, 56px); text-transform: uppercase; font-weight: 800; line-height: .8; letter-spacing: -.02em; white-space: nowrap; font-size: 15vw; }
.kind__h .word { display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.kind__h .ch { display: inline-block; font-variation-settings: 'wght' 800, 'wdth' 125; }
.js .kind__h .ch { transform: translateY(105%); }
.kind__h.is-in .ch { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.kind__h.is-in .word + .word .ch { transition-delay: calc(var(--i) * 40ms + 160ms); }
.instant.kind__h .ch { transition: none !important; }
.kind__stage { grid-column: 3 / span 7; display: grid; }
.kind__slide { grid-area: 1 / 1; margin: 0; visibility: hidden; transition: visibility 0s .8s; }
.kind__slide.is-on { visibility: visible; transition: none; }
.kind__q { margin: 0; }
.kind__q p { margin: 0; font-size: clamp(34px, 4.6vw, 84px); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; font-variation-settings: 'wdth' 80; text-wrap: balance; }
.kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.kw > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease-io); }
.kind__slide.is-on .kw > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--k) * 30ms + .15s); }
.kind__slide.is-out .kw > span { transform: translateY(-105%); transition-delay: calc(var(--k) * 15ms); }
.kind__by { margin-top: 1.6em; color: var(--dim); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); }
.kind__slide.is-on .kind__by { opacity: 1; transform: none; transition: opacity .6s .45s, transform .8s .45s var(--ease); }
.kind__by a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.kind__by a:hover { background-size: 100% 1px; }
.kind__pics { grid-column: 10 / span 3; grid-row: 2 / span 2; display: grid; aspect-ratio: 4 / 5; }
.kind__pic { grid-area: 1 / 1; overflow: hidden; background: var(--c); clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease-io); }
.kind__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.kind__pic.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.kind__pic.is-on img { transform: none; }
.kind__pic.is-out { clip-path: inset(0 0 100% 0); }
.kind__nav { grid-column: 3 / span 7; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-top: clamp(20px, 3vw, 40px); }
.kind__count { font-variant-numeric: tabular-nums; min-width: 5.5em; }
.kind__bar { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.kind__bar > i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.kind__nav button { color: var(--dim); transition: color .3s; }
@media (hover: hover) { .kind__nav button:hover { color: var(--fg); } }
@media (max-width: 759px) {
  .kind > .label, .kind__stage, .kind__nav { grid-column: 1 / -1; }
  .kind__pics { grid-column: 1 / span 6; grid-row: auto; order: 3; }
  .kind__nav { order: 4; }
}
@media (prefers-reduced-motion: reduce) { .kw > span, .kind__by, .kind__pic, .kind__pic img { transition: none !important; } }
/* a client's own quote, under their write-up */
/* client page testimonial: an inverted panel framed by viewfinder corners that focus in */
.cq { position: relative; column-span: all; margin: 2em 0 1.8em; padding: clamp(26px, 3.4vw, 56px) clamp(22px, 3vw, 52px) clamp(22px, 2.6vw, 44px); background: var(--fg); color: var(--bg); overflow: hidden; break-inside: avoid; }
.cq__label { display: block; font-size: 11px; letter-spacing: .02em; margin-bottom: 1.4em; opacity: .6; }
.cq__mark { position: absolute; right: .06em; top: -.2em; font-size: clamp(180px, 22vw, 380px); line-height: 1; font-weight: 800; font-variation-settings: 'wght' 800, 'wdth' 125; opacity: .09; pointer-events: none; transform: translateY(30%); transition: transform 1.6s var(--ease); }
.cq blockquote { margin: 0; position: relative; }
.phead__text .cq p { margin: 0; max-width: 20ch; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; font-variation-settings: 'wdth' 80; text-wrap: balance; }
.cq .kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.cq .kw > span { display: inline-block; }
.js .cq .kw > span { transform: translateY(105%); }
.cq.is-in .kw > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--k) * 35ms + .25s); }
.cq.is-in .cq__mark { transform: none; }
.cq figcaption { margin-top: 1.6em; font-size: 12px; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.cq figcaption::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.js .cq figcaption { opacity: 0; transform: translateY(8px); }
.cq.is-in figcaption { opacity: 1; transform: none; transition: opacity .6s .7s, transform .8s .7s var(--ease); }
.cq__c { position: absolute; width: 18px; height: 18px; --e: 1.5px solid currentColor; transition: transform 1s var(--ease), opacity .6s; }
.cq__c:nth-child(1) { left: 10px; top: 10px; border-left: var(--e); border-top: var(--e); }
.cq__c:nth-child(2) { right: 10px; top: 10px; border-right: var(--e); border-top: var(--e); }
.cq__c:nth-child(3) { left: 10px; bottom: 10px; border-left: var(--e); border-bottom: var(--e); }
.cq__c:nth-child(4) { right: 10px; bottom: 10px; border-right: var(--e); border-bottom: var(--e); }
.js .cq__c { opacity: 0; }
.js .cq__c:nth-child(1) { transform: translate(-14px, -14px); }
.js .cq__c:nth-child(2) { transform: translate(14px, -14px); }
.js .cq__c:nth-child(3) { transform: translate(-14px, 14px); }
.js .cq__c:nth-child(4) { transform: translate(14px, 14px); }
.cq.is-in .cq__c { opacity: 1; transform: none; }
.instant.cq *, .instant.cq .kw > span { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .cq *, .cq .kw > span { transition: none !important; transform: none !important; opacity: initial; } }

/* "photos below" cue */
.cue { position: fixed; z-index: 40; right: calc(var(--pad) - 14px); bottom: calc(clamp(14px, 2.4vw, 32px) + env(safe-area-inset-bottom)); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(24px) scale(.85) rotate(-40deg); pointer-events: none; transition: opacity .5s, transform 1s var(--ease); }
.cue.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cue__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: cue-spin 16s linear infinite; }
.cue__ring text { font: 500 8.6px var(--mono); letter-spacing: .04em; fill: currentColor; }
@keyframes cue-spin { to { transform: rotate(360deg); } }
.cue__btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .4s, color .4s, transform .6s var(--ease); }
.cue__arrow { width: 11px; height: 16px; animation: cue-drop 2.2s var(--ease-io) infinite; }
@keyframes cue-drop { 0%, 15% { transform: translateY(-140%); } 45%, 70% { transform: none; } 100% { transform: translateY(160%); } }
@media (hover: hover) {
  .cue:hover .cue__btn { background: var(--fg); color: var(--bg); transform: scale(1.12); }
  .cue:hover .cue__ring { animation-duration: 5s; }
}
@media (max-width: 759px) { .cue { width: 84px; height: 84px; right: 12px; } }
/* the badge does this job now */
.js .hero__cta { display: none; }
@media (prefers-reduced-motion: reduce) { .cue__ring, .cue__arrow { animation: none; } .cue { transition: opacity .3s; transform: none; } }

/* footer back-to-top: the same badge, sat on the footer's rule like a seal */
.contact__foot { position: relative; }
.contact__foot > .cue--top { grid-column: auto; position: absolute; }
.cue--top { top: 0; bottom: auto; right: calc(var(--pad) - 14px); translate: 0 -50%; z-index: 1;
  opacity: 1; transform: none; pointer-events: auto; color: inherit; background: var(--fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cue--top .cue__btn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; rotate: 180deg; }
.cue--top .cue__ring { animation-duration: 20s; }
@media (hover: hover) { .cue--top:hover .cue__btn { background: var(--bg); color: var(--fg); } }
@media (max-width: 759px) { .contact__foot > .cue--top { position: relative; }
  .cue--top { top: auto; right: auto; translate: none; justify-self: end; margin-top: 6px; }
  .contact__foot > .cue--top { grid-column: 1 / -1; } }
.contact__foot > .cue--top::after { display: none; }
