/* Gabriela Fiks — portfolio
   Type: Newsreader (display + reading) and Host Grotesk (interface). Both open source.
   The site has no colours of its own beyond paper and ink: every project lends its own pair. */

:root {
  --paper: #F2EFE8;
  --black: #17140F;
  --bg: var(--paper);
  --ink: var(--black);
  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --top: 68px;
  --bottom: 52px;
  --more: 60px;
  --case-gap: clamp(24px, 5vh, 64px);          /* keep in sync with site.js (flyToCase) */
  --case-title: clamp(44px, 9.4vw, 150px);     /* keep in sync with site.js (flyToCase) */
  --serif: 'Newsreader', 'Times New Roman', Times, serif;
  --sans: 'Host Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 500 13px/1.3 var(--sans);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .55s var(--ease), color .55s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -.022em; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* a hairline that always takes the colour of the text around it */
.rule-t { border-top: 1px solid rgba(128, 128, 128, .4); border-top-color: color-mix(in srgb, currentColor 24%, transparent); }
.rule-b { border-bottom: 1px solid rgba(128, 128, 128, .4); border-bottom-color: color-mix(in srgb, currentColor 24%, transparent); }

/* links: the underline draws itself from the left */
.lnk {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: .16em;
  transition: background-size .45s var(--ease);
}
.lnk:hover, .lnk:focus-visible, .lnk[aria-current="page"] { background-size: 100% 1px; }

@view-transition { navigation: auto; }

/* ───────────────────────── header and footer ───────────────────────── */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--top);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2em;
  padding: 0 var(--pad);
  background-color: var(--bg);
  transition: background-color .55s var(--ease);
}
.top-nav { justify-self: end; display: flex; gap: 1.7em; }
.top-role { text-align: center; }

.bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2em;
  min-height: var(--bottom); padding: 0 var(--pad);
}
.bottom > span { opacity: .62; }
.bottom-links { justify-self: end; display: flex; gap: 1.5em; }

/* ───────────────────────── home: the index ───────────────────────── */

.home-main {
  --row: calc((100svh - var(--top) - var(--bottom) - var(--more)) / 7);
  min-height: 100svh;
  padding-top: var(--top);
  display: flex; flex-direction: column;
}
.index { padding: 0 var(--pad); }
.index li {
  height: var(--row);
  border-top: 1px solid rgba(128, 128, 128, .4);
  border-top-color: color-mix(in srgb, currentColor 24%, transparent);
  overflow: hidden;
}
.index a {
  display: grid; grid-template-columns: 3.4em auto minmax(0, 1fr) auto 1.4em;
  align-items: center; gap: 1.2em; height: 100%;
  outline: none;
  transition: opacity .35s var(--ease);
}
.index .n { font-variant-numeric: tabular-nums; }
.index .t {
  font-family: var(--serif); font-weight: 300;
  font-size: min(calc(var(--row) * .84), 9.4vw);
  line-height: 1; letter-spacing: -.022em; white-space: nowrap;
  padding-top: .06em;
  transition: transform .6s var(--ease);
}
.index .t > span {
  display: inline-block;
  transform: translateY(118%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.ready .index .t > span { transform: none; }
.index .k {
  max-width: 24em; text-align: right; line-height: 1.25;
  opacity: .62;
  transition: opacity .35s var(--ease);
}
.k-scope { display: block; }
.k-awards { display: block; margin-top: .45em; }
/* ribbons hang from the rule above the project name, as they do on a Behance cover */
.index .rb { align-self: start; display: flex; gap: 6px; margin-left: calc(var(--row) * .5); }
.index .rb img { display: block; width: auto; height: clamp(38px, calc(var(--row) * .54), 57px); }
/* a major award: larger than the ribbons, centred on the row, with its name written out */
.index .rb { align-self: stretch; align-items: flex-start; }
.award { align-self: center; display: flex; align-items: center; gap: 14px; margin-left: 18px; color: var(--small, inherit); }
.index .rb .award img { height: clamp(48px, calc(var(--row) * .68), 76px); width: auto; }
.award span { font: 500 12px/1.35 var(--sans); white-space: nowrap; }
.award b { display: block; font: 300 italic clamp(20px, 1.9vw, 28px)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 5px; color: #D6A034; }
.index-small .rb { margin-left: 26px; }
.index-small .rb img { height: 38px; }
.rec span { display: flex; align-items: flex-start; gap: .7em; }
.rec span + span { margin-top: .5em; }
.rec img { width: 14px; height: auto; flex: none; margin-top: .05em; }
.side li em { font-style: normal; display: flex; align-items: flex-start; gap: .65em; }
.side li em img { width: 13px; height: auto; flex: none; margin-top: .05em; }
.index .go {
  justify-self: end; font-size: 15px; line-height: 1;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.index-wrap.is-hovering .index a { opacity: .26; }
.index-wrap.is-hovering .index a.is-active { opacity: 1; }
.index a.is-active .t { font-style: italic; transform: translateX(.38em); }
.index a.is-active .k { opacity: 1; }
.index a.is-active .go { opacity: 1; transform: none; }

/* "More work": the remaining projects, smaller, behind one click */
.more { padding: 0 var(--pad); }
.more-btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: 3.4em auto minmax(0, 1fr) auto 1.4em; align-items: center; gap: 1.2em;
  width: 100%; height: var(--more);
  border-top: 1px solid rgba(128, 128, 128, .4);
  border-top-color: color-mix(in srgb, currentColor 24%, transparent);
  border-bottom: 1px solid rgba(128, 128, 128, .4);
  border-bottom-color: color-mix(in srgb, currentColor 24%, transparent);
  transition: opacity .35s var(--ease);
}
.more-btn:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }
.more-label { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.015em; line-height: 1; padding-top: .06em; transition: transform .6s var(--ease); }
.more-btn:hover .more-label { font-style: italic; transform: translateX(.38em); }
.more-hint { opacity: .62; }
/* ribbons waiting inside "More work": one of each, with how many */
.more-rb { align-self: start; display: flex; gap: 8px; margin-left: 14px; transition: opacity .35s var(--ease); }
.more-rb span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.more-rb img { display: block; height: 32px; width: auto; }
.more-rb b { font: 500 11px/1 var(--sans); font-variant-numeric: tabular-nums; }
.more.open .more-rb { opacity: 0; }
.more-icon { justify-self: end; position: relative; width: 13px; height: 13px; transition: transform .6s var(--ease); }
.more-icon::before, .more-icon::after { content: ''; position: absolute; background: currentColor; }
.more-icon::before { left: 0; right: 0; top: 6px; height: 1px; }
.more-icon::after { top: 0; bottom: 0; left: 6px; width: 1px; transition: transform .6s var(--ease); }
.more.open .more-icon { transform: rotate(180deg); }
.more.open .more-icon::after { transform: scaleY(0); }
.more-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); margin: 0 calc(var(--pad) * -1); }
.more.open .more-wrap { grid-template-rows: 1fr; }
.more-wrap > .index { min-height: 0; overflow: hidden; }
.index-small li { height: clamp(54px, 7.4svh, 72px); border-top: 0; border-bottom: 1px solid rgba(128, 128, 128, .4); border-bottom-color: color-mix(in srgb, currentColor 24%, transparent); }
.index-small .t { font-size: clamp(26px, 3.3vw, 46px); }
.index-small .t > span { transform: translateY(118%); transition-delay: calc(var(--i) * 45ms); }
.ready .index-small .t > span { transform: translateY(118%); }
.ready .more.open .index-small .t > span { transform: none; }
.index-wrap.is-hovering .more-btn { opacity: .26; }

.home .bottom { margin-top: auto; }

/* small text takes a second ink when the title colour would be too soft on the project colour */
.top, .bottom, .index .n, .index .k, .index .go, .more-btn .n, .more-hint { color: var(--small, inherit); }
.top { transition: background-color .55s var(--ease), color .55s var(--ease); }
.index .n, .more-btn .n, .more-hint, .bottom { transition: color .55s var(--ease), opacity .35s var(--ease); }
.index .k { transition: opacity .35s var(--ease), color .55s var(--ease); }

/* the cover that follows the cursor */
.peek {
  position: fixed; top: 0; left: 0; z-index: 20;
  width: clamp(260px, 30vw, 470px); aspect-ratio: 404 / 316;
  pointer-events: none; will-change: transform;
}
.peek-in {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; transform: scale(.86);
  transition: opacity .3s var(--ease), transform .5s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.peek.on .peek-in { opacity: 1; transform: none; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.peek img.prev { clip-path: inset(0); }
.peek img.cur { clip-path: inset(0); transition: clip-path .5s var(--ease); }

/* leaving for a case: everything steps back, the name travels to the top of the next page */
.leaving .index a:not(.is-active), .leaving .more-btn, .leaving .bottom { opacity: 0 !important; transition: opacity .35s var(--ease); }
.leaving .index li, .leaving .more-btn { border-color: transparent; transition: border-color .35s var(--ease), opacity .35s var(--ease); }
.leaving .index a.is-active .n, .leaving .index a.is-active .k, .leaving .index a.is-active .go, .leaving .index a.is-active .rb { opacity: 0; transition: opacity .25s var(--ease); }
.leaving .peek .peek-in { opacity: 0; transform: scale(.92); }
.fly {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-style: italic; line-height: 1; letter-spacing: -.022em;
  transform-origin: 0 0;
  transition: transform .75s var(--inout);
}

/* ───────────────────────── case pages ───────────────────────── */

.case .top { position: absolute; background: transparent; }
.case-head {
  background: var(--bg); color: var(--ink);
  min-height: min(64svh, 680px);
  padding: calc(var(--top) + var(--case-gap)) var(--pad) clamp(18px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 9vh, 130px);
}
.case-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: var(--case-title); line-height: 1; letter-spacing: -.022em;
}
.case-meta {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap);
  padding-top: 12px; color: var(--small, var(--ink));
  border-top: 1px solid rgba(128, 128, 128, .4);
  border-top-color: color-mix(in srgb, currentColor 30%, transparent);
}
.case-meta dt { opacity: .66; margin-bottom: .35em; }
.case-meta dd { font-size: 15px; line-height: 1.3; max-width: 22em; }
.case-meta > :last-child { text-align: right; justify-self: end; }
.case .top, .case .top a { color: var(--small, var(--ink)); }

.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .15s, transform .9s var(--ease) .15s; }
.ready .rise { opacity: 1; transform: none; }

.case-body { background: var(--body); color: var(--body-ink); }
.m { position: relative; }
.m-img img { width: 100%; height: auto; cursor: zoom-in; }
.m-grid { display: flex; }
.m-grid figure { min-width: 0; }
.m-grid img { width: 100%; height: auto; cursor: zoom-in; }

.m-text {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: clamp(56px, 9vw, 150px) var(--pad);
}
.m-text-in {
  grid-column: 5 / span 7; max-width: 39em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 1.55vw, 24px); line-height: 1.38; letter-spacing: -.004em;
}
.m-text-in p + p, .m-text-in h3 + p { margin-top: 1em; }
.m-text-in h3 { font-weight: 300; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -.02em; }
.m-text-in p + h3 { margin-top: 1.2em; }
.m-text-in strong { font-weight: 500; }
.m-text-in a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.m-text .tag { grid-column: 1 / span 3; font: 500 13px/1.3 var(--sans); opacity: .62; padding-top: .5em; }
.m-text.is-lead .m-text-in > p:first-of-type { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -.014em; font-weight: 300; }
.credits { font: 400 14px/1.5 var(--sans); letter-spacing: .005em; max-width: 46em; columns: 2 17em; column-gap: var(--gap); }
.credits p { break-inside: avoid; margin: 0 0 1em; }
.credits .cr-label { margin: 0; opacity: .62; break-after: avoid; }
.credits strong { font-weight: 500; opacity: .62; }

.embed { position: relative; padding-bottom: var(--r, 56.25%); background: #000; overflow: hidden; }
.embed > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed img { object-fit: cover; }
.embed iframe { opacity: 0; transition: opacity .6s var(--ease); }
.embed iframe.on { opacity: 1; }
.embed-play {
  all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center;
}
.embed-play span {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--paper); color: var(--black); font: 500 13px var(--sans);
  transition: transform .5s var(--ease);
}
.embed-play:hover span { transform: scale(1.12); }
.m-video video { width: 100%; height: auto; background: #000; }

.case-end { background: var(--body); color: var(--body-ink); padding: 0 var(--pad) clamp(40px, 6vw, 80px); display: flex; justify-content: space-between; gap: 2em; }

.next {
  display: block; position: relative; overflow: hidden;
  background: var(--nbg); color: var(--nink);
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(28px, 4vw, 56px);
}
.next-label { display: flex; justify-content: space-between; margin-bottom: clamp(60px, 12vw, 200px); color: var(--nsmall, var(--nink)); }
.next-title {
  display: block; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: var(--case-title); line-height: 1; letter-spacing: -.022em;
  transition: transform .7s var(--ease);
}
.next:hover .next-title, .next:focus-visible .next-title { transform: translateX(.3em); }
.next-cover {
  position: absolute; right: var(--pad); top: 56%; width: clamp(200px, 26vw, 420px); aspect-ratio: 404 / 316; object-fit: cover;
  transform: translateY(-40%) rotate(5deg) scale(.86); opacity: 0;
  transition: opacity .35s var(--ease), transform .7s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.next:hover .next-cover, .next:focus-visible .next-cover { opacity: 1; transform: translateY(-50%) rotate(-3deg); }
.case .bottom { background: var(--paper); color: var(--black); }

.pill {
  position: fixed; left: var(--pad); bottom: var(--pad); z-index: 40;
  padding: .75em 1.15em .8em; border-radius: 99px;
  background: var(--black); color: var(--paper);
  transform: translateY(220%);
  transition: transform .55s var(--ease);
}
.pill.on { transform: none; }

/* click an image to see it alone */
.lb {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--body, #fff); color: var(--body-ink, #17140F);
  opacity: 0; pointer-events: none; cursor: zoom-out;
  transition: opacity .4s var(--ease);
}
.lb.on { opacity: 1; pointer-events: auto; }
.lb-img { max-width: 100vw; max-height: 100svh; width: auto; height: auto; object-fit: contain; transform-origin: 0 0; will-change: transform; }
.lb-img.anim { transition: transform .6s var(--inout); }
.lb-ui { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); pointer-events: none; mix-blend-mode: difference; color: #fff; }
.lb-ui button { all: unset; pointer-events: auto; cursor: pointer; padding: 8px 0; }
.lb-nav { display: flex; gap: 1.6em; }

/* ───────────────────────── about ───────────────────────── */

.page { padding: calc(var(--top) + clamp(28px, 6vw, 96px)) var(--pad) 0; min-height: calc(100svh - var(--bottom)); }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 9vw, 150px); line-height: .95; letter-spacing: -.028em; max-width: 9.6em; }
.lede .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lede .ln > span { display: block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.ready .lede .ln > span { transform: none; }
.lede em { font-style: italic; }

.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(48px, 8vw, 130px); }
.about-text { grid-column: 1 / span 6; font-family: var(--serif); font-size: clamp(20px, 1.75vw, 27px); line-height: 1.34; letter-spacing: -.006em; }
.about-text p + p { margin-top: 1em; }
.about-side { grid-column: 8 / span 5; }
.side { padding: 12px 0 clamp(28px, 3.4vw, 44px); border-top: 1px solid rgba(128, 128, 128, .4); border-top-color: color-mix(in srgb, currentColor 24%, transparent); display: grid; grid-template-columns: 9em minmax(0, 1fr); column-gap: var(--gap); }
.side h2 { font: 500 13px/1.3 var(--sans); opacity: .62; }
.side li { font-size: 15px; line-height: 1.3; padding: 0 0 .5em; display: flex; justify-content: space-between; gap: 1.5em; }
.side li span { opacity: .62; text-align: right; }
.side ul.two { columns: 2; column-gap: var(--gap); }
.side ul.two li { break-inside: avoid; }

.contact { margin-top: clamp(64px, 10vw, 170px); padding-bottom: clamp(40px, 6vw, 90px); }
.contact h2 { font: 500 13px/1.3 var(--sans); opacity: .62; padding-bottom: 14px; }
.contact a {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; align-items: baseline; gap: var(--gap);
  padding: .5em 0 .42em;
  border-top: 1px solid rgba(128, 128, 128, .4); border-top-color: color-mix(in srgb, currentColor 24%, transparent);
  transition: opacity .35s var(--ease);
}
.contact a:last-child { border-bottom: 1px solid rgba(128, 128, 128, .4); border-bottom-color: color-mix(in srgb, currentColor 24%, transparent); }
.contact .v { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 4.4vw, 68px); line-height: 1.05; letter-spacing: -.02em; transition: transform .6s var(--ease); overflow-wrap: anywhere; }
.contact .go { font-size: 15px; opacity: 0; transform: translateX(-10px); transition: opacity .3s var(--ease), transform .5s var(--ease); }
.contact:hover a { opacity: .3; }
.contact a:hover, .contact a:focus-visible { opacity: 1; }
.contact a:hover .v, .contact a:focus-visible .v { font-style: italic; transform: translateX(.3em); }
.contact a:hover .go, .contact a:focus-visible .go { opacity: 1; transform: none; }

/* ───────────────────────── AI and code ───────────────────────── */

.ai { --bg: var(--black); --ink: var(--paper); }
.ai-lede { margin-top: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.ai-lede p { grid-column: 5 / span 7; max-width: 30em; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -.012em; }
.ai-list { margin-top: clamp(56px, 9vw, 150px); }
.ai-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 16px 0 clamp(48px, 7vw, 110px); border-top: 1px solid rgba(128, 128, 128, .4); border-top-color: color-mix(in srgb, currentColor 24%, transparent); }
.ai-n { grid-column: 1 / span 1; font-variant-numeric: tabular-nums; padding-top: .9em; }
.ai-h { grid-column: 2 / span 3; }
.ai-h h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.02em; }
.ai-status { display: inline-flex; align-items: center; gap: .6em; margin-top: 16px; padding: .42em .9em .46em; border: 1px solid currentColor; border-radius: 99px; }
.ai-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ai-status.live::before { background: #7FFF47; box-shadow: 0 0 0 0 rgba(127, 255, 71, .6); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(127, 255, 71, 0); } }
.ai-b { grid-column: 5 / span 7; }
.ai-b p { max-width: 33em; font-family: var(--serif); font-size: clamp(19px, 1.55vw, 24px); line-height: 1.38; }
.ai-b .lnk { display: inline-block; margin-top: 1.4em; font: 500 15px/1.3 var(--sans); }
.shots { grid-column: 2 / span 11; margin-top: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 19vw, 300px); gap: var(--gap); align-items: start; }
.shot { position: relative; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(242, 239, 232, .14); }
.shot-desk { aspect-ratio: 1440 / 880; }
.shot-phone { aspect-ratio: 390 / 800; border-radius: 22px; }
.shot img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transition: transform 1.1s var(--ease); will-change: transform; }
.shot:hover img { transform: translateY(calc(var(--travel, 0px) * -1)); transition: transform var(--dur, 9s) cubic-bezier(.35, 0, .65, 1); }
.shot-cap { grid-column: 1 / -1; display: flex; justify-content: space-between; opacity: .62; }
.colophon { padding: 16px 0 clamp(48px, 7vw, 110px); border-top: 1px solid rgba(128, 128, 128, .4); border-top-color: color-mix(in srgb, currentColor 24%, transparent); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.colophon p { grid-column: 5 / span 7; max-width: 33em; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.38; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 24px; padding: var(--pad); }
.lost h1 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(60px, 14vw, 220px); line-height: .9; letter-spacing: -.03em; }

/* ───────────────────────── small screens ───────────────────────── */

@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; gap: 1em; }
  .top-role { display: none; }
  .top-nav { gap: 1.1em; }
  .bottom { grid-template-columns: 1fr; gap: 6px; padding-block: 18px 22px; }
  .bottom-links { justify-self: start; flex-wrap: wrap; row-gap: 6px; }

  .home-main { --row: auto; }
  .index li { height: auto; }
  .index a { grid-template-columns: 2.2em minmax(0, 1fr) auto; row-gap: 2px; padding: 0 0 13px; align-items: baseline; }
  .index .n, .index .t { padding-top: 15px; }
  .index .rb, .index-small .rb { grid-column: 3; grid-row: 1; margin-left: 10px; }
  .index .rb img, .index-small .rb img { height: 40px; }
  .award { margin-left: 10px; align-self: flex-start; padding-top: 16px; }
  .award span { font-size: 10px; white-space: normal; text-align: right; }
  .award b { font-size: 17px; }
  .index .rb .award img { height: 40px; }
  .index .t { font-size: clamp(30px, 9vw, 60px); white-space: normal; line-height: 1.02; }
  .index .k { grid-column: 2; text-align: left; max-width: none; }
  .index .go { display: none; }
  .index-small .t { font-size: clamp(24px, 6.4vw, 40px); }
  .more-btn { grid-template-columns: minmax(2.2em, auto) auto minmax(0, 1fr) 1.4em; }
  .more-btn .n { white-space: nowrap; }
  .more-hint { display: none; }
  .peek { display: none; }

  .case-head { min-height: 0; gap: 56px; }
  .case-title { white-space: normal; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .case-meta > :last-child { text-align: left; justify-self: start; }
  .m-text-in, .m-text .tag { grid-column: 1 / -1; }
  .m-text .tag { margin-bottom: 14px; padding-top: 0; }
  .next-cover { display: none; }
  .case-end { flex-direction: column; gap: 10px; }

  .about-text, .about-side { grid-column: 1 / -1; }
  .about-side { margin-top: 56px; }
  .side { grid-template-columns: 1fr; row-gap: 12px; }
  .contact a { grid-template-columns: 1fr; gap: 2px; }
  .contact .go { display: none; }

  .ai-lede p, .ai-b, .ai-h, .colophon p { grid-column: 1 / -1; }
  .ai-n { grid-column: 1 / -1; padding: 0 0 10px; }
  .ai-b { margin-top: 22px; }
  .shots { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 27%; }
}

@media (hover: none) {
  .m-img img, .m-grid img { cursor: default; }
  .shot-cap span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .index .t > span, .lede .ln > span, .rise { transform: none !important; opacity: 1 !important; }
}
