/* Layout: a concert programme. Ink-blue type on paper-white, red velvet for actions, brass for details. Full-bleed hall photo, then a 70rem column. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --fg: #111b2b;        /* programme ink */
  --muted: #546072;
  --line: #d5dae2;
  --velvet: #9e1b32;    /* hall seats */
  --brass: #94701f;
  --display: "Libre Caslon Display", "Didot", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --italic: italic 400 1em/1.3 "Libre Caslon Text", Georgia, serif; /* Caslon Display has no italic: never let the browser fake one */
  --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1420; --surface: #141d2b; --fg: #e9edf3; --muted: #9ba7b8; --line: #263244;
    --velvet: #e0566b; --brass: #d6ad55; --logo-filter: invert(1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1420; --surface: #141d2b; --fg: #e9edf3; --muted: #9ba7b8; --line: #263244;
  --velvet: #e0566b; --brass: #d6ad55; --logo-filter: invert(1); color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--velvet); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--velvet); color: #fff; }
html { scrollbar-color: var(--muted) var(--bg); accent-color: var(--velvet); caret-color: var(--velvet); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.wrap { max-width: 70rem; margin-inline: auto; padding-inline: 1.25rem; }
/* A programme sets the subtitle under the title, in italic: never a tracked-caps kicker above it. */
.sub { font: var(--italic); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--brass); }
h1 + .sub, h2 + .sub { margin-top: -.35rem; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section > .wrap { display: grid; gap: 2rem; }
.head { display: grid; gap: .6rem; max-width: 42rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.prose { display: grid; gap: 1rem; max-width: 40rem; }

.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bg); transition: translate .3s ease; }
.top.away:not(:has(:focus-visible)) { translate: 0 -100%; } /* hidden while scrolling down (build.py), back for keyboard focus only: a tapped menu button must not pin it */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 1.85rem; line-height: 1; }
.brand img { width: 76px; height: auto; filter: var(--logo-filter); }
.brand small { display: block; font-family: var(--body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; }
.top nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 500; font-size: .98rem; }
.top nav a:not(.btn)[aria-current="page"] { color: var(--velvet); text-decoration: underline; text-underline-offset: 6px; }
/* Menu button: below the width where the links no longer fit on the brand's line, they fold behind it (build.py adds .menu). */
.menu-btn { display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1.5px solid var(--fg); border-radius: 3px; background: none; color: var(--fg); cursor: pointer; }
.menu-btn svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn path { transition: transform .25s ease, opacity .2s; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] path:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] path:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 63.9375rem) {
  .top.menu .menu-btn { display: grid; }
  .top.menu nav { display: none; }
  .top.menu.open nav { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 0; padding-bottom: .5rem; }
  .top.menu.open nav a:not(.btn) { padding: .7rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
  .top.menu.open nav .btn { justify-content: center; margin-top: .75rem; }
}

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 3px; text-decoration: none;
  border: 1.5px solid var(--velvet); background: var(--velvet); color: #fff; font: 600 1rem var(--body); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.wa { background: #1f7a4a; border-color: #1f7a4a; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero { position: relative; background: #0d1420; color: #fff; }
.hero img { width: 100%; height: clamp(24rem, 72vh, 42rem); object-fit: cover; object-position: center 55%; }
.hero .over { position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to right, rgba(8, 12, 20, .95), rgba(8, 12, 20, .8) 35%, rgba(8, 12, 20, .2) 62%, rgba(8, 12, 20, 0) 75%); }
.hero h1, .hero .credit, .hero blockquote { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero .wrap { display: grid; gap: 1rem; padding-block: 2.5rem; width: 100%; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.hero .credit { color: #e7c77d; font-weight: 500; letter-spacing: .02em; margin-top: -.25rem; }
.hero blockquote { margin: 0; font: var(--italic); font-size: clamp(1.2rem, 2.4vw, 1.6rem); max-width: 36rem; }
.hero .btn.ghost { color: #fff; border-color: #fff; }
@media (max-width: 48rem) {
  .hero img { height: 20rem; }
  .hero .over { position: static; background: none; }
  .hero .wrap { padding-block: 1.75rem 2.25rem; }
}

.pagehead { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.pagehead .wrap { display: grid; gap: .6rem; }
.pagehead h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Programme-style listing: two ensembles */
.programme-title { font-size: 1.6rem; }
.programme { display: grid; gap: 0; border-top: 2px solid var(--fg); margin: 0; }
.programme > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.programme dt { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.programme dd { margin: 0; display: grid; gap: .25rem; }
.programme .time { font-variant-numeric: tabular-nums; color: var(--brass); font-weight: 600; }
@media (max-width: 34rem) { .programme > div { grid-template-columns: 1fr; gap: .4rem; } }

.split { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
/* Key facts as a ruled line of the programme, figure after its label, not a row of hero metrics */
.figures { margin: .5rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 2.5rem; border-block: 1px solid var(--line); padding-block: .8rem; }
.figures div { display: flex; flex-direction: column-reverse; }
.figures dt { color: var(--muted); font-size: .9rem; }
.figures dd { margin: 0; font-family: var(--display); font-size: 1.75rem; line-height: 1.15; font-variant-numeric: lining-nums; }
@media (max-width: 30rem) { .figures { grid-template-columns: 1fr; gap: .6rem; } .figures div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .75rem; } }
/* Venues read like the list of halls in a season brochure */
.venues { list-style: none; margin: 0; padding: 0; font: var(--italic); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; }
.venues li { display: inline; }
.venues li:not(:last-child)::after { content: " · "; color: var(--brass); font-style: normal; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Testimonials as an open column of letters: no boxes, a hairline above each voice, short ones set large */
.quotes { columns: 2 24rem; column-gap: clamp(2rem, 5vw, 4rem); }
.quotes figure { margin: 0 0 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); break-inside: avoid; display: grid; gap: .9rem; }
.quotes blockquote { margin: 0; max-width: 34rem; }
.quotes blockquote p + p { margin-top: .7rem; }
.quotes .short blockquote { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.3; }
.quotes figcaption { font: var(--italic); font-size: 1.15rem; color: var(--velvet); }
.quotes figcaption::before { content: "— "; }

.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.ruled li { padding-block: .55rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.repertoire { columns: 2 18rem; column-gap: 3rem; }
.portrait { border-radius: 4px; width: 100%; max-width: 26rem; }

/* Fees set as a tariff in the programme: formula left, price right, details below */
.prices { display: grid; border-top: 2px solid var(--fg); }
.price { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.price h3 { font-size: 1.45rem; }
.price b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--velvet); white-space: nowrap; }
.price ul { grid-column: 1 / -1; margin: 0; padding-left: 1.1rem; color: var(--muted); }
.poster { border-radius: 3px; max-width: 22rem; }

.grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.grid figure { margin: 0; display: grid; gap: .35rem; }
.grid button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.grid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s ease; }
.grid.flyers img { aspect-ratio: 1 / 1.414; }
.grid button:hover img { transform: scale(1.03); }
@media (min-width: 40rem) {
  .grid.lead-photo { grid-template-columns: repeat(3, 1fr); } /* 12 photos, the first on 2×2: 15 cells fill 5 full rows */
  .grid.lead-photo figure:first-child { grid-column: span 2; grid-row: span 2; }
  .grid.lead-photo figure:first-child button, .grid.lead-photo figure:first-child img { height: 100%; }
}
.grid figcaption { font-size: .9rem; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(5, 8, 14, .92); }
dialog.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; cursor: zoom-out; }
dialog.lightbox p { color: #fff; text-align: center; padding-top: .5rem; }
dialog.lightbox button { position: fixed; top: 1rem; right: 1rem; }

.videos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.video { display: grid; gap: .5rem; color: var(--fg); text-decoration: none; }
.video .thumb { position: relative; border-radius: 3px; overflow: hidden; }
.video .thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.video .play { position: absolute; inset: 0; margin: auto; width: 3.75rem; height: 3.75rem; fill: rgba(158, 27, 50, .92); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.video .play path { fill: #fff; }
.video:hover .play { transform: scale(1.08); }
.videos.solo { grid-template-columns: 1fr; }
.video h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.video iframe, .video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 3px; background: #000; }
.video .credit { color: var(--muted); font-size: .85rem; }

.contact { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.direct { display: grid; gap: 1.25rem; }
.direct dl { margin: 0; display: grid; gap: .9rem; }
.direct dt { font-size: .92rem; color: var(--muted); }
.direct dd { margin: 0; font-size: 1.15rem; }
form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 1rem var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: .7rem .8rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 600; }
.status.ok { color: #1f7a4a; }
.status.err { color: var(--velvet); }

.cta-band { background: var(--fg); color: var(--bg); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band .btn.ghost { color: var(--bg); border-color: var(--bg); }
footer { padding-block: 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
footer h3 { font-size: 1.3rem; color: var(--fg); margin-bottom: .5rem; }
footer h3.next { margin-top: 1.25rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tight-top { padding-top: 0; }
.feature { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; background: #000; }

/* Home opening: the logo symbol in 3D smoked glass on the ink-blue night of the hero, laid over the
   page under the navigation bar (build.py places it from the bar's height). Leaving: the whole intro fades, the site fades in. */
.intro { display: none; position: fixed; inset: 0; z-index: 20; background: #0d1420; color: #f3ead7; transition: opacity .8s ease; }
html.intro-on { overflow: hidden; }
html.intro-on .intro { display: block; }
html.intro-leaving .intro { opacity: 0; pointer-events: none; }
html.intro-on:not(.intro-leaving) :is(main, footer) { opacity: 0; transform: translateY(2rem); }
main, footer { transition: opacity .9s .15s ease, transform 1s .15s cubic-bezier(.2, .7, .2, 1); }
.intro-stage { position: relative; height: 100%; overflow: hidden; display: grid; justify-items: center; align-content: end; gap: 1.5rem; padding-bottom: max(2rem, 5svh); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.intro.gl canvas { opacity: 1; }
.intro-flat { position: absolute; top: 12svh; height: 54svh; width: auto; left: 50%; transform: translateX(-50%); opacity: .85; }
.intro.gl .intro-flat { display: none; }
.intro-mark { position: relative; display: grid; justify-items: center; gap: .3rem; line-height: 1; text-align: center;
  animation: intro-in 1.6s .9s both cubic-bezier(.2, .7, .2, 1); }
.intro-mark span { font: 400 clamp(1.3rem, 3.2vw, 2.1rem) var(--body); letter-spacing: .22em; margin-right: -.22em; }
.intro-mark span, .intro-mark b { text-shadow: 1px 1px 0 #b49a62, 2px 2px 0 #94701f, 3px 3px 0 #6b5216, 5px 8px 14px rgba(0, 0, 0, .55); }
.intro-mark b { font: 400 clamp(2.6rem, 7vw, 4.6rem) var(--display); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.intro-next { position: relative; color: #e7c77d; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-decoration: none;
  display: grid; justify-items: center; gap: .6rem; animation: intro-in 1.2s 1.8s both ease-out; }
.intro-next::after { content: ""; width: 1px; height: 2.5rem; background: linear-gradient(#e7c77d, transparent); animation: intro-cue 2.2s 3s infinite ease-in-out; transform-origin: top; }
/* White variant: the glass symbol stands out on paper; dark name with a lighter gold relief, deeper gold cue */
.intro.light { background: #fff; color: #111b2b; }
.intro.light .intro-mark :is(span, b) { text-shadow: 1px 1px 0 #e3cf9c, 2px 2px 0 #c9a85a, 3px 4px 10px rgba(17, 27, 43, .18); }
.intro.light .intro-next { color: #7a5c15; }
.intro.light .intro-next::after { background: linear-gradient(#7a5c15, transparent); }
@keyframes intro-in { from { opacity: 0; transform: translateY(1.2rem); } }
@keyframes intro-cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .intro-mark, .intro-next, .intro-next::after { animation: none; }
}

/* ---------- Motion, adapted from 21st.dev components (js/fx.js runs the few that need JavaScript) ----------
   Scroll effects use CSS scroll-driven animations: browsers without them (Firefox today) simply show the page still.
   Everything that moves is switched off by "reduce motion". */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Splitting Text: the hero title enters letter by letter, once the 3D intro has left */
.letters .w { display: inline-block; white-space: nowrap; }
.letters .w span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .letters .w span { animation: split-in 1s calc(var(--i) * 45ms + .2s) both cubic-bezier(.2, .7, .2, 1); }
  html.intro-on .letters .w span { animation-play-state: paused; }
}
@keyframes split-in { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }

/* Text Highlight: a brass stroke drawn under the key words as they scroll into view */
.hl { background: linear-gradient(color-mix(in srgb, var(--brass) 38%, transparent), color-mix(in srgb, var(--brass) 38%, transparent)) no-repeat 0 92% / 100% .28em; }
/* Word Rotate */
.styles { font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.5rem); line-height: 1.25; }
/* The changing end of the sentence sits on its own lines, tall enough for the longest one, so the page never jumps */
.styles .rot { display: block; min-height: 2.5em; color: var(--velvet); }
@media (max-width: 30rem) { .styles .rot { min-height: 3.75em; } }

/* Scroll Velocity Text: the repertoire of the chef as a moving line of a programme */
.marquee { overflow: hidden; margin-bottom: 2.5rem; border-block: 1px solid var(--line); padding-block: .9rem; }
.marquee .track { display: flex; width: max-content; animation: marquee 220s linear infinite; }
.marquee span { font: var(--italic); font-size: clamp(1.4rem, 3vw, 2.1rem); white-space: nowrap; padding-right: .3em; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scroll Gallery (stage): the photos of past editions pinned one over the other */
.sg { display: grid; gap: 2rem; }
.sg-slide { position: sticky; top: 1rem; margin: 0; height: min(78vh, 40rem); border-radius: 4px; overflow: hidden; background: #0d1420; box-shadow: 0 -12px 40px rgba(8, 12, 20, .35); }
.sg-slide button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sg-slide img { width: 100%; height: 100%; object-fit: cover; }
.sg-slide.small img { object-fit: scale-down; }
.sg-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 1rem; align-items: baseline; padding: 2.5rem 1.25rem 1rem;
  color: #fff; font: var(--italic); font-size: 1.3rem; background: linear-gradient(to top, rgba(8, 12, 20, .85), transparent); pointer-events: none; }
.sg-slide figcaption span { font: 600 .85rem var(--body); letter-spacing: .14em; color: #e7c77d; }
@media (max-width: 40rem) { .sg-slide { height: 62vh; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hl { animation: hl-draw linear both; animation-timeline: view(); animation-range: entry 80% cover 40%; }
    /* Parallax Image: the hall photo of the hero drifts slower than the page */
    @media (min-width: 48rem) {
      .hero { overflow: clip; }
      .hero img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    }
    /* Zoom Parallax: the photos of « La vie de l'orchestre » settle at three different speeds */
    .grid.zoom img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .grid.zoom figure:nth-child(3n + 1) img { --z: 1.28; }
    .grid.zoom figure:nth-child(3n + 2) img { --z: 1.16; }
    /* 3D Parallax Unfurling Gallery: the photo wall unfolds row by row */
    .grid.unfurl { overflow-x: clip; } /* the tilted rows would otherwise widen the page on phones */
    .grid.unfurl figure { transform-origin: 50% 0; animation: unfurl linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .grid.unfurl figure:nth-child(2n) { animation-range: entry 10% entry 100%; }
  }
}
@keyframes hl-draw { from { background-size: 0% .28em; } }
@keyframes drift { to { translate: 0 22%; } }
@keyframes settle { from { scale: var(--z, 1.08); } }
@keyframes unfurl { from { transform: perspective(1100px) rotateX(32deg) translateY(2.5rem); opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
/* Ink blot carousel (js/ink.js): « La vie de l'orchestre », each photo spreads in like ink. Empty, so hidden, without JavaScript. */
.ink { position: relative; overflow: hidden; height: clamp(26rem, min(82vh, 68vw), 54rem); margin-block: 1rem; background: #0d0d0f; color: #fff; user-select: none; touch-action: pan-y; cursor: pointer; }
.ink:empty { display: none; }
.ink:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.ink-img, .ink-in { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; pointer-events: none; }
.ink-shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); pointer-events: none; }
.ink-cap { position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(140px, 20vw, 260px); bottom: clamp(16px, 4vh, 36px); margin: 0; font-size: 1rem; pointer-events: none; }
.ink-nav { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(12px, 3vh, 32px); display: flex; align-items: center; gap: 12px; cursor: default; }
.ink-count { font: 500 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; }
.ink-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.ink-nav button:hover { background: #fff; color: #0d0d0f; }
.ink-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) { .ink { height: 125vw; } }
