/* Déjàfè: shared styles. No build step: this file is served as is. */

/* fonts: served from this site, so no visitor's browser calls Google. Latin first, the extended set only loads if a page needs it. */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* brand: plum night (plum, lemon and white), chosen 2026-11-18 */
  --plum-deep: #1F0E33;   /* text on white and lemon, dark buttons and the picked plan */
  --plum: #3D2161;        /* softer text on lemon */
  --plum-mid: #5B4378;    /* quieter text on white and lemon */
  --heather: #6E5A8A;     /* quietest text on white */
  --lilac: #DCD0EE;       /* lines on white */
  --white: #FFFFFF;       /* light bands and cards */
  --lemon: #FFE14D;       /* the accent on plum: headline line, notes, buttons, the è */
  --grape: #6A2C9E;       /* the accent on white, where lemon can't be read */
  /* dark surfaces */
  --void: #2A1440;        /* page background */
  --surface: #331A4D;
  --line: #45295F;
  --text: #FFFFFF;
  --muted: #C8B6E8;       /* lavender, quieter text on plum */
  --signal: #6BE3B0;
  /* type */
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fancy: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  /* layout */
  --gutter: clamp(1.25rem, 2.9vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;   /* animated elements may poke out sideways before they settle; never scroll for them */
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 4px;
  border-radius: 3px;
}
.on-white :focus-visible, .on-lemon :focus-visible { outline-color: var(--plum-deep); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--lemon); color: var(--void);
  padding: 0.6rem 1rem; border-radius: 999px; font-weight: 500; text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nb { white-space: nowrap; }   /* keeps hyphenated French words such as "Dites-moi" on one line */

.wrap {
  width: 100%;
  max-width: 110rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { scroll-margin-top: 0; }

/* ---------- type ---------- */

.mega {
  font-weight: 700;
  font-size: clamp(3.25rem, 12.6vw, 13.5rem);
  line-height: 0.885;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.statement {
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 4rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.statement > span { display: block; text-wrap: balance; }   /* no single word left alone on a line */

/* hero statement: three verbs that pop, and a hand-drawn underline on the last words */
.punch { display: inline-block; transform-origin: 50% 85%; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark > svg {
  position: absolute; left: -3%; bottom: -0.1em;
  width: 106%; height: 0.2em; max-width: none; overflow: visible;
}
.mark > svg path {
  fill: none; stroke: var(--lemon); stroke-width: 4.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* the last line of the hero statement acts out its words: sparkles on the first, and a pencil that draws the underline.
   Both stay hidden unless the motion rules further down bring them in. */
.fx { display: inline-block; }
.fx-sparkle { position: relative; }
.sp {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  max-width: none; overflow: visible; fill: var(--lemon); opacity: 0; pointer-events: none;
}
.pencil { position: absolute; left: -1.5%; bottom: -0.05em; width: 103%; height: 0; opacity: 0; pointer-events: none; }
.pencil svg {
  position: absolute; left: -0.04em; bottom: 0; width: 0.6em; height: 0.6em; max-width: none; overflow: visible;
  fill: none; stroke: var(--lemon); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 8% 92%;
}
.statement .dim { color: var(--muted); }
.on-white .statement .dim { color: var(--heather); }
.on-lemon .statement .dim { color: var(--plum-mid); }
/* who said a quoted statement: a quieter line under the quote */
.statement .cite { font-size: max(1.05rem, 0.48em); line-height: 1.3; letter-spacing: -0.015em; margin-top: 0.75em; }

.title {
  font-weight: 700;
  font-size: clamp(2.1rem, 5.1vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.title-2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.65vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.h3 {
  font-weight: 500;
  font-size: clamp(1.3rem, 2.35vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.small { font-size: 0.875rem; line-height: 1.45; font-weight: 500; }

.aside {
  font-family: var(--fancy);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.36vw, 2.15rem);
  line-height: 1.15;
  color: var(--lemon);
}
.on-white .aside { color: var(--grape); }
.on-lemon .aside { color: var(--plum); }

.lemon { color: var(--lemon); }
.signal { color: var(--signal); }

/* ---------- buttons and links ---------- */

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-lemon { background: var(--lemon); color: var(--void); }
.btn-lemon:hover { background: var(--text); }
.btn-signal { background: var(--signal); color: var(--void); }
.btn-signal:hover { background: var(--text); }
.btn-dark { background: var(--plum-deep); color: var(--white); }
.btn-dark:hover { background: var(--plum-mid); }
.btn-line { background: transparent; color: var(--lemon); box-shadow: inset 0 0 0 1.5px var(--lemon); }
.btn-line:hover { background: var(--lemon); color: var(--void); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 500; text-decoration: none;
  padding-bottom: 0.15rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size 0.25s var(--ease), color 0.18s;
}
.link:hover { background-size: 100% 3px; }

/* ---------- nav ---------- */

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.4rem;
}
/* The logo is an image, assets/logo.svg. It is the leaf D mark followed by the full name as outlines.
   The image box runs from the top of the mark to the bottom of the j. The mark stands a little taller than a capital letter,
   and the negative margin lets that extra height rise into the header's padding so the name stays level with the menu. */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 1.82rem; width: auto; margin-top: -0.14rem; }
/* On the narrowest phones the logo, Menu, the language link and the button only fit on one row with a smaller logo. */
@media (max-width: 359px) { .brand img { height: 1.5rem; margin-top: -0.11rem; } }
.nav-right { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.lang { font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.18s; }
.lang:hover { color: var(--text); }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 1.9rem); }
.nav-links a { font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.18s; }
.nav-links a:hover { color: var(--lemon); }
.nav .link { font-size: 0.9rem; color: var(--lemon); }
.menu-btn { display: none; }   /* phones only, see the phone rules at the end */

/* ---------- section scaffolding ---------- */

.band { padding-block: var(--section); }
.on-white { background: var(--white); color: var(--plum-deep); }
.on-lemon { background: var(--lemon); color: var(--plum-deep); }

.headline {
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: clamp(1rem, 2.6vw, 2.5rem); row-gap: 0.4rem;
}
/* when a heading wraps and its note drops to its own line, leave room for the heading's descenders (p, g, y)
   so the note never touches them. On the same line as the heading, baseline alignment makes this margin invisible. */
.headline > .aside { margin-top: clamp(0.6rem, 2.8vw, 3rem); }
.hero .headline > .aside { margin-top: 0; }   /* the hero has its own fitted spacing */
.intro { display: grid; gap: clamp(1.25rem, 2.9vw, 2.25rem); justify-items: start; }
.stack { display: grid; gap: clamp(3rem, 7vw, 6rem); }

/* ---------- hero ---------- */

/* The headline, the note, the statement and the buttons should all land on the first screen.
   --fit is the screen height left for the parts that can shrink (the bar, the note and the buttons keep their size).
   Each of those parts takes a share of it, and never grows past the size the page width allows. */
.hero {
  --fit: calc(100vh - 14rem);
  padding-block: min(clamp(2.5rem, 6.5vw, 6rem), max(1rem, calc(var(--fit) * 0.08))) clamp(4rem, 8vw, 7.5rem);
}
.hero .headline > .mega { display: contents; }   /* the slogan; the page's h1 is the statement under it */
/* three lines; the width limit keeps the widest one (the French lemon line, about 8.9em) on a single line */
.hero .mega { font-size: min(calc((100vw - 2 * var(--gutter)) / 9.3), 11.15rem, max(3.5rem, calc(var(--fit) * 0.207))); }
.hero .mega-line { display: block; }
.hero .mega-line:not(:last-child) { flex-basis: 100%; }
.hero .statement { font-size: min(clamp(1.75rem, 4.2vw, 4rem), max(1.75rem, calc(var(--fit) * 0.0767))); }
.hero .intro { gap: min(clamp(1.75rem, 4vw, 3.25rem), max(1rem, calc(var(--fit) * 0.055))); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

.collage {
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.shot img {
  width: 100%;
  border-radius: clamp(8px, 1.1vw, 14px);
  border: 1px solid var(--line);
  box-shadow: 0 2.5rem 6rem -2rem rgb(0 0 0 / 0.9);
}
.shot figcaption { margin-top: 0.9rem; }
.shot-oubus { grid-column: 1 / 9; grid-row: 1; }
.shot-lou { grid-column: 7 / 13; grid-row: 1; z-index: 1; margin-top: clamp(5rem, 17.5vw, 19rem); }
/* the note stays to the right of the OùBus image, which overlaps the first third of this figure */
.shot-lou figcaption { margin: 0 0 0.8rem; padding-left: 36%; text-align: right; text-wrap: balance; }

/* a client's own words, on a card that overlaps the corner of their screenshot */
.quote {
  position: relative; z-index: 2;
  display: grid; gap: 0.75rem;
  padding: clamp(1.1rem, 2vw, 1.9rem) clamp(1.25rem, 2.2vw, 2.1rem);
  background: var(--white); color: var(--plum-deep);
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 2rem 4.5rem -1.5rem rgb(0 0 0 / 0.85);
}
/* wide screens: in the hero, over the bottom-left corner of Lou's screenshot. Phones: in the work section instead (see small screens) */
.quote-hero { grid-column: 4 / 8; grid-row: 1; align-self: end; margin-bottom: clamp(-3.5rem, -3.2vw, -2.5rem); }
.quote-work { display: none; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--fancy); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.35vw, 2.3rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance;
  color: var(--plum-deep);   /* stated here because .project p would otherwise grey it */
}
.quote figcaption { font-size: clamp(0.85rem, 1.05vw, 1rem); line-height: 1.3; font-weight: 500; color: var(--grape); }

/* ---------- client work ---------- */

.media {
  display: block; overflow: hidden;
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 2rem 5rem -2rem rgb(31 14 51 / 0.45);
}
.media img { width: 100%; transition: transform 0.6s var(--ease); }
a.media:hover img { transform: scale(1.02); }

.project { display: grid; gap: clamp(1.25rem, 2.6vw, 2rem); }
.project-info {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap;
}
.project-info > div:first-child { display: grid; gap: 1rem; max-width: 40rem; }
.project-info .lead, .project p { color: var(--plum-mid); }
.project-meta { display: grid; gap: 0.7rem; justify-items: end; }
.pair { display: grid; grid-template-columns: 1fr 0.72fr; gap: clamp(1.5rem, 3.6vw, 2.75rem); align-items: start; }
.pair .project:last-child { margin-top: clamp(3rem, 11.5vw, 9rem); }
.pair .project > div { display: grid; gap: 0.7rem; justify-items: start; }
/* three projects side by side (law firm page) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.6vw, 2.75rem); align-items: start; }
.trio .project > div { display: grid; gap: 0.7rem; justify-items: start; }
.trio .media img { aspect-ratio: 1440 / 832; object-fit: cover; object-position: top; }   /* the three screenshots share one height */

/* ---------- OùBus ---------- */

.busmap {
  position: relative; overflow: hidden;
  border-radius: clamp(8px, 1.1vw, 14px);
  border: 1px solid var(--line);
  box-shadow: 0 2.5rem 6rem -2rem rgb(0 0 0 / 0.9);
  background: #0d0b1a;
}
.busmap-layer { position: relative; }
.busmap-layer > img { width: 100%; }
.busmap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#bus-route { fill: none; stroke: #74DDD3; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.bus-stop { fill: #17122b; stroke: #74DDD3; stroke-width: 2.5; transition: opacity 0.3s; }
.bus { transition: opacity 0.4s; }
.bus-dot { fill: #FF9D66; stroke: rgb(255 157 102 / 0.28); stroke-width: 9; }
.bus-glyph { fill: none; stroke: #2A1F4E; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bus-tag { fill: #2A1F4E; }
.bus-num { fill: #FFB58C; font: 700 10.5px var(--sans); text-anchor: middle; }

.note {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.8rem; border-radius: 7px;
  background: var(--text); color: var(--void);
  font-size: clamp(0.72rem, 1.25vw, 0.9rem); font-weight: 500; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 0.8rem 2rem -0.5rem rgb(0 0 0 / 0.8);
}
.note i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #1F9D6B; }
.note-live { right: 5%; top: 60%; }
.note-times { left: 31%; top: 42%; }
.note-seats { left: 27.5%; top: 70.5%; }

.rows > * {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 0.5rem 2.5rem; align-items: baseline;
  padding-block: clamp(1.25rem, 2.6vw, 1.9rem);
  border-top: 1px solid var(--line);
}
.rows > *:last-child { border-bottom: 1px solid var(--line); }
.rows .lead { color: var(--muted); }
.on-white .rows > * { border-color: var(--lilac); }
.on-white .rows .lead { color: var(--plum-mid); }
.on-lemon .rows > * { border-color: rgb(31 14 51 / 0.25); }
.on-lemon .rows .lead { color: var(--plum); }

/* ---------- services ---------- */

.rows-big > * { grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr); align-items: start; padding-block: clamp(1.5rem, 3.6vw, 2.6rem); }
.rows-big .lead { padding-top: 0.4rem; }
.rows-big .title { transition: transform 0.35s var(--ease), color 0.18s; }
.rows-big > *:hover .title { transform: translateX(0.75rem); color: var(--grape); }

.cols { display: grid; gap: clamp(1.5rem, 3.6vw, 2.75rem); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols > div { display: grid; gap: 0.5rem; align-content: start; }
.on-white .cols p { color: var(--plum-mid); }
.on-lemon .cols p { color: var(--plum); }
.included { display: grid; gap: clamp(1.25rem, 2.9vw, 2rem); }

/* ---------- care ---------- */

.care-cols { padding-top: clamp(1.5rem, 3.6vw, 2.6rem); border-top: 1px solid rgb(31 14 51 / 0.25); }
.care-list { display: grid; gap: 1.2rem; }
.care-list a { text-decoration: none; }
.care-list a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.care-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.care-cta p { max-width: 36rem; text-wrap: pretty; }

/* ---------- care plans page (/entretien/, /en/care/) ---------- */

.nav-links a[aria-current] { color: var(--lemon); }
.page-hero { padding-block: clamp(2.5rem, 6.5vw, 6rem) var(--section); }
/* a page hero that keeps its buttons and price line on the first screen (new business page), the same way the homepage hero does.
   --fit is the screen height left once the bar, the note and the buttons have their room. Each part takes a share of it,
   and never grows past the size the page width allows, so phones are unchanged. */
.page-hero-fit {
  --fit: calc(100vh - 13rem);
  padding-top: min(clamp(2.5rem, 6.5vw, 6rem), max(1rem, calc(var(--fit) * 0.06)));
}
.page-hero-fit .mega { font-size: min(clamp(3.25rem, 12.6vw, 13.5rem), max(3.25rem, calc(var(--fit) * 0.24))); }
.page-hero-fit .statement { font-size: min(clamp(1.75rem, 4.2vw, 4rem), max(1.75rem, calc(var(--fit) * 0.075))); }
.page-hero-fit .intro { gap: min(clamp(1.25rem, 2.9vw, 2.25rem), max(1rem, calc(var(--fit) * 0.045))); }
/* phones: only short screens (an iPhone SE is 667 high) shrink, so taller phones keep the usual sizes */
@media (max-width: 47.99rem) {
  .page-hero-fit .mega { font-size: max(2.75rem, min(3.25rem, calc(var(--fit) * 0.1))); }
  .page-hero-fit .statement { font-size: max(1.5rem, min(1.75rem, calc(var(--fit) * 0.055))); }
  .page-hero-fit .intro { gap: max(1rem, min(1.25rem, calc(var(--fit) * 0.035))); }
}
/* desktop: site.js grows the hero's type to fill the screen below the bar (--fill is that height), then marks it .filled.
   Any space left over is shared evenly above and below. */
.page-hero-fit.filled {
  min-height: var(--fill);
  display: grid; align-content: center;
  padding-block: clamp(2rem, 7vh, 5rem);
}
.cta .lead, .fine { color: var(--muted); }

/* CAD or USD: shown by site.js only once the day's rate has arrived */
.currency { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.5rem 1.1rem; color: var(--plum-mid); }
.currency[hidden], .currency [hidden] { display: none; }
.currency-switch { display: inline-flex; gap: 1.1rem; }
.currency button {
  padding: 0 0 0.2rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--heather); font: inherit; font-weight: 500; cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.currency button:hover { color: var(--plum-deep); }
.currency button[aria-pressed="true"] { color: var(--plum-deep); border-bottom-color: var(--grape); }
.currency-note { grid-column: 1 / -1; max-width: 40rem; }   /* the estimate note sits on its own line, under the switch */

/* three plans side by side, split by hairlines. The recommended one is the filled column */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--lilac); }
.plan {
  display: grid; gap: clamp(1.5rem, 2.9vw, 2rem); align-content: start;
  padding: clamp(1.75rem, 3.6vw, 2.5rem) clamp(1.25rem, 2.9vw, 2rem);
}
.plan:first-child { padding-left: 0; }
.plan:last-child { padding-right: 0; }
.plan-head { display: grid; gap: 0.4rem; }
.plan-for, .plan-unit { color: var(--plum-mid); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.plan-price strong { font-weight: 700; font-size: clamp(3.75rem, 7.6vw, 6.5rem); line-height: 0.95; letter-spacing: -0.05em; }
.plan-month { margin-top: 0.6rem; color: var(--heather); }
.plan-list li { padding-block: 0.75rem; border-top: 1px solid var(--lilac); }
.plan-list li:last-child { border-bottom: 1px solid var(--lilac); }
.plan-pick { background: var(--plum-deep); color: var(--white); }
.on-white .plan-pick .aside, .plan-pick .plan-price strong { color: var(--lemon); }
.plan-pick .plan-for, .plan-pick .plan-unit, .plan-pick .plan-month { color: rgb(255 255 255 / 0.7); }
.plan-pick .plan-list li { border-color: rgb(255 255 255 / 0.18); }
/* "Everything in Essential, plus": the step up from the plan before, then only what is added */
.plan-list .plan-plus { font-weight: 500; color: var(--plum-mid); }
.plan-pick .plan-list .plan-plus { color: var(--lemon); }
/* the same reply time for everyone, and the first-year discount, under the three plans */
.plans-notes { display: grid; gap: 0.6rem; max-width: 52rem; }
.plans-notes .lead { color: var(--plum-mid); text-wrap: pretty; }

/* the full comparison: a real table on wide screens, one block per row on phones */
.compare { width: 100%; border-collapse: collapse; text-align: left; }
.compare th, .compare td {
  padding: clamp(1rem, 1.9vw, 1.3rem) clamp(1rem, 2.4vw, 2rem) clamp(1rem, 1.9vw, 1.3rem) 0;
  border-top: 1px solid var(--line); vertical-align: baseline; font-weight: 400;
}
.compare th:last-child, .compare td:last-child { padding-right: 0; }
.compare thead th, .compare thead td { border-top: 0; }
.compare thead th { font-weight: 500; font-size: clamp(1.15rem, 2.35vw, 1.85rem); line-height: 1.22; letter-spacing: -0.015em; }
.compare tbody th { width: 31%; font-weight: 500; }
.compare td { width: 23%; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.compare .pick { color: var(--lemon); }
.compare .price td { font-weight: 500; font-size: clamp(1.15rem, 2.35vw, 1.85rem); line-height: 1.22; letter-spacing: -0.015em; color: var(--text); }
.compare .price td.pick { color: var(--lemon); }

/* what counts as a small edit: two plain lists */
.edits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr); gap: clamp(2rem, 5.8vw, 4.5rem); align-items: start; }
.edit-list { display: grid; gap: 1.2rem; }
.lines li { padding-block: clamp(1rem, 1.9vw, 1.3rem); border-top: 1px solid var(--lilac); text-wrap: balance; }
.lines li:last-child { border-bottom: 1px solid var(--lilac); }
.edit-extra .lines li { color: var(--plum-mid); }

.rows .fine { margin-top: 0.7rem; }
.tax { color: var(--muted); }

/* ---------- websites page (/en/websites/) ---------- */

/* the Grande Roue at the Old Port, after "Montréal." in the headline. The wheel turns once every 40 seconds
   and each cabin turns back the other way around its hook, so the cabins always hang straight down */
.nowrap { white-space: nowrap; }
.wheel {
  display: inline-block; width: 0.74em; height: 0.79em; margin-left: 0.1em; vertical-align: -0.04em;
  overflow: visible; color: var(--lemon);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.wheel-rim circle:nth-of-type(2), .wheel-rim > line { stroke-width: 1.6; }
.wheel .cab rect, .wheel-hub { fill: currentColor; }
.wheel-rim { transform-box: view-box; transform-origin: 50px 46px; animation: wheel-turn 40s linear infinite; }
.wheel .cab { transform-box: view-box; animation: wheel-turn 40s linear infinite reverse; }
@keyframes wheel-turn { to { transform: rotate(1turn); } }

/* the four kinds of project, side by side, each ending on its "from" price */
.offers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3.6vw, 2.75rem);
  padding-top: clamp(1.75rem, 3.6vw, 2.5rem); border-top: 1px solid var(--lilac);
}
.offer { display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem; }
.offer-head { display: grid; gap: 0.4rem; }
.offer > p { color: var(--plum-mid); }
.offer-price { display: grid; gap: 0.15rem; }
.offer-price .small { color: var(--plum-mid); }
.offer-price strong { font-weight: 700; font-size: clamp(2.75rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -0.05em; color: var(--plum-deep); }

/* typical projects and their ranges: name, what it covers, the range */
.ranges > li {
  display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.42fr) minmax(0, 0.22fr); gap: 0.25rem 2.5rem; align-items: baseline;
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem); border-top: 1px solid var(--line);
}
.ranges > li:last-child { border-bottom: 1px solid var(--line); }
.ranges .lead { color: var(--muted); }
.ranges .range { text-align: right; color: var(--lemon); white-space: nowrap; }
.extras .cols p { color: var(--muted); }

.budget-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; padding-top: 0.5rem; }
.budget-line .lead { color: var(--muted); }
.on-white .budget-line .lead { color: var(--plum-mid); }   /* lavender is too light on white */

.included-grid { padding-top: clamp(1.75rem, 3.6vw, 2.5rem); border-top: 1px solid var(--lilac); row-gap: clamp(2rem, 4.4vw, 3rem); }

/* the seven steps of a project, numbered because the order matters (the numbers are in the page, so the list's own are off) */
.steps { margin: 0; padding: 0; list-style: none; }
.steps > li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 0.36fr) minmax(0, 0.64fr); gap: 0.35rem 2rem; align-items: baseline;
  padding-block: clamp(1.25rem, 2.6vw, 1.9rem); border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.step-n { color: var(--lemon); }
.steps .lead { color: var(--muted); }
.step-more, .row-more { display: grid; gap: 0.8rem; justify-items: start; }
.step-more .link { color: var(--lemon); }
.on-white .row-more .link { color: var(--grape); }

/* "Your part" on lemon: the same two lists as the care page's small edits */
.on-lemon .lines li { border-color: rgb(31 14 51 / 0.25); }
.on-lemon .edit-extra .lines li { color: var(--plum-mid); }

/* ---------- the name: "Déjà fait." as a call and response ---------- */

.asks > * { grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr); align-items: baseline; }
.ask {
  font-family: var(--fancy); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.1vw, 2.75rem); line-height: 1.15; color: var(--plum-mid);
}
.done {
  font-weight: 700; font-size: clamp(1.9rem, 3.65vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em;
  color: var(--grape); transform-origin: 0 70%;
}

/* ---------- Jade: notes pinned around the portrait ---------- */

/* follows Déjà fait, which is also white: a hairline instead of a second band of padding */
#deja-fait { padding-bottom: calc(var(--section) * 0.6); }
#jade { padding-top: 0; }
#jade > .wrap { border-top: 1px solid var(--lilac); padding-top: calc(var(--section) * 0.6); }

.board {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 23rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center;
}
.notes { display: grid; gap: clamp(2rem, 4.4vw, 3.75rem); }
.notes-l { justify-items: end; }
.notes-r { justify-items: start; gap: clamp(3rem, 7vw, 6.5rem); padding-top: clamp(1rem, 4vw, 3rem); }
.notes-l .pin:nth-child(2) { margin-right: clamp(0.5rem, 2.5vw, 2.5rem); }
.notes-r .pin:nth-child(2) { margin-left: clamp(-0.5rem, -1.5vw, -1.5rem); }

.pin { position: relative; max-width: 21.5rem; rotate: var(--r, 0deg); }
.notes-l .pin { padding-right: clamp(3rem, 5.5vw, 4.75rem); }
.notes-r .pin { padding-left: clamp(3rem, 5.5vw, 4.75rem); }
.pin::before { content: ""; display: block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--grape); margin-bottom: 0.55rem; }
.pin dt {
  font-family: var(--fancy); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 2.25vw, 1.95rem); line-height: 1.12; color: var(--plum-mid); text-wrap: balance;
}
.pin dd {
  margin-top: 0.4rem; font-weight: 700; font-size: clamp(1.2rem, 1.95vw, 1.65rem); line-height: 1.1;
  letter-spacing: -0.03em; color: var(--grape); text-wrap: balance;
}
/* a thin line from each note toward the portrait, in grape like the dot above it (lemon can't be seen on white) */
.pin::after {
  content: ""; position: absolute; top: 50%; width: clamp(2.5rem, 4.8vw, 4.25rem); aspect-ratio: 1;
  background: var(--grape); translate: 0 -50%;
  -webkit-mask: var(--leader) center / contain no-repeat; mask: var(--leader) center / contain no-repeat;
  --leader: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M4 26c18-14 38 4 54 18' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='58' cy='44' r='2.6'/%3E%3C/svg%3E");
}
.notes-l .pin::after { right: 0; }
.notes-r .pin::after { left: 0; scale: -1 1; }

.portrait-ph, .portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 2rem 5rem -2rem rgb(31 14 51 / 0.45);
}
/* stand-in until the real photo: a lemon monogram on deep plum */
.portrait-ph { display: grid; place-items: center; background: var(--plum-deep); overflow: hidden; }
.portrait-ph span {
  font-family: var(--fancy); font-style: italic; font-weight: 500;
  font-size: clamp(9rem, 17vw, 16rem); line-height: 1; color: var(--lemon); transform: translateY(-4%);
}
.portrait figcaption { margin-top: 0.9rem; text-align: center; color: var(--plum-mid); }

.story { display: grid; justify-items: center; gap: 1.25rem; max-width: 40rem; margin-inline: auto; text-align: center; }
.story .lead { color: var(--plum-mid); text-wrap: pretty; }
.story .lead.first { color: var(--plum-deep); }
.story .lead a { color: var(--plum-deep); text-underline-offset: 0.2em; }

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

.contact-body {
  display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); gap: clamp(2rem, 5.8vw, 4.5rem);
  padding-top: clamp(2rem, 4.4vw, 3.25rem); border-top: 1px solid var(--line);
}
.facts, .facts dl { display: grid; gap: 1.9rem; align-content: start; }
.facts dt { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.facts dd { font-size: clamp(1.125rem, 1.8vw, 1.4rem); line-height: 1.4; }
.facts p, .facts dd.more { color: var(--muted); }
.facts p a { color: var(--text); text-underline-offset: 0.2em; white-space: nowrap; }
.facts dd.more { font-size: 1rem; line-height: 1.6; margin-top: 0.3rem; }
.facts dd.more a { display: inline-block; color: var(--text); text-underline-offset: 0.2em; margin-top: 0.3rem; }
/* booking: a call as the alternative to the form */
.book { display: grid; justify-items: start; gap: 0.3rem; }
.facts .book-q { font-size: 0.875rem; font-weight: 500; }
.facts .book-a { color: var(--text); font-size: clamp(1.125rem, 1.8vw, 1.4rem); line-height: 1.4; margin-bottom: 0.9rem; }

.form { display: grid; gap: clamp(1.75rem, 3.3vw, 2.4rem); justify-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; }
.field { display: grid; gap: 0.2rem; width: 100%; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
  padding: 0.7rem 0;
  font: inherit; font-size: clamp(1.125rem, 1.8vw, 1.4rem); line-height: 1.4;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgb(200 182 232 / 0.6); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lemon); box-shadow: 0 1px 0 var(--lemon); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #F2A090; }
.field .err { min-height: 1.2rem; font-size: 0.875rem; color: #F2A090; }

/* dropdowns: same underline look as the text fields, with the browser's own picker */
/* two per row under name and email, three only when each can fit the longest French option */
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); align-items: end; }
.select { position: relative; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 1.75rem; cursor: pointer; text-overflow: ellipsis; }
.field select:has(option[value=""]:checked) { color: rgb(200 182 232 / 0.6); } /* the "Choose one" prompt looks like a placeholder */
.field select option { color: var(--text); background: var(--surface); }
.select .ic { position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.1rem; color: var(--muted); pointer-events: none; transition: color 0.18s; }
.select:hover .ic, .select:focus-within .ic { color: var(--lemon); }

.optin { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 36rem; color: var(--muted); cursor: pointer; }
.optin input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.25rem 0 0; accent-color: var(--lemon); cursor: pointer; }
.optin:hover { color: var(--text); }

.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; }
.form-status { font-size: 1rem; color: var(--muted); }
.form-status[data-state="ok"] { color: var(--signal); }
.form-status[data-state="error"] { color: #F2A090; }
.spin { display: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.is-sending .spin { display: block; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- text pages (privacy policy) ---------- */

.legal { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6.5vw, 6rem) var(--section); }
.legal-date { color: var(--muted); }

/* booking pages: the Cal.com calendar inline */
.booking { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.5rem, 6.5vw, 6rem) var(--section); }
.book-embed { width: 100%; min-height: 34rem; }
.book-alt { color: var(--muted); }
.book-alt a { color: var(--text); text-underline-offset: 0.2em; }
.prose { display: grid; gap: clamp(2.25rem, 4.4vw, 3.25rem); max-width: 46rem; }
.prose section { display: grid; gap: 1rem; }
.prose h2 { font-weight: 600; font-size: clamp(1.5rem, 2.9vw, 2.25rem); line-height: 1.15; letter-spacing: -0.03em; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.65; color: #E2D8F0; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--lemon); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--lemon); text-underline-offset: 0.2em; }
.prose a:hover { color: var(--text); }

/* ---------- 404: a bus numbered 404 reaches the end of its line ---------- */

.lostline { position: relative; height: 7.5rem; }
.lostline-road {
  position: absolute; left: 0; right: 0; top: 3.9rem; height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #74DDD3 62%, transparent 62%),
              repeating-linear-gradient(90deg, rgb(116 221 211 / 0.4) 0 9px, transparent 9px 18px);
}
.lostline-stop {
  position: absolute; top: 3.9rem; width: 1rem; height: 1rem; margin: -0.34rem 0 0 -0.5rem;
  border-radius: 50%; border: 3px solid #74DDD3; background: #17122b;
}
.lostline-bus { position: absolute; left: 62%; top: 0.3rem; width: 4.5rem; height: 6rem; margin-left: -2.25rem; max-width: none; overflow: visible; }
.lostline-note { position: absolute; right: 0; top: 5rem; color: var(--muted); }
.js .lostline-bus { animation: lostbus 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.5s both; }
@keyframes lostbus { from { left: 2%; } to { left: 62%; } }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: clamp(1.75rem, 3.6vw, 2.6rem); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 1.25rem; }
.footer-nav a { color: var(--text); text-underline-offset: 0.2em; }
@media (min-width: 48rem) { .footer-nav { justify-content: flex-end; } }
.footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; }
.footer-top .aside { color: var(--muted); }
.footer-top .small { color: var(--muted); }
.footer-top .small a { color: var(--text); text-underline-offset: 0.2em; }

/* ---------- motion ---------- */

/* Everything is visible without JavaScript. The .js class is set in the head. */
.js .rise .w {
  display: inline-block; overflow-x: visible; overflow-y: clip;
  padding-block: 0.14em; margin-block: -0.14em;
}
.js .rise .wi { display: inline-block; transform: translateY(118%); transition: transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rise.in .wi { transform: none; }

/* The hero is the wake-up: one fast sequence of about two seconds, then the finale on the last line of the statement.
   Headline words kick up with a little overshoot, the note is written in, the statement cascades
   and its three verbs pop in lemon as they land, then the buttons land while the last line plays (see the finale below). */
.js .hero .rise .wi {
  transform: translateY(125%) rotate(7deg); transform-origin: 0 100%;
  transition: transform 0.85s cubic-bezier(0.18, 1.32, 0.32, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .hero .rise.in .wi { transform: none; }
.js .hero .statement .rise .wi { transition-delay: calc(480ms + var(--i, 0) * 45ms); }

.js .hero .headline .aside.reveal { opacity: 1; transform: none; }
.js .hero .write {
  display: inline-block;
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 0.9s cubic-bezier(0.5, 0, 0.2, 1) 0.75s;
}
.js .hero .reveal.in .write { clip-path: inset(-20% -5% -20% 0); }

/* each verb pops as it lands (its own rise starts at 480ms + --i * 45ms), a beat apart, so all three are done before the last line begins */
.js .rise.in .punch { animation: punch 0.6s cubic-bezier(0.3, 1.5, 0.4, 1) both; animation-delay: calc(780ms + var(--i, 0) * 45ms + var(--p, 0) * 0.1s); }
@keyframes punch {
  0% { transform: none; color: inherit; }
  35% { transform: scale(1.16) rotate(-3deg); color: var(--lemon); }
  70% { color: var(--lemon); }
  100% { transform: none; color: inherit; }
}

.js .mark > svg path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s cubic-bezier(0.6, 0, 0.2, 1) 2.15s; }
.js .rise.in .mark > svg path { stroke-dashoffset: 0; }

/* The last line of the statement is the finale. It arrives after the rest, one word at a time, and each word does what it says.
   The first comes into focus with three sparkles that keep twinkling for 1.5 seconds after the line is finished, the second whips in,
   and a pencil draws the line under the last words.
   --t0 is the moment the line starts. When the line is reached by scrolling it starts at once. */
.js .hero .finale { --t0: 1.85s; }
.js .hero .finale.late { --t0: 0.1s; }
.js .hero .statement .finale > .w:nth-child(-n+2) > .wi { transform: none; transition: none; }   /* these two make their own entrance */
.js .hero .statement .finale > .w:nth-child(n+3) > .wi { transition-duration: 0.55s; transition-delay: calc(var(--t0) + 1s); }
.js .hero .fx { opacity: 0; }
.js .hero .rise.in .fx-sparkle { animation: bloom 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--t0) both; }
.js .hero .rise.in .sp { animation: twinkle 0.75s ease-in-out calc(var(--t0) + 0.3s + var(--d, 0s)) 5 both; }   /* five twinkles each, still going 1.5s after the pencil lifts (it is gone at --t0 + 2.55s) */
.js .hero .rise.in .fx-zip { animation: zip 0.56s linear calc(var(--t0) + 0.7s) both; }
.js .hero .finale .mark > svg path { transition-duration: 0.65s; transition-delay: calc(var(--t0) + 1.55s); }
.js .hero .rise.in .pencil {
  animation: pencil-run 0.65s cubic-bezier(0.6, 0, 0.2, 1) calc(var(--t0) + 1.55s) both,
             pencil-show 1.1s linear calc(var(--t0) + 1.45s) both;
}
.js .hero .rise.in .pencil svg {
  animation: scribble 0.65s linear calc(var(--t0) + 1.55s),
             pencil-lift 0.35s ease-in calc(var(--t0) + 2.2s) forwards;
}
@keyframes bloom {
  from { opacity: 0; filter: blur(0.1em); transform: translateY(0.1em) scale(0.96); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes twinkle {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  35% { opacity: 1; transform: scale(1) rotate(8deg); }
  60% { opacity: 1; transform: scale(0.9) rotate(20deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(45deg); }
}
/* it arrives leaning into the run, shoots a little past its place, rocks back as it brakes, then walks back and settles */
@keyframes zip {
  0% { opacity: 0; transform: translateX(-1.5em) skewX(-24deg); animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1); }
  20% { opacity: 1; }
  38% { opacity: 1; transform: translateX(0.17em) skewX(-16deg); animation-timing-function: ease-in-out; }
  62% { opacity: 1; transform: translateX(0.04em) skewX(9deg); animation-timing-function: ease-in-out; }
  82% { opacity: 1; transform: translateX(-0.025em) skewX(-3deg); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: none; }
}
@keyframes pencil-run { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes pencil-show { 0% { opacity: 0; } 9% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scribble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}
@keyframes pencil-lift { to { transform: translate(0.1em, -0.28em) rotate(-14deg); } }

.js .hero .cta.reveal {
  transform: translateY(20px) scale(0.92); transform-origin: 0 50%;
  transition: opacity 0.4s, transform 0.7s cubic-bezier(0.2, 1.45, 0.35, 1);
  transition-delay: 1.9s;
}
.js .hero .cta.reveal.in { transform: none; }
.js .hero .cta.reveal.late { transition-delay: 0s; }   /* reached by scrolling: no wait for the opening sequence */
.js .hero .shot.reveal { transform: translateY(80px) rotate(1.5deg); transition-duration: 0.9s; }
.js .hero .shot-lou.reveal { transform: translateY(110px) rotate(-2deg); }
.js .hero .shot.reveal.in { transform: none; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .aside.reveal { transform: translateY(10px) rotate(-2deg); transform-origin: 0 100%; --d: 280ms; }
.js .aside.reveal.in { transform: none; }

/* the clip sits on the image, not the link: a fully clipped element never counts as "in view" */
.js .media.reveal { opacity: 1; transform: none; box-shadow: none; transition: box-shadow 0.6s 0.7s; }
.js .media.reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.07); transition: clip-path 0.9s var(--ease), transform 1.1s var(--ease); }
.js .media.reveal.in { box-shadow: 0 2rem 5rem -2rem rgb(31 14 51 / 0.45); }
.js .media.reveal.in img { clip-path: inset(0); transform: none; }
.js a.media.reveal.in:hover img { transform: scale(1.02); transition-duration: 0.6s; }

.js .note { opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); transition-delay: var(--d, 0ms); }
.js .busmap.in .note { opacity: 1; transform: none; }

/* each answer is stamped in after its question */
.js .asks .done { opacity: 0; transform: scale(1.35) rotate(-4deg); transition: opacity 0.2s, transform 0.55s cubic-bezier(0.2, 1.5, 0.35, 1); transition-delay: 0.55s; }
.js .asks .in .done { opacity: 1; transform: none; }


@supports (animation-timeline: view()) {
  .js .statement .dim { animation: dim linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
  @keyframes dim { from { opacity: 0.3; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise .wi, .js .reveal, .js .aside.reveal, .js .media.reveal, .js .media.reveal img, .js .note {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  .js .media.reveal, .js .media.reveal.in { box-shadow: 0 2rem 5rem -2rem rgb(31 14 51 / 0.45); }
  .js .statement .dim { animation: none; }
  .js .mark > svg path { stroke-dashoffset: 0; transition: none; }
  .js .hero .fx, .js .hero .rise.in .fx { opacity: 1; animation: none; }
  .sp, .pencil { display: none; }
  .js .hero .rise .wi, .js .hero .cta.reveal, .js .hero .shot.reveal, .js .hero .headline .aside.reveal, .js .hero .write {
    transform: none; clip-path: none; transition: none; opacity: 1;
  }
  .js .rise.in .punch { animation: none; }
  .js .lostline-bus { animation: none; }
  .js .asks .done { opacity: 1; transform: none; transition: none; }
  .wheel-rim, .wheel .cab { animation: none; }
  .btn, .link, .rows-big .title { transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 47.99rem) {
  /* the section links fold into a panel under the bar, opened by the Menu button.
     The button needs the script, so without it the links stay hidden as before. */
  .nav { position: relative; gap: 0.9rem; }
  .nav-links { display: none; }
  .js .menu-btn {
    display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -0.75rem; margin-left: auto; padding: 0;   /* a finger-sized target that leaves the bar's height alone */
    font: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1; color: var(--text);
    background: none; border: 0; cursor: pointer;
  }
  .nav-right { gap: 0.9rem; }
  .nav .link { white-space: nowrap; }
  .nav.open .nav-links {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    padding: 0 var(--gutter) 0.75rem;
    background: var(--void); border-bottom: 1px solid var(--line);
    box-shadow: 0 1.75rem 2.5rem -1.25rem rgb(0 0 0 / 0.7);
  }
  .nav.open .nav-links a { padding-block: 0.85rem; border-top: 1px solid var(--line); font-size: 1.35rem; letter-spacing: -0.02em; }
  .hero .headline, .headline { row-gap: 0.6rem; }
  .cta .btn { width: 100%; justify-content: center; }
  .collage { display: block; }
  .shot-lou { display: none; }
  .quote-hero { display: none; }
  /* pulled up over the bottom edge of Lou's screenshot (the project's row gap is 1.25rem here) */
  .quote-work { display: grid; margin: -3.5rem 0.9rem 0; box-shadow: 0 1.25rem 2.5rem -1rem rgb(31 14 51 / 0.5); }
  .project-info { align-items: flex-start; }
  .project-meta { justify-items: start; }
  .pair { grid-template-columns: 1fr; gap: 3rem; }
  .trio { grid-template-columns: 1fr; gap: 3rem; }
  .pair .project:last-child { margin-top: 0; }
  .busmap-layer { width: 232%; margin-left: -60%; }
  .note { display: none; }
  .rows > *, .rows-big > *, .asks > * { grid-template-columns: 1fr; }
  .rows-big > *:hover .title { transform: none; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .care-cta .btn { width: 100%; justify-content: center; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:first-child, .plan:last-child { padding-inline: 0; }
  .plan.plan-pick { padding-inline: 1.25rem; }
  /* each table row becomes a block: the label on top, the three plans underneath in the same order as the header */
  .compare, .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 1rem; padding-block: 1rem; border-top: 1px solid var(--line); }
  .compare thead tr { border-top: 0; padding-top: 0; }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .compare th, .compare td, .compare tbody tr:last-child > * { width: auto; padding: 0; border: 0; }
  .compare thead td { display: none; }
  .compare tbody th { grid-column: 1 / -1; width: auto; }
  .edits { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .offer { padding-block: 1.75rem; border-bottom: 1px solid var(--lilac); }
  .ranges > li { grid-template-columns: 1fr; }
  .ranges .range { text-align: left; }
  .steps > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .steps > li > :nth-child(n+3) { grid-column: 2; }
  .contact-body { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; gap: 2.25rem; }
  .board .portrait { order: -1; max-width: 18rem; }
  .notes, .notes-r { justify-items: start; gap: 1.75rem; padding-top: 0; }
  .notes .pin { padding-inline: 0; margin-inline: 0; max-width: none; rotate: calc(var(--r, 0deg) * 0.4); }
  .pin::after { display: none; }
  .story { justify-items: start; text-align: left; margin-inline: 0; }
  .form-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

/* narrow phones: the bar's three items still have to share one line */
@media (max-width: 23.4rem) {
  .nav, .nav-right { gap: 0.7rem; }
}
@media (max-width: 21.2rem) {
  .nav, .nav-right { gap: 0.55rem; }
  .js .menu-btn, .lang, .nav .link { font-size: 0.8rem; }
}
