/* Rafael Balbi — portfolio, v3
   Story: the page opens on a messy pile of work and sorts itself as you scroll,
   then moves through ordered cases and ends on a strict table of numbers. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --stone: #f0ede6;
  --cyan: #bfeff6;
  --lime: #d4f6c0;
  --marker: #fff14d;
  --mute: #6b6b6b;
  --hair: #d8d8d8;

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing: one scale, base 4. Every margin, padding and gap uses a step.
     Proximity rule: the gap between two things is at least double the gap inside each of them.
       s1-s2  inside one element (label to value, picture to caption)
       s3-s4  between parts of one block (rule to title, title to its text)
       s5-s6  between blocks of one section (heading to content, row to row)
       s7-s8  between groups of one page area
       --section  between sections
     Exceptions: the hero pile is sized from the viewport, and pills keep their optical padding. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(var(--s8), 8vw, var(--s10));
  /* Grid: 12 columns. The page margin and the column gap are the same value, so every block lands on the same lines. */
  --gutter: clamp(16px, 1.67vw, 24px);
  --bar: 52px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption, .sample, .lab { text-wrap: pretty; }   /* no single word alone on a last line */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--marker); border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--bar) + var(--s3)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; }
.skip:focus { left: 8px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font: 500 14px/1 var(--sans); padding: 8px 12px 9px; border-radius: 7px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), filter .2s;
}
.pill.cyan { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.pill.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pill.white { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.pill.line { background: transparent; color: inherit; border-color: currentColor; }
.pill.small { font-size: 12px; padding: 5px 8px 6px; border-radius: 6px; }
.pill:hover { filter: brightness(.93); transform: translateY(-1px); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 0 var(--gutter); background: var(--ink); color: var(--paper);
}
.wordmark { font: 500 20px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: var(--s2) var(--s4); }
.topbar a.text { font-size: 15px; text-decoration: none; padding: var(--s2) 0; border-bottom: 1px solid transparent; }
.topbar a.text:hover { border-bottom-color: #8a8a8a; }
.topbar a.text[aria-current] { border-bottom-color: var(--paper); }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* ---------- Hero: the pile that sorts itself ---------- */
.hero-track { background: var(--ink); color: var(--paper); }
.stage {
  position: relative; height: calc(100svh - var(--bar)); min-height: 560px; overflow: hidden; container-type: inline-size;
  --p: 1;                       /* 0 = mess, 1 = sorted. Sorted is the resting state without script. */
  /* Sorted state: five columns, one per case. Index card on top, four pieces below. */
  --gtop: 52svh; --G: 2.4cqw; --g2: .5cqw; --lh: 3.4svh; --ih: 15svh; --sh: 10svh; --sg: .6svh;
  --gw: calc((100cqw - 2 * var(--gutter) - 4 * var(--G)) / 5);
}
html.anim .hero-track { height: 230svh; }
html.anim .stage { position: sticky; top: var(--bar); --p: 0; }

.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; top: 6svh; padding: 0 var(--gutter); text-align: center; }
.hero-copy h1 {
  margin: 0 auto; max-width: 21ch;
  font-family: var(--serif); font-weight: 300; font-size: min(5.7cqw, 8.4svh); line-height: 1; letter-spacing: -.022em;
}
.hero-copy p { margin: 2.4svh auto 0; max-width: 40rem; font-size: clamp(14px, 1.2cqw, 17px); color: #d6d6d6; }
.hero-cta { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; margin-top: 2.6svh; }
.veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 56% 33% at 50% 26%, rgba(0,0,0,.97) 55%, rgba(0,0,0,0) 100%); }

.t {
  --q: clamp(0, calc(var(--p) * 1.6 - var(--d)), 1);
  --fw: calc(var(--big) * var(--gw) + (1 - var(--big)) * (var(--gw) - var(--g2)) / 2);
  --fh: calc(var(--big) * var(--ih) + (1 - var(--big)) * var(--sh));
  --gx: calc(var(--gutter) + var(--g) * (var(--gw) + var(--G)) + var(--sx) * (var(--gw) + var(--g2)) / 2);
  --gy: calc(var(--gtop) + var(--lh) + (1 - var(--big)) * (var(--ih) + var(--sg)) + var(--sr) * (var(--sh) + var(--sg)));
  position: absolute; left: 0; top: 0; z-index: 1; overflow: hidden; border-radius: 4px; background: #1c1c1c;
  width: calc(var(--cw) * (1 - var(--q)) + var(--fw) * var(--q));
  height: calc(var(--ch) * (1 - var(--q)) + var(--fh) * var(--q));
  transform: translate(calc(var(--cx) * (1 - var(--q)) + var(--gx) * var(--q)), calc(var(--cy) * (1 - var(--q)) + var(--gy) * var(--q))) rotate(calc(var(--r) * (1 - var(--q))));
  box-shadow: 0 calc(18px * (1 - var(--q))) calc(50px * (1 - var(--q))) rgba(0,0,0,.6);
  will-change: transform, width, height;
}
.t img { width: 100%; height: 100%; object-fit: cover; }
.t.idx { background: #f1f1f4; }
.t.idx img { object-fit: contain; }
.grp {
  position: absolute; z-index: 1; top: var(--gtop); left: calc(var(--gutter) + var(--g) * (var(--gw) + var(--G))); width: var(--gw);
  height: calc(var(--lh) - var(--sg)); display: flex; align-items: flex-end; padding-bottom: 4px; border-top: 1px solid var(--paper);
  font: 500 13px/1.15 var(--sans); color: var(--paper); text-decoration: none;
  opacity: calc((var(--p) - .6 - var(--g) * .05) * 6); pointer-events: none;
}
.t:hover, .t:focus-visible { z-index: 6; outline: 2px solid var(--paper); outline-offset: 2px; }

.mess { position: absolute; z-index: 4; left: var(--x); top: var(--y); transform: rotate(var(--r)); opacity: calc(1 - var(--p) * 3.5); pointer-events: none;
  font: 500 13px/1 var(--sans); padding: 7px 10px 8px; border-radius: 7px; background: var(--paper); color: var(--ink); white-space: nowrap; }
.mess.y { background: var(--marker); }
.mess.c { background: var(--cyan); }
.cue-note { margin: 1.4svh 0 0; font-size: 13px; color: #9a9a9a; opacity: calc(1 - var(--p) * 4); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Sections ----------
   A 2px rule opens a section. A 1px rule divides things inside one. */
.section { padding: 0 var(--gutter); margin-top: var(--section); }
.grid12, .section-head, .case-card, .about, .path li, .split, .next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section-head { border-top: 2px solid var(--ink); padding-top: var(--s3); margin-bottom: var(--s6); align-items: baseline; row-gap: var(--s2); }
.section-head h2 { grid-column: span 3; font: 400 clamp(30px, 3.2vw, 44px)/1.05 var(--sans); letter-spacing: -.025em; }
.section-head p { grid-column: span 6; font-family: var(--serif); font-size: clamp(17px, 1.4vw, 20px); }

/* ---------- Work: stacking case cards ---------- */
.work { margin-top: 0; padding-top: var(--s8); }
.case-card {
  position: sticky; top: var(--bar); background: var(--paper); border-top: 1px solid var(--ink);
  height: min(calc(100svh - var(--bar)), 740px); min-height: 540px; padding: var(--s4) 0 var(--s5); margin-bottom: 34svh;
}
.case-media { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.55fr 1fr; gap: var(--s2); min-height: 0; text-decoration: none; }
.case-media .tile { overflow: hidden; border-radius: 4px; background: #f1f1f4; min-height: 0; }
.case-media .tile:first-child { grid-column: 1 / -1; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-media .tile.contain img { object-fit: contain; padding: 7%; }
.case-media .tile.left img { object-position: left center; }
.case-media:hover img { transform: scale(1.025); }
.case-card:last-of-type { margin-bottom: 0; }
.case-text { grid-column: span 6; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); min-height: 0; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 13px; }
.case-text h3 { font-family: var(--serif); font-weight: 600; font-size: min(6vw, 12svh); line-height: .94; letter-spacing: -.03em; }
.case-text h3 a { text-decoration: none; }
.case-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.case-line { margin-top: var(--s4); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.2; }
.case-out { margin-top: var(--s4); font-family: var(--serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.35; }
.case-text a.pill { align-self: flex-start; margin-top: var(--s5); }

/* One pattern for every set of facts and figures: columns on the grid, each under its own 1px rule. */
.mini, .facts, .case-facts { display: grid; column-gap: var(--gutter); row-gap: var(--s5); margin: 0; }
.mini > div, .facts > div, .case-facts > div { border-top: 1px solid currentColor; padding-top: var(--s3); min-width: 0; }
.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.7vw, 40px); line-height: 1; letter-spacing: -.02em; }
.mini span { display: block; margin-top: var(--s1); font-size: 12px; line-height: 1.35; color: #333; }

/* ---------- House rules ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--gutter); }
.card .sample { text-wrap: balance; background: var(--stone); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: var(--s4); text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -.01em; border-radius: 3px; }
.card p { margin-top: var(--s3); font-size: 14px; line-height: 1.45; }

/* ---------- Path ---------- */
.path { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.path li { row-gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.path time { grid-column: span 3; font-size: 14px; font-variant-numeric: tabular-nums; }
.path .what { grid-column: span 6; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.2; }
.path .where { grid-column: span 3; font-size: 13px; color: var(--mute); }

/* ---------- About ---------- */
.about { align-items: start; row-gap: var(--s5); }
.about .portrait { grid-column: span 3; position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #eee; }
.about .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about .copy-col { grid-column: span 9; display: grid; grid-template-columns: subgrid; align-content: start; }
.about .lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -.012em; grid-column: span 6; }
.about .more { margin-top: var(--s5); font-family: var(--serif); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; grid-column: span 7; }
.facts { margin-top: var(--s7); grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 14px; }
.facts dt { color: var(--mute); font-size: 12px; }
.facts dd { margin: var(--s1) 0 0; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); margin-top: var(--section); padding: var(--section) var(--gutter); text-align: center; }
.contact h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 150px); line-height: .95; letter-spacing: -.03em; }
.contact .lede { margin: var(--s5) auto 0; max-width: 40rem; font-size: 17px; color: #d6d6d6; }
.contact .mail { display: inline-block; margin-top: var(--s7); font-family: var(--serif); font-size: clamp(24px, 3.2vw, 44px); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; overflow-wrap: anywhere; }
.contact .row { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); }
footer.foot { background: var(--ink); color: #bdbdbd; padding: var(--s4) var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 13px; border-top: 1px solid #262626; }
footer.foot nav { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }

/* ---------- Case pages ---------- */
.case-hero { background: var(--ink); color: var(--paper); padding: var(--s4) var(--gutter) var(--s8);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
.case-hero > .crumbs, .case-hero > .case-facts, .case-hero > .case-links { grid-column: 1 / -1; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; font-size: 13px; color: #cfcfcf; }
.crumbs a { text-decoration: none; border-bottom: 1px solid #6b6b6b; }
.crumbs a:hover { border-bottom-color: var(--paper); color: var(--paper); }
.crumbs .pn { display: flex; gap: var(--s4); }
.case-hero h1 { margin: clamp(var(--s7), 6vw, var(--s9)) 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6.6vw, 104px); line-height: .96; letter-spacing: -.03em; grid-column: span 9; }
.case-hero .sub { grid-column: span 7; margin-top: var(--s5); font-size: 19px; line-height: 1.45; color: #d6d6d6; }
.case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(var(--s7), 5vw, var(--s8)); }
.case-facts > div { border-top-color: #4a4a4a; }
.case-facts dt { font-size: 12px; color: #9a9a9a; }
.case-facts dd { margin: var(--s1) 0 0; font-size: 15px; line-height: 1.4; }
.case-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: var(--s6) 0 0; padding: 0; font-size: 15px; }
.case-links a { text-decoration: underline; text-underline-offset: 3px; }

.split { border-top: 2px solid var(--ink); padding-top: var(--s3); row-gap: var(--s4); }
.split h2 { grid-column: span 3; font: 400 clamp(30px, 3.2vw, 44px)/1.05 var(--sans); letter-spacing: -.025em; }
.split > .prose { grid-column: span 7; min-width: 0; }
.split > div:not(.prose) { grid-column: span 9; min-width: 0; display: grid; grid-template-columns: subgrid; align-content: start; }
.split > div:not(.prose) > .case-results { grid-column: 1 / -1; }
.split > div:not(.prose) > .after-results { grid-column: span 7; }
.prose { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }
.prose p + p { margin-top: var(--s4); }
.prose ol { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: var(--s3); }
.prose b { font-weight: 600; }

/* Justified rows: every row fills the width, every picture in a row has the same height.
   A caption sits s2 under its picture; the next row starts s7 below, so each caption reads with the picture above it. */
.jrow { display: flex; gap: var(--gutter); }
.jrow + .jrow { margin-top: var(--s7); }
.jfig { flex: var(--ar) 1 0; min-width: 0; }
.shot { display: block; width: 100%; aspect-ratio: var(--ar); padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #f1f1f4; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot.contain img { object-fit: contain; padding: 9%; }
.jfig figcaption { margin-top: var(--s2); font-size: 12.5px; line-height: 1.35; color: #333; }

.case-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.case-results div { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: var(--s4) var(--s4) var(--s5); }
.case-results div:first-child { background: var(--marker); }
.case-results strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: 1; letter-spacing: -.03em; }
.case-results span { display: block; margin-top: var(--s2); font-size: 14px; line-height: 1.4; max-width: 30ch; }
.after-results { margin-top: var(--s6); }

.next { border-top: 2px solid var(--ink); padding-top: var(--s3); row-gap: var(--s6); }
.next-main { grid-column: span 9; text-decoration: none; display: block; }
.next-main .k { font-size: 13px; }
.next-main .n { display: block; margin-top: var(--s3); font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.03em; }
.next-main:hover .n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.next-main .pill { margin-top: var(--s5); }
.others { grid-column: span 3; }
.others .k { font-size: 13px; color: var(--mute); }
.others ul { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.others li { border-bottom: 1px solid var(--hair); }
.others a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: var(--s3) 0; font-size: 15px; text-decoration: none; }
.others a:hover { text-decoration: underline; }
.others a span { color: var(--mute); font-size: 13px; text-align: right; }

/* ---------- Reveal on scroll (only when script is running) ---------- */
html.anim [data-reveal] { opacity: 0; transform: translateY(var(--s5)); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
html.anim [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 70svh; display: grid; place-content: center; text-align: center; padding: var(--s7) var(--gutter); }
.lost h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -.03em; }
.lost p { margin-top: var(--s4); font-size: 17px; }
.lost .row { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; margin-top: var(--s5); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .facts, .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head h2, .split h2 { grid-column: span 4; }
  .section-head p, .split > .prose, .split > div:not(.prose) { grid-column: span 8; }
  .case-hero h1 { grid-column: span 11; }
  .case-hero .sub, .about .more, .split > div:not(.prose) > .after-results { grid-column: span 8; }
  .about .lead { grid-column: span 7; }
  .about .portrait, .path time { grid-column: span 4; }
  .about .copy-col { grid-column: span 8; }
  .path .what { grid-column: span 8; }
  .path .where { grid-column: 5 / -1; }
  .next-main, .others { grid-column: 1 / -1; }
  /* Tablet: the text side of a case card needs 7 columns to hold its three figures. */
  .case-media { grid-column: span 5; }
  .case-text { grid-column: span 7; }
  .mini { column-gap: var(--s3); }
  .mini span { font-size: 11px; }
}
@media (max-width: 760px) {
  .topbar a.text { display: none; }
  .stage { --gtop: 52svh; --G: 2cqw; --g2: 1cqw; --lh: 4.6svh; --ih: 9.5svh; --sh: 6.6svh; }
  .grp { font-size: 10px; }
  .mess.hi { display: none; }
  .hero-copy { top: 4svh; }
  .hero-copy h1 { font-size: min(9.4cqw, 6.4svh); max-width: 14ch; }
  .hero-copy p { font-size: 14px; margin-top: 1.6svh; }
  .hero-cta { margin-top: 1.8svh; }
  .veil { background: radial-gradient(ellipse 90% 30% at 50% 24%, rgba(0,0,0,.92) 45%, rgba(0,0,0,0) 100%); }
  /* One column: every block spans the full width, and the same scale sets the vertical rhythm. */
  .section-head h2, .section-head p, .split h2, .split > .prose, .split > div:not(.prose),
  .split > div:not(.prose) > .after-results, .case-media, .case-text, .case-hero h1, .case-hero .sub,
  .about .portrait, .about .copy-col, .about .lead, .about .more,
  .path time, .path .what, .path .where { grid-column: 1 / -1; }
  .section-head { margin-bottom: var(--s5); }
  .case-card { position: static; height: auto; min-height: 0; row-gap: var(--s5); padding-bottom: var(--s8); margin-bottom: 0; }
  .case-card:last-of-type { padding-bottom: 0; }
  .case-media { aspect-ratio: 4 / 3.4; }
  .case-text h3 { font-size: clamp(40px, 12vw, 64px); }
  .about .portrait { aspect-ratio: 4 / 3; }
  .facts { margin-top: var(--s6); }
  .jrow { flex-wrap: wrap; gap: var(--s6); }
  .jrow + .jrow { margin-top: var(--s6); }
  .jrow .jfig { flex: 1 1 100%; }
  .case-results { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cards, .case-facts { grid-template-columns: 1fr; }
  /* Small phones: one figure per row, number on the left and its label beside it. */
  .mini { grid-template-columns: 1fr; row-gap: var(--s3); }
  .mini > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: var(--s3); align-items: baseline; }
  .mini span { margin-top: 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}

/* Hero pile: generated positions */
.t:nth-of-type(1){--cx:-6.7cqw;--cy:66.5svh;--cw:13.5cqw;--ch:24.3svh;--r:6.3deg;--g:0;--big:1;--sx:0;--sr:0;--d:0.0;z-index:1}
.t:nth-of-type(2){--cx:18.9cqw;--cy:77.5svh;--cw:13.3cqw;--ch:20.6svh;--r:-2.4deg;--g:0;--big:0;--sx:0;--sr:0;--d:0.022;z-index:2}
.t:nth-of-type(3){--cx:23.9cqw;--cy:56.0svh;--cw:14.7cqw;--ch:19.6svh;--r:10.9deg;--g:0;--big:0;--sx:1;--sr:0;--d:0.044;z-index:1}
.t:nth-of-type(4){--cx:87.5cqw;--cy:0.3svh;--cw:14.8cqw;--ch:21.0svh;--r:-7.4deg;--g:0;--big:0;--sx:0;--sr:1;--d:0.066;z-index:2}
.t:nth-of-type(5){--cx:5.5cqw;--cy:81.8svh;--cw:14.2cqw;--ch:16.1svh;--r:-11.0deg;--g:0;--big:0;--sx:1;--sr:1;--d:0.088;z-index:1}
.t:nth-of-type(6){--cx:49.9cqw;--cy:62.4svh;--cw:14.7cqw;--ch:21.6svh;--r:3.3deg;--g:1;--big:1;--sx:0;--sr:0;--d:0.11;z-index:2}
.t:nth-of-type(7){--cx:56.8cqw;--cy:71.5svh;--cw:17.1cqw;--ch:17.4svh;--r:5.6deg;--g:1;--big:0;--sx:0;--sr:0;--d:0.132;z-index:1}
.t:nth-of-type(8){--cx:10.8cqw;--cy:69.6svh;--cw:16.9cqw;--ch:16.1svh;--r:5.5deg;--g:1;--big:0;--sx:1;--sr:0;--d:0.154;z-index:2}
.t:nth-of-type(9){--cx:80.5cqw;--cy:35.1svh;--cw:12.8cqw;--ch:18.6svh;--r:5.5deg;--g:1;--big:0;--sx:0;--sr:1;--d:0.176;z-index:1}
.t:nth-of-type(10){--cx:31.5cqw;--cy:57.2svh;--cw:19.0cqw;--ch:21.4svh;--r:-10.6deg;--g:1;--big:0;--sx:1;--sr:1;--d:0.198;z-index:2}
.t:nth-of-type(11){--cx:36.7cqw;--cy:79.2svh;--cw:15.1cqw;--ch:16.1svh;--r:-3.4deg;--g:2;--big:1;--sx:0;--sr:0;--d:0.22;z-index:1}
.t:nth-of-type(12){--cx:-0.8cqw;--cy:74.9svh;--cw:14.9cqw;--ch:21.1svh;--r:-4.9deg;--g:2;--big:0;--sx:0;--sr:0;--d:0.242;z-index:2}
.t:nth-of-type(13){--cx:29.0cqw;--cy:56.5svh;--cw:18.8cqw;--ch:21.3svh;--r:-9.4deg;--g:2;--big:0;--sx:1;--sr:0;--d:0.264;z-index:1}
.t:nth-of-type(14){--cx:-3.5cqw;--cy:1.1svh;--cw:16.4cqw;--ch:23.5svh;--r:11.4deg;--g:2;--big:0;--sx:0;--sr:1;--d:0.286;z-index:2}
.t:nth-of-type(15){--cx:84.7cqw;--cy:70.9svh;--cw:13.7cqw;--ch:16.4svh;--r:14.2deg;--g:2;--big:0;--sx:1;--sr:1;--d:0.308;z-index:1}
.t:nth-of-type(16){--cx:41.8cqw;--cy:56.4svh;--cw:12.5cqw;--ch:17.9svh;--r:-3.9deg;--g:3;--big:1;--sx:0;--sr:0;--d:0.33;z-index:2}
.t:nth-of-type(17){--cx:67.4cqw;--cy:67.0svh;--cw:15.6cqw;--ch:18.3svh;--r:-2.4deg;--g:3;--big:0;--sx:0;--sr:0;--d:0.352;z-index:1}
.t:nth-of-type(18){--cx:82.5cqw;--cy:57.9svh;--cw:13.5cqw;--ch:24.2svh;--r:-2.7deg;--g:3;--big:0;--sx:1;--sr:0;--d:0.374;z-index:2}
.t:nth-of-type(19){--cx:58.5cqw;--cy:57.3svh;--cw:14.7cqw;--ch:20.3svh;--r:-11.7deg;--g:3;--big:0;--sx:0;--sr:1;--d:0.396;z-index:1}
.t:nth-of-type(20){--cx:80.2cqw;--cy:21.3svh;--cw:17.3cqw;--ch:20.6svh;--r:-11.8deg;--g:3;--big:0;--sx:1;--sr:1;--d:0.418;z-index:2}
.t:nth-of-type(21){--cx:46.5cqw;--cy:79.3svh;--cw:16.4cqw;--ch:17.1svh;--r:-10.9deg;--g:4;--big:1;--sx:0;--sr:0;--d:0.44;z-index:1}
.t:nth-of-type(22){--cx:-4.0cqw;--cy:36.3svh;--cw:13.6cqw;--ch:18.6svh;--r:4.6deg;--g:4;--big:0;--sx:0;--sr:0;--d:0.462;z-index:2}
.t:nth-of-type(23){--cx:71.1cqw;--cy:82.0svh;--cw:18.3cqw;--ch:20.4svh;--r:14.3deg;--g:4;--big:0;--sx:1;--sr:0;--d:0.484;z-index:1}
.t:nth-of-type(24){--cx:-1.4cqw;--cy:22.4svh;--cw:16.2cqw;--ch:23.0svh;--r:-9.1deg;--g:4;--big:0;--sx:0;--sr:1;--d:0.506;z-index:2}
.t:nth-of-type(25){--cx:76.9cqw;--cy:73.2svh;--cw:12.9cqw;--ch:20.3svh;--r:-12.8deg;--g:4;--big:0;--sx:1;--sr:1;--d:0.528;z-index:1}
@media (max-width: 760px){
.t:nth-of-type(1){--cx:18.0cqw;--cy:73.1svh;--cw:28.8cqw;--ch:10.9svh}
.t:nth-of-type(2){--cx:65.2cqw;--cy:88.1svh;--cw:36.9cqw;--ch:9.8svh}
.t:nth-of-type(3){--cx:64.2cqw;--cy:88.0svh;--cw:31.8cqw;--ch:8.5svh}
.t:nth-of-type(4){--cx:47.3cqw;--cy:50.5svh;--cw:29.0cqw;--ch:8.6svh}
.t:nth-of-type(5){--cx:37.1cqw;--cy:88.0svh;--cw:29.2cqw;--ch:10.3svh}
.t:nth-of-type(6){--cx:78.5cqw;--cy:4.1svh;--cw:34.5cqw;--ch:10.3svh}
.t:nth-of-type(7){--cx:20.6cqw;--cy:64.0svh;--cw:37.5cqw;--ch:11.3svh}
.t:nth-of-type(8){--cx:33.6cqw;--cy:63.7svh;--cw:29.0cqw;--ch:9.2svh}
.t:nth-of-type(9){--cx:33.5cqw;--cy:58.7svh;--cw:32.3cqw;--ch:10.4svh}
.t:nth-of-type(10){--cx:72.8cqw;--cy:53.1svh;--cw:39.2cqw;--ch:9.7svh}
.t:nth-of-type(11){--cx:23.6cqw;--cy:75.4svh;--cw:28.8cqw;--ch:8.8svh}
.t:nth-of-type(12){--cx:49.3cqw;--cy:65.2svh;--cw:36.5cqw;--ch:11.9svh}
.t:nth-of-type(13){--cx:29.0cqw;--cy:54.4svh;--cw:30.3cqw;--ch:11.9svh}
.t:nth-of-type(14){--cx:-7.3cqw;--cy:0.4svh;--cw:39.4cqw;--ch:10.5svh}
.t:nth-of-type(15){--cx:69.0cqw;--cy:69.9svh;--cw:36.9cqw;--ch:9.6svh}
.t:nth-of-type(16){--cx:-0.1cqw;--cy:60.8svh;--cw:37.6cqw;--ch:8.3svh}
.t:nth-of-type(17){--cx:12.9cqw;--cy:57.2svh;--cw:39.1cqw;--ch:9.4svh}
.t:nth-of-type(18){--cx:4.2cqw;--cy:71.4svh;--cw:30.2cqw;--ch:9.1svh}
.t:nth-of-type(19){--cx:66.5cqw;--cy:63.9svh;--cw:33.3cqw;--ch:10.9svh}
.t:nth-of-type(20){--cx:-7.5cqw;--cy:0.8svh;--cw:28.6cqw;--ch:8.9svh}
.t:nth-of-type(21){--cx:25.1cqw;--cy:69.3svh;--cw:34.7cqw;--ch:9.6svh}
.t:nth-of-type(22){--cx:3.5cqw;--cy:67.2svh;--cw:32.8cqw;--ch:9.1svh}
.t:nth-of-type(23){--cx:74.8cqw;--cy:4.3svh;--cw:34.9cqw;--ch:8.8svh}
.t:nth-of-type(24){--cx:36.7cqw;--cy:81.1svh;--cw:35.4cqw;--ch:10.0svh}
.t:nth-of-type(25){--cx:35.0cqw;--cy:56.6svh;--cw:35.3cqw;--ch:8.3svh}
}
