/* MacArtha — an intellectual property house */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0b0a;
  --coal: #1a1917;
  --paper: #f2eee6;
  --stone: #d8d1c3;
  --bone: #efeae0;
  --brass: #a88b5c;

  --bg: var(--ink);
  --fg: var(--bone);
  --dim: rgba(239, 234, 224, .56);
  --rule: rgba(239, 234, 224, .18);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: clip;
}
body[data-tone="paper"] { --bg: var(--paper); --fg: #12110f; --dim: rgba(18, 17, 15, .58); --rule: rgba(18, 17, 15, .16); }
body[data-tone="stone"] { --bg: var(--stone); --fg: #12110f; --dim: rgba(18, 17, 15, .6); --rule: rgba(18, 17, 15, .18); }
body[data-tone="coal"]  { --bg: var(--coal); }

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
i, em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: fixed; left: var(--pad); top: -4rem; z-index: 100; background: var(--bone); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* The mark and lockup are the supplied logo, used as a mask so it can take the colour of its setting. */
.mark { display: inline-block; width: 2.9rem; aspect-ratio: 372 / 256; background: currentColor; -webkit-mask: url("/assets/img/ma-mark.svg") center / contain no-repeat; mask: url("/assets/img/ma-mark.svg") center / contain no-repeat; }

.eyebrow { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.display { font: 400 clamp(2.9rem, 8.4vw, 8.75rem)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }

.link { position: relative; display: inline-block; font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: .9rem 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease-io); }
.link:hover::after { transform: scaleX(0); transform-origin: left; }
.link--quiet { opacity: .6; margin-left: 1.75rem; }

.js .rv { opacity: 0; transform: translateY(1.75rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ───────────── Frame ───────────── */
.frame { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 1.15rem var(--pad); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.frame > * { pointer-events: auto; }
.frame__mark { display: block; line-height: 0; }
.frame__where { font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.frame__index { display: flex; align-items: center; gap: .8rem; font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: .8rem 0; }
.frame__index i { position: relative; width: 1.6rem; height: 7px; border-top: 1px solid; border-bottom: 1px solid; transition: height .4s var(--ease); }
.frame__index[aria-expanded="true"] i { height: 1px; }

.index { position: fixed; inset: 0; z-index: 30; background: var(--ink); color: var(--bone); display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 2rem; padding: 7rem var(--pad) 3rem; overflow: auto; animation: fade .5s var(--ease); }
.index[hidden] { display: none; }
.index__list a { display: flex; align-items: baseline; gap: 1.5rem; text-decoration: none; font: 400 clamp(2.2rem, 6.2vw, 5.6rem)/1.08 var(--serif); letter-spacing: -.015em; transition: padding-left .5s var(--ease), opacity .4s; }
.index__list em { font: 500 .68rem/1 var(--sans); letter-spacing: .2em; color: var(--brass); font-style: normal; }
.index__list:hover a { opacity: .4; }
.index__list a:hover { opacity: 1; padding-left: 1rem; }
.index__props { border-top: 1px solid rgba(239, 234, 224, .18); padding-top: 1.2rem; }
.index__props::before { content: "Properties"; display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(239, 234, 224, .5); margin-bottom: 1rem; }
.index__props a { display: block; text-decoration: none; font: 400 1.35rem/1.5 var(--serif); opacity: .8; }
.index__props a:hover { opacity: 1; font-style: italic; }
@keyframes fade { from { opacity: 0; } }

/* ───────────── Opening ─────────────
   The entrance: type, space, a dark surface and a light that barely moves. Nothing else. */
.open { height: 200vh; height: 200svh; --p: 0; }
.open__stage {
  --door: clamp(0, calc((var(--p) - .3) / .6), 1);
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--bone);
}

/* One soft pool of light crossing the surface, slowly enough to be missed at first. */
.open__light { position: absolute; inset: -40%; background: radial-gradient(ellipse 34% 30% at 50% 50%, rgba(226, 212, 190, .1), rgba(226, 212, 190, .03) 55%, transparent 78%); animation: light 70s ease-in-out -20s infinite alternate, fade 6s var(--ease) 2.4s both; }
@keyframes light { from { transform: translate(-22%, -12%); } to { transform: translate(20%, 14%); } }
/* The surface: a fine tooth, and a broader unevenness beneath it. */
.open__grain { position: absolute; inset: 0; background: url("/assets/img/grain.svg") 0 0 / 320px, url("/assets/img/grain.svg") 40px 90px / 1900px; opacity: .11; }

.open__sign { position: absolute; z-index: 2; left: var(--pad); top: 1.5rem; width: 6.6rem; aspect-ratio: 682 / 416; background: currentColor; -webkit-mask: url("/assets/img/ma-lockup.svg") center / contain no-repeat; mask: url("/assets/img/ma-lockup.svg") center / contain no-repeat; opacity: calc(1 - var(--p) * 4); animation: fade 2.4s var(--ease) .3s both; }

/* The statement is the artwork: two stacked lines sharing one left edge, set in from the margin. */
.open__title { position: absolute; z-index: 1; left: 23vw; top: 50%; translate: 0 calc(-54% - var(--p) * 22vh); font: 400 clamp(4.5rem, 24vw, 30rem)/.86 var(--serif); letter-spacing: -.02em; text-transform: uppercase; opacity: calc(1 - var(--p) * 2.6); }
.ln { display: block; white-space: nowrap; animation: arrive .85s cubic-bezier(.16, .84, .3, 1) both; }
.ln--a { animation-delay: 1.2s; }
.ln--b { animation-delay: 1.45s; }
/* A two-part reveal: each line slides in from the left, the second just behind the first. */
@keyframes arrive { from { opacity: 0; transform: translateX(-.45em); } }

.open__lede { position: absolute; z-index: 2; left: var(--pad); bottom: 1.8rem; max-width: 17rem; font-size: .84rem; line-height: 1.6; color: rgba(239, 234, 224, .5); opacity: calc(1 - var(--p) * 4); animation: fade 2s 4.4s both; }
.open__cue { position: absolute; z-index: 2; right: var(--pad); bottom: 1.8rem; font: 500 .68rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(239, 234, 224, .5); opacity: calc(1 - var(--p) * 4); animation: fade 1.6s 5.2s both; }
.open__cue span { display: inline-block; margin-left: .5em; animation: nudge 3.2s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateY(.3em); } }

/* The way in: the page below opens from the centre like a door. */
.open__door { position: absolute; z-index: 5; inset: 0; background: var(--paper); clip-path: inset(0 calc((1 - var(--door)) * 50%)); pointer-events: none; }

/* The signature is already on this screen, so the small mark waits. */
.frame__mark, .frame__where { transition: opacity .6s; }
.at-top .frame__mark, .at-top .frame__where { opacity: 0; }

/* ───────────── What we do ───────────── */
.story { height: 520vh; height: 520svh; --i: 0; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: 1fr auto 1fr; padding: 6rem var(--pad) 2.5rem; overflow: hidden; }
.story__we { align-self: end; font: italic 400 clamp(1.6rem, 3.4vw, 3.4rem)/1 var(--serif); color: var(--dim); padding-bottom: .4rem; }
.story__wheel { font: 400 clamp(3.1rem, 13.2vw, 14.5rem)/1.16 var(--serif); letter-spacing: -.03em; height: 1.16em; overflow: hidden; margin-left: -.04em; }
.story__wheel ul { transform: translateY(calc(var(--i) * -1.16em)); transition: transform 1s var(--ease-io); }
.story__wheel li { height: 1.16em; white-space: nowrap; }
.story__notes { align-self: end; justify-self: end; display: grid; width: min(100%, 27rem); }
.story__notes li { grid-area: 1 / 1; font-size: 1.02rem; opacity: 0; transform: translateY(.8rem); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.story__notes li.on { opacity: 1; transform: none; transition-delay: .25s; }
.story__notes strong { display: block; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: .9rem; }
.story__count { position: absolute; left: var(--pad); bottom: 2.5rem; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; color: var(--dim); }
.story__count span { color: var(--fg); }

.span { padding: 18vh var(--pad) 26vh; }
.span__line { margin-top: 2.2rem; max-width: 22ch; font: 400 clamp(2rem, 5.4vw, 5.25rem)/1.04 var(--serif); letter-spacing: -.02em; }

/* ───────────── Portfolio ───────────── */
.pf-intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem var(--pad); }
.pf-intro .display { margin: 2rem 0 2.5rem; font-size: clamp(3.4rem, 12vw, 13rem); }
.pf-intro__note { max-width: 30rem; color: var(--dim); }

.pf { --dwell: 75vh; --dwell: 75svh; display: flow-root; }
.ip {
  --e: 1; --d: 0; --c: 0; --ar: 1.5;
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: var(--dwell);
  display: grid; grid-template: "art text" 1fr "tag tag" auto / auto 1fr;
  column-gap: clamp(2rem, 5vw, 6rem); align-items: center;
  padding: 5.5rem var(--pad) 1.4rem; overflow: hidden; isolation: isolate;
  background: var(--ip-bg); color: var(--ip-fg);
}
.ip::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: calc(var(--c) * .72); pointer-events: none; }
.ip > * { transform: translateY(calc(var(--c) * -5vh)); }

.ip__amb { position: absolute; inset: -12%; z-index: -1; background: var(--amb, none) center / cover no-repeat; filter: blur(48px) saturate(1.1); opacity: var(--amb-o, .4); transform: none; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.15) translate(2%, -2%); } }

.ip__art { grid-area: art; position: relative; display: block; width: min(var(--w, 60vw), calc((100vh - 13rem) * var(--ar))); aspect-ratio: var(--ar); overflow: hidden; clip-path: inset(calc((1 - var(--e)) * 22%) calc((1 - var(--e)) * 14%)); box-shadow: 0 2.5rem 6rem -2rem rgba(0, 0, 0, .45); }
.ip__art img { width: 100%; height: 100%; object-fit: contain; transform: scale(calc(1.2 - var(--e) * .2)); }
button.ip__art { cursor: zoom-in; }

.ip__text { grid-area: text; align-self: end; padding-bottom: 2.2rem; max-width: 30rem; opacity: calc(var(--e) * 2.4 - 1.4); transform: translateY(calc((1 - var(--e)) * 5rem + var(--c) * -5vh)); }
.ip__cat { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ip-accent); }
.ip__name { margin: 1.2rem 0 1.3rem; font: 400 clamp(2.6rem, 5.4vw, 5.75rem)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.ip__line { font-size: 1.05rem; max-width: 24rem; opacity: .82; }
.ip__more { margin-top: 1.4rem; }

.ip__tag { grid-area: tag; display: flex; align-items: center; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font: 500 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.ip__tag .mark { width: 1.9rem; }
.ip__tag b { margin-left: auto; font-weight: 500; }

.ip:last-of-type { margin-bottom: 0; }
.pf__hold { height: var(--dwell); }
.js .ip { --e: 0; }

/* alternate the composition */
.ip:nth-child(even) { grid-template: "text art" 1fr "tag tag" auto / 1fr auto; }

.ip--queens   { --ip-bg: #140c12; --ip-fg: #f3e8e2; --ip-accent: #c9a063; }
.ip--prazalin { --ip-bg: #13241a; --ip-fg: #efe9dc; --ip-accent: #c8a662; --ar: .954; --amb: url("/assets/img/prazalin-amb.jpg"); --amb-o: .32; }
.ip--blend    { --ip-bg: #efe8da; --ip-fg: #0f1a33; --ip-accent: #9a7836; --amb: url("/assets/img/master-blend-amb.jpg"); --amb-o: .5; }
.ip--bear     { --ip-bg: #fefefe; --ip-fg: #0b0b0a; --ip-accent: #6d6a64; }
.ip--joe      { --ip-bg: #e7dcc8; --ip-fg: #10301f; --ip-accent: #2c6a45; --amb: url("/assets/img/dr-joe-amb.jpg"); --amb-o: .55; }

/* Pappa Bear is a mark, not a product: no frame, no shadow, room to breathe. */
.ip__art--logo { box-shadow: none; clip-path: none; overflow: visible; --w: 56vw; }
.ip__art--logo img { transform: scale(calc(.86 + var(--e) * .14)) translateX(calc((1 - var(--e)) * 6vw - var(--d) * 1.5vw)); opacity: var(--e); }

/* Urban Queens: typographic chapter until its artwork is placed. */
.ip__art--type { box-shadow: none; clip-path: none; overflow: visible; width: 56vw; aspect-ratio: auto; }
.queens { font: 400 clamp(5rem, 15.5vw, 17rem)/.8 var(--serif); letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; }
.queens span { display: block; }
.queens span:first-child { transform: translateX(calc((1 - var(--e)) * -14vw + var(--d) * 3vw)); }
.queens span:last-child { color: var(--ip-accent); transform: translateX(calc((1 - var(--e)) * 14vw + 9vw - var(--d) * 3vw)); text-transform: none; font-size: 1.12em; }
.ip--queens .ip__amb { background: radial-gradient(60% 60% at 30% 40%, #5a2440 0%, transparent 70%); filter: none; opacity: .55; }

.pf-outro { min-height: 80vh; display: grid; place-items: center; padding: 8rem var(--pad); text-align: center; }
.pf-outro__line { max-width: 18ch; font: 400 clamp(2rem, 5.4vw, 5.25rem)/1.04 var(--serif); letter-spacing: -.02em; }

/* ───────────── Lifecycle ───────────── */
.life { padding: 22vh var(--pad) 20vh; }
.life .display { margin: 2rem 0 5.5rem; }
.life__rows li { display: grid; grid-template-columns: 5rem 1fr minmax(14rem, 22rem); align-items: baseline; gap: 1.5rem; padding: 1.6rem 0 1.9rem; border-top: 1px solid var(--rule); transition: opacity .5s, padding-left .7s var(--ease), transform 1.1s var(--ease); }
.life__rows li:last-child { border-bottom: 1px solid var(--rule); }
.life__rows em { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; color: var(--brass); font-style: normal; }
.life__rows h3 { font: 400 clamp(2.6rem, 8vw, 8rem)/.95 var(--serif); letter-spacing: -.025em; }
.life__rows p { font-size: .95rem; line-height: 1.8; color: var(--dim); }
@media (hover: hover) {
  .life__rows:hover li { opacity: .32; }
  .life__rows li:hover { opacity: 1; padding-left: 1.5rem; }
  .life__rows li:hover h3 { font-style: italic; }
}

/* ───────────── Partners ───────────── */
.partners { padding: 22vh var(--pad) 20vh; }
.partners .display { margin: 2rem 0 5rem; }
.partners__body { display: grid; gap: 2.5rem; max-width: 46rem; margin-left: auto; }
.partners__body > p:first-child { font: 400 clamp(1.4rem, 2.3vw, 2rem)/1.3 var(--serif); }
.partners__who { display: flex; flex-wrap: wrap; gap: .55rem .6rem; }
.partners__who li { font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .7rem 1rem; border: 1px solid var(--rule); }

/* ───────────── About ───────────── */
.about { padding: 22vh var(--pad) 20vh; }
.about__lead { margin: 2.2rem 0 5rem; max-width: 24ch; font: 400 clamp(2rem, 5.2vw, 5rem)/1.05 var(--serif); letter-spacing: -.02em; }
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); gap: 3rem; justify-content: end; color: var(--dim); }

/* ───────────── Contact ───────────── */
.contact { padding: 22vh var(--pad) 14vh; }
.contact__mark { width: 4.2rem; color: var(--brass); }
.contact .display { margin: 2.4rem 0 5rem; font-size: clamp(3.2rem, 11vw, 12rem); }
.note { max-width: 58rem; margin-left: auto; }
.note__trap { position: absolute; left: -200vw; }
.note__line { font: 400 clamp(1.5rem, 2.9vw, 2.6rem)/1.7 var(--serif); }
.note__line span { display: block; }
.note__line label { color: var(--dim); }
.note__line input { font: inherit; font-style: italic; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0 .1em; margin: 0 .2em; width: 12em; max-width: 100%; transition: border-color .4s; }
.note__line input#f-about { width: 14em; }
.note__line input::placeholder { color: var(--dim); opacity: .45; }
.note__line input:focus { outline: 0; border-color: var(--brass); }
.note__send { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.5rem; }
.note__status { font-size: .9rem; color: var(--dim); }
.note__small { margin-top: 1rem; font-size: .8rem; color: var(--dim); }
.note.sent .note__line, .note.sent .note__small, .note.sent .note__send button { display: none; }
.note.sent .note__status { font: italic 400 clamp(1.5rem, 2.9vw, 2.6rem)/1.3 var(--serif); color: var(--fg); }

.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 2rem; padding: 3rem var(--pad) 2rem; border-top: 1px solid rgba(239, 234, 224, .14); background: var(--ink); color: rgba(239, 234, 224, .55); font-size: .78rem; }
.foot__lockup { width: 8.5rem; aspect-ratio: 682 / 416; background: var(--bone); -webkit-mask: url("/assets/img/ma-lockup.svg") center / contain no-repeat; mask: url("/assets/img/ma-lockup.svg") center / contain no-repeat; }
.foot p:nth-child(2) { max-width: 34rem; }

/* ───────────── Viewer ───────────── */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 4.5rem var(--pad) 2rem; border: 0; background: rgba(11, 11, 10, .97); color: var(--bone); }
.viewer[open] { display: grid; place-items: center; animation: fade .5s var(--ease); }
.viewer::backdrop { background: var(--ink); }
.viewer img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; animation: settle .9s var(--ease); }
@keyframes settle { from { transform: scale(.94); opacity: 0; } }
.viewer__tag { position: absolute; left: var(--pad); top: 1.4rem; display: flex; align-items: center; gap: .9rem; font: 500 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.viewer__tag .mark { width: 1.9rem; }
.viewer__close { position: absolute; right: var(--pad); top: 1.1rem; padding: .8rem 0; font: 500 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }

/* ───────────── Cursor ───────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 5.2rem; height: 5.2rem; margin: -2.6rem 0 0 -2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--ink); font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; opacity: 0; scale: .3; transition: opacity .35s, scale .5s var(--ease); }
.cursor.on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ───────────── Tablet ───────────── */
@media (max-width: 1000px) {
  .frame__where { display: none; }
  .ip { --w: 54vw; }
  .life__rows li { grid-template-columns: 3rem 1fr; }
  .life__rows p { grid-column: 2; }
}

/* ───────────── Phone & portrait: recomposed, not shrunk ───────────── */
@media (max-width: 760px), (max-aspect-ratio: 4 / 5) {
  .index { grid-template-columns: 1fr; align-items: start; align-content: space-between; }

  /* Phone: the statement runs the full width from the margin. */
  .open__title { left: var(--pad); font-size: 33vw; translate: 0 calc(-62% - var(--p) * 22vh); }
  .open__sign { width: 5.6rem; top: 1.2rem; }
  .open__lede { max-width: 13rem; font-size: .8rem; bottom: 1.4rem; }
  .open__cue { bottom: 1.4rem; }

  .story__stage { padding-top: 5rem; }
  .story__notes { justify-self: start; }
  .story__count { left: auto; right: var(--pad); top: 5.4rem; bottom: auto; }

  .pf { --dwell: 95vh; --dwell: 95svh; }
  .ip, .ip:nth-child(even) { grid-template: "art" auto "text" 1fr "tag" auto / 1fr; padding: 4.4rem 0 1.1rem; align-items: start; }
  .ip__art { --h: 50vh; --h: 50svh; width: 100%; height: var(--h); aspect-ratio: auto; box-shadow: none; clip-path: inset(0 0 calc((1 - var(--e)) * 30%) 0); }
  /* The artwork is kept whole: it fills the height and the scroll pans across it. */
  .ip__art img { --iw: calc(var(--h) * var(--ar)); width: var(--iw); max-width: none; height: 100%; transform: translateX(calc(var(--d) * min(0px, 100vw - var(--iw)))); }
  .ip__text { align-self: center; padding: 1.4rem var(--pad) 1rem; transform: translateY(calc((1 - var(--e)) * 3rem)); }
  .ip__name { font-size: clamp(2.3rem, 10.5vw, 3.6rem); margin: .9rem 0 .9rem; }
  .ip__line { font-size: .98rem; }
  .ip__more { margin-top: .6rem; }
  .ip__tag { margin: 0 var(--pad); }

  .ip__art--logo { padding: 1rem var(--pad) 0; }
  .ip__art--logo img { width: 100%; object-fit: contain; transform: scale(calc(.9 + var(--e) * .1)); }
  .ip__art--type { width: 100%; display: grid; align-items: end; padding: 0 var(--pad); overflow: hidden; clip-path: none; }
  .queens { font-size: 27vw; }
  .queens span:last-child { transform: translateX(calc((1 - var(--e)) * 20vw + 6vw - var(--d) * 4vw)); }

  .partners__body { margin-left: 0; }
  .about__cols { grid-template-columns: 1fr; gap: 1.5rem; justify-content: start; }
  .note__line input, .note__line input#f-about { display: block; width: 100%; margin: 0 0 .6rem; }
  .foot { grid-template-columns: 1fr; }
}

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