/* ==========================================================================
   Vanja Milovanović — "Day / Night"
   paper #fff · ink #000 · yolk #F4CA22
   ========================================================================== */

@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-ext-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; src: url('/fonts/instrument-sans-latin-ext-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; src: url('/fonts/instrument-sans-latin-ext-600-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --yolk: #f4ca22;
  --graphite: #141414;
  --bone: #ece8e0;
  --mute-day: #5b5751;   /* 7.2:1 on paper */
  --mute-night: #a8a29a; /* 8.4:1 on ink */

  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --m: clamp(18px, 4.2vw, 72px);           /* outer margin */
  --g: clamp(12px, 1.8vw, 28px);           /* gutter */
  --sec: clamp(88px, 12vw, 200px);         /* section padding */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 17px/1.55 var(--f-sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--yolk); color: #000; padding: 10px 14px; font: 400 14px var(--f-display);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Grounds ---------------------------------------------------------------- */
.ground-day   { background: var(--paper); color: var(--graphite); --mute: var(--mute-day); }
.ground-night { background: var(--ink);   color: var(--bone);     --mute: var(--mute-night); }
.ground-yolk  { background: var(--yolk);  color: #000;            --mute: #3d3410; }

/* The eye-bar: Vanja's poster censor bar, reused as the label system ---- */
.bar {
  display: inline-block;
  background: var(--yolk); color: #000;
  font: 400 12px/1 var(--f-display);
  letter-spacing: .24em; text-transform: uppercase;
  padding: .62em .9em .55em .95em;
}
.bar span { margin-right: .9em; }
.ground-yolk .bar { background: #000; color: var(--yolk); }
.bar--lg { font-size: clamp(12px, 1.05vw, 17px); letter-spacing: .32em; padding: .75em 1.2em .68em 1.3em; }

/* Nav --------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--m);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.nav a { pointer-events: auto; text-decoration: none; }
.nav__mark { font: 400 22px/1 var(--f-display); letter-spacing: .04em; }
.nav__mark span { display: inline-block; margin: 0 .08em; transform: translateY(-.02em); }
.nav ul { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav ul a {
  display: inline-block; padding: 8px 0;
  font: 400 13px/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav ul a:hover, .nav ul a:focus-visible { background-size: 100% 1px; }

/* Hero: paper | ink ---------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: max(100svh, 640px);
  overflow: hidden;
}
.hero__half { position: relative; }
.hero__day   { background: var(--paper); color: var(--graphite); }
.hero__night { background: var(--ink);   color: var(--bone); }

.hero__title {
  position: absolute; left: 0; right: 0; /* no z-index: keeps the name blending with both halves */
  top: clamp(84px, 13vh, 150px);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.hero__name {
  color: #fff; mix-blend-mode: difference;
  font: 400 clamp(64px, 13.4vw, 260px)/.82 var(--f-display);
  text-transform: uppercase; text-align: center;
  letter-spacing: -.004em;
}
.hero__name span { display: block; }
.hero__name span + span { margin-top: .14em; } /* room for the accent on Ć */
.hero__role { margin-top: clamp(18px, 2.2vw, 36px); }

.hero__lineup {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(70px, 10vh, 120px);
  /* room left under the name (which scales with width) and above the bottom label, at the drawing's 2.1:1 ratio */
  width: min(80%, calc((100svh - max(84px, 13vh) - 1.78 * min(13.4vw, 260px) - 100px - max(70px, 10vh)) * 2.1)); min-width: 240px;
}
.hero__portrait {
  position: absolute; right: 0; bottom: 0;
  height: min(58vh, 44vw); width: auto; max-width: 100%;
}
.hero__side {
  position: absolute; bottom: 26px; left: var(--m); z-index: 3;
  font-size: 14px; color: var(--mute-day);
  display: flex; gap: .8em; align-items: baseline;
}
.hero__night .hero__side { left: auto; right: var(--m); color: var(--mute-night); text-align: right; flex-direction: row-reverse; }
.hero__k { font: 400 13px var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--graphite); }
.hero__night .hero__k { color: var(--bone); }

/* Intro ---------------------------------------------------------------- */
.intro {
  padding: var(--sec) var(--m) calc(var(--sec) * .6);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
}
.intro__statement {
  grid-column: 2 / span 10;
  font: 400 clamp(28px, 3.5vw, 58px)/1.1 var(--f-serif);
  letter-spacing: -.012em;
  text-indent: 2.4em;
  max-width: 30ch;
  text-wrap: pretty;
}
.intro__aside {
  grid-column: 8 / span 5; margin-top: 2.2em;
  font-size: 15px; color: var(--mute);
}

/* Contents ----------------------------------------------------------- */
.toc { padding: calc(var(--sec) * .4) var(--m) var(--sec); position: relative; }
.toc__h { font: 400 14px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }
.toc__key { position: absolute; right: var(--m); top: calc(var(--sec) * .4); font-size: 13px; color: var(--mute); display: flex; gap: .5em; align-items: center; }
.toc__key .toc__reg + .toc__reg, .toc__key span:nth-of-type(2) { margin-left: 1em; }
.toc__list { margin-top: 28px; border-top: 2px solid currentColor; counter-reset: toc; }
.toc__item a {
  position: relative;
  display: grid; align-items: baseline;
  grid-template-columns: clamp(44px, 6vw, 96px) auto minmax(24px, 1fr) auto 18px;
  column-gap: clamp(10px, 1.4vw, 22px);
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.toc__num { font: 400 clamp(15px, 1.3vw, 20px)/1 var(--f-display); letter-spacing: .1em; }
.toc__title { font: 400 clamp(30px, 4vw, 68px)/1 var(--f-serif); letter-spacing: -.015em; transition: transform .45s var(--ease); }
.toc__lead { border-bottom: 2px dotted currentColor; transform: translateY(-.35em); opacity: .55; }
.toc__disc { font-size: 15px; color: var(--mute); }
.toc__reg { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #000; align-self: center; display: inline-block; }
.toc__item--night .toc__reg, .toc__reg--night { background: #000; }
.toc__item--yolk .toc__reg { background: var(--yolk); }
.toc__thumb {
  position: absolute; z-index: 2; right: clamp(120px, 22vw, 360px); top: 50%;
  width: clamp(120px, 12vw, 190px);
  transform: translateY(-50%) rotate(-4deg) scale(.92);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .45s var(--ease);
}
.toc__thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.toc__item:nth-child(even) .toc__thumb { transform: translateY(-50%) rotate(3deg) scale(.92); }
@media (hover: hover) {
  .toc__item a:hover .toc__title, .toc__item a:focus-visible .toc__title { transform: translateX(.35em); font-style: italic; }
  .toc__item a:hover .toc__thumb, .toc__item a:focus-visible .toc__thumb { opacity: 1; transform: translateY(-50%) rotate(-4deg) scale(1); }
  .toc__item:nth-child(even) a:hover .toc__thumb, .toc__item:nth-child(even) a:focus-visible .toc__thumb { transform: translateY(-50%) rotate(3deg) scale(1); }
}

/* Chapter frame ------------------------------------------------------ */
.chap { position: relative; padding: var(--sec) var(--m); }
.chap__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  align-items: end; margin-bottom: clamp(48px, 7vw, 120px);
}
.chap__head .bar { grid-column: 1 / -1; justify-self: start; margin-bottom: clamp(18px, 2vw, 30px); }
.chap__title {
  grid-column: 1 / span 7;
  font: 400 clamp(46px, 7.4vw, 136px)/.92 var(--f-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.chap__tr { display: block; font-style: italic; font-size: .36em; letter-spacing: 0; margin-top: .4em; color: var(--mute); }
.chap__text { grid-column: 8 / span 5; font-size: 17px; max-width: 44ch; }
.chap__meta { grid-column: 8 / span 5; margin-top: 1em; font-size: 13px; letter-spacing: .02em; color: var(--mute); }

/* Figures & captions */
.art img { width: 100%; }
.art figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.art__title { font: italic 400 clamp(19px, 1.5vw, 24px)/1.15 var(--f-serif); }
.art__note { font-size: 13px; color: var(--mute); }

/* Free composition grid used by several spreads */
.scatter, .sky, .chars, .colour {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g); row-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* 01 Doodles */
.s-hug     { grid-column: 1 / span 3; grid-row: 1; align-self: end; width: 78%; justify-self: end; }
.s-nyc     { grid-column: 4 / span 6; grid-row: 1 / span 2; }
.s-rocket  { grid-column: 10 / span 3; grid-row: 1; width: 82%; justify-self: end; margin-top: -4vw; }
.s-poker   { grid-column: 1 / span 3; grid-row: 2; }
.s-hydrant { grid-column: 10 / span 3; grid-row: 2; align-self: end; }
.s-tug     { grid-column: 6 / span 4; grid-row: 3; margin-top: -2vw; }

/* 02 Portraits: paper → ink hinge */
.chap--hinge { padding-bottom: 0; }
.hinge { margin-left: auto; width: min(100%, 860px); }
.hinge img { width: 100%; }
.chap--portraits { padding-top: 22px; }
.hinge__cap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.hinge__cap .art__note { color: var(--mute); }
.duo {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  margin-top: clamp(64px, 10vw, 170px);
}
.duo > :first-child { grid-column: 1 / span 6; }
.duo__b { grid-column: 7 / span 6; margin-top: clamp(80px, 16vw, 300px); }
.duo .art figcaption { padding-left: 4%; }
.prints {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(20px, 5vw, 90px);
  margin-top: clamp(80px, 12vw, 200px);
}
.prints .art:nth-child(1) { width: 22%; }
.prints .art:nth-child(2) { width: 27%; }
.prints .art:nth-child(3) { width: 19%; margin-bottom: 6vw; }

/* 03 Poslednji kvadrat neba */
.chap--sky { overflow: hidden; }
.sky__jet {
  position: absolute; top: clamp(60px, 7vw, 120px); left: 0;
  width: clamp(160px, 22vw, 360px);
  transform: translateX(calc(var(--p, .5) * 100vw - 50%));
  will-change: transform;
}
.sky__pilot  { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.sky__falcon { grid-column: 9 / span 3; grid-row: 1; align-self: center; }
.sky__church { grid-column: 8 / span 5; grid-row: 2; align-self: end; }
.sky__boy    { grid-column: 3 / span 2; grid-row: 3; align-self: end; }
.sky__gran   { grid-column: 7 / span 3; grid-row: 3; margin-top: 3vw; }

/* 04 Characters */
.chars__main { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.chars__a    { grid-column: 7 / span 6; grid-row: 1; }
.chars__b    { grid-column: 7 / span 3; grid-row: 2; }
.chars__c    { grid-column: 10 / span 3; grid-row: 2; margin-top: 6vw; }

/* 05 Illustrations */
.c-roses   { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.c-toucan  { grid-column: 7 / span 3; grid-row: 1; }
.c-lotus   { grid-column: 10 / span 3; grid-row: 1; margin-top: 7vw; }
.c-blossom { grid-column: 7 / span 3; grid-row: 2; }
.c-hearts  { grid-column: 10 / span 3; grid-row: 2; margin-top: 4vw; }
.c-whale   { grid-column: 2 / span 6; grid-row: 3; margin-top: 4vw; }
.c-flame   { grid-column: 10 / span 2; grid-row: 3; }
.c-duo     { grid-column: 4 / span 3; grid-row: 4; }
.c-ram     { grid-column: 8 / span 2; grid-row: 4; align-self: end; }
.c-violet  { grid-column: 11 / span 2; grid-row: 4; margin-top: -3vw; }

/* 06 Posters */
.posters {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 56px);
  align-items: start;
}
.posters .art:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); }
.posters .art:nth-child(3) { margin-top: clamp(16px, 2.5vw, 40px); }
.posters .art__note { font: 400 12px/1.3 var(--f-display); letter-spacing: .2em; text-transform: lowercase; color: #000; margin-top: 4px; }

/* 07 Brand identities */
.brands {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g); row-gap: clamp(64px, 9vw, 150px);
}
.brand { display: grid; gap: 12px; align-content: start; }
.brand img { width: 100%; height: auto; object-fit: cover; }
.brand__txt { padding-top: 10px; }
.brand h3 { font: italic 400 clamp(26px, 2.4vw, 38px)/1.05 var(--f-serif); }
.brand__txt p { font-size: 15px; color: var(--mute); max-width: 40ch; margin-top: 6px; }
.brand--a { grid-column: 1 / span 7; grid-template-columns: 0.8fr 1fr; }
.brand--a .brand__hero  { grid-row: 1 / span 2; aspect-ratio: 238 / 494; height: 100%; }
.brand--a .brand__extra { aspect-ratio: 1; }
.brand--a .brand__extra2 { aspect-ratio: 242 / 246; width: 72%; }
.brand--a .brand__txt { grid-column: 1 / -1; }
.brand--b { grid-column: 9 / span 4; grid-template-columns: 1fr 1fr; margin-top: 10vw; }
.brand--b .brand__hero  { grid-column: 1 / -1; aspect-ratio: 316 / 357; }
.brand--b .brand__extra { grid-column: 2; grid-row: 2; aspect-ratio: 353 / 330; margin-top: -40%; }
.brand--b .brand__txt { grid-column: 1; grid-row: 2; }
.brand--c { grid-column: 1 / span 5; grid-template-columns: 1fr 110px; align-items: end; }
.brand--c .brand__hero { grid-column: 1 / -1; object-fit: contain; }
.brand--c .brand__mark { grid-column: 2; grid-row: 2; }
.brand--c .brand__txt { grid-column: 1; grid-row: 2; }
.brand--d { grid-column: 6 / span 7; margin-top: -2vw; }
.brand--d .brand__hero { object-fit: contain; }

/* 08 Logofolio */
.logos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: currentColor; border: 1px solid currentColor;
}
.logos li { background: var(--paper); aspect-ratio: 16 / 10; padding: 7% 12%; min-width: 0; }
.logos img { width: 100%; height: 100%; object-fit: contain; }

/* About ---------------------------------------------------------------- */
.about {
  padding: var(--sec) var(--m) calc(var(--sec) * .7);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: clamp(40px, 6vw, 90px);
}
.about__photo { grid-column: 1 / span 3; }
.about__photo img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.about__main { grid-column: 5 / span 8; }
.about__h { font: 400 clamp(44px, 6.6vw, 112px)/.95 var(--f-serif); letter-spacing: -.02em; margin-top: 24px; }
.about__lede { font: 400 clamp(20px, 1.7vw, 26px)/1.4 var(--f-serif); max-width: 40ch; margin-top: 28px; color: var(--bone); }
.about__cols { grid-column: 5 / span 8; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--g) clamp(28px, 4vw, 72px); }
.about h3 { font: 400 12px/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--yolk); margin: 0 0 14px; }
.about h3:not(:first-child) { margin-top: 32px; }
.about__cols p { font-size: 15px; color: var(--bone); }
.cvlist li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 10px 0; border-top: 1px solid #2b2a28; font-size: 15px; }
.cvlist__o { font-weight: 600; }
.cvlist__r { grid-column: 1; grid-row: 2; color: var(--mute); font-size: 14px; }
.cvlist__y { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; color: var(--mute); font-size: 14px; }

/* Footer --------------------------------------------------------------- */
.foot { padding: clamp(64px, 9vw, 140px) var(--m) 28px; border-top: 1px solid #2b2a28; }
.foot__mail {
  display: block; margin-top: clamp(24px, 3vw, 44px);
  font: 400 clamp(44px, 8.6vw, 172px)/.9 var(--f-display);
  letter-spacing: -.005em; text-decoration: none; color: var(--bone);
  overflow-wrap: anywhere;
  transition: color .25s;
}
.foot__mail span { color: var(--yolk); }
.foot__mail:hover, .foot__mail:focus-visible { color: var(--yolk); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: clamp(40px, 6vw, 90px); font-size: 14px; color: var(--mute); }
.foot__links { display: flex; gap: 28px; }
.foot__links a { color: var(--bone); text-decoration: none; border-bottom: 1px solid currentColor; padding: 6px 0 2px; }
.foot__links a:hover { color: var(--yolk); }
.foot__small { margin-top: 28px; font-size: 12px; color: var(--mute); }

/* Reveal (JS only, motion-safe) --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .art, .js .brand, .js .hinge { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .js .is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky__jet { transform: translateX(calc(50vw - 50%)); }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ============================== Small screens ============================== */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .nav { padding: 14px var(--m); }
  .nav ul { gap: 18px; }
  .nav ul a { font-size: 12px; letter-spacing: .18em; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero__day { min-height: clamp(520px, 92vw + 230px, 760px); }
  .hero__night { min-height: 92vw; }
  .hero__title { top: 96px; }
  .hero__name { font-size: 17.5vw; }
  .hero__lineup { bottom: 64px; left: 6%; right: 6%; width: 88%; transform: none; }
  .hero__portrait { position: absolute; right: 0; bottom: 0; height: auto; width: 100%; max-height: none; }
  .hero__side { bottom: 20px; font-size: 13px; }
  .hero__night .hero__side { top: 20px; bottom: auto; }

  .intro { display: block; }
  .intro__statement { text-indent: 1.4em; font-size: clamp(26px, 7.2vw, 40px); }
  .intro__aside { margin-top: 1.6em; }

  .toc__key { display: none; }
  .toc__item a { grid-template-columns: 34px 1fr 64px; row-gap: 4px; }
  .toc__num { grid-row: 1; }
  .toc__title { grid-column: 2; font-size: clamp(26px, 7.4vw, 40px); }
  .toc__lead, .toc__reg { display: none; }
  .toc__disc { grid-column: 2; grid-row: 2; font-size: 14px; }
  .toc__thumb { position: static; grid-column: 3; grid-row: 1 / span 2; width: 64px; opacity: 1; transform: none !important; align-self: center; }

  .chap__head { display: block; }
  .chap__head .bar { margin-bottom: 18px; }
  .chap__text { margin-top: 22px; font-size: 16px; }

  .scatter, .sky, .chars, .colour { grid-template-columns: repeat(6, 1fr); }
  .scatter > *, .sky > *, .chars > *, .colour > * { grid-row: auto !important; margin-top: 0 !important; width: 100% !important; }
  .s-nyc { grid-column: 1 / -1; }
  .s-rocket { grid-column: 1 / span 3; }
  .s-hug { grid-column: 4 / span 3; }
  .s-poker { grid-column: 1 / span 4; }
  .s-hydrant { grid-column: 3 / span 4; }
  .s-tug { grid-column: 1 / span 5; }

  .hinge { width: 100%; }
  .duo { display: block; }
  .duo__b { margin-top: 48px; }
  .prints { flex-wrap: wrap; align-items: flex-start; }
  .prints .art:nth-child(1), .prints .art:nth-child(3) { width: calc(50% - 12px); margin-bottom: 0; }
  .prints .art:nth-child(2) { width: 80%; order: -1; }

  .sky__jet { top: 40px; }
  .sky__pilot { grid-column: 1 / -1; }
  .sky__falcon { grid-column: 1 / span 3; }
  .sky__church { grid-column: 1 / -1; }
  .sky__boy { grid-column: 1 / span 2; align-self: end; }
  .sky__gran { grid-column: 3 / span 4; }

  .chars__main, .chars__a { grid-column: 1 / -1; }
  .chars__b { grid-column: 1 / span 3; }
  .chars__c { grid-column: 4 / span 3; }

  .c-roses, .c-whale { grid-column: 1 / -1; }
  .c-toucan, .c-blossom, .c-duo { grid-column: 1 / span 3; }
  .c-lotus, .c-hearts, .c-ram { grid-column: 4 / span 3; }
  .c-flame { grid-column: 2 / span 2; }
  .c-violet { grid-column: 4 / span 2; }

  .posters { grid-template-columns: 1fr; }
  .posters .art { width: 82%; margin-top: 0 !important; }
  .posters .art:nth-child(2) { justify-self: end; }

  .brands { display: block; }
  .brand { margin: 0 0 72px !important; }
  .brand--b .brand__extra { margin-top: 0; }
  .brand--a { grid-template-columns: 1fr 1fr; }

  .logos li { padding: 10%; }

  .about { display: block; }
  .about__photo img { max-width: 180px; }
  .about__main { margin-top: 36px; }
  .about__cols { grid-template-columns: 1fr; margin-top: 48px; }

  .foot__mail { font-size: 15.5vw; }
  .foot__row { flex-direction: column; }
}
.nw { white-space: nowrap; }

/* =============================== Batch 2 =============================== */
.more {
  display: inline-flex; gap: .5em; align-items: baseline;
  font: 400 13px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0 6px; border-bottom: 2px solid var(--yolk);
  transition: gap .3s var(--ease);
}
.more:hover, .more:focus-visible { gap: 1em; }
.ground-yolk .more { border-color: #000; }
.chap__head .more { grid-column: 8 / span 5; justify-self: start; margin-top: 1.2em; }
.about__cta { grid-column: 5 / span 8; }
.nav [aria-current] { background-size: 100% 1px; }

/* Project header */
.phead {
  padding: clamp(120px, 16vw, 230px) var(--m) clamp(64px, 9vw, 150px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end;
}
.crumb { grid-column: 1 / -1; display: flex; gap: .8em; align-items: center; font: 400 13px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; margin-bottom: clamp(22px, 3vw, 44px); }
.crumb a { text-decoration: none; border-bottom: 1px solid currentColor; padding: 6px 0 3px; }
.phead__title {
  grid-column: 1 / span 8;
  font: 400 clamp(56px, 10.5vw, 196px)/.88 var(--f-serif); letter-spacing: -.03em; text-wrap: balance;
}
.phead__info { grid-column: 9 / span 4; }
.phead__info .chap__text { max-width: 42ch; }
.pindex { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; }
.pindex a { font: italic 400 20px/1.2 var(--f-serif); text-decoration-color: var(--yolk); text-decoration-thickness: 2px; }

/* Rows of work */
.pbody { padding: 0 var(--m) clamp(40px, 6vw, 100px); }
.pbody--hinge { padding-bottom: 0; }
.pbody > .hinge__cap { padding-top: 22px; }
.pbody .hinge__cap + .prow { margin-top: clamp(64px, 10vw, 170px); }
.prow {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g);
  align-items: var(--y, start);
  margin-bottom: clamp(56px, 9vw, 160px);
}
.pi { grid-column: var(--c); grid-row: 1; margin-top: var(--t, 0); }
.psub { margin: clamp(40px, 6vw, 100px) 0 clamp(40px, 5vw, 80px); }

/* Posters page */
.pposter { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: center; margin-bottom: clamp(80px, 12vw, 200px); }
.pposter__img { grid-column: 2 / span 5; }
.pposter__txt { grid-column: 8 / span 5; }
.pposter--r .pposter__img { grid-column: 7 / span 5; grid-row: 1; }
.pposter--r .pposter__txt { grid-column: 1 / span 5; grid-row: 1; text-align: right; }
.pposter__n { font: 400 13px var(--f-display); letter-spacing: .24em; }
.pposter__t { font: 400 clamp(48px, 7vw, 120px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: .01em; margin-top: 16px; }
.pposter__tag { display: inline-block; margin-top: 22px; background: #000; color: var(--yolk); font: 400 clamp(13px, 1.1vw, 17px)/1 var(--f-display); letter-spacing: .2em; padding: .7em 1em .6em; }

/* Brand case studies */
.pbrand { padding-top: clamp(64px, 9vw, 150px); border-top: 2px solid currentColor; }
.pbrand:first-child { border-top: 0; padding-top: 0; }
.pbrand__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end; margin-bottom: clamp(48px, 7vw, 110px); }
.pbrand__name { grid-column: 1 / span 6; font: italic 400 clamp(44px, 6.4vw, 110px)/.95 var(--f-serif); letter-spacing: -.02em; }
.pbrand__line { grid-column: 8 / span 5; max-width: 44ch; }
.swatches { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.swatches li { display: flex; flex-direction: column; gap: 6px; }
.swatches span { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Logofolio page */
.logos--page li { aspect-ratio: 4 / 3; padding: 8% 12% 6%; }
.logos--page figure { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.logos--page img { min-height: 0; }
.logos--page figcaption { font-size: 13px; color: var(--mute); text-align: center; }

/* Prev / next */
.pnext { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8d4cc; }
.pnext__a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; justify-content: flex-end;
  min-height: clamp(220px, 26vw, 420px); padding: clamp(28px, 4vw, 60px) var(--m);
  text-decoration: none;
}
.pnext__next { align-items: flex-end; text-align: right; }
.pnext__k { font: 400 13px var(--f-display); letter-spacing: .24em; text-transform: uppercase; position: relative; z-index: 1; }
.pnext__t { font: 400 clamp(34px, 4.6vw, 80px)/.95 var(--f-serif); letter-spacing: -.02em; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.pnext__img { position: absolute; left: var(--m); top: 50%; width: clamp(110px, 12vw, 200px); transform: translateY(-50%) rotate(-4deg); }
.pnext__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pnext__a:hover .pnext__t, .pnext__a:focus-visible .pnext__t { font-style: italic; }
.pnext__prev:hover .pnext__t { transform: translateX(-.15em); }
.pnext__next:hover .pnext__t { transform: translateX(.15em); }

/* About page */
.about--page { padding-top: clamp(120px, 15vw, 220px); }
.about--page .about__photo img { max-width: 320px; }
.about__k { font: 400 12px/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase; color: var(--yolk); margin: 0 0 14px; }
.about__k:not(:first-child) { margin-top: 32px; }
.about__contact { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; }
.about__contact .more { text-transform: none; letter-spacing: .06em; font-size: 16px; }
.about-work { padding: var(--sec) var(--m); }
.aw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--g); margin-top: 32px; }
.aw a { display: block; text-decoration: none; }
.aw__img { display: block; overflow: hidden; margin-bottom: 12px; }
.aw__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.aw a:hover img { transform: scale(1.04); }
.aw__t { font: 400 clamp(20px, 1.8vw, 28px)/1.1 var(--f-serif); }
.nf { min-height: 80svh; align-content: end; }
.nf .bar, .nf .phead__title, .nf .chap__text { grid-column: 1 / -1; justify-self: start; }
.nf .chap__text { margin-top: 28px; }

@media (max-width: 899px) {
  .chap__head .more { margin-top: 18px; }
  .phead { display: block; padding-top: 110px; }
  .phead__info { margin-top: 28px; }
  .prow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; margin-bottom: 56px; }
  .pi { grid-column: auto / span 2; grid-row: auto; margin-top: 0; }
  .pi--half { grid-column: auto / span 1; }
  .pposter { display: block; }
  .pposter__img { width: 88%; }
  .pposter--r .pposter__img { margin-left: auto; }
  .pposter__txt, .pposter--r .pposter__txt { text-align: left; margin-top: 24px; }
  .pbrand__head { display: block; }
  .pbrand__line { margin-top: 18px; }
  .logos--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--page li:last-child { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
  .pnext { grid-template-columns: 1fr; }
  .pnext__img { width: 96px; left: auto; right: var(--m); top: 28px; transform: rotate(4deg); }
  .pnext__next .pnext__img { left: var(--m); right: auto; }
  .aw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.aw__img--contain { outline: 1px solid currentColor; outline-offset: -1px; }
.aw__img--contain img { object-fit: contain; padding: 14%; }
.about__alias { margin-top: 18px; font-size: 15px; color: var(--mute); }
.about__alias span { font: italic 400 1.35em var(--f-serif); color: var(--bone); }

/* =============================== Finishing pass =============================== */
/* rhythm: no doubled gaps where two sections of the same ground meet */
.toc { padding-bottom: calc(var(--sec) * .55); }
.chap.ground-day + .chap.ground-day { padding-top: calc(var(--sec) * .6); }
.chap--doodles { padding-bottom: calc(var(--sec) * .6); }
.chap.ground-day + .chap.ground-day::before {
  content: ''; position: absolute; top: 0; left: var(--m); right: var(--m); border-top: 1px solid currentColor; opacity: .9;
}
.chap--logos { padding-bottom: calc(var(--sec) * .8); }
/* project pages end on the work, not on padding */
.pbody > .prow:last-child, .pbody > .pposter:last-child, .pbody > .pbrand:last-child .prow:last-child { margin-bottom: 0; }
.pbody:last-of-type { padding-bottom: clamp(72px, 9vw, 150px); }
.nav { transition: transform .4s var(--ease); }
.nav--away { transform: translateY(-110%); }

/* Originals pass */
.logos--page figcaption a { color: var(--ink); text-underline-offset: 3px; }
.nav--yolk { mix-blend-mode: normal; color: #000; }
