/* ==========================================================================
   Ioana Ciuciulică — the page as a loom.

   The palette is taken from the work itself: unbleached warp (paper), the
   cobalt and saffron of the hand-dyed wool, sage, rust, and the black cloth
   of The coping mechanism for the one dark chapter.
   ========================================================================== */

/* ---------- Faces (self-hosted; no request leaves the site) ---------- */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrumentserif-normal-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrumentserif-normal-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrumentserif-italic-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrumentserif-italic-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-normal-300-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-normal-300-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-italic-300-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-italic-300-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/dmmono-normal-300-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/dmmono-normal-300-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dmmono-normal-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dmmono-normal-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */

@property --vx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --vy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  color-scheme: light;

  --paper: #ece6d9;
  --paper-hi: #f5f1e8;
  --paper-lo: #e2d9c7;
  --ink: #1c1a16;
  --ink-2: #4b463d;
  --ink-3: #7d766a;
  --rule: rgb(28 26 22 / .16);
  --rule-strong: rgb(28 26 22 / .55);

  --cobalt: #2a46a6;
  --cobalt-deep: #172a6e;
  --cobalt-hi: #5276d4;
  --saffron: #e1b13d;
  --ochre: #c4852b;
  --sage: #8c9a72;
  --rust: #b4572a;

  --night: #0d111d;
  --night-2: #151b2c;
  --night-ink: #e8e1d2;
  --night-rule: rgb(232 225 210 / .16);

  --f-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 72px);
  --gap: clamp(12px, 1.8vw, 32px);
  --section: clamp(112px, 15vw, 260px);
  --mast: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-loom: cubic-bezier(.7, 0, .18, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.58 var(--f-text);
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* The linen: a fine grain over everything, fixed so it never scrolls. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
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, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
em { font-style: italic; }
.credo p, .tech-lede, .film-statement p, .intro-lede, .contact-lede, .phil-closing, .featured-title, .pull, .chrono-row:first-child p, .section-lede { hyphens: manual; -webkit-hyphens: manual; }
sup { font-size: .32em; vertical-align: top; position: relative; top: .3em; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--cobalt); outline-offset: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 300; padding: 10px 16px;
  background: var(--ink); color: var(--paper); font: 400 .78rem/1 var(--f-mono); letter-spacing: .06em;
  translate: 0 -200%; transition: translate .3s var(--ease-out);
}
.skip:focus { translate: 0 0; }
.ico { width: 1.6em; height: auto; display: inline-block; vertical-align: middle; }
.ico-out { width: .7em; }

/* A label in the voice of a museum card. */
.section-index, .hero-role, .hero-disciplines, .hero-sub, .scroll-cue, .work-no, .work-tech, .work-view,
.cap-k, .cap-n, .film-kicker, .film-facts, .chrono-when, .tech-hint, .detail-no, .veil figcaption span,
.featured-kicker, .featured-meta, .featured-facts dt, .event-date, .event-fields dt, .event-tags,
.contact-k, .footer-legal, .footer-top, .langs, .masthead-nav, .menu-label, .viewer-count, .viewer-tech,
.timeline-title span, .player-dur, .rail {
  font-family: var(--f-mono); font-weight: 400; font-size: .72rem; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Pictures: a blurred placeholder in the colour of the work ---------- */

.pic { position: relative; display: block; overflow: hidden; background: var(--c, var(--paper-lo)); }
.pic::before {
  content: ""; position: absolute; inset: -12%;
  background: var(--lqip) center / cover no-repeat; filter: blur(18px) saturate(1.1);
}
.pic img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Masthead ---------- */

.masthead {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--mast);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--gap);
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: translate .6s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
  opacity: 0; transition: opacity .4s, background-color .4s;
}
.masthead.is-scrolled::before { opacity: 1; }
.masthead.is-hidden { translate: 0 -100%; }
.masthead.on-dark { color: var(--night-ink); }
.masthead.on-dark::before { background: color-mix(in oklab, var(--night) 72%, transparent); border-color: var(--night-rule); }

.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark-svg { width: 34px; height: 34px; }
.mark-weft { stroke: var(--cobalt); transition: stroke .4s; }
.on-dark .mark-weft { stroke: var(--saffron); }
.mark-name { font: 400 1.4rem/1 var(--f-display); letter-spacing: -.005em; white-space: nowrap; }

.masthead-nav { justify-self: center; display: none; }
.masthead-nav ul { display: flex; gap: clamp(14px, 1.6vw, 30px); }
.masthead-nav a, .langs a, .footer-nav a, .footer-top, .contact-ig { position: relative; }
.masthead-nav a::after, .langs a::after, .footer-nav a::after, .footer-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  scale: 0 1; transform-origin: right; transition: scale .5s var(--ease-out);
}
.masthead-nav a:hover::after, .langs a:hover::after, .footer-nav a:hover::after, .footer-top:hover::after { scale: 1 1; transform-origin: left; }
.masthead-nav a.is-current { color: var(--cobalt); }
.on-dark .masthead-nav a.is-current { color: var(--saffron); }

.langs { display: flex; gap: 2px; }
.langs a { display: block; padding: 6px 7px; color: var(--ink-3); transition: color .3s; }
.on-dark .langs a { color: rgb(232 225 210 / .55); }
.langs a:hover, .langs a[aria-current] { color: inherit; }
.langs a[aria-current]::before {
  content: ""; position: absolute; left: 50%; top: -2px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cobalt); translate: -50% 0;
}
.on-dark .langs a[aria-current]::before { background: var(--saffron); }
.masthead-langs { display: none; }

.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 2px; }
.menu-lines { position: relative; width: 26px; height: 10px; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.2px; background: currentColor; transition: translate .5s var(--ease-out), rotate .5s var(--ease-out); }
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { bottom: 0; }
[aria-expanded="true"] .menu-lines i:first-child { translate: 0 4.4px; rotate: 45deg; }
[aria-expanded="true"] .menu-lines i:last-child { translate: 0 -4.4px; rotate: -45deg; }

@media (min-width: 760px) { .masthead-langs { display: flex; } }
@media (min-width: 1240px) {
  .masthead-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Menu (small screens) ---------- */

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--mast) + 4vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--night); color: var(--night-ink);
  opacity: 1; transition: opacity .45s, display .45s allow-discrete, overlay .45s allow-discrete;
}
@starting-style { .menu { opacity: 0; } }
.menu-list { align-self: center; counter-reset: m; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px; padding: .06em 0;
  font: 400 clamp(2.6rem, 10.5vw, 6rem)/1.02 var(--f-display);
  translate: 0 0; transition: translate .8s var(--ease-out), color .3s; transition-delay: calc(var(--i) * 45ms + 80ms);
}
@starting-style { .menu-list a { translate: 0 105%; } }
.menu-list a span { font: 400 .72rem/1 var(--f-mono); letter-spacing: .08em; color: var(--saffron); translate: 0 -1.6em; }
.menu-list a:hover { color: var(--saffron); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; border-top: 1px solid var(--night-rule); padding-top: 22px; font: 400 .9rem/1.4 var(--f-text); }
.menu-langs a { color: rgb(232 225 210 / .55); }
.menu-langs a[aria-current] { color: var(--night-ink); }
.menu-langs a[aria-current]::before { background: var(--saffron); }
body.menu-open { overflow: hidden; }
body.menu-open .masthead { color: var(--night-ink); }
body.menu-open .masthead::before { opacity: 0; }
body.menu-open .mark-weft { stroke: var(--saffron); }

/* ---------- Rail: the spindle that fills as you read ---------- */

.rail { display: none; }
@media (min-width: 1360px) {
  .rail {
    display: block; position: fixed; z-index: 50; left: calc(var(--gutter) * .32); top: 22vh; bottom: 22vh; width: 1px;
    opacity: 0; transition: opacity .6s;
  }
  .rail.is-on { opacity: 1; }
  .rail-track { position: absolute; inset: 0; background: var(--rule); }
  .rail-thread { position: absolute; inset: 0; background: var(--cobalt); transform-origin: top; scale: 1 var(--progress, 0); }
  .rail li { position: absolute; left: 0; top: var(--at, 0%); translate: -50% -50%; }
  .rail a { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
  .rail a span { display: grid; place-items: center; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule-strong); font-size: 0; transition: background .3s, border-color .3s, scale .3s; }
  .rail a em { font-style: normal; opacity: 0; translate: -6px 0; transition: opacity .3s, translate .4s var(--ease-out); white-space: nowrap; background: var(--paper); padding: 2px 6px; }
  .rail a:hover em { opacity: 1; translate: 0 0; }
  .rail li.is-passed a span { background: var(--cobalt); border-color: var(--cobalt); }
  .rail li.is-current a span { scale: 1.5; }
  .rail.on-dark .rail-track { background: var(--night-rule); }
  .rail.on-dark .rail-thread, .rail.on-dark li.is-passed a span { background: var(--saffron); border-color: var(--saffron); }
  .rail.on-dark a span { background: var(--night); }
  .rail.on-dark a em { background: var(--night); color: var(--night-ink); }
}
@supports (animation-timeline: scroll()) {
  .rail-thread { animation: spin-out linear both; animation-timeline: scroll(root); }
  @keyframes spin-out { from { scale: 1 0; } to { scale: 1 1; } }
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* One screen, one block: the name and the work share a baseline, and both
   are sized from the viewport's height as well as its width, so the whole
   hero — foot included — always fits above the fold. */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(var(--mast) + clamp(20px, 4vh, 48px)) var(--gutter) clamp(20px, 3.4vh, 40px);
  isolation: isolate;
}
/* Bare warp across the whole first screen. */
.hero-warp {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--pitch) - 1px), rgb(28 26 22 / .075) calc(var(--pitch) - 1px) var(--pitch));
  --pitch: clamp(10px, 1.05vw, 16px);
}
.hero-warp::after { /* the cloth thins out towards the fold */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--paper));
}
.hero-top { grid-column: 1 / 8; grid-row: 1; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.hero-role { color: var(--ink); }
.hero-role::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; background: var(--cobalt); vertical-align: 1px; }
.hero-disciplines { display: flex; gap: 0; color: var(--ink-3); }
.hero-disciplines li + li::before { content: "/"; margin: 0 10px; color: var(--rule-strong); }

.hero-figure { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; justify-self: end; width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.hero-figure .pic { aspect-ratio: 4 / 3; width: min(100%, calc((100svh - 300px) * 4 / 3)); }
.hero-figure figcaption { margin-top: 12px; display: flex; gap: .5em; justify-content: flex-end; align-items: baseline; font: 400 .9rem/1.3 var(--f-text); color: var(--ink-2); }
.hero-figure figcaption em { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }

.hero-name {
  grid-column: 1 / 8; grid-row: 2; align-self: end; position: relative; z-index: 2;
  margin: 0 0 0 -.045em;
  font: 400 max(4rem, min(15vw, calc((100svh - 290px) / 1.9))) / .84 var(--f-display);
  letter-spacing: -.022em;
}
.hero-name span { display: block; width: max-content; padding: .06em 0 .02em; }

.hero-foot {
  grid-column: 1 / -1; grid-row: 3; margin-top: clamp(18px, 3vh, 36px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  border-top: 1px solid var(--rule); padding-top: 16px;
}
.hero-title { grid-column: 1 / 6; font: italic 400 clamp(1.6rem, 2.6vw, 2.6rem)/1.05 var(--f-display); }
.hero-sub { grid-column: 6 / 10; color: var(--ink-2); }
.scroll-cue { grid-column: 10 / 13; justify-self: end; display: inline-flex; align-items: center; gap: 14px; color: var(--ink-2); }
.scroll-cue i { position: relative; display: block; width: 1px; height: 46px; background: var(--rule); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--cobalt); animation: shuttle 2.4s var(--ease-loom) infinite; }
@keyframes shuttle { from { translate: 0 -100%; } to { translate: 0 260%; } }

@media (max-width: 899px) {
  .hero { grid-template-rows: auto auto auto auto; height: auto; min-height: 0; }
  .hero-top { grid-column: 1 / -1; }
  .hero-figure { grid-column: 2 / -1; grid-row: 2; margin-top: 28px; align-items: stretch; }
  .hero-figure .pic { width: 100%; }
  .hero-name { grid-column: 1 / -1; grid-row: 3; font-size: clamp(3.4rem, 19.4vw, 12rem); margin-top: clamp(28px, 6vw, 56px); }
  .hero-foot { grid-row: 4; }
  .hero-figure figcaption { justify-content: flex-start; flex-wrap: wrap; }
  .hero-foot { grid-template-columns: 1fr auto; row-gap: 10px; }
  .hero-title, .hero-sub { grid-column: 1; }
  .scroll-cue { grid-column: 2; grid-row: 1 / 3; }
}

/* ==========================================================================
   Sections — shared head
   ========================================================================== */

main > section { position: relative; }
.works, .intro, .about, .techniques, .philosophy, .exhibitions, .contact {
  padding: var(--section) var(--gutter) 0;
}
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  margin-bottom: clamp(56px, 8vw, 132px);
}
.section-index { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 34px); color: var(--ink-2); }
.section-index span { color: var(--cobalt); }
.section-index i { display: block; width: clamp(32px, 4vw, 64px); height: 1px; background: currentColor; opacity: .5; }
.section-title { grid-column: 1 / 9; grid-row: 2; font: 400 clamp(3.2rem, 9.6vw, 11rem)/.88 var(--f-display); letter-spacing: -.018em; margin-left: -.04em; }
.section-title em { font-style: italic; }
.section-title .count { font-family: var(--f-mono); font-size: max(.72rem, .1em); letter-spacing: .08em; color: var(--cobalt); margin-left: .3em; top: .55em; }
.section-lede { grid-column: 9 / 13; grid-row: 2; align-self: last baseline; max-width: 34ch; justify-self: end; font: 400 clamp(1.05rem, 1.2vw, 1.25rem)/1.5 var(--f-text); color: var(--ink-2); }
@media (max-width: 899px) {
  .section-title { grid-column: 1 / -1; grid-row: auto; }
  .section-lede { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 24px; }
}

/* Scroll-driven entrances — progressive: without support, all is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-title, .section-lede, .work, .chrono-row, .detail, .event, .phil-block, .phil-closing, .credo p, .featured > *, .contact-list li, .intro-text > *, .yt, .film-grid > *, .player {
      animation: surface both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 2% entry 42%;
    }
    @keyframes surface { from { opacity: 0; translate: 0 48px; } }
  }
}

/* ==========================================================================
   Works
   ========================================================================== */

.works-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  row-gap: clamp(72px, 10vw, 190px); align-items: start;
}
.work-link { display: block; }
.work-frame { position: relative; overflow: hidden; }
.work-frame .pic { position: absolute; inset: 0; }
.work-frame img { scale: 1.1; transition: scale 1.4s var(--ease-out); }
.work-link:hover .work-frame img { scale: 1.14; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work-frame img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
  }
}
.work-cap {
  display: grid; grid-template-columns: 4.2rem 1fr auto; column-gap: 12px; row-gap: 6px; align-items: baseline;
  padding-top: 18px; border-top: 1px solid transparent;
}
.work-no { color: var(--ink-3); }
.work-title { position: relative; font: italic 400 clamp(1.6rem, 2.3vw, 2.4rem)/1.04 var(--f-display); justify-self: start; }
.work-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: var(--cobalt);
  scale: 0 1; transform-origin: left; transition: scale .8s var(--ease-out);
}
.work-link:hover .work-title::after, .work-link:focus-visible .work-title::after { scale: 1 1; }
.work-tech { grid-column: 2; color: var(--ink-2); }
.work-view { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); opacity: 0; translate: -10px 0; transition: opacity .4s, translate .6s var(--ease-out); }
.work-link:hover .work-view, .work-link:focus-visible .work-view { opacity: 1; translate: 0 0; }

@media (min-width: 900px) {
  .work-1 { grid-column: 1 / 8; }
  .work-2 { grid-column: 9 / 13; margin-top: clamp(120px, 16vw, 300px); }
  .work-3 { grid-column: 3 / 9; }
  .work-4 { grid-column: 9 / 13; margin-top: clamp(40px, 8vw, 160px); }
  .work-5 { grid-column: 1 / 7; margin-top: clamp(-80px, -4vw, 0px); }
  .work-6 { grid-column: 8 / 12; margin-top: clamp(80px, 12vw, 240px); }
}
@media (max-width: 899px) {
  .work { grid-column: 1 / -1; }
  .work:nth-child(even) { grid-column: 3 / -1; }
  .work-cap { grid-template-columns: 3.4rem 1fr; }
  .work-view { display: none; }
}

/* ==========================================================================
   Intro & the film from YouTube
   ========================================================================== */

.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-bottom: var(--section); }
.intro-text { grid-column: 1 / 6; position: sticky; top: calc(var(--mast) + 6vh); }
.intro-title { font: italic 400 clamp(2.6rem, 5.6vw, 6.4rem)/.94 var(--f-display); letter-spacing: -.012em; }
.intro-lede { margin-top: clamp(22px, 2.6vw, 40px); max-width: 30ch; font: 300 clamp(1.25rem, 1.65vw, 1.7rem)/1.4 var(--f-text); color: var(--ink-2); }
.yt { grid-column: 7 / 13; margin-top: clamp(80px, 12vw, 220px); }
.yt-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt-frame .pic { position: absolute; inset: 0; }
.yt-frame img { transition: scale 1.2s var(--ease-out), filter .8s; filter: saturate(.9); }
.yt-frame:hover img { scale: 1.03; filter: saturate(1.05); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px;
  padding: clamp(16px, 2vw, 28px); color: #fff;
  background: linear-gradient(to top, rgb(10 12 20 / .55), transparent 55%);
}
.yt-disc {
  display: grid; place-items: center; flex: none; width: clamp(56px, 5.4vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cobalt); color: var(--paper-hi); transition: scale .6s var(--ease-out), background .3s;
}
.yt-disc svg { width: 36%; translate: 6% 0; }
.yt-play:hover .yt-disc, .player-start:hover .yt-disc { scale: 1.08; background: var(--cobalt-hi); }
.yt-label { font: italic 400 clamp(1.3rem, 1.8vw, 1.9rem)/1 var(--f-display); text-shadow: 0 1px 12px rgb(0 0 0 / .3); }
.yt figcaption { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 16px; align-items: baseline; }
.cap-k { color: var(--cobalt); }
.cap-t { font: italic 400 1.25rem/1.2 var(--f-display); }
.cap-n { grid-column: 2; color: var(--ink-3); text-transform: none; letter-spacing: .02em; }
@media (max-width: 899px) {
  .intro-text { grid-column: 1 / -1; position: static; }
  .yt { grid-column: 1 / -1; margin-top: 48px; }
}

/* ==========================================================================
   Expendable Bodies — the dark chapter
   ========================================================================== */

.film { background: var(--night); color: var(--night-ink); padding-bottom: var(--section); }
.film-ambient { position: relative; height: min(96svh, 62vw); min-height: 440px; overflow: hidden; background: var(--cobalt-deep); }
.film-ambient video, .film-ambient::before {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(.92); mix-blend-mode: screen; opacity: .9;
}
.film-ambient::before { content: ""; background: url(/media/use-and-no-abuse-loop.jpg) center / cover; }
.film-ambient::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--night) 0, transparent 22%, transparent 45%, var(--night) 100%),
    repeating-linear-gradient(90deg, transparent 0 13px, rgb(13 17 29 / .16) 13px 14px);
}
.film-inner { position: relative; margin-top: clamp(-36vw, -24svh, -120px); padding: 0 var(--gutter); }
.film .section-index { color: rgb(232 225 210 / .7); }
.film .section-index span { color: var(--saffron); }
.film .section-title { color: var(--night-ink); grid-column: 1 / -1; }
.film .section-title em { color: var(--saffron); }
.film-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.film-label { grid-column: 1 / 5; display: grid; gap: 14px; }
.film-kicker { color: var(--saffron); }
.film-work { font: 400 clamp(2.2rem, 3.6vw, 3.6rem)/1 var(--f-display); }
.film-work span { font-style: italic; color: rgb(232 225 210 / .6); }
.film-collection { font: italic 400 1.1rem/1.4 var(--f-text); color: rgb(232 225 210 / .75); }
.film-facts { display: flex; gap: 14px; color: rgb(232 225 210 / .65); }
.film-facts div { display: flex; gap: 14px; }
.film-facts div + div::before { content: "·"; }
.film-statement { grid-column: 6 / 13; font: 300 clamp(1.45rem, 2.35vw, 2.45rem)/1.32 var(--f-text); letter-spacing: -.005em; }
.film-statement p + p { margin-top: .9em; }
.sheet { margin-top: 28px; }
.sheet-link { display: block; aspect-ratio: 1598 / 1098; cursor: zoom-in; }
.sheet .pic { height: 100%; }
.sheet figcaption { margin-top: 10px; font: 400 .9rem/1.3 var(--f-text); color: rgb(232 225 210 / .6); }
.player { position: relative; margin: clamp(72px, 9vw, 150px) auto 0; max-width: 1400px; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-start {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(rgb(13 17 29 / .15), rgb(13 17 29 / .5)), url(/media/use-and-no-abuse-poster.jpg) center / cover;
  font: italic 400 clamp(1.4rem, 2.2vw, 2.2rem)/1 var(--f-display); color: #fff;
}
.player-start .yt-disc { background: var(--saffron); color: var(--night); }
.player-start:hover .yt-disc { background: #f0c75a; }
.player-dur { color: rgb(255 255 255 / .75); font-style: normal; }
.player.is-playing .player-start { opacity: 0; pointer-events: none; transition: opacity .5s; }
@media (max-width: 899px) {
  .film-label, .film-statement { grid-column: 1 / -1; }
  .film-inner { margin-top: -26vh; }
}

/* ==========================================================================
   Biography
   ========================================================================== */

.about { padding-bottom: 0; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.about-aside { grid-column: 1 / 5; position: sticky; top: calc(var(--mast) + 8vh); }
.pull { font: italic 400 clamp(2rem, 3.7vw, 3.9rem)/1.02 var(--f-display); color: var(--cobalt); text-indent: -.4em; padding-left: .4em; max-width: 12ch; }
.chrono { grid-column: 6 / 13; border-bottom: 1px solid var(--rule); }
.chrono-row { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: var(--gap); padding: clamp(24px, 2.6vw, 40px) 0; border-top: 1px solid var(--rule); }
.chrono-when { font: 400 clamp(1.7rem, 2.4vw, 2.6rem)/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: lining-nums; }
.chrono-when:not(:empty) { padding-top: .08em; }
.chrono-what { font-size: clamp(1.12rem, 1.3vw, 1.32rem); line-height: 1.55; max-width: 58ch; }
.chrono-what p + p { margin-top: .8em; }
.chrono-row:first-child .chrono-what { font: 300 clamp(1.4rem, 2vw, 2rem)/1.32 var(--f-text); }
@media (max-width: 899px) {
  .about-aside { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .chrono { grid-column: 1 / -1; }
  .chrono-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Techniques — with a loupe
   ========================================================================== */

.tech-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: clamp(56px, 7vw, 120px); }
.tech-lede { grid-column: 1 / 9; font: 300 clamp(1.5rem, 2.6vw, 2.7rem)/1.28 var(--f-text); letter-spacing: -.006em; }
.tech-hint { grid-column: 10 / 13; align-self: end; justify-self: end; color: var(--ink-3); display: none; }
@media (hover: hover) and (pointer: fine) { .tech-hint { display: block; } }
.details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(64px, 8vw, 140px); align-items: start; }
.detail-frame { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.detail-frame .pic { position: absolute; inset: 0; }
.detail figcaption { display: grid; grid-template-columns: 3rem 1fr; gap: 4px 12px; margin-top: 16px; align-items: baseline; }
.detail-no { color: var(--cobalt); grid-row: 1 / 3; }
.detail figcaption strong { font: italic 400 clamp(1.5rem, 2vw, 2.1rem)/1.05 var(--f-display); }
.detail figcaption span:last-child { color: var(--ink-2); font-size: 1.02rem; }
.loupe {
  position: absolute; left: 0; top: 0; width: clamp(180px, 16vw, 260px); aspect-ratio: 1; border-radius: 50%;
  pointer-events: none; opacity: 0; scale: .6;
  translate: calc(var(--lx, 0px) - 50%) calc(var(--ly, 0px) - 50%);
  background: var(--paper-lo) var(--loupe-src) no-repeat; background-size: var(--lbw, 300%) auto; background-position: var(--lbx, 50%) var(--lby, 50%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .9), 0 0 0 5px rgb(28 26 22 / .12), 0 22px 60px rgb(0 0 0 / .35);
  transition: opacity .3s, scale .45s var(--ease-out);
}
.loupe::after { /* a ring of running stitches */
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .7);
}
.detail-frame.is-looking { cursor: none; }
.detail-frame.is-looking .loupe { opacity: 1; scale: 1; }
@media (min-width: 900px) {
  .detail-1 { grid-column: 1 / 8; }
  .detail-2 { grid-column: 9 / 13; margin-top: clamp(120px, 14vw, 260px); }
  .detail-3 { grid-column: 2 / 7; }
  .detail-4 { grid-column: 8 / 13; margin-top: clamp(60px, 8vw, 160px); }
}
@media (max-width: 899px) {
  .detail { grid-column: 1 / -1; }
  .detail:nth-child(even) { grid-column: 2 / -1; }
  .tech-lede { grid-column: 1 / -1; }
}

/* ==========================================================================
   Philosophy — the veil
   ========================================================================== */

.philosophy {
  margin-top: var(--section); padding-bottom: var(--section);
  background: color-mix(in oklab, var(--paper) 86%, var(--saffron));
}
.philosophy + .exhibitions { padding-top: calc(var(--section) * .7); }
.philosophy .section-index span { color: var(--rust); }
.credo { margin: 0 0 clamp(80px, 11vw, 200px); padding: 0; }
.credo p {
  font: 400 clamp(2.2rem, 5.4vw, 6.2rem)/1.01 var(--f-display); letter-spacing: -.014em;
  max-width: 24ch; text-indent: -.42em; hanging-punctuation: first;
}
@media (min-width: 900px) { .credo { padding-left: calc((100% - 11 * var(--gap)) / 12 * 2 + var(--gap) * 2); } }
.lang-fr .credo p { text-indent: -.62em; }
.phil-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.veil { grid-column: 1 / 6; position: sticky; top: calc(var(--mast) + 6vh); }
.veil-frame { position: relative; overflow: hidden; cursor: crosshair; }
.veil-frame .pic { position: absolute; inset: 0; }
/* The cloth of illusion: a sheer, faintly threaded layer over the work,
   with one hole — wherever the visitor looks, the veil is patched open. */
.veil-cloth {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .22) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .12) 0 1px, transparent 1px 6px),
    color-mix(in oklab, var(--paper) 62%, transparent);
  -webkit-backdrop-filter: blur(9px) saturate(.7); backdrop-filter: blur(9px) saturate(.7);
  --hole: clamp(70px, 9vw, 130px);
  -webkit-mask: radial-gradient(circle at var(--vx) var(--vy), transparent calc(var(--hole) - 1px), #000 var(--hole));
  mask: radial-gradient(circle at var(--vx) var(--vy), transparent calc(var(--hole) - 1px), #000 var(--hole));
}
.veil-patch {
  position: absolute; left: var(--vx); top: var(--vy); width: calc(var(--hole) * 2 + 14px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1.5px dashed var(--rust); pointer-events: none;
  --hole: clamp(70px, 9vw, 130px);
}
.veil-frame { --vx: 38%; --vy: 42%; }
@media (prefers-reduced-motion: no-preference) {
  .veil-frame:not(.is-tracking) { animation: wander 16s ease-in-out infinite alternate; }
  @keyframes wander {
    0% { --vx: 30%; --vy: 34%; } 25% { --vx: 64%; --vy: 28%; } 50% { --vx: 70%; --vy: 66%; }
    75% { --vx: 34%; --vy: 70%; } 100% { --vx: 48%; --vy: 46%; }
  }
}
.veil figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.veil figcaption em { font: italic 400 1.4rem/1.1 var(--f-display); }
.veil figcaption span { color: var(--ink-3); }
.phil-texts { grid-column: 7 / 13; }
.phil-block + .phil-block { margin-top: clamp(56px, 6vw, 100px); }
.phil-block h3 { font: italic 400 clamp(2rem, 3.2vw, 3.3rem)/1 var(--f-display); margin-bottom: .55em; }
.phil-block p { font-size: clamp(1.15rem, 1.35vw, 1.38rem); line-height: 1.58; max-width: 54ch; }
.phil-closing {
  margin-top: clamp(64px, 7vw, 120px); padding-top: 28px; border-top: 1px solid var(--rule-strong);
  font: 300 italic clamp(1.4rem, 2vw, 2rem)/1.36 var(--f-text); max-width: 40ch;
}
@media (max-width: 899px) {
  .veil { grid-column: 1 / -1; position: relative; top: 0; margin-bottom: 64px; }
  .phil-texts { grid-column: 1 / -1; }
}

/* ==========================================================================
   Exhibitions
   ========================================================================== */

.featured {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 22px;
  padding: clamp(32px, 4vw, 64px) 0 clamp(40px, 5vw, 80px);
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(100px, 12vw, 220px);
}
.featured-kicker { grid-column: 1 / -1; color: var(--cobalt); display: flex; align-items: center; gap: 12px; }
.featured-kicker::before { content: ""; width: 9px; height: 9px; background: var(--saffron); }
.featured-title { grid-column: 1 / 11; font: 400 clamp(2.8rem, 7.6vw, 8.6rem)/.9 var(--f-display); letter-spacing: -.02em; margin-left: -.04em; }
.featured-title span { font-style: italic; color: var(--cobalt); }
.featured-meta { grid-column: 1 / -1; color: var(--ink-2); margin-top: 6px; }
.featured-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 var(--gap); margin-top: clamp(24px, 3vw, 48px); }
.featured-facts div { padding: 18px 0 0; border-top: 1px solid var(--rule); }
.featured-facts dt { color: var(--ink-3); margin-bottom: 8px; }
.featured-facts dd { font: 400 1.18rem/1.38 var(--f-text); }
.featured-facts div:first-child dd { font: 400 clamp(1.5rem, 2.2vw, 2.2rem)/1.1 var(--f-display); }
.featured-text { grid-column: 1 / -1; columns: 2 26ch; column-gap: calc(var(--gap) * 2); margin-top: clamp(24px, 3vw, 48px); font-size: clamp(1.1rem, 1.25vw, 1.3rem); }
.featured-text p + p { margin-top: .8em; }
.featured-text p { break-inside: avoid; }

.timeline-title { font: italic 400 clamp(2rem, 3.6vw, 3.6rem)/1 var(--f-display); margin-bottom: clamp(32px, 4vw, 64px); }
.timeline-title span { font-style: normal; color: var(--cobalt); vertical-align: super; margin-left: .3em; }
.year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.year-n {
  grid-column: 1 / 4; position: sticky; top: calc(var(--mast) + 12px); align-self: start;
  padding-top: 14px; font: 400 clamp(3.6rem, 7.4vw, 8.4rem)/.86 var(--f-display); letter-spacing: -.02em; color: var(--cobalt);
  font-variant-numeric: lining-nums;
}
.year-list { grid-column: 4 / 13; }
.event {
  position: relative; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr auto; gap: 10px var(--gap);
  padding: 22px 0 26px; border-top: 1px solid var(--rule);
}
.year-list .event:first-child { border-top: 0; }
.event::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--cobalt);
  scale: 0 1; transform-origin: left; transition: scale .9s var(--ease-out);
}
.event:hover::before { scale: 1 1; }
.event-date { color: var(--ink-2); padding-top: .5em; }
.event-title { font: 400 clamp(1.45rem, 2vw, 2.1rem)/1.08 var(--f-display); }
.event-title sup { font-size: .55em; top: .1em; }
.is-solo .event-title::before { content: ""; display: inline-block; width: .32em; height: .32em; margin-right: .3em; background: var(--saffron); vertical-align: .18em; }
.event-fields { margin-top: 10px; display: grid; gap: 4px; }
.event-fields div { display: grid; grid-template-columns: 8.4rem 1fr; gap: 12px; align-items: baseline; }
.event-fields dt { color: var(--ink-3); font-size: .66rem; }
.event-fields dd { font-size: 1rem; line-height: 1.42; color: var(--ink-2); }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: start; padding-top: .3em; max-width: 15rem; }
.event-tags li { font-size: .62rem; padding: 4px 8px 3px; border: 1px dashed var(--rule-strong); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 1099px) {
  .event { grid-template-columns: 1fr; }
  .event-date { padding-top: 0; }
  .event-tags { justify-content: flex-start; max-width: none; }
}
@media (max-width: 699px) {
  .year { grid-template-columns: 1fr; }
  .year-n { grid-column: 1; position: relative; top: 0; padding: 14px 0 6px; }
  .year-list { grid-column: 1; }
  .event-fields div { grid-template-columns: 1fr; gap: 0; }
  .featured-title { grid-column: 1 / -1; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding-bottom: var(--section); }
.contact-lede { max-width: 32ch; font: 300 clamp(1.3rem, 1.9vw, 1.9rem)/1.36 var(--f-text); margin-bottom: clamp(48px, 6vw, 100px); }
.contact-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: clamp(18px, 2vw, 30px) 0; border-top: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-k { grid-column: 1 / 3; color: var(--ink-3); }
.contact-email, .contact-ig { grid-column: 3 / 13; justify-self: start; position: relative; transition: color .4s; }
.contact-email { font: italic 400 clamp(2rem, 6.6vw, 8rem)/1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-email span { color: var(--cobalt); font-style: normal; }
.contact-ig { font: 400 clamp(1.6rem, 3.4vw, 3.6rem)/1 var(--f-display); display: inline-flex; gap: .3em; align-items: center; }
.contact-email::after, .contact-ig::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cobalt) 0 10px, transparent 10px 16px);
  scale: 0 1; transform-origin: left; transition: scale 1s var(--ease-out);
}
.contact-email:hover::after, .contact-ig:hover::after { scale: 1 1; }
.contact-email:hover, .contact-ig:hover { color: var(--cobalt); }
@media (max-width: 699px) {
  .contact-k, .contact-email, .contact-ig { grid-column: 1 / -1; }
  .contact-k { margin-bottom: 10px; }
}

/* ==========================================================================
   Footer — a woven selvedge
   ========================================================================== */

.footer { background: var(--night); color: var(--night-ink); padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom)); }
/* The page ends the way a hanging does: a narrow woven band, then the
   warp left loose as a fringe. */
.footer-weave { position: relative; height: 64px; margin: 0 calc(var(--gutter) * -1); }
.footer-weave::before { /* the band */
  content: ""; position: absolute; inset: 0 0 auto; height: 12px;
  background: conic-gradient(var(--cobalt) 0 25%, var(--cobalt-deep) 0 50%, var(--cobalt) 0 75%, var(--cobalt-deep) 0) 0 0 / 8px 6px;
}
.footer-weave::after { /* the fringe */
  content: ""; position: absolute; inset: 12px 0 0;
  background: repeating-linear-gradient(90deg, rgb(232 225 210 / .5) 0 1px, transparent 1px 4px);
  -webkit-mask: linear-gradient(#000, transparent), repeating-linear-gradient(90deg, #000 0 9px, rgb(0 0 0 / .4) 9px 13px, #000 13px 23px, rgb(0 0 0 / .65) 23px 31px);
  -webkit-mask-composite: source-in; mask: linear-gradient(#000, transparent) intersect, repeating-linear-gradient(90deg, #000 0 9px, rgb(0 0 0 / .4) 9px 13px, #000 13px 23px, rgb(0 0 0 / .65) 23px 31px);
}
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding-top: clamp(56px, 8vw, 120px); align-items: end; }
.footer-name { grid-column: 1 / -1; font: 400 clamp(3.2rem, 13.4vw, 16rem)/.84 var(--f-display); letter-spacing: -.025em; margin-left: -.05em; margin-bottom: clamp(24px, 4vw, 64px); }
.footer-nav { grid-column: 1 / 7; grid-row: 2; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 1rem/1.4 var(--f-text); }
.footer-langs { grid-column: 7 / 10; grid-row: 2; }
.footer-langs a { color: rgb(232 225 210 / .55); }
.footer-langs a[aria-current]::before { background: var(--saffron); }
.footer-top { grid-column: 10 / 13; grid-row: 2; justify-self: end; display: inline-flex; gap: 8px; align-items: center; }
.footer-top .ico { width: .6em; }
.footer-legal { grid-column: 1 / -1; grid-row: 3; color: rgb(232 225 210 / .5); text-transform: none; letter-spacing: .03em; border-top: 1px solid var(--night-rule); padding-top: 18px; }
@media (max-width: 899px) {
  .footer-nav, .footer-langs, .footer-top { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .footer-legal { grid-row: auto; }
}

/* ==========================================================================
   Viewer
   ========================================================================== */

.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #100f0d; color: var(--night-ink);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden;
  opacity: 1; transition: opacity .4s, display .4s allow-discrete, overlay .4s allow-discrete;
}
.viewer:not([open]) { display: none; opacity: 0; }
@starting-style { .viewer[open] { opacity: 0; } }
.viewer::backdrop { background: rgb(0 0 0 / .7); }
.viewer-stage { position: relative; display: grid; min-height: 0; padding: clamp(16px, 4vh, 48px) clamp(12px, 4vw, 64px) 12px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.viewer-stage picture { display: contents; }
.viewer-stage img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain; cursor: zoom-in;
  transition: transform .7s var(--ease-out), opacity .35s;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.viewer.is-zoomed .viewer-stage img { transform: scale(2.6); cursor: zoom-out; }
.viewer.is-swapping .viewer-stage img { opacity: 0; }
.viewer-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--night-rule);
}
.viewer-count { color: rgb(232 225 210 / .6); }
.viewer-count span { color: var(--saffron); }
.viewer-cap { text-align: center; }
.viewer-title { font: italic 400 clamp(1.3rem, 2vw, 2rem)/1.1 var(--f-display); }
.viewer-tech { color: rgb(232 225 210 / .6); margin-top: 4px; }
.viewer-ctrl { justify-self: end; display: flex; gap: 4px; }
.viewer-ctrl button { display: grid; place-items: center; width: 52px; height: 44px; border: 1px solid transparent; transition: border-color .3s, color .3s; }
.viewer-ctrl button:hover { border-color: var(--night-rule); color: var(--saffron); }
.viewer-ctrl svg { width: 30px; }
.viewer-close svg { width: 22px; }
.viewer.is-single [data-viewer-prev], .viewer.is-single [data-viewer-next], .viewer.is-single .viewer-count { visibility: hidden; }
@media (max-width: 699px) {
  .viewer-bar { grid-template-columns: 1fr auto; }
  .viewer-cap { grid-column: 1 / -1; grid-row: 1; text-align: left; }
}
::view-transition-old(viewer-image), ::view-transition-new(viewer-image) { animation-duration: .7s; animation-timing-function: var(--ease-out); }
::view-transition-group(viewer-image) { animation-duration: .7s; animation-timing-function: var(--ease-out); }

/* ---------- Cross-document transition between languages ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- 404 ---------- */

.nf { min-height: 100svh; }
.nf-main { min-height: 100svh; display: grid; align-content: space-between; gap: 48px; padding: 28px var(--gutter) 48px; background: repeating-linear-gradient(90deg, transparent 0 13px, rgb(28 26 22 / .07) 13px 14px); }
.nf-code { font: italic 400 clamp(8rem, 34vw, 30rem)/.8 var(--f-display); color: var(--cobalt); letter-spacing: -.04em; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px var(--gap); }
.nf-block { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.nf-title { font: italic 400 1.8rem/1 var(--f-display); }
.nf-block a { color: var(--cobalt); display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Reduced motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .masthead, .menu, .rail, .film-ambient, .player, .yt, .viewer, .scroll-cue, .loupe, .veil-cloth, .veil-patch, body::after { display: none !important; }
  .film, .footer { background: none; color: var(--ink); }
  .film-inner { margin-top: 0; }
  main > section { break-inside: avoid-page; }
}
