/* PostCSS entry point. postcss-import inlines everything below before Tailwind
 * runs, so this order is what actually arbitrates the cascade:
 *
 *   tailwindcss/base       preflight
 *   wk/_base.css           the charter's reset -- must beat preflight
 *   tailwindcss/components
 *   wk/*                   the charter -- beats components, loses to utilities
 *   tailwindcss/utilities  must stay last
 *
 * The wk/ partials are deliberately NOT wrapped in @layer: at equal specificity
 * source order decides, which gives exactly that arbitration. Two consequences
 * worth knowing, both checked:
 *   - `p { color: var(--t2) }` is (0,0,1); @tailwindcss/typography emits
 *     `.prose :where(p):not(...)` at (0,1,0), so the legal pages still win.
 *   - `h1,h2,h3 { font-weight: 500 }` loses to a `font-bold` utility, as it
 *     should. */

/* Design tokens of the WIKIOAI charter, taken verbatim from the maquette.
 *
 * This file -- not tailwind.config.js -- is the single source of truth for the
 * palette. Tailwind points at these custom properties so utilities stay usable
 * on the legal pages, but the values live here.
 *
 * Guiding principle: one accent colour (the violet), everything else in greys
 * on near-black. No light sections. */

:root {
  /* Surfaces, darkest to lightest */
  --bg: #07070A;      /* page background */
  --bg2: #0A0A0E;     /* alternating sections, form fields */
  --panel: #101016;   /* cards */
  --panel2: #15151C;  /* raised surfaces */
  --panel3: #1B1B24;  /* avatars, chips */

  /* Hairlines */
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --dots: rgba(255, 255, 255, .14);

  /* Text */
  --t1: #F1F1F1;  /* primary */
  --t2: #9E9EAB;  /* secondary */
  --t3: #5E5E6B;  /* tertiary, mono labels */

  /* The one accent */
  --accent: #7C5CFF;
  --accent-lift: #9F86FF;                       /* hover, highlights */
  --accent-soft: rgba(124, 92, 255, .12);       /* diffuse violet fills */

  /* Status */
  --warning: #FFB020;
  --success: #3DE1C4;

  /* Type stacks */
  --disp: "Geist", "General Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 56px);

  /* The header is fixed, so anchors have to clear it. The offset is the header's
   * own height plus a little air. */
  --header-h: 68px;
  --header-offset: calc(var(--header-h) + 8px);
}

/* The two typefaces of the charter, both self-hosted.
 *
 * The url() paths are bare and relative on purpose: Propshaft resolves them
 * against app/assets/fonts and rewrites them to digested /assets/... paths at
 * serve and precompile time. Do not turn them into asset_path() calls -- this
 * is a plain CSS file, not an ERB template.
 *
 * Both are OFL-1.1; the license texts sit next to the files. */

/* Geist -- display and UI.
 * One variable file rather than four static cuts: it covers the 300-600 range
 * the charter uses for ~62 KB, where the static faces would cost ~120 KB. */

@font-face {
  font-family: 'Geist';
  src: url("/assets/geist/Geist-Variable-dba01545.woff2") format('woff2-variations');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* Fragment Mono -- labels, prices, timecodes, figures.
 * Latin subset only (U+0000-00FF covers every French diacritic, plus OE/oe).
 * No italic: the maquette asks Google Fonts for one but never uses it. */

@font-face {
  font-family: 'Fragment Mono';
  src: url("/assets/fragment_mono/FragmentMono-Regular-623a0454.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Geist, General Sans, -apple-system, system-ui, Segoe UI, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: Fragment Mono, ui-monospace, SF Mono, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* Base layer of the charter, taken from the maquette.
 *
 * Imported AFTER tailwindcss/base so this reset wins over preflight, and BEFORE
 * tailwindcss/utilities so utilities still win over it. See the import order in
 * _application.tailwind.css -- it is load-bearing.
 *
 * These rules are plain CSS, not wrapped in @layer, on purpose: at equal
 * specificity source order decides, which is exactly the arbitration we want. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* #features/#pricing/#faq would otherwise land underneath the fixed header.
   * The maquette cannot have caught this: it is never navigated by anchor.
   * Driven by a token so it follows the header when that changes height. */
  scroll-padding-top: var(--header-offset);
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` computes overflow-y to auto, which turns body
   * into a scroll container and breaks position:sticky on the pinned hero in
   * older Safari. `clip` contains the overflow without creating one. */
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

section {
  position: relative;
  padding: clamp(84px, 12vw, 168px) 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-lift);
}

.mono {
  font-family: var(--mono);
}

.t2 { color: var(--t2); }

.t3 { color: var(--t3); }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--t1);
}

p {
  color: var(--t2);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
}

/* Scroll reveal. Driven by the `reveal` Stimulus controller, which adds .in. */

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.container {
  width: 100%;
}

@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}

.prose {
  color: var(--tw-prose-body);
  max-width: 65ch;
}

.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-lead);
  font-size: 1.25em;
  line-height: 1.6;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-links);
  text-decoration: underline;
  font-weight: 500;
}

.prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-bold);
  font-weight: 600;
}

.prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-alpha;
}

.prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-alpha;
}

.prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: upper-roman;
}

.prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: lower-roman;
}

.prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: decimal;
}

.prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  font-weight: 400;
  color: var(--tw-prose-counters);
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
  color: var(--tw-prose-bullets);
}

.prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.25em;
}

.prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-color: var(--tw-prose-hr);
  border-top-width: 1px;
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-style: italic;
  color: var(--tw-prose-quotes);
  border-inline-start-width: 0.25rem;
  border-inline-start-color: var(--tw-prose-quote-borders);
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-inline-start: 1em;
}

.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: open-quote;
}

.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: close-quote;
}

.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 800;
  font-size: 2.25em;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

.prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 900;
  color: inherit;
}

.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 800;
  color: inherit;
}

.prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 700;
  color: inherit;
}

.prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  display: block;
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  font-weight: 500;
  font-family: inherit;
  color: var(--tw-prose-kbd);
  box-shadow: 0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);
  font-size: 0.875em;
  border-radius: 0.3125rem;
  padding-top: 0.1875em;
  padding-inline-end: 0.375em;
  padding-bottom: 0.1875em;
  padding-inline-start: 0.375em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-code);
  font-weight: 600;
  font-size: 0.875em;
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: "`";
}

.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: "`";
}

.prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.875em;
}

.prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
  font-size: 0.9em;
}

.prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: inherit;
}

.prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-pre-code);
  background-color: var(--tw-prose-pre-bg);
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding-top: 0.8571429em;
  padding-inline-end: 1.1428571em;
  padding-bottom: 0.8571429em;
  padding-inline-start: 1.1428571em;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
  content: none;
}

.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
  content: none;
}

.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  width: 100%;
  table-layout: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-th-borders);
}

.prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-headings);
  font-weight: 600;
  vertical-align: bottom;
  padding-inline-end: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-inline-start: 0.5714286em;
}

.prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 1px;
  border-bottom-color: var(--tw-prose-td-borders);
}

.prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-bottom-width: 0;
}

.prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: baseline;
}

.prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  border-top-width: 1px;
  border-top-color: var(--tw-prose-th-borders);
}

.prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  vertical-align: top;
}

.prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  text-align: start;
}

.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  color: var(--tw-prose-captions);
  font-size: 0.875em;
  line-height: 1.4285714;
  margin-top: 0.8571429em;
}

.prose {
  --tw-prose-body: #374151;
  --tw-prose-headings: #111827;
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: rgb(17 24 39 / 10%);
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1rem;
  line-height: 1.75;
}

.prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.375em;
}

.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0.375em;
}

.prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
}

.prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 1.25em;
}

.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0.5em;
  padding-inline-start: 1.625em;
}

.prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-top: 0.5714286em;
  padding-inline-end: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-inline-start: 0.5714286em;
}

.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-start: 0;
}

.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  padding-inline-end: 0;
}

.prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-top: 0;
}

.prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
  margin-bottom: 0;
}

.prose-invert {
  --tw-prose-body: var(--tw-prose-invert-body);
  --tw-prose-headings: var(--tw-prose-invert-headings);
  --tw-prose-lead: var(--tw-prose-invert-lead);
  --tw-prose-links: var(--tw-prose-invert-links);
  --tw-prose-bold: var(--tw-prose-invert-bold);
  --tw-prose-counters: var(--tw-prose-invert-counters);
  --tw-prose-bullets: var(--tw-prose-invert-bullets);
  --tw-prose-hr: var(--tw-prose-invert-hr);
  --tw-prose-quotes: var(--tw-prose-invert-quotes);
  --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);
  --tw-prose-captions: var(--tw-prose-invert-captions);
  --tw-prose-kbd: var(--tw-prose-invert-kbd);
  --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);
  --tw-prose-code: var(--tw-prose-invert-code);
  --tw-prose-pre-code: var(--tw-prose-invert-pre-code);
  --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);
  --tw-prose-th-borders: var(--tw-prose-invert-th-borders);
  --tw-prose-td-borders: var(--tw-prose-invert-td-borders);
}

/* Buttons and links, from the maquette.
 *
 * This replaces the old charter's _buttons.css wholesale. Worth knowing: that
 * file was paired with a `.btn { height: auto !important }` rule in
 * _application.tailwind.css which would have silently beaten the 34px height
 * below. Both are gone. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 18px;
  border-radius: 6px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .22s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn > * {
  position: relative;
  z-index: 1;
}

/* The sheen that sweeps left to right on hover. */

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 42%;
  pointer-events: none;
  transform: skewX(-18deg);
  opacity: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .5), transparent);
}

.btn:hover::after {
  animation: sheen .6s cubic-bezier(.35, 0, .25, 1);
}

@keyframes sheen {
  0% { left: -60%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

.btn-light {
  background: var(--t1);
  color: #020202;
  border-color: var(--t1);
}

.btn-light:hover {
  background: #fff;
}

.btn-light::after {
  width: 52%;
  background: linear-gradient(110deg, transparent 18%, rgba(0, 0, 0, .09) 42%, rgba(255, 255, 255, .95) 56%, transparent 82%);
}

.btn-outline {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  color: var(--t1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
}

.btn-ghost {
  background: transparent;
  color: var(--t2);
  padding: 0 6px;
}

.btn-ghost:hover {
  color: var(--t1);
}

.btn .arw {
  transition: transform .25s;
}

.btn:hover .arw {
  transform: translateX(3px);
}

/* Underlined inline link. */

.lnk {
  color: var(--t1);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 3px;
  transition: .25s;
}

.lnk:hover {
  border-color: var(--accent);
  color: var(--accent-lift);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after {
    animation: none;
  }
}

/* Site header, from the maquette. Fixed, transparent, opacifies on scroll --
 * the `header` Stimulus controller toggles .scrolled. */

.wk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s;
}

.wk-header.scrolled {
  background: rgba(7, 7, 10, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .logo-img {
  height: 22px;
  width: auto;
}

/* The centred pill of anchors. Absolutely positioned so it stays centred on the
 * viewport regardless of how wide the brand and the CTAs are. */

.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.nav-pill a {
  font-size: 13.5px;
  color: var(--t2);
  padding: 7px 15px;
  border-radius: 999px;
  transition: .2s;
}

.nav-pill a:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, .05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.lang b {
  color: var(--t1);
  font-weight: 400;
}

.lang:hover {
  color: var(--t2);
}

/* The burger. Three bars 15x1.5, 4px apart, so each end bar's centre is 5.5px
 * off the middle one -- which is the translate the cross below undoes.
 *
 * 40x40 is under Apple's 44px guideline. Growing the border-box would push the
 * 68px bar's rhythm out, so the miss is deliberate; revisit by padding the hit
 * area, not the box. */

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--t2);
  transition: transform .22s, opacity .22s;
}

.wk-header.drawer-open .nav-burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.wk-header.drawer-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.wk-header.drawer-open .nav-burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* A full-width sheet under the bar, not a side drawer: the header is already a
 * fixed near-black surface with a 14px blur, so the sheet is the same surface
 * continued. It also needs no width arithmetic -- left:0;right:0 and it cannot
 * itself widen the document, which is the bug this file spent a PR killing.
 * Never give it a width.
 *
 * visibility, not pointer-events, is what closes it: a sheet at opacity:0 still
 * hands its links to the Tab key, so a phone visitor who never opened the menu
 * would tab through six invisible entries. visibility transitions discretely --
 * on at the start of the way in, off at the end of the way out -- so the fade
 * survives it.
 *
 * Opaque, and no backdrop-filter, unlike the bar above it. The sheet cannot have
 * one: .wk-header.drawer-open is blurred, and backdrop-filter makes an element a
 * backdrop root -- a descendant's own blur then samples only what is inside that
 * root, which behind the sheet is nothing. It compiles, it computes, and it does
 * nothing. Translucency without the blur left the hero title legible straight
 * through the menu, in sharp letterforms, which reads as a rendering fault. */

.nav-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gut) 26px;
  background: var(--bg);
  /* The sheet is the same near-black as the page, so without this its bottom
   * edge lands on nothing and it reads as unfinished rather than as a panel. */
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}

.wk-header.drawer-open .nav-drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* At the top of the page the bar is transparent -- .scrolled has not landed. An
 * opaque sheet hanging off a transparent bar reads as a rendering fault, so the
 * open state opacifies the bar itself. */

.wk-header.drawer-open {
  background: rgba(7, 7, 10, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-drawer .drawer-link {
  display: block;
  padding: 16px 2px;
  font-size: 19px;
  color: var(--t1);
  border-bottom: 1px solid var(--line);
}

.nav-drawer .drawer-link:hover {
  color: var(--accent-lift);
}

.nav-drawer .drawer-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.nav-drawer .drawer-foot .btn-light {
  flex: 1;
  justify-content: center;
  height: 42px;
}

/* Below 900px the nav collapses into the burger and the sheet. The maquette's
 * whole mobile story for the header was to hide the centre pill and put nothing
 * in its place, which left the three anchors unreachable from any phone.
 *
 * The whole of .nav-right goes, CTA included. The header is position:fixed, so
 * it escapes body's overflow-x: clip -- an oversized header is not clipped, it
 * widens the document, and that was the horizontal scroll. Keeping the CTA in
 * the bar costs brand 122 + burger 40 + CTA 146 + gap 14 + gutters 40 = 362:
 * it fits a 390 phone and overflows a 320 one. It is the sheet's first action
 * instead. */

@media (max-width: 900px) {
  .nav-pill,
  .nav-right {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-drawer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-burger span {
    transition: none;
  }
}

/* The pinned hero, from the maquette.
 *
 * A tall section holding a sticky viewport-height stage. Scroll progress
 * through the pin drives a single render(p) in the `hero-pin` controller:
 * thumbnails converge, a pseudo-timeline is revealed, a playhead scrubs, then
 * everything exits.
 *
 * svh rather than vh: on iOS the URL bar collapsing mid-scroll changes vh,
 * which fires resize and makes the pin maths jump under the reader. */

.hero-pin {
  height: 250svh;
  position: relative;
  padding: 0;
  /* The choreography ends at p=1, which is when the sticky stops being stuck --
   * offsetHeight - innerHeight into the scroll. After that the sticky has to
   * scroll away, and it does so over exactly one viewport, because that is how
   * tall it is. So a full screen of spent, empty stage sits between the outro
   * and the next section, and no pin height changes that: the tail is always
   * innerHeight.
   *
   * The next section climbs half of it instead. The pin keeps its 250svh of
   * scroll, so p, the convergence, the scrub and the outro are all untouched --
   * only what follows starts sooner. Half rather than all of it: the stage
   * leaving IS the transition, and pulling the full viewport up butts the
   * section against the last frame of the outro with no breath at all.
   *
   * No z-index needed on what follows. .hero-sticky is positioned, so it does
   * paint over a static sibling -- but by here it has nothing left to paint
   * except the glow, which reads as the transition. Checked against a render,
   * not assumed. */
  margin-bottom: -50svh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  /* Held in a property because the mobile anchor below is derived from it: the
   * two drift apart the day one is edited alone. */
  --hero-pad-top: clamp(60px, 7.5vh, 90px);
  padding-top: var(--hero-pad-top);
}

/* Violet stage-lights: three soft spots drifting like lights over a stage.
 * The `hero-glow` controller nudges them with the pointer. */

.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  transform-origin: 50% 22%;
}

.gw {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.g {
  position: absolute;
  left: 50%;
  top: 30%;
  border-radius: 50%;
  filter: blur(68px);
  mix-blend-mode: screen;
  will-change: transform;
}

.g1 {
  width: 520px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .34), transparent 70%);
  animation: spot1 19s ease-in-out infinite;
}

.g2 {
  width: 480px;
  height: 400px;
  background: radial-gradient(closest-side, rgba(90, 66, 224, .30), transparent 70%);
  animation: spot2 24s ease-in-out infinite;
}

.g3 {
  width: 400px;
  height: 340px;
  background: radial-gradient(closest-side, rgba(168, 142, 255, .26), transparent 70%);
  animation: spot3 16s ease-in-out infinite;
}

@keyframes spot1 {
  0%, 100% { transform: translate(-80%, -66%) scale(1); }
  50% { transform: translate(-74%, -60%) scale(1.05); }
}

@keyframes spot2 {
  0%, 100% { transform: translate(-22%, -64%) scale(1.03); }
  50% { transform: translate(-28%, -70%) scale(.97); }
}

@keyframes spot3 {
  0%, 100% { transform: translate(-50%, -22%) scale(.95); }
  50% { transform: translate(-50%, -30%) scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 5;
}

/* Fixed height: the two titles are stacked and cross-fade, so the box must not
 * resize when they swap. */

.hero-titles {
  position: relative;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  height: 2.14em;
}

.htitle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(92vw, 17ch);
  font-size: 1em;
  letter-spacing: -.03em;
  line-height: 1.0;
  will-change: opacity, transform;
}

.ht-b {
  opacity: 0;
}

.hero-inner .sub {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--t2);
}

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 15px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  letter-spacing: .03em;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Thumbnails are animated through width/height + translate, never scale --
 * scaling would distort the images inside them. */

.thumb {
  position: absolute;
  left: 50%;
  top: 42%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .42));
}

.thumb .tag {
  position: absolute;
  left: 10px;
  top: 9px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  padding: 3px 7px;
  border-radius: 5px;
  opacity: 0;
}

.scrollcue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.scrollcue .ln {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--t3), transparent);
}

/* The pseudo-timeline, revealed once the thumbnails have lined up. */

.timeline {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -58px);
  z-index: 1;
  width: min(720px, 88vw);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 16, 24, .5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .75);
}

.tl-ruler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
  letter-spacing: .02em;
}

.tl-ticks {
  flex: 1;
  height: 6px;
  margin: 0 10px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 30px);
}

.tl-track {
  position: relative;
  margin-top: 7px;
  border-radius: 6px;
  overflow: hidden;
}

.tl-subs {
  height: 20px;
  display: flex;
  gap: 6px;
}

/* display:block, not flex, and line-height doing what align-items used to.
 * text-overflow only applies to a block container's inline content: as a flex
 * container the label was an anonymous flex item, and flex items do not
 * ellipsis. The declaration computed, and cut the word in half anyway --
 * `getComputedStyle` reported "ellipsis" the whole time. .tl-subs is 20px tall
 * and the border eats 2, so 18px centres the text as the flexbox did. */

.tl-seg {
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, .28);
  border-radius: 4px;
  display: block;
  line-height: 18px;
  /* .hero-sticky sets text-align:center and everything inherits it. As a flex
   * container that did nothing -- the anonymous flex item is only as wide as
   * its text, so there was nothing to centre within, and justify-content put it
   * at the left. As a block the same inherited rule comes alive and centres the
   * labels, 78px in from where the maquette has them. Measured against next:
   * 9px there, 78 here. So the alignment is stated rather than inherited. */
  text-align: left;
  padding: 0 8px;
  font-size: 8.5px;
  color: var(--accent-lift);
  white-space: nowrap;
  overflow: hidden;
  /* nowrap + overflow:hidden is the maquette's own truncation, and it severs a
   * letter mid-stroke when it bites. Inert at every width where nothing
   * overflows, and the graceful answer where the box is too narrow -- 320, or
   * the day a translation grows. */
  text-overflow: ellipsis;
}

.tl-audio {
  height: 38px;
  background: rgba(255, 255, 255, .02);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}

.tl-audio i {
  flex: 1;
  min-width: 1px;
  background: rgba(124, 92, 255, .45);
  border-radius: 1px;
}

.tl-plans {
  height: 84px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
}

.tl-playhead {
  position: absolute;
  left: 34%;
  top: 28px;
  bottom: 10px;
  width: 1.5px;
  background: var(--accent-lift);
  z-index: 4;
  box-shadow: 0 0 8px rgba(124, 92, 255, .7);
}

.tl-playhead::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-lift);
}

@media (max-width: 820px) {
  .hero-pin {
    height: 200svh;
  }

  .thumb.hide-m {
    display: none;
  }

  /* The timeline and the thumbnails hang off `top: 42%` -- a fraction of the
   * stage HEIGHT. What they have to clear is the title, which is a fixed
   * distance from the top: the padding above plus the titles box. So the taller
   * the phone, the wider the gap between the two, and nothing about the title
   * moves to close it. Measured at 390x844: 140px of nothing, against 68 on the
   * desktop the maquette drew. On a tablet held upright it reaches 190.
   *
   * It only shows on a phone because the title is half the size there: its font
   * is clamp(2.7rem, 6.6vw, 5.4rem), which sits on its floor below 655px, so
   * .hero-titles is 92px tall rather than desktop's 185.
   *
   * Anchored to the title instead: 92 for the titles box, 68 to match the
   * desktop gap, 58 to undo the timeline's own translate. Both selectors move
   * together -- the thumbnails converge onto this timeline, and separating them
   * would take the row off the track it lands on. */
  .timeline,
  .thumb {
    top: calc(var(--hero-pad-top) + 218px);
  }

  /* What did not fit is the type inside it. Measured at 390 in FR: the first
   * segment's label overruns its box by 9px and the second by 2, so both were
   * cut mid-word. The label carries the meaning and the padding is only air, so
   * the padding gives first. 8px/5px leaves 4px of slack on the tightest of the
   * three -- and the ellipsis above covers the day that is not enough. */
  .tl-seg {
    font-size: 8px;
    padding: 0 5px;
  }
}

/* Reduced motion flattens the whole thing: no pin, no sticky, one title. */

@media (prefers-reduced-motion: reduce) {
  .g {
    animation: none;
  }

  .hero-pin {
    height: auto;
    /* Flattened, the pin is its content's height -- about 505px. Pulling the
     * next section up half a viewport would drag it over the hero itself
     * rather than over a spent stage, because there is no tail here: nothing
     * is stuck, so nothing scrolls away. */
    margin-bottom: 0;
  }

  .hero-sticky {
    position: static;
    height: auto;
    padding: 168px 0 108px;
  }

  .ht-b {
    display: none;
  }
}

/* Flattened, the sticky is height:auto, so the stage collapses onto the copy --
 * and top:42% of a 505px stage lands every thumbnail on the text instead of
 * around it. The scatter needs a viewport-tall stage to be a scatter.
 *
 * On a phone there is no horizontal room to escape either: the copy spans
 * nearly the whole 390px stage, so no scatter clears it. The thumbnails are
 * decorative and aria-hidden, and the hero note unreadable behind a photo is
 * worse than a hero without decoration.
 *
 * The same collapse puts thumb-02 over the note on desktop today, at every
 * width -- older than this rule and a design call rather than a mechanical one.
 * Flagged, deliberately not folded in here. */

@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .thumb {
    display: none;
  }
}

/* Capability rows and their four mockups, from the maquette.
 *
 * The subtitle editor's "the AI has corrected this" state is .corrected here,
 * where the maquette calls it .fixed. It had to move: the maquette has no
 * Tailwind, but we do, and `.fixed { position: fixed }` is one of its
 * utilities -- imported last, so it won. Adding the state class yanked the
 * whole mockup out of the document flow, which knocked it out of its own
 * IntersectionObserver and reset the animation on every cycle. It never played.
 *
 * Two departures, both mechanical:
 *   - #segActive became .seg-active. The maquette keys styles off IDs, which
 *     break the moment anything renders twice.
 *   - The Unsplash URL in .vz-as points at our own copy. Bare and relative:
 *     Propshaft resolves it against app/assets/images and digests it.
 *
 * Every height here that looks arbitrary is load-bearing: .seg-active (104px)
 * and .ai-card (114px) are fixed so the subtitle cycle cannot shift the layout
 * as it swaps content. */

/* ---------- capability rows (cartes encadrées façon Ponder) ---------- */

.cap-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;flex-wrap:wrap;margin-bottom:clamp(22px,2.6vw,40px)}

.cap-head .eyebrow{margin-bottom:14px;display:block}

.cap-h2{font-size:clamp(1.9rem,3.4vw,2.9rem);letter-spacing:-.02em;max-width:15ch}

.cap-head-sub{max-width:32ch;color:var(--t2);font-size:15px;line-height:1.55}

.cap{display:flex;flex-direction:column;gap:16px}

.cap-row{display:grid;grid-template-columns:1.08fr .92fr;align-items:stretch;
  background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden}

.cap-copy{display:flex;flex-direction:column;min-height:300px;padding:clamp(28px,3.2vw,50px)}

.cap-num{font-family:var(--mono);font-size:13px;color:var(--accent-lift);letter-spacing:.1em}

.cap-copy h2{font-size:clamp(1.7rem,3vw,2.6rem);margin-top:18px;max-width:15ch}

.cap-chip{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin-top:18px;
  font-family:var(--mono);font-size:11.5px;color:var(--accent-lift);background:var(--accent-soft);
  border:1px solid rgba(124,92,255,.24);padding:5px 11px;border-radius:999px}

.cap-copy .desc{margin-top:auto;padding-top:36px;max-width:44ch}

.cap-copy .desc .more{margin-top:16px}

.cap-visual{border-left:1px solid var(--line);background:var(--bg2);position:relative;overflow:hidden;
  min-height:300px;display:flex;align-items:center;justify-content:center;padding:26px}

.cap-visual::before{content:"";position:absolute;inset:0;opacity:.5;
  background-image:radial-gradient(var(--dots) 1px,transparent 1px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(closest-side,#000,transparent);mask-image:radial-gradient(closest-side,#000,transparent)}

@media(max-width:860px){.cap-row{grid-template-columns:1fr}.cap-copy{min-height:auto}.cap-visual{border-left:0;border-top:1px solid var(--line);min-height:240px}.cap-copy .desc{padding-top:24px}}

/* --- mockup: short clips (9:16 with captions) --- */

.mk-phone{position:relative;width:190px;aspect-ratio:9/16;border-radius:20px;overflow:hidden;
  border:1px solid var(--line2);background:#000 center/cover;
  background-image:url("/assets/demo/pool/final-736ff4da.webp")}

.mk-phone .cap{position:absolute;left:12px;right:12px;bottom:44px;text-align:center;
  font-weight:600;font-size:14px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6)}

.mk-phone .cap b{color:var(--accent-lift)}

.mk-phone .pill{position:absolute;left:10px;top:10px;font-family:var(--mono);font-size:9.5px;color:#fff;
  background:rgba(124,92,255,.55);padding:3px 7px;border-radius:5px;backdrop-filter:blur(3px)}

.mk-phone .prog{position:absolute;left:12px;right:12px;bottom:22px;height:3px;border-radius:3px;background:rgba(255,255,255,.25)}

.mk-phone .prog::after{content:"";position:absolute;left:0;top:0;bottom:0;width:62%;background:var(--accent-lift);border-radius:3px}

.mk-side{position:absolute;right:20px;top:26px;display:flex;flex-direction:column;gap:8px}

.mk-moment{display:flex;align-items:center;gap:8px;background:var(--panel2);border:1px solid var(--line);
  border-radius:9px;padding:8px 10px;font-size:11.5px;color:var(--t2);width:150px}

.mk-moment .dot{width:6px;height:6px;border-radius:50%;background:var(--accent-lift)}

.mk-moment .tc{font-family:var(--mono);font-size:10px;color:var(--t3);margin-left:auto}

/* short clips : scan IA (images qui défilent) puis figeage + révélation */

.mk-phone .pill,.mk-phone .cap,.mk-phone .prog{opacity:0;transition:opacity .45s ease}

.mk-moment{opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}

.scan-done .mk-phone .pill,.scan-done .mk-phone .cap,.scan-done .mk-phone .prog{opacity:1}

.scan-done .mk-moment{opacity:1;transform:none}

.scan-done .mk-moment:nth-child(1){transition-delay:.06s}

.scan-done .mk-moment:nth-child(2){transition-delay:.2s}

.scan-done .mk-moment:nth-child(3){transition-delay:.34s}

@keyframes lockflash{0%{box-shadow:0 0 0 0 rgba(124,92,255,.55)}100%{box-shadow:0 0 0 14px rgba(124,92,255,0)}}

.scan-done .mk-phone{animation:lockflash .6s ease-out}

@media(prefers-reduced-motion:reduce){.mk-phone .pill,.mk-phone .cap,.mk-phone .prog,.mk-moment{opacity:1;transform:none}}

/* --- mockup: verticaliser (16:9 with crop bracket) --- */

/* touch-action: pan-y, never none. The crop only moves in x, so horizontal
 * gestures are ours and vertical ones stay the scroller's -- and this mockup is
 * ~296x166 on a phone, a chunk of the scroll path. `none` would mean a swipe
 * that starts here does nothing at all, and the page feels seized. The axis
 * split IS the design; pointercancel is how the browser tells us it took one. */

.mk-crop{position:relative;width:min(88%,420px);aspect-ratio:16/9;border-radius:12px;overflow:hidden;
  border:1px solid var(--line2);background:#050507;cursor:crosshair;touch-action:pan-y}

.mk-crop .ph{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .7s ease}

.mk-crop .ph.on{opacity:1}

.mk-crop .frame{position:absolute;top:7%;bottom:38px;left:50%;transform:translateX(-50%);aspect-ratio:9/16;z-index:3;
  border:2px solid var(--accent-lift);border-radius:6px;box-shadow:0 0 0 2000px rgba(0,0,0,.42)}

.mk-crop .frame::before{content:"9:16";position:absolute;top:-20px;left:0;font-family:var(--mono);font-size:10px;color:var(--accent-lift)}

.mk-crop .frame::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%);
  border:1.5px solid var(--accent-lift);border-radius:50%;box-shadow:0 0 10px rgba(124,92,255,.55);opacity:.85}

.mk-crop .hd{position:absolute;left:10px;top:9px;z-index:4;font-family:var(--mono);font-size:10px;color:#fff;background:rgba(0,0,0,.45);padding:3px 7px;border-radius:5px}

.mk-crop .track{position:absolute;left:10px;top:34px;z-index:4;font-family:var(--mono);font-size:9.5px;color:var(--accent-lift);
  background:rgba(0,0,0,.4);padding:2px 6px;border-radius:4px;opacity:0;transition:opacity .3s}

.mk-crop:hover .track{opacity:1}

/* The readout is the demo's only feedback -- "you are on segment 2 of 3" -- and
 * it was hover-only, so touch lost it entirely: the frame moved under the finger
 * with nothing to say what it had landed on. Not the same as the sticky-hover
 * problem elsewhere on the site; this is information, not polish. */

@media(hover:none){.mk-crop .track{opacity:1}}

.mk-crop .vtl{position:absolute;left:10px;right:10px;bottom:9px;height:20px;z-index:4;background:rgba(0,0,0,.55);
  border-radius:5px;display:flex;align-items:center;gap:4px;padding:0 6px}

.mk-crop .vtl .blk{height:8px;border-radius:2px;background:rgba(255,255,255,.13);transition:.4s}

.mk-crop .vtl .blk.sel{background:rgba(124,92,255,.5)}

.mk-crop .vtl .blk.act{background:var(--accent-lift);box-shadow:0 0 10px rgba(124,92,255,.85)}

/* --- mockup: assistant IA sous-titres (éditeur bilingue + correction IA en direct) --- */

.mk-sub{width:100%;max-width:430px;position:relative;z-index:1;font-family:var(--disp);
  background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 24px 48px -28px rgba(0,0,0,.75)}

.mk-sub .hd{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid var(--line)}

.mk-sub .spark{width:24px;height:24px;border-radius:7px;background:var(--accent-soft);border:1px solid rgba(124,92,255,.32);display:grid;place-items:center;color:var(--accent-lift);font-size:12px}

.mk-sub .ttl{font-size:12px;color:var(--t2)}

.mk-sub .tabs{display:flex;gap:5px;margin-left:auto;font-family:var(--mono);font-size:9.5px}

.mk-sub .tabs span{padding:3px 7px;border-radius:6px;color:var(--t3);white-space:nowrap}

.mk-sub .tabs span.on{background:var(--accent-soft);color:var(--accent-lift)}

.mk-sub .auto{display:flex;align-items:center;gap:7px;padding:8px 12px;border-bottom:1px solid var(--line);font-family:var(--mono);font-size:10px;color:var(--accent-lift);background:rgba(124,92,255,.05)}

.mk-sub .seg{padding:10px 12px 11px;border-bottom:1px solid var(--line);position:relative}

.mk-sub .seg::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:transparent}

.mk-sub .seg.flag::before{background:var(--warning);transition:background .5s}

.mk-sub.corrected .seg-active::before{background:var(--success)}

.mk-sub .spk{font-family:var(--mono);font-size:9.5px;color:var(--t3);margin-bottom:6px}

.mk-sub .bi{display:grid;grid-template-columns:1fr 1.05fr;gap:12px;align-items:start}

.mk-sub .en{font-size:11.5px;color:var(--t3);line-height:1.35}

.mk-sub .fr{font-size:12.5px;color:var(--t1);font-weight:500;line-height:1.35;position:relative}

.mk-sub .fr .after{position:absolute;left:0;top:0;opacity:0;transition:opacity .5s}

.mk-sub .fr .before{transition:opacity .5s}

.mk-sub.corrected .seg-active .fr .before{opacity:0}

.mk-sub.corrected .seg-active .fr .after{opacity:1}

.mk-sub .meta{display:flex;gap:9px;margin-top:8px;font-family:var(--mono);font-size:9.5px;color:var(--t3)}

.mk-sub .mm{position:relative;display:inline-block}

.mk-sub .mm b{font-weight:400}

.mk-sub .mm .ma{position:absolute;left:0;top:0;opacity:0;transition:opacity .5s;white-space:nowrap}

.mk-sub .mm .mb{color:var(--warning);transition:opacity .5s}

.mk-sub.corrected .seg-active .mm .mb{opacity:0}

.mk-sub.corrected .seg-active .mm .ma{opacity:1;color:var(--success)}

/* 104 clipped 11px off the bottom of the longest of the three cycle steps, in
 * French, at every width -- desktop included. Measured on the live element
 * across a full turn of the cycle: two steps want 103, the third wants 114. */

.seg-active{height:116px;overflow:hidden;transition:opacity .28s}

.seg-active.swap{opacity:0}

/* carte IA — synchronisée avec le segment actif ci-dessus */

.mk-sub .ai-card{padding:12px;border-top:1px solid var(--line);background:rgba(124,92,255,.045);height:114px;overflow:hidden;transition:opacity .28s}

.mk-sub .ai-card.swap{opacity:0}

.mk-sub .ai-row{display:flex;align-items:center;gap:7px;font-family:var(--mono);font-size:9.5px}

.mk-sub .ai-dot{width:7px;height:7px;border-radius:50%;background:var(--warning);flex:none;transition:background .4s}

.mk-sub.corrected .ai-dot{background:var(--success)}

.mk-sub .ai-badge{padding:2px 7px;border-radius:5px;background:var(--accent-soft);color:var(--accent-lift)}

.mk-sub .ai-meta,.mk-sub .ai-sid{color:var(--t3)}

.mk-sub .ai-title{font-size:12px;color:var(--t1);margin-top:9px;font-weight:500;line-height:1.3}

.mk-sub .ai-foot{display:flex;align-items:center;gap:8px;margin-top:12px;min-height:24px}

.mk-sub .ai-metric{position:relative;display:inline-block;font-family:var(--mono);font-size:9.5px;color:var(--t3)}

.mk-sub .ai-metric .ma{position:absolute;left:0;top:0;opacity:0;transition:opacity .4s;white-space:nowrap}

.mk-sub .ai-metric .mb{transition:opacity .4s;white-space:nowrap}

.mk-sub.corrected .ai-metric .mb{opacity:0}

.mk-sub.corrected .ai-metric .ma{opacity:1;color:var(--success)}

.mk-sub .ai-btn{margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--accent-lift);cursor:pointer;
  background:var(--accent-soft);border:1px solid rgba(124,92,255,.32);padding:5px 10px;border-radius:7px;display:inline-flex;gap:5px;align-items:center}

.mk-sub .ai-done{margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--success);display:none;align-items:center;gap:5px}

.mk-sub.corrected .ai-btn{display:none}

.mk-sub.corrected .ai-done{display:inline-flex}

@keyframes pulsebtn{0%,100%{box-shadow:0 0 0 0 rgba(124,92,255,.4)}70%{box-shadow:0 0 0 6px rgba(124,92,255,0)}}

.mk-sub:not(.corrected) .ai-btn.pulse{animation:pulsebtn 1.6s ease-out infinite}

/* --- mockup: recherche vidéo (recherche animée + résultats) --- */

.mk-search{width:100%;max-width:440px;position:relative;z-index:1}

.mk-search .in{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line2);
  border-radius:11px;padding:12px 14px;font-size:13.5px;color:var(--t1);min-height:46px}

.mk-search .in svg{width:16px;height:16px;color:var(--t2);flex:none}

.mk-search .q{white-space:nowrap;overflow:hidden}

.mk-search .cur{width:1.5px;height:15px;background:var(--accent-lift);display:inline-block;vertical-align:-2px;animation:bl 1.1s step-end infinite}

.mk-search.loading .cur{display:none}

.mk-search .spin{width:15px;height:15px;border:2px solid var(--line2);border-top-color:var(--accent-lift);border-radius:50%;margin-left:auto;animation:spin .7s linear infinite;display:none;flex:none}

.mk-search.loading .spin{display:block}

@keyframes bl{50%{opacity:0}}

@keyframes spin{to{transform:rotate(360deg)}}

.mk-search .count{font-family:var(--mono);font-size:9.5px;color:var(--t3);margin:11px 2px 0;min-height:12px}

.mk-search .res{margin-top:8px;display:flex;flex-direction:column;gap:8px;min-height:216px}

.mk-search .r{display:flex;align-items:center;gap:11px;background:var(--panel);border:1px solid var(--line);
  border-radius:10px;padding:8px 11px;opacity:0;transform:translateY(6px);transition:opacity .4s,transform .4s}

.mk-search .r.show{opacity:1;transform:none}

.mk-search .r .th{width:62px;height:38px;border-radius:6px;background:center/cover;flex:none}

.mk-search .r .mt{overflow:hidden;min-width:0}

.mk-search .r .mt b{color:var(--t1);font-weight:500;font-size:12.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mk-search .r .mt span{color:var(--t3);font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mk-search .r .tc{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--accent-lift);flex:none}

/* The maquette carries these as inline style attributes on the <section>.
 * They are layout, so they belong here. */

.wk-features {
  padding: 0 0 clamp(40px, 5vw, 68px);
}

/* --- the phone band --- */

/* The moment cards cover 91px of a 190px phone at 390, against 6px on desktop
 * -- and those 6px are the composition the maquette drew: cards beside the
 * phone, just touching. There is no width below 520 where that is still true.
 *
 * They reflow under the phone rather than shrink or hide. Hiding leaves a phone
 * playing a video, which demonstrates nothing: the cards ARE the row's claim,
 * that the AI found these moments at these timecodes. Shrinking does not fit
 * either -- at 296 of visual, a 150px phone and a 110px card still overlap by
 * 57px, and "Punchline · 00:41" does not fit 110px. */

@media (max-width: 520px) {
  .mk-clips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .mk-side {
    position: static;
    width: 100%;
  }

  .mk-moment {
    width: 100%;
  }

  /* 26px each side of a 350px visual is 15% of it, and every mockup below is
   * measured against what this leaves. */
  .cap-visual {
    padding: 26px 16px;
  }

  /* One column, and taller boxes -- both, and not for the reason it looks like.
   * One column is not shorter: at 390 it wants 136 against two columns' 114.
   * It is worth it because 136 is also what it wants at 320, where two columns
   * want 165. A fixed height over content that swings 50px with the width is a
   * coin flip against the next translator; over content that does not move, it
   * is just a height.
   *
   * The AI card does not use the grid, so one column does nothing for it -- its
   * height follows the width alone: 106 at 390, 131 at 320, where the title
   * wraps to a second line. 137 clears the worst of the two.
   *
   * These heights are load-bearing: they are what stops the JS content swap
   * shifting the page. Taller, never auto. Every number here was measured on
   * the live element in FR, the long locale, across a full turn of the cycle --
   * re-measure if the subtitle steps in home.fr.yml are ever re-worded. */
  /* The head is one flex line with the tabs on margin-left:auto and nowrap
   * labels: they run 29px past the mockup, and cap-visual's overflow:hidden
   * slices "Traduction 7" mid-word. Meanwhile the same flex squeezes the title
   * to 51px over three lines. Wrapped, the tabs take a line of their own -- 252
   * of the 290 there is -- and the title gets its one line back. */
  .mk-sub .hd {
    flex-wrap: wrap;
  }

  /* They wrap too: their own line is 290 wide at 390 and they need 252, but at
   * 320 the line is 246 and the third label still runs 19px past it. */
  .mk-sub .tabs {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .mk-sub .bi {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .seg-active {
    height: 142px;
  }

  .mk-sub .ai-card {
    height: 137px;
  }
}

/* The "under the hood" grid: four animated bricks. Pure CSS, no JS -- the
 * animations are infinite keyframes that cost nothing to leave running.
 * From the maquette. */

/* ---------- socle (briques IA illustrées + animées) ---------- */

.socle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:44px}

.socle-cell{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}

.socle-viz{height:120px;position:relative;overflow:hidden;background:var(--bg2);border-bottom:1px solid var(--line)}

.socle-body{padding:18px 20px 20px}

.socle-body .n{font-family:var(--mono);font-size:11px;color:var(--accent-lift);letter-spacing:.1em}

.socle-body h3{font-size:1.05rem;margin:11px 0 3px}

.socle-body .sub{font-family:var(--mono);font-size:9px;color:var(--t3);text-transform:uppercase;letter-spacing:.06em;margin-bottom:9px}

.socle-body p{font-size:12.5px;color:var(--t2);line-height:1.5}

@media(max-width:860px){.socle-grid{grid-template-columns:1fr 1fr}}

@media(max-width:520px){.socle-grid{grid-template-columns:1fr}}

/* A · transcription : forme d'onde → lignes de transcription */

.vz-tr .wf{position:absolute;top:22px;left:16px;right:16px;height:34px;display:flex;align-items:center;gap:3px}

.vz-tr .wf i{flex:1;height:30%;background:rgba(124,92,255,.55);border-radius:1px;animation:wf 1.1s ease-in-out infinite}

.vz-tr .wf i:nth-child(2n){animation-delay:.15s}

.vz-tr .wf i:nth-child(3n){animation-delay:.35s}

.vz-tr .wf i:nth-child(5n){animation-delay:.5s}

@keyframes wf{0%,100%{height:18%}50%{height:82%}}

.vz-tr .ln{position:absolute;left:16px;height:5px;border-radius:3px;background:var(--accent-lift);transform-origin:left;animation:trln 3.6s ease-in-out infinite}

.vz-tr .l1{right:42%;bottom:36px;animation-delay:.2s}

.vz-tr .l2{right:22%;bottom:24px;animation-delay:.7s}

.vz-tr .l3{right:55%;bottom:12px;animation-delay:1.2s}

@keyframes trln{0%{transform:scaleX(0)}20%,100%{transform:scaleX(1)}}

/* B · analyse de l'asset : image scannée + tags */

.vz-as{background:center/cover;background-image:url("/assets/demo/socle-asset-cf7fbf11.webp")}

.vz-as::before{content:"";position:absolute;inset:0;background:rgba(6,6,12,.42)}

.vz-as .scan{position:absolute;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent-lift),transparent);box-shadow:0 0 12px rgba(124,92,255,.9);z-index:2;animation:scan 3s ease-in-out infinite}

@keyframes scan{0%,100%{top:8%}50%{top:90%}}

.vz-as .tag{position:absolute;z-index:3;font-family:var(--mono);font-size:8.5px;color:#fff;background:rgba(124,92,255,.78);padding:2px 6px;border-radius:4px;opacity:0;animation:tagp 3s ease-in-out infinite}

.vz-as .t1{top:16%;left:12%;animation-delay:.5s}

.vz-as .t2{top:48%;left:46%;animation-delay:1.2s}

.vz-as .t3{top:72%;left:16%;animation-delay:1.9s}

@keyframes tagp{0%,12%{opacity:0;transform:translateY(4px)}22%,82%{opacity:1;transform:none}94%,100%{opacity:0}}

/* C · résumé : contenu long qui se condense */

.vz-re .doc{position:absolute;top:16px;left:16px;right:16px;display:flex;flex-direction:column;gap:5px}

.vz-re .doc i{height:4px;border-radius:2px;background:rgba(255,255,255,.1)}

.vz-re .doc i:nth-child(1){width:92%}

.vz-re .doc i:nth-child(2){width:78%}

.vz-re .doc i:nth-child(3){width:88%}

.vz-re .doc i:nth-child(4){width:66%}

.vz-re .doc i:nth-child(5){width:82%}

.vz-re .sum{position:absolute;bottom:13px;left:16px;right:16px;display:flex;flex-direction:column;gap:6px;padding:9px 11px;background:var(--accent-soft);border:1px solid rgba(124,92,255,.3);border-radius:8px;animation:sumin 3.4s ease-in-out infinite}

.vz-re .sum i{height:5px;border-radius:2px;background:var(--accent-lift)}

.vz-re .sum i:nth-child(1){width:72%}

.vz-re .sum i:nth-child(2){width:44%}

@keyframes sumin{0%,25%{opacity:0;transform:translateY(10px)}42%,86%{opacity:1;transform:none}100%{opacity:0}}

/* D · indexation : marqueurs + entrées qui s'indexent */

.vz-ix .tl{position:absolute;top:26px;left:16px;right:16px;height:2px;background:rgba(255,255,255,.12)}

.vz-ix .mk{position:absolute;top:23px;width:8px;height:8px;border-radius:50%;background:var(--accent-lift);box-shadow:0 0 8px var(--accent-lift);opacity:0;animation:ixmk 3.6s ease-in-out infinite}

.vz-ix .m1{left:20%;animation-delay:.3s}

.vz-ix .m2{left:46%;animation-delay:.9s}

.vz-ix .m3{left:72%;animation-delay:1.5s}

@keyframes ixmk{0%,10%{opacity:0;transform:scale(0)}20%,86%{opacity:1;transform:scale(1)}100%{opacity:0}}

.vz-ix .ent{position:absolute;left:16px;right:16px;bottom:15px;display:flex;flex-direction:column;gap:6px}

.vz-ix .e{display:flex;align-items:center;gap:6px;font-family:var(--mono);font-size:8.5px;color:var(--t2);opacity:0;animation:ixe 3.6s ease-in-out infinite}

.vz-ix .e .d{width:6px;height:6px;border-radius:2px;background:var(--accent-lift);flex:none}

.vz-ix .e .tc{margin-left:auto;color:var(--accent-lift)}

.vz-ix .e1{animation-delay:.6s}

.vz-ix .e2{animation-delay:1.3s}

@keyframes ixe{0%,14%{opacity:0;transform:translateX(-6px)}26%,88%{opacity:1;transform:none}100%{opacity:0}}

@media(prefers-reduced-motion:reduce){.vz-tr .wf i,.vz-tr .ln,.vz-as .scan,.vz-as .tag,.vz-re .sum,.vz-ix .mk,.vz-ix .e{animation:none}.vz-tr .ln,.vz-as .tag,.vz-re .sum,.vz-ix .mk,.vz-ix .e{opacity:1;transform:none}}

/* Inline on the <section> in the maquette. */

.wk-socle {
  padding: clamp(44px, 6vw, 76px) 0;
}

.socle-head {
  max-width: 640px;
}

.socle-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 16px;
}

.socle-head p {
  margin-top: 14px;
}

/* Pricing cards and the credit calculator, from the maquette.
 * #pricing is a real anchor -- the header and footer point at it -- so unlike
 * the mockups' IDs it stays an ID. */

/* ---------- pricing ---------- */

#pricing{padding:clamp(44px,6vw,76px) 0}

.price-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}

.price-head h2{font-size:clamp(2rem,3.6vw,3rem);max-width:16ch}

.seats{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--t2);border:1px solid var(--line2);border-radius:999px;padding:8px 15px}

.seats b{color:var(--t1);font-weight:500}

.prices{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:44px;perspective:1400px}

.pc{border:1px solid var(--line);border-radius:16px;padding:26px 24px;display:flex;flex-direction:column;position:relative;background:linear-gradient(180deg,rgba(255,255,255,.015),transparent);transition:border-color .28s ease,transform .35s cubic-bezier(.2,.8,.3,1),box-shadow .35s ease;transform-style:preserve-3d}

.pc:hover{border-color:var(--accent);transform:rotateX(4deg) translateY(-7px);box-shadow:0 22px 55px rgba(124,92,255,.14),0 0 0 1px rgba(124,92,255,.35)}

.pc.pop{border-color:rgba(124,92,255,.5);background:linear-gradient(180deg,var(--accent-soft),transparent)}

.pc .badge{position:absolute;top:-1px;right:20px;transform:translateY(-50%);font-family:var(--mono);font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent-lift);background:var(--bg);border:1px solid rgba(124,92,255,.4);padding:4px 10px;border-radius:999px}

.pc .name{font-size:1.05rem;font-weight:500}

.pc .price{font-family:var(--mono);font-size:2rem;letter-spacing:-.02em;margin:16px 0 2px;color:var(--t1)}

.pc .per{font-family:var(--mono);font-size:11px;color:var(--t3)}

.pc ul{list-style:none;margin:20px 0 24px;display:flex;flex-direction:column;gap:10px}

.pc li{font-size:13px;color:var(--t2);display:flex;gap:9px;align-items:flex-start}

.pc li svg{width:15px;height:15px;color:var(--accent-lift);flex:none;margin-top:1px}

.pc .btn{margin-top:auto;justify-content:center}

.price-foot{margin-top:20px;text-align:center}

@media(max-width:980px){.prices{grid-template-columns:1fr 1fr}}

@media(max-width:520px){.prices{grid-template-columns:1fr}}

/* calculateur de crédits */

.calc{margin-top:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden;display:grid;grid-template-columns:1fr 1fr}

.calc-l{padding:26px 28px;border-right:1px solid var(--line)}

.calc-r{padding:26px 28px;background:var(--bg2);display:flex;flex-direction:column}

.calc-lbl{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);margin-bottom:11px}

.calc-lbl b{color:var(--accent-lift);font-weight:400}

.calc .seg{display:inline-flex;background:var(--bg2);border:1px solid var(--line);border-radius:999px;padding:3px}

.calc .seg button{border:0;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:500;color:var(--t2);background:transparent;cursor:pointer;font-family:var(--disp);transition:.2s}

.calc .seg button.on{background:var(--accent);color:#fff}

.rng{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;margin:4px 0 10px;cursor:pointer;
  background:linear-gradient(90deg,var(--accent-lift) var(--fill,16%),rgba(255,255,255,.14) var(--fill,16%))}

.rng::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.5)}

.rng::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--accent)}

.calc-hint{font-family:var(--mono);font-size:10px;color:var(--t3)}

.calc-cost{font-family:var(--mono);font-size:clamp(2rem,3.4vw,2.6rem);letter-spacing:-.02em;color:var(--t1);line-height:1}

.calc-cr{font-family:var(--mono);font-size:13px;color:var(--accent-lift);margin-top:6px}

.plan-cov{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:0}

.plan-line{display:flex;justify-content:space-between;align-items:center;font-family:var(--mono);font-size:12px;color:var(--t3);padding:8px 0;border-top:1px solid var(--line)}

.plan-line .cnt{color:var(--t3);transition:color .2s}

.plan-line .cnt.ok{color:var(--accent-lift)}

.calc-note{margin-top:14px;font-size:12px;color:var(--t3);line-height:1.5;max-width:70ch}

.calc-note b{color:var(--t2)}

@media(max-width:720px){.calc{grid-template-columns:1fr}.calc-l{border-right:0;border-bottom:1px solid var(--line)}}

/* Enterprise has no figure, so its "on request" needs to sit at body size
 * rather than at the display size of a price. Inline on the element in the
 * maquette. */

.pc .price-quote {
  font-size: 1.5rem;
}

/* The duration label is a <label> tied to the range input, which the maquette
 * renders as a bare div. */

.calc-lbl-duration {
  margin-top: 24px;
  display: block;
}

/* Testimonials. Rendered but commented out of the page until real quotes
 * exist -- see pages/home.html.erb. */

/* ---------- testimonials ---------- */

.testi-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}

.testi-head h2{font-size:clamp(1.8rem,3.2vw,2.7rem);max-width:18ch}

.arrows{display:flex;gap:10px}

.arrows button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line2);background:transparent;color:var(--t1);cursor:pointer;display:grid;place-items:center;transition:.2s}

.arrows button:hover{border-color:var(--accent);color:var(--accent-lift)}

.testi-track{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:44px}

.tc-card{border:1px solid var(--line);border-radius:16px;padding:28px;display:flex;flex-direction:column;min-height:260px;background:linear-gradient(180deg,var(--panel),transparent)}

.tc-card .q{font-size:16px;line-height:1.55;color:var(--t1);font-weight:400}

.tc-card .who{margin-top:auto;display:flex;align-items:center;gap:12px;padding-top:24px}

.tc-card .av{width:42px;height:42px;border-radius:50%;background:var(--panel3);border:1px solid var(--line2);background-size:cover}

.tc-card .who b{font-weight:500;font-size:14px}

.tc-card .who span{font-size:12.5px;color:var(--t3);display:block}

@media(max-width:860px){.testi-track{grid-template-columns:1fr}}

/* Inline on the <section> in the maquette. */

.testi-sec {
  background: var(--bg2);
  padding: clamp(40px, 6vw, 72px) 0;
}

/* The client logo band. Commented out of the page alongside the
 * testimonials -- see pages/home.html.erb. */

/* logos strip */

.trust{padding:0 0 40px;text-align:center}

.trust p{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3)}

.logos{display:flex;flex-wrap:wrap;gap:clamp(30px,5.5vw,68px);justify-content:center;align-items:center;margin-top:38px}

.logos .clogo{height:32px;width:auto;max-width:130px;color:#8b8b96;opacity:.9;transition:opacity .25s,color .25s}

.logos .clogo:hover{opacity:1;color:#cfcfd7}

/* FAQ accordion. #faq is a real anchor, so it stays an ID. */

#faq{padding:clamp(44px,6vw,76px) 0}

.faq{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(30px,5vw,72px);align-items:start}

.faq h2{font-size:clamp(2.2rem,4.4vw,3.6rem);line-height:1.02}

.faq-list{border-top:1px dashed var(--line2)}

.faq-item{border-bottom:1px dashed var(--line2)}

.faq-q{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 2px;cursor:pointer;font-size:16px;color:var(--t1)}

.faq-q .pm{font-family:var(--mono);color:var(--accent-lift);font-size:18px;transition:.3s;flex:none}

.faq-a{max-height:0;overflow:hidden;transition:max-height .4s ease;color:var(--t2);font-size:14px}

.faq-a p{padding:0 2px 20px 2px;max-width:52ch}

.faq-item.open .pm{transform:rotate(45deg)}

.faq-side{border:1px solid var(--line);border-radius:16px;padding:28px;background:linear-gradient(180deg,var(--panel),transparent)}

.faq-side h3{font-size:1.2rem}

.faq-side p{margin:12px 0 20px;font-size:14px}

@media(max-width:860px){.faq{grid-template-columns:1fr}}

/* The question is a <button> here, not the maquette's <div>: it needs the
 * browser's button defaults stripped to look the same. */

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
}

/* Inline on the wrapper in the maquette. */

.faq-aside {
  margin-top: 36px;
}

.faq-side {
  max-width: 420px;
  margin-left: auto;
}

/* Closing CTA, the oversized wordmark, and the footer. */

.final{text-align:center;padding:clamp(44px,6vw,76px) 0 40px}

.final .hero-cta{margin-top:30px}

.bigmark{padding:40px 0 30px;overflow:hidden}

.bigmark svg{width:100%;display:block}

.bigmark text{fill:none;stroke:var(--line2);stroke-width:1;font-family:var(--disp);font-weight:500;font-size:230px;letter-spacing:-8px}

.bigmark-wm{width:100%;display:block;opacity:.5}

.logo-img{height:21px;width:auto;display:block}

.chat-mk{width:20px;height:20px;display:block}

footer{border-top:1px solid var(--line);padding:44px 0 40px}

.foot{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;align-items:center}

.foot .soc{display:flex;gap:16px}

.foot .soc a{color:var(--t3)}

.foot .soc a:hover{color:var(--t1)}

.foot .made{font-family:var(--mono);font-size:11.5px;color:var(--t3);letter-spacing:.04em}

.foot-links{display:flex;flex-wrap:wrap;gap:22px;font-size:13px}

.foot-links a{color:var(--t2)}

.foot-links a:hover{color:var(--t1)}

/* annotation toggle */

/* The legal links the maquette does not have. Quieter than the anchors beside
 * them: they are an obligation, not a destination. */

.foot-links .foot-legal {
  color: var(--t3);
}

.foot-links .foot-legal:hover {
  color: var(--t2);
}

/* The contact modal, from the maquette. */

/* ---------- modal contact ---------- */

/* The overlay scrolls, and the modal centres itself with auto margins rather
 * than with align-items/justify-content. That is not a style preference.
 *
 * A centred flex item that outgrows its container overflows equally in BOTH
 * directions, and there is no scrolling to negative space: the top half becomes
 * unreachable, whatever the overflow says. Auto margins collapse to 0 the
 * moment the free space goes negative, so the modal lands at the top edge and
 * the overlay scrolls to the rest -- and centres it again as soon as it fits.
 * One mechanism doing both, instead of two that fight.
 *
 * Measured at 320x568 -- an SE held upright, not some landscape edge case: the
 * modal is 642 tall in a 568 viewport, its top sits at -37, and the close
 * button is simply not on screen. */

.wk-ov{position:fixed;inset:0;z-index:600;display:none;overflow-y:auto;padding:20px;background:rgba(4,4,8,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

.wk-ov.open{display:flex;animation:wkfade .2s ease}

@keyframes wkfade{from{opacity:0}to{opacity:1}}

/* The modal is its own scrollport rather than letting the overlay scroll it.
 * The form is 610 tall at 390 -- title, subtitle, four fields, three chips and
 * the button -- and an SE showing its URL bar has 553. Letting the overlay
 * scroll did make Send reachable, but nothing on screen said so: the form ran
 * off the bottom edge and read as broken. Bounded, it ends in a visible edge
 * with a scrollbar, and the button below sticks to it.
 *
 * dvh, not vh: on iOS the URL bar collapses and vh would be the tall one, which
 * is the height the modal does NOT have.
 */

.wk-modal{width:100%;max-width:480px;margin:auto;max-height:calc(100dvh - 40px);overflow-y:auto;
  background:var(--panel);border:1px solid var(--line2);border-radius:20px;
  padding:32px 32px 30px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.65);
  animation:wkpop .24s cubic-bezier(.2,.9,.3,1)}

@keyframes wkpop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

.wk-modal h3{font-size:1.42rem;margin:0 0 6px}

.wk-modal .sub{color:var(--t2);font-size:13.5px;line-height:1.5;margin:0 0 22px}

.wk-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;border:1px solid var(--line2);background:transparent;color:var(--t2);cursor:pointer;font-size:14px;display:grid;place-items:center;transition:.2s}

.wk-close:hover{color:var(--t1);border-color:var(--accent)}

/* flex:1 is basis 0, which is why wrapping alone changed nothing: the fields
 * shrink to whatever is left rather than claim a minimum and move down. With a
 * 120px basis the break falls out of the content instead of being picked --
 * 2x120+12 needs 252, so they sit side by side wherever there is room for them
 * (149px each at 390) and stack where there is not (216px of room at 320 gave
 * 101px fields, about eight characters). */

.wk-row{display:flex;gap:12px;flex-wrap:wrap}

.wk-field{margin-bottom:14px;flex:1 1 120px}

.wk-field label{display:block;font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--t3);margin-bottom:6px}

.wk-field input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:11px 13px;color:var(--t1);font-size:14px;font-family:var(--disp);outline:none;transition:.2s}

.wk-field input:focus{border-color:var(--accent);background:rgba(124,92,255,.06)}

.wk-field input::-moz-placeholder{color:var(--t3)}

.wk-field input::placeholder{color:var(--t3)}

.wk-req{color:var(--accent-lift)}

.wk-int{margin:4px 0 22px}

.wk-int .lbl{font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--t3);margin-bottom:10px}

.wk-chips{display:flex;flex-wrap:wrap;gap:8px}

.wk-chip{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}

.wk-chip input{position:absolute;opacity:0;pointer-events:none}

.wk-chip span{display:inline-block;padding:8px 14px;border:1px solid var(--line2);border-radius:999px;font-size:13px;color:var(--t2);transition:.18s}

.wk-chip input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-lift)}

.wk-chip input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}

/* Sticky, so the primary action never scrolls out of a form taller than the
 * phone. Inert wherever the modal fits -- there is no scrollport to stick to.
 *
 * The button is opaque, so what needs covering is only the padding gutter
 * around it, where the fields would otherwise show through as they scroll past.
 * Hence a shadow pushed DOWN by its own spread: the rect lands flush with the
 * button's top edge and reaches below and to the sides, never above it. A plain
 * `0 0 0 40px` spread grows in all four directions and buries 40px of whatever
 * sits above -- on desktop, where nothing scrolls at all, that was the chips.
 * The numbers agreed it was inert; the screenshot showed it eating the form.
 *
 * No wrapper needed: overflow on .wk-modal clips it to the padding box.
 *
 * bottom:0, not minus the padding: sticky already stops at the padding edge, so
 * offsetting by it welded the button to the modal's border while stuck and then
 * jumped it back 24px the moment the scroll reached the end. Measured: the gap
 * holds at 25px from top to bottom now. */

.wk-submit{width:100%;justify-content:center;margin-top:2px;
  position:sticky;bottom:0;z-index:2;
  box-shadow:0 40px 0 40px var(--panel)}

.wk-done{text-align:center;padding:18px 0 8px}

.wk-done .ok{width:54px;height:54px;border-radius:50%;background:var(--accent-soft);border:1px solid var(--accent);color:var(--accent-lift);display:grid;place-items:center;margin:0 auto 16px;font-size:24px}

/* Honeypot. Off-screen rather than display:none -- some bots skip hidden
 * fields, and the point is that they fill this one. */

.wk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Named for the field it sits under, not just "error": .wk-error used to
 * collide with the 404/410 page wrapper of the same name in _legal.css, which
 * is imported after this and won -- so the empty <p> under the email input
 * inherited a page's 220px/120px padding and made the modal 350px too tall. */

.wk-field-error {
  color: var(--warning);
  font-size: 11.5px;
  margin-top: 6px;
  min-height: 14px;
}

/* Firefox needs this told explicitly; other engines infer it from the flow. */

.wk-done[hidden] {
  display: none;
}

/* 32px each side of a 280px modal is 23% of it. Trimming buys 24px back, which
 * is what keeps the two name fields side by side down to 356px rather than
 * stacking them the moment a phone gets narrow. */

@media (max-width: 520px) {
  /* Top-aligned on a phone rather than centred. The modal is most of the
   * screen here, so centring only buys a thin band of overlay above it, and a
   * dialog anchored under the top edge is what a phone expects -- it also keeps
   * the first fields put when the keyboard comes up.
   *
   * align-self is not optional next to margin-block: 0. An auto block-margin is
   * what was overriding the flex default, so removing it hands the modal back
   * to align-items: normal -- which stretches it to the full 804px. Measured. */
  .wk-modal {
    margin: 0 auto;
    align-self: flex-start;
    padding: 26px 20px 24px;
  }

  /* Three chips need 335 of the 308 there is at 390, so "Recherche vidéo" fell
   * to a second line. The type carries the label; the padding is only air, so
   * that is what gives. 12px/10px fits all three on one line down to 375 -- an
   * SE. At 320 no combination fits that is still legible, and there they wrap. */
  .wk-chip span {
    font-size: 12px;
    padding: 8px 8px;
  }

  .wk-chips {
    gap: 6px;
  }
}

/* The legal pages: long-form markdown from legal.{en,fr}.yml.
 *
 * @tailwindcss/typography does the heavy lifting; this only teaches it the
 * charter's tokens. Its selectors are `.prose :where(p):not(...)` at (0,1,0),
 * so they already beat wk/_base.css's bare `p` at (0,0,1) -- the prose wins
 * without any !important. */

.wk-legal {
  padding: clamp(96px, 12vw, 140px) 0 clamp(56px, 7vw, 84px);
}

.wk-legal .legal-inner {
  max-width: 72ch;
}

.wk-legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.wk-prose {
  --tw-prose-body: var(--t2);
  --tw-prose-headings: var(--t1);
  --tw-prose-lead: var(--t2);
  --tw-prose-links: var(--accent-lift);
  --tw-prose-bold: var(--t1);
  --tw-prose-counters: var(--t3);
  --tw-prose-bullets: var(--line2);
  --tw-prose-hr: var(--line);
  --tw-prose-quotes: var(--t1);
  --tw-prose-quote-borders: var(--accent);
  --tw-prose-captions: var(--t3);
  --tw-prose-code: var(--accent-lift);
  --tw-prose-pre-code: var(--t1);
  --tw-prose-pre-bg: var(--panel);
  --tw-prose-th-borders: var(--line2);
  --tw-prose-td-borders: var(--line);
}

.wk-prose :is(h2, h3) {
  font-weight: 500;
  letter-spacing: -.01em;
}

.wk-prose a {
  text-decoration-color: var(--line2);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.wk-prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* 404 and 410. Same charter, nothing to read.
 *
 * -page suffix on purpose: this is a page wrapper, and a bare .wk-error once
 * collided with the modal's inline field error. */

.wk-error-page {
  padding: clamp(140px, 18vw, 220px) 0 clamp(80px, 10vw, 120px);
  text-align: center;
}

.wk-error-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.wk-error-page p {
  max-width: 46ch;
  margin: 18px auto 28px;
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.max-w-none {
  max-width: none;
}

.shrink {
  flex-shrink: 1;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.flex-wrap {
  flex-wrap: wrap;
}

.border {
  border-width: 1px;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* Nothing follows. The old charter's leftovers -- the global #22263D border
 * colour and .border-default -- went with the last views that used them. */
