/* tdp5m.com: Infusion. A column of water at dusk, where clear colours open and catch the light.
   The water is computed (assets/fluid.js); this sheet sets the words on it,
   and the designed still for when there is no computed water. */

/* French sets a narrow no-break space (U+202F) before ; : ! ? and inside « ». Most faces
   lack that glyph and Chrome then draws half a word space, which reads as none: "Fine" holds
   only U+202F, 1/8 em wide, and every stack starts with it (shared/fonts, tools/fine.py). */
@font-face { font-family: "Fine"; src: url("fonts/fine.woff2") format("woff2"); unicode-range: U+202F; font-display: swap; }

@font-face {
  font-family: "Piazzolla";
  src: url(fonts/piazzolla-roman-latin.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Piazzolla";
  src: url(fonts/piazzolla-roman-latin-ext.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Piazzolla";
  src: url(fonts/piazzolla-italic-latin.woff2) format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  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: "Piazzolla";
  src: url(fonts/piazzolla-italic-latin-ext.woff2) format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* the fallback takes Piazzolla's measure, so the swap moves nothing.
   Measured on the home page's copy in Chrome and WebKit: Piazzolla sets 0.940 of
   Georgia's width in roman, 0.891 in italic; its ascent is 1.11 em, descent 0.31 em */
@font-face {
  font-family: "Piazzolla Fallback";
  src: local("Georgia"), local("Times New Roman");
  font-style: normal;
  size-adjust: 94%;
  ascent-override: 118.09%; descent-override: 32.98%; line-gap-override: 0%;
}
@font-face {
  font-family: "Piazzolla Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic");
  font-style: italic;
  size-adjust: 89.1%;
  ascent-override: 124.58%; descent-override: 34.79%; line-gap-override: 0%;
}

:root {
  --water: oklch(0.300 0.050 180);     /* #07362f the water at dusk, just under the surface: the page's ground */
  --deep: oklch(0.260 0.040 190);      /* #062a28 the deepest water */
  --air: oklch(0.350 0.045 200);       /* #194244 the dusk air above the surface */
  --foam: oklch(0.940 0.025 160);      /* #def1e5 text: 11.3:1 on the water, 9.4:1 on the air */
  --reed: oklch(0.800 0.040 165);      /* #a7c6b7 second text: 7.2:1 on the water, 6.0:1 on the air */
  --rose: oklch(0.780 0.110 12);       /* #f599a5 focus, hover: 6.3:1 on the water */
  --edge: oklch(0.620 0.040 170);      /* #6f8e82 the edge of a field: 3.7:1 on the water */
  --line: color-mix(in oklab, var(--reed) 30%, transparent);
  --top: clamp(80px, 3.77rem + 5.05vw, 112px);   /* the air above the surface: the header, 80 px on a phone, 112 px from 1024 px (BRIEF §0.4) */
  --m: max(6vw, 24px);                 /* page margin: 24 px on a phone, 20 px under 400 px wide (below) */
  --ml: calc(var(--m) + env(safe-area-inset-left, 0px));    /* the margins, clear of a notch */
  --mr: calc(var(--m) + env(safe-area-inset-right, 0px));
  --gap: 2vw;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--water);
  color: var(--foam);
  font-family: "Fine", "Piazzolla", "Piazzolla Fallback", Georgia, serif;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.18vw, 1.125rem);
  line-height: 1.62;
  font-weight: 400;
  touch-action: pan-y pinch-zoom;       /* the finger that stirs never holds the page */
  -webkit-tap-highlight-color: transparent;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
::selection { background: color-mix(in oklab, var(--rose) 38%, var(--water)); color: var(--foam); }

h1, h2, h3 { margin: 0; font-weight: 360; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
/* French body text may break long words; headings, the lead and the customer line never */
:lang(fr) :where(.copy p, .copy dd, .trio p) {
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4;
  -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
}
h1, h2, h3, .lead, .customer, a, label, button { -webkit-hyphens: manual; hyphens: manual; }
.date { white-space: nowrap; }   /* « 21 décembre 2022 » stays whole: joined by a no-break space, it would count as one long word */

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
    text-decoration-color: color-mix(in oklab, currentColor 42%, transparent); transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: var(--rose); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
/* a link inside a line: a taller target, the same line spacing */
.copy p a, .copy dd a { padding-block: 0.3em; margin-block: -0.3em; }
@media (pointer: coarse) { .copy p a, .copy dd a { padding-block: 0.6em; margin-block: -0.6em; } }

.skip {
  position: absolute; z-index: 10; left: var(--ml); top: calc(0.5rem + env(safe-area-inset-top, 0px));
  padding: 0.7rem 1rem; min-height: 44px;
  background: var(--foam); color: var(--water);
  transform: translateY(-180%);
}
.skip:focus, .skip:focus-visible { transform: none; }

/* ── the water ─────────────────────────────────────────────────────────── */
canvas.water {
  position: fixed; top: 0; left: 0; z-index: 0;
  display: block; width: 100%; height: 100lvh;
  pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease;   /* the first drop is already falling as it appears */
}
canvas.water.on { opacity: 1; }
/* reduced motion: one composed still of the first screen, scrolled with the page */
html.still canvas.water {
  position: absolute; height: 100svh;
  -webkit-mask-image: linear-gradient(to bottom, white calc(100% - 26svh), transparent);
  mask-image: linear-gradient(to bottom, white calc(100% - 26svh), transparent);
}
html.no-gl canvas.water { display: none; }

.top, main, .foot { position: relative; z-index: 1; }

/* ── the air, and the surface ─────────────────────────────────────────── */
/* the wordmark is sized like a corporate logo (BRIEF §0.4): cap height 16 px at
   390 px wide, rising with the width to 24 px from 1024 px (Piazzolla's caps are
   0.65 em). The links sit on its baseline: one flex line, baseline-aligned,
   centred in the air by align-content */
.top {
  height: calc(var(--top) + env(safe-area-inset-top, 0px));
  display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; justify-content: space-between; column-gap: 1rem;
  padding: env(safe-area-inset-top, 0px) var(--mr) 0 var(--ml);
  background: var(--air);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
html.gl .top { background-color: transparent; box-shadow: none; }
.mark { font-weight: 480; font-size: clamp(1.5625rem, 1.1rem + 1.893vw, 2.3125rem); line-height: 1; letter-spacing: 0.06em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
/* Contact, then the other language: plain words, 44 px targets, underlined on hover and focus only */
.lang {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.6rem 0;
  font-size: 0.9375rem; white-space: nowrap;
}
.write {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  font-size: 0.9375rem; white-space: nowrap;
}
.write + .lang { margin-left: 0; padding-inline: 1.5rem 0; }
.top .write, .top .lang { text-decoration: none; }
.top .write:hover, .top .write:focus-visible, .top .lang:hover, .top .lang:focus-visible { text-decoration: underline; text-decoration-color: currentColor; }
.lang.offer { animation: offer 2.6s ease-in-out 1.4s 1 both; }
@keyframes offer {
  0%, 100% { color: var(--foam); text-shadow: none; }
  45% { color: var(--rose); text-shadow: 0 0 0.8em color-mix(in oklab, var(--rose) 40%, transparent); }
}
/* the one control: it holds the water still. In the bottom-right corner of the
   first screen, 16 px from its edges and clear of the words; shown once the water runs */
.hero, .lost { position: relative; }
.pause {
  position: absolute; z-index: 2;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1px solid color-mix(in oklab, var(--reed) 40%, transparent); border-radius: 50%;
  background: color-mix(in oklab, var(--deep) 55%, transparent); color: var(--reed); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pause:hover { color: var(--rose); border-color: currentColor; }
.pause svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.pause[aria-pressed="true"] .i-pause, .pause:not([aria-pressed="true"]) .i-play { display: none; }
html.no-gl .pause, html.still .pause { display: none; }
@media (scripting: none) { .pause { display: none; } }

/* ── the grid ─────────────────────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-inline: var(--ml) var(--mr);
}
.bloom { grid-row: 1; min-height: 1px; }
.copy { grid-row: 1; }

/* the first screen: the words low on the left, the water blooming on the right */
.hero { min-height: calc(100svh - var(--top)); padding-block: 5svh 10svh; grid-template-rows: 1fr; }
.hero .bloom { grid-column: 7 / 13; align-self: stretch; }
.hero .copy { grid-column: 1 / 8; align-self: end; max-width: 13em; font-size: clamp(2.75rem, 1.2rem + 4.6vw, 6rem); }
.hero h1 {
  font-size: 1em; line-height: 1.02; font-weight: 330; letter-spacing: -0.015em;
}
.lead {
  margin: 0.42em 0 0; font-size: clamp(1.5rem, 0.95rem + 1.5vw, 2.25rem); line-height: 1.2;
  font-style: italic; font-weight: 360;
}
/* the sections are as tall as their words, and each has its own water beside them */
.sec { padding-block: 18svh 0; align-items: start; }
.sec .copy { grid-column: 1 / 7; max-width: 34em; }
.sec h2 { font-size: clamp(2rem, 1.1rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 0.7em; }
.sec h3 { font-size: clamp(1.3125rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 450; line-height: 1.2; margin: 0 0 0.25em; }
.sec .more { margin-top: 1.6em; }

/* the sections alternate after the hero: the position mirrored (the plume on the
   left, the words on the right), the shelf and the milestones with their words on
   the left and a plume beside them as tall as they are */
.position .bloom { grid-column: 1 / 7; align-self: stretch; }
.position .copy { grid-column: 7 / 13; }
.shelf .bloom, .milestones .bloom { grid-column: 8 / 13; align-self: stretch; }

/* the milestones: each date hanging beside what happened */
.years { margin: 0; padding: 0; list-style: none; font-variant-numeric: lining-nums; }
.years li {
  display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 1em;
  padding-block: 0.9em; border-top: 1px solid var(--line);
}
.years li:last-child { border-bottom: 1px solid var(--line); }
.years li > * { grid-column: 2; }
.years .when { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-style: italic; font-size: 1.125rem; line-height: 1.35; color: var(--reed); }
.sec .years h3 { font-size: 1.125rem; font-weight: 480; line-height: 1.35; margin: 0 0 0.1em; }
.years p { margin: 0; }

/* the three channels: the heading, a band of water with one drop over each
   channel, then the three columns, on the grid (each four columns wide) */
.channels { grid-template-rows: auto clamp(170px, 26svh, 300px) auto; }
.channels .copy { grid-column: 1 / 13; grid-row: 1; }
.channels .copy h2 { margin-bottom: 0; }
.channels .bloom { grid-column: 1 / 13; grid-row: 2; }
.trio {
  grid-column: 1 / 13; grid-row: 3;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap);
  margin: 0; padding: 0; list-style: none;
}
.trio li { padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 30em; }
.trio p { margin: 0; }

/* from product to listing: a numbered sequence, the numbers hanging in the margin */
.steps { margin: 1.9em 0 1.9em; padding: 0 0 0 2.1em; font-variant-numeric: lining-nums; }
.steps li { padding-block: 0.8em; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::marker { font-style: italic; font-size: 1.25rem; color: var(--reed); }
.sec .steps h3 { font-size: 1.125rem; font-weight: 480; line-height: 1.35; margin: 0 0 0.1em; }
.steps p { margin: 0; }

/* the end: no water box of its own; the water clears and falls calm */
section.contact { padding-block: 18svh 0; }

.facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1.6rem;
  margin: 2rem 0 0; font-size: 1rem; line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
}
.facts dt { color: var(--reed); }
.facts dd { margin: 0; }
.nums { font-variant-numeric: lining-nums tabular-nums; }

section.contact p { margin-bottom: 0.6em; }
section.contact .group { margin: 1.6em 0 0; color: var(--reed); }

/* ── the end of the column ────────────────────────────────────────────── */
.foot { padding: 12svh var(--mr) calc(2.5rem + env(safe-area-inset-bottom, 0px)) var(--ml); }
.foot .family { --family-ink: var(--foam); --family-dim: var(--reed); --family-line: var(--line); --family-ground: transparent; padding-block: 0 2rem; }
.legal-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem;
  margin: 0; font-size: 0.875rem; color: var(--reed);
}
.legal-line a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── the legal pages ──────────────────────────────────────────────────── */
.doc { padding-block: 9svh 4svh; }
.doc .copy { grid-column: 1 / 9; max-width: 40em; }
.doc h1 { font-size: clamp(2.5rem, 1.4rem + 3vw, 4rem); line-height: 1.04; font-weight: 330; letter-spacing: -0.012em; margin-bottom: 0.5em; }
.doc h2 { font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem); font-weight: 420; line-height: 1.2; margin: 2.4em 0 0.6em; }
.doc .facts { margin-top: 0.4rem; }
.doc .intro { font-size: 1.1875rem; }
.doc .updated { margin: 3rem 0 0; font-size: 0.9375rem; color: var(--reed); }

/* ── the contact page: one drop beside the form ─────────────────────── */
.form { min-height: 0; padding-block: 9svh 4svh; }
.form .bloom { grid-column: 8 / 13; }
.form .copy { grid-column: 1 / 7; align-self: start; max-width: 32em; font-size: inherit; }
.form h1 { font-size: clamp(2.5rem, 1.4rem + 3vw, 4rem); line-height: 1.04; font-weight: 330; letter-spacing: -0.012em; }
.form .lead { margin-bottom: 2.2rem; }
form.contact p { margin: 0 0 1.1rem; }
form.contact label { display: block; margin-bottom: 0.3rem; font-size: 0.9375rem; color: var(--reed); }
form.contact input, form.contact textarea {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 0.55rem 0.75rem;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--foam);
  background: color-mix(in oklab, var(--deep) 72%, transparent);
  border: 1px solid var(--edge); border-radius: 2px;
  transition: border-color 0.2s;
}
form.contact textarea { resize: vertical; min-height: 10em; }
form.contact input:hover, form.contact textarea:hover { border-color: var(--reed); }
form.contact input:focus-visible, form.contact textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-color: var(--reed); }
.contact-trap { position: absolute; left: -100vw; width: 1px; overflow: hidden; }
form.contact .contact-note { font-size: 0.875rem; line-height: 1.5; color: var(--reed); }
form.contact button {
  min-height: 44px; padding: 0 1.6rem; margin-top: 0.4rem;
  font: inherit; font-size: 1rem; color: var(--water);
  background: var(--foam); border: 0; border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s;
}
form.contact button:hover { background: var(--rose); }
form.contact button[aria-disabled="true"] { cursor: progress; opacity: 0.7; }
form.contact .contact-status { min-height: 1.6em; margin: 1rem 0 0; font-style: italic; }
form.contact .contact-status:empty { margin: 0; }

/* ── the lost page ────────────────────────────────────────────────────── */
.lost { min-height: calc(100svh - var(--top)); padding-block: 6svh 14svh; grid-template-rows: 1fr; }
.lost .bloom { grid-column: 6 / 13; align-self: stretch; }
.lost .copy { grid-column: 1 / 8; align-self: end; }
.lost h1, .lost .h1 { font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4.5rem); line-height: 1.05; font-weight: 330; letter-spacing: -0.012em; margin: 0; }
.lost .h1 { font-style: italic; font-weight: 360; margin-top: 0.3em; font-size: clamp(1.5rem, 0.95rem + 1.5vw, 2.25rem); }
.lost .back { margin-top: 1.8rem; font-size: 1.125rem; }
.lost .back a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── no computed water: the designed still ────────────────────────────── */
.hero .bloom, .lost .bloom { background: none; }
html.no-gl .hero .bloom, html.no-gl .lost .bloom {
  background: url(still.webp) 50% 0 / contain no-repeat;
}
@media (scripting: none) {
  .hero .bloom, .lost .bloom { background: url(still.webp) 50% 0 / contain no-repeat; }
}

/* ── phones and tablets held upright: the water above, the words below ── */
@media (max-width: 900px) {
  :root { --gap: 4vw; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* the hero: the water between the surface and the words, the words low, and
     under them the room for the pause (44 px, 16 px from the corner) */
  .hero { grid-template-rows: minmax(38svh, 1fr) auto; padding-block: 0 calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero .bloom, .lost .bloom { grid-column: 1 / -1; grid-row: 1; }
  .hero .copy, .lost .copy { grid-column: 1 / -1; grid-row: 2; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.25rem); max-width: 12em; }
  /* each section: a short band of water, then its words. The drops fall as the
     band comes up from the bottom of the screen (main.js), so it is never seen empty */
  .sec { padding-block: 9svh 0; }
  .sec .bloom { grid-column: 1 / -1; grid-row: 1; }
  .sec .copy { grid-column: 1 / -1; grid-row: 2; }
  .position, .milestones, .shelf { grid-template-rows: clamp(112px, 17svh, 160px) auto; }
  .channels { grid-template-rows: clamp(112px, 17svh, 160px) auto auto; }
  .channels .bloom { grid-row: 1; }
  .channels .copy { grid-row: 2; }
  .channels .copy h2 { margin-bottom: 0.7em; }
  .trio { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
  .form { grid-template-rows: clamp(120px, 20svh, 220px) auto; padding-block: 0 4svh; }
  .form .bloom { grid-column: 1 / -1; grid-row: 1; }
  .form .copy { grid-column: 1 / -1; grid-row: 2; font-size: inherit; max-width: 32em; }
  section.contact { padding-block: 12svh 0; }
  .doc .copy { grid-column: 1 / -1; }
  .lost { grid-template-rows: minmax(40svh, 1fr) auto; padding-bottom: max(14svh, calc(76px + env(safe-area-inset-bottom, 0px))); }
}
/* a phone held sideways: the words on the left, the water beside them, as on a desk */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero, .lost { grid-template-rows: 1fr; padding-block: 3svh calc(24px + env(safe-area-inset-bottom, 0px)); }
  .hero .bloom, .lost .bloom { grid-column: 3 / -1; grid-row: 1; }
  .hero .copy, .lost .copy { grid-column: 1 / 3; grid-row: 1; font-size: clamp(2rem, 1rem + 5svh, 2.75rem); max-width: 11em; }
  .hero .lead { font-size: 1.125rem; }
}
/* a short phone (320 x 568): less water above the words, so the lede and the pause stay on the first screen */
@media (max-width: 900px) and (max-height: 640px) and (orientation: portrait) {
  .hero { grid-template-rows: minmax(26svh, 1fr) auto; }
  .lost { grid-template-rows: minmax(24svh, 1fr) auto; padding-top: 0; }
}
@media (max-width: 600px) {
  :root { --m: 24px; }
  .lead { font-size: 1.3125rem; line-height: 1.3; font-weight: 380; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 1rem; }
  form.contact label, form.contact .contact-note { font-size: 1rem; }
  .legal-line { font-size: 0.9375rem; }
  .facts dd { margin-bottom: 0.55rem; }
  .years li { grid-template-columns: minmax(0, 1fr); }
  .years li > *, .years .when { grid-column: 1; grid-row: auto; }
}
@media (max-width: 399px) { :root { --m: 20px; } }

/* no visible water in the sections (no WebGL, no JavaScript, reduced motion,
   forced colours, print): the words close up, with no empty box where a plume
   would have been */
html.no-gl .sec .bloom { display: none; }
html.no-gl .sec { grid-template-rows: none; min-height: 0; }
html.no-gl .sec .copy { grid-row: auto; }
html.no-gl .trio { grid-row: auto; margin-top: 2.2rem; }
@media (scripting: none), (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .sec .bloom { display: none; }
  .sec { grid-template-rows: none; min-height: 0; }
  .sec .copy { grid-row: auto; }
  .trio { grid-row: auto; margin-top: 2.2rem; }
}
@media (min-width: 901px) {
  html.no-gl .position .copy { grid-column: 1 / 7; }
}
@media (min-width: 901px) and (scripting: none), (min-width: 901px) and (prefers-reduced-motion: reduce), (min-width: 901px) and (forced-colors: active) {
  .position .copy { grid-column: 1 / 7; }
}

/* ── preferences ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pause { display: none; }   /* the water is a still: there is nothing to pause */
}
@media (prefers-contrast: more) {
  :root { --reed: var(--foam); --edge: var(--foam); --line: var(--foam); }
  a { text-decoration-color: currentColor; }
  canvas.water.on { opacity: 0.6; }
}
@media (forced-colors: active) {
  canvas.water { display: none; }
  .top { background: Canvas; box-shadow: none; border-bottom: 1px solid CanvasText; }
  html.gl .top { background: Canvas; }
  .hero .bloom, .lost .bloom, html.no-gl .hero .bloom { background: none; }
  :focus-visible { outline: 2px solid Highlight; }
  .pause { display: none; }
}
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: white; color: black; font-size: 11pt; }
  canvas.water, .skip, .lang, .write, .pause, .bloom, .family, form.contact button { display: none !important; }
  .top { height: auto; padding: 0 0 6mm; background: none; box-shadow: none; }
  .mark { font-size: 18pt; min-height: 0; }
  .grid { display: block; padding: 0; }
  .doc, .sec, .hero { min-height: 0; padding: 0; }
  .sec { padding-top: 9mm; }
  .hero .copy { font-size: 26pt; }
  .sec h2 { font-size: 16pt; break-after: avoid; }
  .trio, .steps, .years { break-inside: avoid; }
  .trio li { margin-top: 5mm; }
  .doc h1 { font-size: 22pt; }
  .doc h2 { font-size: 13pt; margin-top: 7mm; break-after: avoid; }
  .facts { break-inside: avoid; }
  .foot { padding: 8mm 0 0; }
  a { text-decoration: none; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
}
