/* Clef v4: one stylesheet for every page.
   1 Tokens  2 Fonts  3 Base  4 Layout  5 Type  6 Buttons and links  7 Header and menu
   8 Home hero  9 Page hero  10 Frames and work  11 Sections  12 Forms
   13 Closing call and footer  14 Motion  15 Reduced motion and print */

/* 1 Tokens ------------------------------------------------------------------------------------ */
:root {
  --bg: #0e1a30;
  --bg-deep: #0a1424;
  --bg-raise: #14233d;
  --bg-raise-2: #1a2b48;
  --line: rgba(233, 226, 210, 0.12);
  --line-strong: rgba(233, 226, 210, 0.24);
  --text: #f3efe6;
  --text-2: #a9b2c3;
  --text-3: #8c95a8;
  --brass: #d0ae6e;
  --brass-hi: #e4cb98;
  --brass-lo: #9e7e45;
  --brass-ink: #7c5f2c;
  --paper: #f4f1ea;
  --paper-2: #e9e4d9;
  --ink: #101a2d;
  --ink-2: #4b5468;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1380px;
  --header-h: 76px;
  --section-y: clamp(104px, 6vw + 64px, 196px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-ui: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-serif: "Libre Caslon Text", "Caslon Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  /* grey noise around the middle grey: under overlay it adds texture without lifting the navy */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
}

/* 2 Fonts ------------------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* metric-matched fallbacks keep lines from jumping when the web fonts arrive */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 23%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Caslon Fallback";
  src: local("Georgia");
  size-adjust: 96%;
}

/* 3 Base -------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--grain);
  background-size: 180px 180px;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 4 Layout ------------------------------------------------------------------------------------ */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2 * var(--gutter), 960px); }
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: calc(var(--section-y) * 0.7); }
.section--deep { background-color: var(--bg-deep); }
.section--raise { background-color: var(--bg-raise); }
.section--paper {
  background-color: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.section--paper ::selection { background: var(--ink); color: var(--paper); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* the section head: heading left, a sentence and a link beside or under it */
.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 88px);
}
.head > h2, .head > .head__title { grid-column: 1 / span 7; }
.head > .head__aside { grid-column: 9 / -1; }
.head--stack > h2, .head--stack > .head__title, .head--stack > .head__aside { grid-column: 1 / span 8; }
@media (max-width: 960px) {
  .head > h2, .head > .head__title, .head > .head__aside { grid-column: 1 / -1; }
}

/* 5 Type -------------------------------------------------------------------------------------- */
.display, h1 {
  font-weight: 500;
  font-size: clamp(3.1rem, 1.55rem + 6.2vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1.h1--page {
  font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem);
  line-height: 0.97;
}
h2, .h2 {
  font-weight: 500;
  font-size: clamp(2.3rem, 1.35rem + 3.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h3, .h3 {
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h4, .h4 {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
/* the logo's serif, in italics, for the one word that carries the line */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.06em;
  color: var(--brass);
  padding-right: 0.04em;
}
.section--paper .serif { color: var(--brass-ink); }
.serif--plain { color: inherit; }
.lead {
  font-size: clamp(1.125rem, 1rem + 0.42vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.012em;
  max-width: 40ch;
  text-wrap: pretty;
}
.lead--wide { max-width: 52ch; }
.section--paper .lead { color: var(--ink-2); }
.body {
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.section--paper .body { color: var(--ink-2); }
.body a, .prose a { color: var(--text); }
.label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-3);
  font-weight: 450;
}
.section--paper .label { color: var(--ink-2); }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 450;
  color: var(--brass);
  letter-spacing: 0;
}
.section--paper .num { color: var(--brass-ink); }
.muted { color: var(--text-2); }
.section--paper .muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.fine { font-size: 0.875rem; line-height: 1.55; color: var(--text-3); }
.section--paper .fine { color: var(--ink-2); }

/* long text: privacy, legal */
.prose { max-width: 68ch; color: var(--text-2); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; color: var(--text); margin: 3.2rem 0 1rem; }
.prose h3 { color: var(--text); margin: 2rem 0 0.6rem; font-size: 1.2rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1rem; }
.prose ul { margin-top: 0.8rem; }
.prose li { position: relative; padding-left: 1.4rem; margin-top: 0.5rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--brass); }
.prose a { text-decoration: underline; text-decoration-color: var(--brass-lo); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brass-hi); }

/* 6 Buttons and links ------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 150ms var(--ease-ui), background-color 150ms var(--ease-ui), border-color 150ms var(--ease-ui), color 150ms var(--ease-ui), box-shadow 200ms var(--ease-ui);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
/* on a phone, a long label (French, Spanish) wraps inside its button instead of spilling past it */
@media (max-width: 480px) { .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } }
.btn--brass {
  --btn-bg: var(--brass);
  --btn-fg: #0b1526;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -12px rgba(208, 174, 110, 0.55);
}
.btn--ghost {
  border-color: var(--line-strong);
}
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--brass:hover { --btn-bg: var(--brass-hi); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 34px -12px rgba(208, 174, 110, 0.7); }
  .btn--ghost:hover { background: rgba(243, 239, 230, 0.07); border-color: rgba(243, 239, 230, 0.5); transform: translateY(-1px); }
  .btn--ink:hover { --btn-bg: #1d2a43; transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: 90ms; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* a text link with an arrow; the line draws on hover */
.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  padding-block: 6px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 320ms var(--ease-out), color 150ms var(--ease-ui);
}
.go svg { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease-out); }
.section--paper .go { color: var(--ink); background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(16, 26, 45, 0.22), rgba(16, 26, 45, 0.22)); }
@media (hover: hover) and (pointer: fine) {
  .go:hover { background-size: 100% 1px, 100% 1px; }
  .go:hover svg { transform: translateX(3px); }
  .go--out:hover svg { transform: translate(2px, -2px); }
}
.go--brass { color: var(--brass); }

/* 7 Header and menu --------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  transition: background-color 300ms var(--ease-ui), border-color 300ms var(--ease-ui), backdrop-filter 300ms var(--ease-ui);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .menu-open .header {
  background-color: rgba(11, 21, 38, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
/* a modest machine: the header is solid rather than blurring what moves under it */
.lite .header.is-scrolled, .lite.menu-open .header { background-color: rgba(11, 21, 38, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
/* the logo in the header: the seal and the wordmark set as in the supplied lockup (sizes in em, so they
   keep its proportions). Every 7 seconds the seal turns like a coin and a brass glint crosses the word */
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.27em;
  margin-right: auto;
  padding: 8px 0;
  font-size: 34px;
  line-height: 1;
  perspective: 320px;
}
.brand__seal { position: relative; display: block; flex: none; width: 1em; height: 1em; transform-style: preserve-3d; }
.brand__seal img { width: 100%; height: 100%; }
.brand__word { position: relative; display: block; margin-top: 0.084em; }
.brand__word img { display: block; width: auto; height: 0.832em; }
/* languages: every text is written in English, French and Spanish side by side (data-l); only the one
   chosen on <html data-lang> shows. Without the attribute, English. */
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="fr"] [data-l]:not([data-l="fr"]),
html[data-lang="es"] [data-l]:not([data-l="es"]),
html:not([data-lang]) [data-l]:not([data-l="en"]) { display: none !important; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lang button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: background-color 150ms var(--ease-ui), color 150ms var(--ease-ui);
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .lang button[aria-pressed="false"]:hover { color: var(--text); background: rgba(243, 239, 230, 0.08); } }
@media (max-width: 1080px) { .header__in .lang { margin-left: auto; } .brand { margin-right: 0; } }
@media (max-width: 400px) { .lang button { min-width: 30px; padding: 0 6px; } }

/* changing language: the page blurs behind the seal for a moment, then comes back in the new language */
.switcher {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(10, 20, 36, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease-ui), visibility 0s linear 380ms;
}
.switching .switcher { opacity: 1; visibility: visible; transition: opacity 380ms var(--ease-ui); }
.switcher__in { display: grid; justify-items: center; }
.switcher__seal { position: relative; width: 104px; height: 104px; }
.switcher__seal img { width: 100%; height: 100%; }
.switcher__orbit { position: absolute; inset: 0; border-radius: 50%; }
.switcher__orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(240, 214, 160, 0) 0deg, rgba(240, 214, 160, 0) 160deg, rgba(240, 214, 160, 0.95) 358deg, rgba(240, 214, 160, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.4px), #000 calc(100% - 0.4px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.4px), #000 calc(100% - 0.4px), transparent 100%);
}
.switcher__orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #fff4d8;
  box-shadow: 0 0 10px 3px rgba(240, 214, 160, 0.95), 0 0 26px 8px rgba(208, 174, 110, 0.5);
}
.switching .switcher__orbit { animation: orbit 1.1s linear infinite; }
.switcher__label { margin-top: 26px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.switcher__bar { width: 168px; height: 2px; margin-top: 16px; border-radius: 2px; overflow: hidden; background: var(--line-strong); }
.switcher__bar i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.switching .switcher__bar i { transform: scaleX(1); transition: transform 2300ms cubic-bezier(0.45, 0, 0.2, 1); }

/* a small light circles the seal's outer ring, a fading trail behind it, for as long as the page is open */
.brand__orbit { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
.brand__orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(240, 214, 160, 0) 0deg, rgba(240, 214, 160, 0) 200deg, rgba(240, 214, 160, 0.95) 358deg, rgba(240, 214, 160, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.8px), #000 calc(100% - 0.2px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.8px), #000 calc(100% - 0.2px), transparent 100%);
}
.brand__orbit::after {
  content: "";
  position: absolute;
  top: -1.6px;
  left: 50%;
  width: 4.6px;
  height: 4.6px;
  margin-left: -2.3px;
  border-radius: 50%;
  background: #fff4d8;
  box-shadow: 0 0 5px 1.5px rgba(240, 214, 160, 0.95), 0 0 12px 4px rgba(208, 174, 110, 0.5);
}
.motion .brand__orbit { opacity: 1; animation: orbit 3.6s linear infinite; }
@keyframes orbit { to { transform: rotate(1turn); } }
@media (max-width: 760px) { .brand { font-size: 30px; } }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-2);
  padding: 10px 0;
  transition: color 150ms var(--ease-ui);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--brass); height: 2px; bottom: 3px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.header__cta { margin-left: 4px; }
.burger {
  display: none;
  width: 48px; height: 48px;
  margin-right: -12px;
  border-radius: 999px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 320ms var(--ease-out), top 320ms var(--ease-out);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 28px; }
.menu-open .burger span:first-child { top: 23.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 23.5px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms var(--ease-ui), visibility 0s linear 260ms;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity 260ms var(--ease-ui); }
.menu__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.6rem);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out);
}
.menu__links a .label { font-size: 0.75rem; }
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links li:nth-child(2) a { transition-delay: 30ms; }
.menu-open .menu__links li:nth-child(3) a { transition-delay: 60ms; }
.menu-open .menu__links li:nth-child(4) a { transition-delay: 90ms; }
.menu-open .menu__links li:nth-child(5) a { transition-delay: 120ms; }
.menu-open .menu__links li:nth-child(6) a { transition-delay: 150ms; }
.menu-open .menu__links li:nth-child(7) a { transition-delay: 180ms; }
.menu-open .menu__links li:nth-child(8) a { transition-delay: 210ms; }
.menu__links a[aria-current="page"] { color: var(--brass); }
.menu__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 12px; }
.menu__foot .btn { width: 100%; }
.menu-open { overflow: hidden; }

/* 8 Home hero --------------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  background: var(--bg);
}
.hero__stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}
/* the first screen: the words, and the place of the seal. It is one small-viewport tall, so on a phone
   whose toolbars are showing nothing sits under them */
.hero__frame {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  column-gap: 3vw;
  align-items: center;
  padding-top: var(--header-h);
  pointer-events: none;
}
.hero__frame a, .hero__frame button { pointer-events: auto; }
/* the seal's box: the 3D scene and the still picture both take their place from it */
.hero__place {
  height: 100%;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}
.hero__seal {
  position: relative;
  width: min(74cqh, 96cqw);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208, 174, 110, 0.17), rgba(208, 174, 110, 0.06) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 1600ms var(--ease-out) 200ms;
}
.is-loaded .hero__glow { opacity: 1; }
.hero__poster {
  position: absolute;
  inset: -12.5%;
  width: 125%;
  height: 125%;
  max-width: none;
  transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-out);
}
.hero__keylight {
  position: absolute;
  left: 50%; top: 50%;
  width: 22%; height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #f6d9a3, #d79b52 55%, rgba(215, 155, 82, 0) 100%);
  opacity: 0.95;
}
/* with motion on, the still waits: the 3D scene enters in its place, or the still comes in if it cannot */
.motion .hero__poster { opacity: 0; transform: scale(0.97); }
.motion .hero__keylight { opacity: 0; }
.no-js .hero__poster, .hero.is-still .hero__poster { opacity: 1; transform: none; }
.no-js .hero__keylight, .hero.is-still .hero__keylight { opacity: 0.95; }
/* no fade: the door it draws is the page's own navy, so it arrives unseen and the seal lights up on it */
.hero__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
.hero.is-gl .hero__gl { opacity: 1; }
/* in the scene the seal is drawn in 3D: its box only gives the place */
.hero.is-gl .hero__seal { visibility: hidden; }
.hero__copy {
  position: relative;
  max-width: 640px;
  padding-bottom: 2svh;
}
.hero__copy h1 { margin-bottom: clamp(22px, 2.4vw, 34px); }
.hero__copy .lead { max-width: 33ch; }
.hero__copy .btn-row { margin-top: clamp(28px, 3vw, 44px); }
.hero__facts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 0.9375rem;
  color: var(--text-3);
  overflow: hidden; /* hides the dot of whichever fact starts a line, when a longer language wraps them */
}
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass-lo);
  margin: 0 9px 0 -22px;
}
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(var(--text-3), transparent);
  transform-origin: top;
  animation: drip 2.4s var(--ease-io) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* the cinematic version: the stage holds while the page scrolls past it, through the keyhole to the globe */
.hero.is-cine { height: 380vh; height: 380lvh; min-height: 0; }
.hero.is-cine .hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; }
.hero.is-cine .hero__copy { will-change: transform, opacity; }

/* behind the door: requests arriving from the globe's cities (placed by keyhole.js and notes.js) */
.hero__world { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; }
.req { opacity: 0; transition: opacity 500ms var(--ease-out); }
.req.is-on { opacity: 1; }
.req.is-off { opacity: 0; transition-duration: 600ms; }
.req__pin, .req__line, .req__card { position: absolute; left: 0; top: 0; will-change: transform; }
.req__pin { width: 0; height: 0; }
.req__pin::before, .req__pin::after {
  content: "";
  position: absolute;
  left: -4px; top: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.req__pin::before { background: #ffdcaa; box-shadow: 0 0 12px 3px rgba(255, 190, 110, 0.65); }
.req__pin::after { border: 1px solid rgba(255, 220, 170, 0.85); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.req__line { height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255, 220, 170, 0.9), rgba(208, 174, 110, 0.3)); }
.req__card { width: 220px; }
.req__place {
  display: block;
  margin: 0 0 7px 2px;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}
.req__msg {
  position: relative;
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #f3efe6;
  color: #0e1a30;
  font-size: 0.875rem;
  line-height: 1.38;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7);
  transform: translateY(8px) scale(0.96);
  transform-origin: 0 100%;
  transition: transform 520ms var(--ease-out);
}
.req.is-on .req__msg { transform: none; }
/* the bubble has its full size from the start: the dots sit over the words until they come */
.req__typing { position: absolute; left: 13px; top: 50%; display: flex; gap: 4px; transform: translateY(-50%); transition: opacity 200ms; }
.req__typing i { width: 6px; height: 6px; border-radius: 50%; background: #8c95a8; animation: think 1.1s ease-in-out infinite; }
.req__typing i:nth-child(2) { animation-delay: 0.15s; }
.req__typing i:nth-child(3) { animation-delay: 0.3s; }
.req__text { opacity: 0; transition: opacity 300ms; }
.req.is-msg .req__typing { opacity: 0; }
.req.is-msg .req__text { opacity: 1; }
/* the site sketched for that request: the ink draws itself, then the colours come in under it */
.req__site {
  position: relative;
  width: 172px;
  margin-top: 9px;
  padding: 4px;
  border-radius: 8px;
  background: #fbf8f1;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}
.req.is-sketch .req__site { opacity: 1; transform: none; }
.req__site svg { display: block; width: 100%; height: auto; }
.req__site .ni path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 420ms ease-out; transition-delay: calc(var(--k, 0) * 24ms + 150ms); }
.req.is-sketch .req__site .ni path { stroke-dashoffset: 0; }
.req__site .nf { opacity: 0; transition: opacity 900ms var(--ease-out); }
.req.is-made .req__site .nf { opacity: 1; }
.req.is-made .req__site .ni { opacity: 0.55; transition: opacity 900ms var(--ease-out); }
.req__done {
  position: absolute;
  right: -8px; bottom: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5);
  transform: scale(0);
  transition: transform 420ms cubic-bezier(0.3, 1.6, 0.5, 1) 500ms;
}
.req__done::before { content: ""; position: absolute; left: 7.5px; top: 5px; width: 5px; height: 9px; border: solid #0e1a30; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.req.is-made .req__done { transform: scale(1); }
@media (max-width: 759px) {
  .req__card { width: 178px; }
  .req__msg { font-size: 0.8125rem; padding: 8px 11px; }
  .req__site { width: 140px; }
}

/* the line under the globe, once the camera has settled; it sits above a phone's toolbars */
.hero__end { display: none; }
.hero.is-cine .hero__end {
  display: block;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(100lvh - 100svh + max(22px, 3.5svh));
  width: min(100% - 2 * var(--gutter), 760px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: balance;
  visibility: hidden;
  opacity: 0;
}
.hero__end .serif { display: block; margin-bottom: 6px; font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.2rem); line-height: 1.2; }
.hero__end p { margin: 0; }
.hero__end .btn { margin-top: clamp(16px, 2.2vh, 24px); }
.hero.is-still .hero__end { display: none; }

/* phones and upright tablets: the words on top, the seal in whatever height is left under them */
@media (max-width: 900px) and (orientation: portrait), (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero__frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    padding-top: calc(var(--header-h) + 2.5svh);
    padding-bottom: max(18px, 3svh);
  }
  .hero__seal { width: min(94cqh, 74cqw); }
  .hero__copy { padding-bottom: 0; }
  .hero__copy h1 { font-size: clamp(2.9rem, 1rem + 9.6vw, 5rem); margin-bottom: 16px; }
  .hero__copy .lead { font-size: 1.0625rem; max-width: 36ch; }
  .hero__copy .btn-row { margin-top: 22px; gap: 10px 22px; }
  /* two facts stay: the time to launch and the price */
  .hero__facts { margin-top: 16px; font-size: 0.875rem; }
  .hero__facts li:nth-child(-n+2) { display: none; }
  .hero__facts li:nth-child(3)::before { display: none; }
  .hero__scroll { display: none; }
}
@media (max-width: 400px) {
  .hero__copy .lead { font-size: 1rem; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .hero__facts { display: none; }
}
@media (max-width: 1180px) and (min-width: 641px) and (orientation: landscape) {
  .hero__facts li:nth-child(-n+2) { display: none; }
  .hero__facts li:nth-child(3)::before { display: none; }
}
@media (max-height: 640px) and (orientation: portrait) {
  .hero__copy .lead { display: none; }
}

/* 9 Page hero (every page but home) ----------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(72px, 9vw, 150px));
  padding-bottom: clamp(72px, 8vw, 132px);
  overflow: hidden;
}
.page-hero__in { position: relative; z-index: 1; }
.page-hero--full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.page-hero--full .page-hero__in { width: min(100% - 2 * var(--gutter), var(--max)); }
.page-hero h1 { max-width: 15ch; }
/* a plain line over the title: what the page is about, in the words people search for */
.page-hero__kicker { margin: 0 0 clamp(14px, 1.6vw, 22px); font: 500 0.75rem/1.35 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
/* links to the pages a section leads to */
.page-links { margin-top: clamp(36px, 4vw, 56px); gap: 12px 32px; }
.kind .go { margin-top: 14px; }
.statement__more { margin-top: clamp(22px, 2.4vw, 34px); }
.page-hero .lead { margin-top: clamp(24px, 2.6vw, 38px); max-width: 44ch; }
.page-hero .btn-row { margin-top: clamp(28px, 3vw, 44px); }
.page-hero__mark {
  position: absolute;
  z-index: 0;
  right: calc(var(--gutter) * -1 - 6vw);
  top: 50%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  transform: translateY(-46%);
  opacity: 0.6;
  pointer-events: none;
}
.page-hero__mark svg { width: 100%; height: 100%; overflow: visible; }
.page-hero__mark circle, .page-hero__mark path { fill: none; stroke: var(--brass); }
.page-hero__mark .ring-a { stroke-width: 1.2; opacity: 0.55; }
.page-hero__mark .ring-b { stroke-width: 0.6; opacity: 0.35; }
.page-hero__mark .ring-c { stroke-width: 0.6; opacity: 0.16; }
.page-hero__mark .kh { fill: none; stroke-width: 0.8; opacity: 0.7; }
/* the monogram's rings draw themselves once, on arrival */
.motion .page-hero__mark circle, .motion .page-hero__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2400ms var(--ease-out); }
.motion .page-hero__mark .ring-b { transition-delay: 160ms; }
.motion .page-hero__mark .ring-c { transition-delay: 320ms; }
.motion .page-hero__mark .kh { transition-delay: 600ms; transition-duration: 1600ms; }
.is-loaded .page-hero__mark circle, .is-loaded .page-hero__mark path { stroke-dashoffset: 0; }
.page-hero h1.enter .w-i { transition-delay: calc(var(--i, 0) * 55ms + 60ms); }
@media (max-width: 900px) {
  .page-hero__mark { width: 86vw; right: -38vw; top: 18%; opacity: 0.55; }
}
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--text-3); opacity: 0.6; }

/* 10 Frames and work -------------------------------------------------------------------------- */
/* a browser window drawn in CSS around a real screenshot */
.frame {
  --fr-r: clamp(10px, 1vw, 16px);
  position: relative;
  border-radius: var(--fr-r);
  background: #0b1322;
  box-shadow:
    0 0 0 1px rgba(233, 226, 210, 0.14),
    0 30px 80px -30px rgba(0, 0, 0, 0.75),
    0 60px 140px -60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(34px, 2.6vw, 42px);
  padding: 0 14px;
  background: #121d31;
  border-bottom: 1px solid rgba(233, 226, 210, 0.08);
}
.frame__dots { display: flex; gap: 7px; }
.frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(233, 226, 210, 0.16); }
.frame__url {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 24px;
  border-radius: 7px;
  background: rgba(233, 226, 210, 0.07);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}
.frame__url svg { width: 11px; height: 11px; flex: none; color: var(--brass); }
.frame__dots + .frame__url { margin-right: 44px; }
.frame__view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1f2a;
}
.frame__view img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: 50% 0;
}
.frame__view--scroll img { will-change: transform; }

/* a phone drawn in CSS around a real screenshot */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: linear-gradient(145deg, #2a3550, #0d1424 60%);
  box-shadow:
    0 0 0 1px rgba(233, 226, 210, 0.16),
    0 30px 70px -20px rgba(0, 0, 0, 0.8);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10.5% / 4.9%;
  overflow: hidden;
  background: #111;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1.6%;
  left: 50%;
  width: 30%;
  height: 3.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070b;
}

/* a work item: the site large, its phone beside it, and its facts */
.work-list { display: grid; gap: clamp(120px, 14vw, 220px); }
.work-more, .areas-more { margin-top: clamp(72px, 8vw, 120px); }
.work-more { text-align: right; }
.work {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.work__media {
  grid-column: 1 / span 10;
  grid-row: 1;
  position: relative;
  perspective: 1600px;
}
.work__tilt { transform-origin: 50% 100%; will-change: transform; }
/* the phone floats on the frame's outer edge, in the columns the frame leaves free */
.work__phone {
  position: absolute;
  z-index: 2;
  width: clamp(130px, 16.5%, 236px);
  right: -11%;
  top: 16%;
  will-change: transform;
}
.work--flip .work__media { grid-column: 3 / -1; }
.work--flip .work__phone { right: auto; left: -11%; }
/* the site's name and its link, in one row under the frame */
.work__info {
  grid-column: 1 / span 10;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  padding-top: clamp(28px, 3vw, 44px);
}
.work--flip .work__info { grid-column: 3 / -1; }
.work__name {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.04;
}
.work__name .serif { color: var(--text); font-size: 1.04em; }
.work__meta { margin-top: 10px; color: var(--text-2); }
.work__facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.work__facts li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--text-2); }
/* the work page: the frame across the page, its name, facts and link in three columns under it */
.work--wide .work__media { grid-column: 1 / span 11; }
.work--wide.work--flip .work__media { grid-column: 2 / -1; }
.work--wide .work__phone { right: -5%; top: 20%; }
.work--wide.work--flip .work__phone { right: auto; left: -5%; }
.work--wide .work__info, .work--wide.work--flip .work__info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: start;
  gap: 24px 56px;
}
.work__sheet { display: grid; gap: 8px; margin: 0; }
.work__sheet div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 14px; font-size: 0.9375rem; }
.work__sheet dt { padding-top: 2px; }
.work__sheet dd { margin: 0; color: var(--text-2); }
@media (max-width: 1180px) {
  .work--wide .work__info, .work--wide.work--flip .work__info { grid-template-columns: 1fr; }
  .work__media, .work--flip .work__media, .work__info, .work--flip .work__info,
  .work--wide .work__media, .work--wide.work--flip .work__media { grid-column: 1 / -1; }
  .work__phone, .work--flip .work__phone,
  .work--wide .work__phone, .work--wide.work--flip .work__phone { left: auto; right: 3%; top: auto; bottom: -14%; width: clamp(96px, 19%, 190px); }
  /* the phone hangs below the frame on the right: the words keep to the left of it */
  .work__info { flex-direction: column; align-items: flex-start; padding-top: clamp(36px, 6vw, 60px); }
  .work__id { padding-right: 26%; }
}
@media (max-width: 640px) {
  .work__phone, .work--flip .work__phone,
  .work--wide .work__phone, .work--wide.work--flip .work__phone { width: 29%; bottom: -18%; right: 2%; }
  .work__info { padding-top: 34px; }
  .work__id { padding-right: 33%; }
}

/* 11 Sections --------------------------------------------------------------------------------- */
/* the statement: words light up as the section passes */
.statement {
  font-size: clamp(2rem, 1.15rem + 3.1vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 23ch;
  text-wrap: balance;
  margin-bottom: clamp(80px, 9vw, 150px);
}
.statement .w { color: rgba(243, 239, 230, 0.2); transition: color 380ms var(--ease-ui); }
.statement .w.is-lit { color: var(--text); }
.statement .w.is-lit.serif, .statement .is-lit .serif { color: var(--brass); }
.no-js .statement .w { color: var(--text); }

/* the four areas, set as type: no boxes, numbers in brass */
.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 2.6vw, 44px);
  row-gap: 64px;
}
.area { padding-top: 26px; border-top: 1px solid var(--line-strong); }
.area__n { display: block; margin-bottom: 22px; }
.area h3 { margin-bottom: 12px; }
.area > p { color: var(--text-2); font-size: 0.97rem; min-height: 4.8em; }
.area ul { margin-top: 22px; display: grid; gap: 9px; }
.area li { display: flex; gap: 12px; align-items: baseline; font-size: 0.97rem; }
.area li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateY(-3px);
}
@media (max-width: 1080px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .areas { grid-template-columns: 1fr; row-gap: 48px; }
  .area > p { min-height: 0; }
}

/* a chapter: text on one side, a working picture on the other */
.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  align-items: center;
}
.chapter__text { grid-column: 1 / span 5; }
.chapter__visual { grid-column: 7 / -1; }
.chapter--flip .chapter__text { grid-column: 8 / -1; grid-row: 1; }
.chapter--flip .chapter__visual { grid-column: 1 / span 6; grid-row: 1; }
.chapter__text .lead { margin-top: 22px; }
.chapter + .chapter { margin-top: clamp(120px, 12vw, 200px); }
@media (max-width: 1000px) {
  .chapter__text, .chapter__visual, .chapter--flip .chapter__text, .chapter--flip .chapter__visual { grid-column: 1 / -1; grid-row: auto; }
}
/* items with a term and a plain explanation */
.terms { margin-top: 40px; display: grid; gap: 0; }
.term {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 8px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.term:last-child { border-bottom: 1px solid var(--line); }
.term dt { font-weight: 500; letter-spacing: -0.01em; }
.term dt .label { display: block; margin-top: 4px; }
.term dd { color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 560px) { .term { grid-template-columns: 1fr; } }

/* AI visibility: the labels, and an assistant quoting them */
.ai {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 56px;
  align-items: center;
}
.ai__text { grid-column: 1 / span 6; }
.ai__visual { grid-column: 7 / -1; position: relative; }
.ai__text h2, .chapter__text h2 { font-size: clamp(2.2rem, 1.35rem + 2.6vw, 3.9rem); }
.ai__text .lead { margin-top: clamp(22px, 2.2vw, 32px); }
@media (max-width: 1000px) { .ai__text, .ai__visual { grid-column: 1 / -1; } }
.panel {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 43, 72, 0.9), rgba(17, 30, 52, 0.9));
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.code {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.66rem + 0.22vw, 0.84rem);
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}
.code .k { color: #9fb8e6; }
.code .s { color: var(--brass-hi); }
.code .p { color: var(--text-3); }
.code mark {
  background: rgba(208, 174, 110, 0.14);
  color: var(--brass-hi);
  border-radius: 3px;
  padding: 0 2px;
  transition: background-color 400ms var(--ease-ui);
}
.answer {
  position: relative;
  margin: -34px 0 0 auto;
  width: min(88%, 520px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.3);
  padding: 20px 22px 22px;
  z-index: 2;
}
.answer__q {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  margin-left: auto;
}
.answer__qrow { display: flex; justify-content: flex-end; }
.answer__a { margin-top: 14px; font-size: 0.9375rem; line-height: 1.6; color: #29324a; min-height: 4.8em; }
.answer__a .w { opacity: 0; transition: opacity 260ms var(--ease-ui); }
.answer__a .w.is-on { opacity: 1; }
.motion .answer__src { opacity: 0; transition: opacity 400ms var(--ease-ui); }
.is-streamed .answer__src { opacity: 1; }
.no-js .answer__a .w, .no-js .answer__src { opacity: 1; }
.code mark.is-on { background: rgba(208, 174, 110, 0.32); }
.answer__a b { font-weight: 600; color: var(--ink); }
.answer__src {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.answer__src i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.answer__src i svg { width: 9px; height: 9px; }
.answer__tag {
  position: absolute;
  top: 16px; left: 22px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
}
.assistants { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text-2); font-size: 0.9375rem; }
.assistants li { display: inline-flex; align-items: center; gap: 9px; }
.assistants svg { width: 18px; height: 18px; color: var(--text); }
.ai-points { margin-top: 36px; display: grid; gap: 22px; }
.ai-points li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.ai-points .num { grid-row: span 2; padding-top: 2px; }
.ai-points p { color: var(--text-2); font-size: 0.97rem; }

/* the four steps, with a line that fills as the page passes */
.steps {
  position: relative;
  padding-top: 46px;
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 2.6vw, 44px);
  row-gap: 56px;
}
.steps__line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-strong);
}
.steps__line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brass-lo), var(--brass));
  transform-origin: left;
}
.motion .steps__line i { transform: scaleX(var(--p, 0)); }
.no-js .steps__line i { transform: none; }
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -51px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--brass);
  border: 1px solid var(--brass);
  transition: background-color 300ms var(--ease-ui);
}
.motion .step::before { background: var(--bg); }
.motion .section--deep .step::before { background: var(--bg-deep); }
.motion .step.is-on::before { background: var(--brass); }
.step__when { display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 0.97rem; }
/* tablets and phones: the steps stand in a column, the line runs down beside them */
@media (max-width: 960px) {
  .steps { padding-top: 0; padding-left: 34px; }
  .steps__list { grid-template-columns: 1fr; row-gap: 44px; }
  .steps__line { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps__line i { transform-origin: top; background: linear-gradient(180deg, var(--brass-lo), var(--brass)); }
  .motion .steps__line i { transform: scaleY(var(--p, 0)); }
  .no-js .steps__line i { transform: none; }
  .step::before { top: 4px; left: -34px; }
}

/* plans, set in three columns, the middle one marked */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 28px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.4vw, 36px);
  border-radius: var(--radius-l);
  background: rgba(16, 26, 45, 0.04);
  box-shadow: inset 0 0 0 1px rgba(16, 26, 45, 0.14);
}
.plan--mark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(16, 26, 45, 0.6);
}
.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__name { font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 500; }
.plan__name .serif { color: inherit; }
.plan__flag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  white-space: nowrap;
}
.plan__price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.plan__price > span { color: var(--ink-2); }
.plan--mark .plan__price > span { color: #b9c0cf; }
.plan__for { margin-top: 12px; color: var(--ink-2); min-height: 3.2em; }
.plan--mark .plan__for { color: #c9cfdb; }
.plan__list { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(16, 26, 45, 0.14); display: grid; gap: 11px; }
.plan--mark .plan__list { border-top-color: rgba(244, 241, 234, 0.16); }
.plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.97rem; }
.plan__list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brass-ink); }
.plan--mark .plan__list svg { color: var(--brass); }
.plan .btn { margin-top: auto; }
.plan__cta { margin-top: 32px !important; }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan__for { min-height: 0; }
}
.plans-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }

/* the guarantee, set large */
.guarantee {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: end;
}
.guarantee__fig {
  grid-column: 1 / span 7;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(6rem, 2rem + 17vw, 17rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--brass);
  white-space: nowrap;
  /* room for the italic to lean and for its descenders: nothing of the figure is ever cut */
  padding: 0.06em 0.12em 0.04em 0;
  overflow: visible;
}
.guarantee__fig small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 0.04em; }
.guarantee__text { grid-column: 8 / -1; padding-bottom: 1.2vw; }
.guarantee__text h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.3rem); }
.guarantee__text .body { margin-top: 22px; }
@media (max-width: 980px) {
  .guarantee__fig, .guarantee__text { grid-column: 1 / -1; }
}

/* a facts table: rows of plain facts, no boxes */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.table th, .table td { text-align: left; vertical-align: top; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.compare-table .is-us { background: rgba(208, 174, 110, 0.06); }
.compare-table th, .compare-table td { padding-left: 20px; }
.compare-table tbody th, .compare-table thead th:first-child { padding-left: 0; }
.table thead th {
  background: transparent;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line-strong);
  z-index: 1;
}
.table tbody th { font-weight: 500; color: var(--text); width: 22%; }
.table td { color: var(--text-2); }
.table .is-us { color: var(--text); }
.table thead .is-us { color: var(--brass); }
.section--paper .table th, .section--paper .table td { border-bottom-color: rgba(16, 26, 45, 0.12); }
.section--paper .table thead th { background: var(--paper); border-bottom-color: rgba(16, 26, 45, 0.3); }
.section--paper .table tbody th { color: var(--ink); }
.section--paper .table td { color: var(--ink-2); }
.section--paper .table .is-us { color: var(--ink); }
.section--paper .table thead .is-us { color: var(--brass-ink); }
/* the plans, row by row */
.plans-table { min-width: 840px; }
.plans-table thead th { position: static; vertical-align: bottom; padding-bottom: 20px; }
.plans-table th, .plans-table td { padding-left: 20px; }
.plans-table tbody th, .plans-table thead th:first-child, .plans-table tfoot td:first-child { padding-left: 0; }
.plans-table .is-mark { background: rgba(16, 26, 45, 0.05); }
.plans-table tfoot td { border-bottom: 0; padding-top: 28px; padding-bottom: 28px; }
.pt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.25rem; letter-spacing: -0.02em; }
.pt-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.pt-price small { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
/* the custom offer, for groups with several sites: under the plans, on the same paper */
.custom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(56px, 6vw, 88px);
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 18px;
  background: rgba(16, 26, 45, 0.045);
  box-shadow: inset 0 0 0 1px rgba(16, 26, 45, 0.12);
}
.custom .label { color: var(--ink-2); }
.custom h3 { margin-top: 12px; color: var(--ink); }
.custom__text p:last-child { margin-top: 14px; max-width: 52ch; color: var(--ink-2); }
.custom__side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 28px; }
.custom__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--ink); }
.custom__list li { display: flex; gap: 12px; align-items: baseline; }
.custom__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); transform: translateY(-2px); }
@media (max-width: 800px) { .custom { grid-template-columns: 1fr; } }
/* the language wrapper steps aside, so the price and "a month" keep their gap */
.pt-name > [data-l], .pt-price > [data-l] { display: contents; }
.btn--on-paper { border-color: rgba(16, 26, 45, 0.3); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--on-paper:hover { background: rgba(16, 26, 45, 0.06); border-color: rgba(16, 26, 45, 0.55); }
}
.yes { display: inline-flex; gap: 8px; align-items: baseline; }
/* on a phone the row names stay put while the columns scroll under them */
.table-hint { display: none; }
@media (max-width: 760px) {
  .table-hint { display: block; margin-bottom: 14px; }
  .table { min-width: 620px; font-size: 0.9375rem; }
  .table tbody th, .table thead th:first-child, .table tfoot td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); width: 34%; min-width: 128px; padding-right: 14px; box-shadow: 1px 0 0 var(--line); }
  .section--paper .table tbody th, .section--paper .table thead th:first-child, .section--paper .table tfoot td:first-child { background: var(--paper); box-shadow: 1px 0 0 rgba(16, 26, 45, 0.12); }
}
.yes svg { width: 15px; height: 15px; flex: none; transform: translateY(2px); color: var(--brass); }
.section--paper .yes svg { color: var(--brass-ink); }

/* questions, every answer open */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); }
.faq__item { padding: 26px 0; border-top: 1px solid var(--line); }
.faq__item h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.faq__item p { color: var(--text-2); font-size: 0.97rem; }
.faq__item p + p { margin-top: 10px; }
.section--paper .faq__item { border-top-color: rgba(16, 26, 45, 0.14); }
.section--paper .faq__item p { color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* two lists side by side: what counts, what doesn't */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px);
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); }
.ticks svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brass); }
.ticks--no svg { color: var(--text-3); }
.section--paper .ticks li { color: var(--ink-2); }
.section--paper .ticks svg { color: var(--brass-ink); }

/* the comparison: ticks and crosses, grouped, readable on a phone without scrolling sideways */
.ticks-table { min-width: 0; table-layout: fixed; }
.ticks-table thead th:first-child { width: 36%; }
.ticks-table thead th:not(:first-child) { text-align: center; vertical-align: bottom; }
.ticks-table td { text-align: center; vertical-align: middle; padding: 14px 8px; }
.ticks-table tbody th { width: auto; padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.ct-name { display: block; font-size: 1.125rem; }
.ct-sub { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.ticks-table .ct-group th { padding-top: 34px; padding-bottom: 10px; font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); border-bottom-color: var(--line-strong); }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; }
.mark svg { width: 15px; height: 15px; }
.mark--yes { color: var(--brass); background: rgba(208, 174, 110, 0.14); }
.is-us .mark--yes { color: var(--bg); background: var(--brass); }
.mark--no { color: var(--text-3); }
.mark--no svg { width: 13px; height: 13px; opacity: 0.75; }
/* "Varies": the cell depends on the tool chosen */
.mark.mark--varies { width: auto; height: auto; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 0.75rem; line-height: 1.2; letter-spacing: 0.01em; }
.ct-notes { display: grid; gap: 14px; margin-top: 32px; max-width: 78ch; }
.ct-notes p:first-child { color: var(--text-2); }
.ct-notes strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) {
  .ticks-table { font-size: 0.875rem; }
  .ticks-table thead th:first-child { position: static; width: 46%; min-width: 0; box-shadow: none; }
  .ticks-table tbody th { position: static; width: auto; min-width: 0; box-shadow: none; padding-right: 10px; }
  .ticks-table thead th { font-size: 0.875rem; padding-left: 4px; padding-right: 4px; hyphens: auto; }
  .ticks-table td { padding: 12px 2px; }
  .ct-name { font-size: 0.75rem; line-height: 1.25; letter-spacing: -0.01em; }
  .ct-sub { display: none; }
  .mark { width: 26px; height: 26px; }
  /* too narrow for the word: a "~" in the same ring, the word still read out */
  .mark.mark--varies { width: 26px; height: 26px; padding: 0; border-radius: 50%; font-size: 0; letter-spacing: 0; }
  .mark.mark--varies::before { content: "~"; font-size: 0.9375rem; line-height: 1; }
}

/* who it is for */
.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.kind { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.kind h3 { font-size: 1.25rem; margin-bottom: 10px; }
.kind p { color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 1000px) { .kinds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kinds { grid-template-columns: 1fr; } }

/* a chat, the way changes reach us */
.chat {
  width: min(100%, 440px);
  margin-inline: auto;
  border-radius: 28px;
  padding: 18px;
  background: #0b1322;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); }
.chat__head img { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); }
.chat__head b { display: block; font-weight: 500; font-size: 0.97rem; }
.chat__head span { font-size: 0.8125rem; color: var(--text-3); }
.chat__log { display: grid; gap: 10px; padding: 18px 4px 6px; }
.msg {
  max-width: 82%;
  padding: 11px 14px 8px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.msg time { display: block; text-align: right; font-size: 0.6875rem; color: var(--text-3); margin-top: 4px; font-family: var(--font-mono); }
.msg--in { background: var(--bg-raise-2); border-bottom-left-radius: 5px; }
.msg--out { margin-left: auto; background: #20395c; border-bottom-right-radius: 5px; }
.msg--out time { color: #9fb2cf; }
.msg__shot { margin-top: 8px; border-radius: 10px; overflow: hidden; }

/* the plumbing, drawn: visitors, the network, the server, the copies */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: var(--font-mono); font-size: 12px; fill: var(--text-2); }
.diagram .t-strong { fill: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.diagram .wire { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.diagram .node { fill: var(--bg-raise); stroke: var(--line-strong); }
.diagram .node--main { fill: var(--bg-raise-2); stroke: var(--brass); }
.diagram .dot { fill: var(--brass); }
.diagram .pulse { fill: var(--brass-hi); }
.diagram .ring { fill: none; stroke: var(--brass); opacity: 0.35; }

/* what we ask on the call, as a note */
.note {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
}
.note__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(16, 26, 45, 0.12); }
.note .label { color: var(--ink-2); }
.note__list { display: grid; gap: 14px; margin-top: 22px; }
.note__list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.01em; }
.note__list .num { color: var(--brass-ink); padding-top: 2px; }
.note__foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(16, 26, 45, 0.12); color: var(--ink-2); font-size: 0.9375rem; }

/* how a listing reads in search: plain, no search engine's own look */
.serp {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: var(--radius-l);
  background: #fbfaf7;
  color: #1f2430;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
}
.serp__query { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 999px; border: 1px solid #dcd9d1; font-size: 0.9375rem; color: #3b4150; }
.serp__query svg { width: 16px; height: 16px; color: #8a8f98; flex: none; }
.serp__result { margin-top: 26px; }
.serp__site { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: #4d5361; }
.serp__icon { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 5px #3b3a3f; }
.serp__title { margin-top: 6px; font-size: 1.25rem; line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; }
.serp__desc { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: #4d5361; }
.serp__result--dim { opacity: 0.6; }
.serp__bar { height: 10px; width: 42%; margin-top: 10px; border-radius: 6px; background: #e6e2d8; }
.serp__bar--long { width: 86%; }

/* everything included, set in columns */
.included { columns: 3 220px; column-gap: clamp(24px, 3vw, 56px); }
.included li { display: flex; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.included svg { width: 15px; height: 15px; flex: none; color: var(--brass); transform: translateY(2px); }

/* a link inside running text */
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease-ui); }
.link:hover { text-decoration-color: var(--brass); }
.section--paper .link { color: var(--ink); text-decoration-color: rgba(16, 26, 45, 0.3); }
@media (prefers-reduced-motion: reduce) { .diagram .pulse { display: none; } }

/* wording a model can quote, beside wording it can't */
.words { display: grid; gap: 16px; max-width: 560px; margin-inline: auto; }
.words__item { padding: 24px 26px; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.words__item .label { color: var(--brass-ink); }
.words__item--no { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.words__item--no .label { color: var(--text-3); }
.words__item--no .words__line { text-decoration: line-through; text-decoration-color: rgba(233, 226, 210, 0.4); text-decoration-thickness: 1px; }
.words__line { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.38; letter-spacing: -0.01em; }

/* the monthly check, as four steps that come round again */
.loop { max-width: 540px; margin-inline: auto; }
.loop li { display: grid; grid-template-columns: 36px 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.loop li:last-child { border-bottom: 1px solid var(--line); }
.loop b { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.015em; }
.loop span:last-child { color: var(--text-2); }
@media (max-width: 480px) { .loop li { grid-template-columns: 30px 1fr; } .loop span:last-child { grid-column: 2; } }

@media (min-width: 1001px) { .kinds--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kind .label { margin-bottom: 14px; }
.assistants li { padding: 8px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* the process, step by step: when, what, and who does what */
.tl {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3.2fr);
  gap: 20px clamp(24px, 3vw, 56px);
  align-items: start;
  padding: clamp(32px, 3.6vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__when { display: flex; align-items: center; gap: 16px; }
.tl__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--brass);
  color: var(--brass);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
}
.tl__what p { margin-top: 12px; color: var(--text-2); max-width: 52ch; }
.tl__who { display: grid; gap: 10px; margin: 0; }
.tl__who div { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 10px; }
html[data-lang="es"] .tl__who div { grid-template-columns: 4.1em minmax(0, 1fr); } /* "Nosotros" */
.tl__who dt { padding-top: 2px; }
.tl__who dd { margin: 0; color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr; } }

.about-seal { width: min(100%, 520px); margin-inline: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
@media (min-width: 1081px) { .areas--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.areas--6 .area > p { min-height: 0; }

/* two sites side by side, the second set a little lower */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pair > .work:nth-child(2) { margin-top: clamp(40px, 9vw, 150px); }
.work--card { display: block; }
.work--card .work__phone, .work--card.work--flip .work__phone { left: auto; right: -4%; top: auto; bottom: -11%; width: 23%; }
.work--card .work__info { display: block; padding-top: clamp(44px, 5vw, 70px); }
.work--card .work__id { padding-right: 24%; }
.work--card .work__info .go { margin-top: 18px; }
@media (max-width: 860px) {
  .pair { grid-template-columns: 1fr; gap: 120px; }
  .pair > .work:nth-child(2) { margin-top: 0; }
}

/* the promises beside the assistant */
.promises { margin-top: 30px; display: grid; gap: 12px; }
.promises li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.promises svg { width: 15px; height: 15px; flex: none; color: var(--brass); transform: translateY(2px); }

/* someone asks an AI assistant, and it answers: a few questions, one after the other */
.assist {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.assist__bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(16, 26, 45, 0.1); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.assist__orb { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 0deg, #b8914f, #f1dfb4, #c9a262, #8e6c36, #b8914f); }
.motion .assist__orb { animation: orb 6s linear infinite; }
@keyframes orb { to { transform: rotate(1turn); } }
.assist__tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; color: var(--ink-2); }
.assist__body { display: grid; align-content: start; gap: 16px; min-height: 290px; padding: 24px 22px 28px; }
.assist__q {
  justify-self: end;
  max-width: 88%;
  min-height: 2.6em;
  padding: 11px 15px;
  border-radius: 16px 16px 4px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.assist__a { font-size: 1.0625rem; line-height: 1.6; color: #29324a; letter-spacing: -0.005em; }
.assist__a b { font-weight: 600; color: var(--ink); }
.assist__a .w { transition: opacity 220ms var(--ease-ui); }
.assist__a .w.is-hidden { opacity: 0; }
.assist__src { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--paper-2); font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); opacity: 0; transition: opacity 400ms var(--ease-ui); }
.assist__src i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px #3b4252; }
.assist.is-answered .assist__src { opacity: 1; }
.assist__think { display: none; gap: 6px; padding: 6px 0; }
.assist__think i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: think 1.1s ease-in-out infinite; }
.assist__think i:nth-child(2) { animation-delay: 0.15s; }
.assist__think i:nth-child(3) { animation-delay: 0.3s; }
.assist.is-thinking .assist__think { display: inline-flex; }
@keyframes think { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

/* the chat on the services page plays itself out: a request, our reply being typed, the reply */
.motion .chat[data-chat] .msg { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 350ms var(--ease-ui), transform 450ms var(--ease-out); }
.motion .chat[data-chat] .msg.is-on { opacity: 1; transform: none; }
.msg { position: relative; }
.msg.is-typing { color: transparent; }
.msg.is-typing time { visibility: hidden; }
.msg.is-typing::after { content: "• • •"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9fb2cf; letter-spacing: 0.1em; animation: typing 1.1s ease-in-out infinite; }
@keyframes typing { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* the globe on the About page: requests from everywhere, answered from ten capitals */
.globe-sec {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: center;
}
.globe-sec__text { grid-column: 1 / span 5; }
.globe-sec__text .lead { margin-top: clamp(22px, 2.2vw, 32px); }
.globe-sec__visual { grid-column: 6 / -1; }
.globe { position: relative; width: min(100%, 720px); aspect-ratio: 1; margin-inline: auto; }
.globe canvas { display: block; width: 100%; height: 100%; }
.globe__tag { position: absolute; right: 4%; bottom: 3%; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); }
.capitals { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; }
.capitals li { padding: 6px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.875rem; color: var(--text-2); }
@media (max-width: 1000px) {
  .globe-sec__text, .globe-sec__visual { grid-column: 1 / -1; }
}

/* a contact option, large */
.reach {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 64px;
}
.reach__main { grid-column: 1 / span 6; }
.reach__side { grid-column: 8 / -1; }
@media (max-width: 1000px) { .reach__main, .reach__side { grid-column: 1 / -1; } }
.channel { display: flex; gap: 22px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--line); }
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raise-2); }
.channel__icon svg { width: 22px; height: 22px; }
.channel h3 { font-size: 1.25rem; }
.channel p { color: var(--text-2); margin-top: 6px; }
.channel .go { margin-top: 10px; }
.qr { display: flex; gap: 20px; align-items: center; margin-top: 22px; }
.qr img, .qr svg { width: 112px; height: 112px; border-radius: 12px; background: var(--paper); padding: 8px; }
.qr p { font-size: 0.875rem; color: var(--text-3); max-width: 22ch; }
@media (max-width: 899px) { .qr { display: none; } }

/* 12 Forms ------------------------------------------------------------------------------------ */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 9px; }
.field > label, .field > .field__label, fieldset > legend { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.field__hint { font-weight: 400; color: var(--text-3); }
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 20, 36, 0.55);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 140ms var(--ease-ui), box-shadow 140ms var(--ease-ui), background-color 140ms var(--ease-ui);
}
textarea.input { min-height: 132px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:hover { border-color: rgba(233, 226, 210, 0.38); }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(208, 174, 110, 0.22); background: rgba(10, 20, 36, 0.85); }
.field.is-bad .input { border-color: #e58b7a; }
.field__err { color: #f0a597; font-size: 0.875rem; min-height: 0; }
.field__err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 0.9375rem;
  transition: background-color 150ms var(--ease-ui), color 150ms var(--ease-ui), border-color 150ms var(--ease-ui);
}
.chip input:hover + span { border-color: rgba(233, 226, 210, 0.45); color: var(--text); }
.chip input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__note { font-size: 0.875rem; color: var(--text-3); max-width: 42ch; }
.form__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.form__status { font-size: 0.97rem; }
.form__status.is-bad { color: #f0a597; }
.form.is-sending .btn { opacity: 0.7; pointer-events: none; }
/* shown only when the server sends a visitor without JavaScript back here */
.form__fallback { display: none; margin-bottom: 24px; padding: 14px 18px; border-radius: 12px; background: rgba(229, 139, 122, 0.12); color: #f3c3b9; }
.form__fallback:target { display: block; }
@media (min-width: 961px) { .steps__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the thank-you banner takes the form's place: shown by clef.js after a send, or by the address
   /contact#sent when send.php sends a visitor without JavaScript back here */
.sent {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(208, 174, 110, 0.1);
  box-shadow: inset 0 0 0 1px rgba(208, 174, 110, 0.45);
}
.sent[hidden] { display: none; }
.sent:target { display: flex; }
.reach__side:has(#sent:target) .form, .reach__side:has(#sent:target) .form__fallback { display: none; }
.sent__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brass); color: var(--bg); }
.sent__icon svg { width: 18px; height: 18px; }
.sent h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.sent p { color: var(--text-2); margin-top: 8px; max-width: 46ch; }

/* 13 Closing call and footer ------------------------------------------------------------------ */
.close {
  position: relative;
  padding-block: clamp(120px, 12vw, 220px);
  overflow: hidden;
  text-align: center;
}
.close::before {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: min(1400px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -38%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208, 174, 110, 0.16), rgba(208, 174, 110, 0.04) 55%, transparent 75%);
  pointer-events: none;
}
.close__seal { width: 64px; height: 64px; margin: 0 auto 36px; }
.close h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); max-width: 16ch; margin-inline: auto; }
.close .lead { margin: 26px auto 0; max-width: 40ch; }
.close .btn-row { justify-content: center; margin-top: 44px; }
.close__alt { margin-top: 26px; color: var(--text-3); font-size: 0.9375rem; }
.close__alt a { color: var(--text-2); }
.close__alt a:hover { color: var(--text); }

.footer {
  position: relative;
  padding-top: clamp(72px, 7vw, 110px);
  padding-bottom: 36px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 56px);
}
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 22px; color: var(--text-3); max-width: 30ch; font-size: 0.97rem; }
.footer__brand .serif { font-size: 1.15em; color: var(--text-2); }
.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer li + li { margin-top: 4px; }
.footer__links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  transition: color 150ms var(--ease-ui);
}
.footer__links a:hover { color: var(--text); }
.footer__legal {
  margin-top: clamp(56px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__legal a { padding: 6px 0; }
.footer__legal a:hover { color: var(--text); }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* 14 Motion ----------------------------------------------------------------------------------- */
/* headings rise word by word out of a mask, once, when they come into view */
.rise .w-m, .enter .w-m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
/* italic words lean past their box: give the mask room on the right and below */
.rise .w-m--i, .enter .w-m--i { padding: 0 0.12em 0.2em 0.02em; margin: 0 -0.12em -0.2em -0.02em; }
.enter .w-i { display: inline-block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.is-loaded .enter .w-i { transform: none; }
/* until clef.js has wrapped its words, an entering heading waits unseen (never longer than the head's 3 s failsafe) */
.motion:not(.ready) .enter { opacity: 0; }
.no-js .enter .w-i { transform: none; }
.rise .w-i { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 34ms + var(--d, 0ms)); }
.rise.is-in .w-i { transform: none; }
/* blocks fade up a little, once */
.motion .fade { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion .fade.is-in { opacity: 1; transform: none; }
/* pictures open from the bottom edge, once */
.motion .wipe { clip-path: inset(0 0 100% 0 round var(--fr-r, 14px)); transition: clip-path 1300ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion .wipe.is-in { clip-path: inset(0 0 0 0 round var(--fr-r, 14px)); }
.no-js .rise .w-i, .no-js .fade, .no-js .wipe { transform: none; opacity: 1; clip-path: none; }
/* the hero's own entrance */
.enter .w-i { transition-duration: 1000ms; }
.motion .enter-up { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion.is-loaded .enter-up { opacity: 1; transform: none; }
.no-js .enter-up { opacity: 1; transform: none; }

/* 15 Calm (less motion asked for) and print ------------------------------------------------------ */
/* Visitors whose system asks for less motion still get the whole site, calmer: words and blocks fade in
   where they would rise or slide, nothing moves with the scroll, and the home page fades from the seal to
   the globe instead of flying through the keyhole (clef.js). */
.calm .enter .w-i, .calm .rise .w-i { transform: none; opacity: 0; transition-property: opacity; }
.calm.is-loaded .enter .w-i, .calm .rise.is-in .w-i { opacity: 1; }
.calm .fade, .calm .enter-up { transform: none; }
.calm .hero.is-cine { height: 240vh; height: 240lvh; }
.calm .hero__gl { transition: opacity 120ms linear; }
@media print {
  .header, .menu, .hero__gl, .hero__world, .hero__end, .close::before, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { height: auto; }
}
