/* Hallmark · genre: editorial · macrostructure: Portfolio Grid · design-system: design.md · designed-as-app · nav: N11 flat mega-menu · footer: Ft4 dense colophon
 * Capi Studio shell: base, layout grid, buttons and links, the header with its mega-menus and phone sheet, the ink band and the footer.
 * Requires tokens.css. Shared by every studio page. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + var(--space-sm));
  /* A control the keyboard reaches near the bottom stops a little above the edge, its focus ring whole */
  scroll-padding-bottom: var(--space-md);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--wght-body);
  font-stretch: var(--wdth-text);
  line-height: var(--leading-body);
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
::selection { background: var(--color-ink); color: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: var(--z-modal);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: var(--wght-ui);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* Layout: the shell spans the screen up to 2400 px; the grid gives 1, 6 or 12 columns */
.shell { width: min(100% - 2 * var(--gutter), var(--shell-max)); margin-inline: auto; }
.cols {
  --cols: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--col-gap);
}
@media (min-width: 40rem) { .cols { --cols: 6; } }
@media (min-width: 64rem) { .cols { --cols: 12; } }

/* Type roles */
.display-xl, .display-l {
  font-weight: var(--wght-display);
  font-stretch: var(--wdth-display);
  letter-spacing: var(--track-display);
  line-height: var(--leading-display);
  font-style: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.display-xl { font-size: var(--text-display-xl); }
.display-l { font-size: var(--text-display-l); line-height: 1; text-wrap: balance; }
.title {
  font-size: var(--text-title);
  font-weight: var(--wght-ui);
  letter-spacing: var(--track-title);
  line-height: 1.2;
  text-wrap: balance;
}
.small { font-size: var(--text-sm); font-weight: var(--wght-small); color: var(--color-muted); line-height: 1.45; }
.stop { color: var(--color-accent); }
.tabular { font-variant-numeric: tabular-nums; }

/* Icons: one stroke set, drawn on a 24 grid */
.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--s { width: 16px; height: 16px; }

/* Buttons: a solid ink pill with paper text; the accent is never a fill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-ui);
  font-weight: var(--wght-ui);
  font-stretch: var(--wdth-text);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-color) var(--ease-out), border-color var(--dur-color) var(--ease-out), color var(--dur-color) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn--hero { min-height: 56px; padding: 0 var(--space-lg); font-size: 1.125rem; }
@media (min-width: 64rem) { .btn--hero { min-height: 60px; padding: 0 var(--space-lg); font-size: 1.25rem; } }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--line { background: transparent; color: var(--color-ink); }
.btn--paper { border-color: var(--color-paper); background: var(--color-paper); color: var(--color-ink); }
.btn--paper-line { border-color: var(--color-paper); background: transparent; color: var(--color-paper); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
  .btn--line:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
  .btn--paper:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
  .btn--paper-line:hover { background: var(--color-paper); color: var(--color-ink); }
  .btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--color-ink); border-color: var(--color-ink); }
}

/* Links: underlined, 6 px offset; the accent arrives on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  font-weight: var(--wght-ui);
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: currentColor;
  white-space: nowrap;
  cursor: pointer;
  transition: text-decoration-color var(--dur-color) var(--ease-out), color var(--dur-color) var(--ease-out);
}
.link .ico { transition: transform var(--dur-short) var(--ease-out); }
button.link { padding: 0; border: 0; background: none; }
.prose a, .inline-link {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-color) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover, .prose a:hover, .inline-link:hover { text-decoration-color: var(--color-accent); }
  .link:hover .ico { transform: translateX(2px); }
}

/* Header: a full-width bar on the paper; a hairline appears once the page scrolls */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-color) var(--ease-out);
}
.site-header.is-scrolled, .site-header[data-menu="open"] { border-bottom-color: var(--color-rule); }

/* Over a dark first screen (the homepage): the bar floats over the hero, transparent with crema text, and becomes the
   crema sheet with ink text once the page leaves the hero (movimento.js sets data-tone). It slides away when the
   footer arrives and comes back on focus. An open area also turns it into the sheet: nav.js sets .has-open-area, and
   :has(details.area[open]) does the same without JavaScript (else the panel's crema links would sit on crema). */
.site-header--over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  color: var(--color-on-night);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform 700ms var(--ease-out);
}
.site-header--over .brand { color: inherit; transition: color var(--dur-short) var(--ease-out); }
/* On the night the cherry full stop and the open-area line use the brighter cherry (6.3:1) */
.site-header--over[data-tone="night"]:not([data-menu="open"]), .site-footer--night { --color-accent: var(--color-accent-on-night); }
.site-header--over .header-start { border-color: var(--color-on-night); background: var(--color-on-night); color: var(--color-night); }
.site-header--over .menu-button { border-color: currentColor; color: inherit; }
.site-header--over :focus-visible { outline-color: var(--color-on-night); }
.site-header--over.is-scrolled { border-bottom-color: transparent; }
.site-header--over:is([data-tone="paper"], [data-menu="open"]) {
  background: var(--color-paper);
  color: var(--color-ink);
  border-bottom-color: var(--color-rule);
}
.site-header--over:is([data-tone="paper"], [data-menu="open"]) .header-start { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.site-header--over:is([data-tone="paper"], [data-menu="open"]) :focus-visible { outline-color: var(--color-focus); }
.site-header--over[data-menu="open"] .menu-button { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.site-header--over.is-away:not(:focus-within) { transform: translateY(-110%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .site-header--over[data-tone="night"] .header-start:hover { background: var(--color-on-night-2); border-color: var(--color-on-night-2); }
  .site-header--over[data-tone="night"] .menu-button:hover { background: var(--color-on-night); color: var(--color-night); }
  .site-header--over:is([data-tone="paper"], [data-menu="open"]) .header-start:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
}
/* The bar fades in with the homepage's first-screen entrance; on every other page it is there at once, since people
   arrive there to move around */
@media (prefers-reduced-motion: no-preference) {
  .home .site-header--over { animation: bar-in 1000ms var(--ease-out) 900ms both; }
}
/* Phones: the bar (the brand and the menu) is there from the first frame, like the statement */
@media (prefers-reduced-motion: no-preference) and (max-width: 63.99rem) {
  .home .site-header--over { animation: none; }
}
@keyframes bar-in { from { opacity: 0; } }
.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--color-ink);
  text-decoration: none;
  flex: none;
}
.wordmark { height: 19px; width: auto; overflow: visible; }
@media (min-width: 64rem) {
  .brand { margin-right: clamp(var(--space-md), 2.4vw, var(--space-xl)); }
  .wordmark { height: 22px; }
}
.header-start { display: none; }
@media (min-width: 40rem) { .header-start { display: inline-flex; } }
/* A page whose bar action is its own main action (navegacao.mjs: .header-start--keep, the WhatsApp demonstration's
   "Quero ativar") keeps it on phones: the menu becomes its 44 px icon button and the wordmark steps down, so the three
   fit on one line from 320 px */
@media (max-width: 39.99rem) {
  .header-start--keep { display: inline-flex; min-height: 44px; padding: 0 var(--space-sm); font-size: 0.9375rem; }
  .header-row:has(.header-start--keep) { gap: var(--space-2xs); }
  .header-row:has(.header-start--keep) .menu-button { width: 44px; padding: 0; justify-content: center; }
  .header-row:has(.header-start--keep) .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-row:has(.header-start--keep) .wordmark { height: max(13px, min(19px, calc((100vw - 2 * var(--gutter) - 190px) / 8.72))); }
}
@media (min-width: 64rem) { .header-start { margin-left: auto; } }

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font-size: var(--text-ui);
  font-weight: var(--wght-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-color) var(--ease-out), color var(--dur-color) var(--ease-out);
}
.menu-icon { position: relative; width: 16px; height: 10px; flex: none; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-short) var(--ease-out);
}
.menu-icon::before { transform: translateY(-4px); }
.menu-icon::after { transform: translateY(4px); }
.site-header[data-menu="open"] .menu-icon::before { transform: rotate(45deg); }
.site-header[data-menu="open"] .menu-icon::after { transform: rotate(-45deg); }
.site-header[data-menu="open"] .menu-button { background: var(--color-ink); color: var(--color-paper); }
.menu-button:active { transform: translateY(1px); }
@media (max-width: 22.49rem) {
  .menu-button { padding: 0; width: 44px; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 64rem) { .menu-button { display: none; } }

/* The same four primary links lead the desktop bar and mobile menu. */
.nav-areas, .nav-more { list-style: none; margin: 0; padding: 0; }
.nav-link { min-width: 44px; display: flex; align-items: center; min-height: 44px; color: inherit; font-weight: var(--wght-ui); text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (min-width: 64rem) {
  .site-nav { margin-inline: auto; }
  .nav-areas { display: flex; gap: clamp(20px, 3vw, 48px); }
  .nav-more, .nav-sheet-actions { display: none; }
}
@media (max-width: 63.99rem) {
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-sm) var(--gutter) max(var(--space-lg), env(safe-area-inset-bottom));
    background: var(--color-paper); color: var(--color-ink);
  }
  .site-header[data-menu="open"] .site-nav { display: block; animation: sheet-in var(--dur-short) var(--ease-out); }
  .nav-areas .nav-link { min-height: 52px; border-bottom: 1px solid var(--color-rule); font-size: 1.5rem; }
  .nav-more { margin-block: var(--space-sm); }
  .site-header[data-menu="open"] .header-start:not(.header-start--keep) { display: none; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

/* The one ink band: closing call to action and footer */
.ink-band { background: var(--color-ink); color: var(--color-on-ink); }
.ink-band :focus-visible { outline-color: var(--color-focus-on-ink); }
.ink-band .link { color: var(--color-on-ink); }
@media (hover: hover) and (pointer: fine) {
  .ink-band .link:hover, .ink-band .foot-link:hover { text-decoration-color: var(--color-on-ink); color: var(--color-on-ink); }
}
.closing { padding-block: var(--section-pad) clamp(var(--space-2xl), 7vw, var(--space-3xl)); }
.closing-title { grid-column: 1 / -1; }
.closing-note { grid-column: 1 / -1; margin-top: var(--space-md); color: var(--color-on-ink-2); font-size: var(--text-lead); max-width: 45ch; text-wrap: balance; }
.closing-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }
@media (min-width: 64rem) {
  .closing-title { grid-column: 1 / span 10; }
  .closing-note { grid-column: 1 / span 6; }
}

.site-footer { border-top: 1px solid var(--color-rule-on-ink); padding-block: var(--space-xl) var(--space-lg); font-size: var(--text-sm); }
/* On phones the docked helper (68 px, 22 px above the edge, capifone.js) stays over the corner: the footer keeps room
   under its last line, so the end of the page never lies under it. */
@media (max-width: 39.99rem) { .site-footer { padding-bottom: max(var(--space-lg), 104px); } }

/* The page as a sheet lifting off the footer (homepage): the crema page ends in rounded corners and a long soft
   shadow; the night footer, which carries the closing call to action and the glow hanging from its top, sits under
   it and slides out from beneath as the page scrolls (movimento.js sets --reveal from 0 to 1). */
.page-sheet {
  position: relative;
  z-index: 1;
  background: var(--color-paper);
  border-bottom-left-radius: var(--radius-sheet);
  border-bottom-right-radius: var(--radius-sheet);
  box-shadow: var(--shadow-sheet);
}
.site-footer--night {
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--radius-sheet));
  padding-top: var(--radius-sheet);
  border-top: 0;
  background: var(--color-night);
  color: var(--color-on-night);
  overflow: clip;
}
.site-footer--night .closing { position: relative; padding-block: clamp(var(--space-2xl), 9vw, 168px) clamp(var(--space-xl), 6vw, var(--space-3xl)); }
.site-footer--night .closing-title { color: var(--color-on-night); }
.site-footer--night .closing-note { color: var(--color-on-night-2); }
.footer-body { position: relative; padding-top: var(--space-xl); border-top: 1px solid var(--color-rule-on-night); }
.footer-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 92vh, 980px);
  pointer-events: none;
  opacity: 0.9;
}
.footer-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--color-night);
  opacity: 0;
  pointer-events: none;
}
.site-footer--night > .closing, .site-footer--night > .footer-body { z-index: 1; }
/* A page whose body is already the form the closing call would point to has the footer alone (shell option) */
.site-footer--plain .footer-body { border-top: 0; padding-top: clamp(var(--space-xl), 6vw, var(--space-3xl)); }
.site-footer--plain .footer-glow { opacity: 0.55; }
.footer-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); max-width: 48rem; }
.footer-col h2 { font-size: var(--text-ui); font-weight: var(--wght-ui); color: var(--color-on-night); }
.footer-col ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; }
.foot-link { min-width: 44px; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-ink-2); text-decoration: none; line-height: 1.3; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-rule-on-ink);
  color: var(--color-on-ink-2);
}
.footer-legal a, .footer-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-on-ink-2);
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .foot-link:hover, .footer-legal a:hover, .footer-legal button:hover { color: var(--color-on-ink); text-decoration: underline; text-underline-offset: 0.22em; }
}
/* ---------- Components shared by every studio page (moved from home.css with the inner pages, 2026-11-22) ---------- */

/* Section rhythm: the shared pad, varied per section on purpose */
.sec { padding-block: calc(var(--section-pad) / 2); }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-ink);
  margin-bottom: clamp(var(--space-lg), 4vw, var(--space-2xl));
}
.sec-head .display-l { flex: 1 1 18ch; }
.sec-intro { flex: 1 0 100%; max-width: 45ch; color: var(--color-ink-2); }

/* Section entrances (movimento.js): fade, rise and unblur, once, when 6 % of the block is on screen; neighbours
   follow 75 ms apart. Without the script, or with reduced motion, everything is simply there. */
html.motion-ok [data-reveal] {
  transition: opacity 800ms var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion-ok [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, var(--reveal-y, 40px), 0); filter: blur(var(--reveal-blur, 0px)); }
html.motion-ok [data-reveal="soft"] { --reveal-blur: 8px; }
html.motion-ok [data-reveal].is-instant { transition: none; }

/* Pills over the night: crema with espresso text, and a crema outline over a light tint of the night (so its label
   keeps its contrast wherever the glow moves) */
.btn--crema { border-color: var(--color-on-night); background: var(--color-on-night); color: var(--color-night); }
.btn--crema-line {
  border-color: var(--color-on-night);
  background: var(--color-glass-night);
  color: var(--color-on-night);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.btn .ico { transition: transform var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--crema:hover { background: var(--color-on-night-2); border-color: var(--color-on-night-2); }
  .btn--crema-line:hover { background: var(--color-on-night); border-color: var(--color-on-night); color: var(--color-night); }
  .btn:hover .ico--go { transform: translateX(3px); }
  .btn:hover .ico--next { transform: rotate(-90deg) translateY(2px); }
}

/* The colour field: a CSS fallback that rises on arrival (also what shows during the first frames and without
   WebGL2), under the WebGL canvas that takes over without a jump (campo.js) */
.campo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.campo-css {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-night) 3%, var(--color-glow-crema) 19%, var(--color-glow-caramel) 31%, var(--color-glow-ember) 47%, var(--color-glow-cherry) 63%, var(--color-glow-wine) 81%, var(--color-night) 97%);
  -webkit-mask-image: radial-gradient(80% 56% at 50% 108%, var(--color-night) 30%, transparent 100%);
  mask-image: radial-gradient(80% 56% at 50% 108%, var(--color-night) 30%, transparent 100%);
  opacity: 0.82;
}
.campo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms linear;
}
.campo.is-live canvas { opacity: 1; }
.campo.is-live .campo-css { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .campo-css { animation: campo-rise 2400ms var(--ease-in-out) 250ms both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 63.99rem) {
  .campo-css { animation: campo-rise 1100ms var(--ease-in-out) both; }
}
@keyframes campo-rise { from { opacity: 0; transform: translate3d(0, 68%, 0); } 60% { opacity: 0.82; } }
.campo--top .campo-css { transform: scaleY(-1); animation: none; }

/* Pairs of real captures, the computer and the phone side by side at one height */
.pair { display: flex; align-items: stretch; gap: clamp(8px, 1vw, 16px); }
.pair-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-media);
  background: var(--color-paper-2);
  min-width: 0;
}
.pair-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pair-shot--desktop { flex: 1.6 1 0; aspect-ratio: 16 / 10; }
.pair-shot--phone { flex: 0.5874 1 0; aspect-ratio: 1170 / 1992; border-radius: var(--radius-input); }

/* Media that answers the pointer (movimento.js sets --px and --py from -1 to 1 on fine pointers) */
.follow img { transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -5px), 0) scale(var(--zoom, 1)); transition: transform var(--dur-hover) var(--ease-out); }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--dur-color) var(--ease-out), color var(--dur-color) var(--ease-out), opacity var(--dur-color) var(--ease-out);
}
.round-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.round-btn:active:not([aria-disabled="true"]) { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .round-btn:hover:not([aria-disabled="true"]) { background: var(--color-ink); color: var(--color-paper); }
}

.steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-rule); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "num title" "text text";
  column-gap: var(--space-sm);
  align-items: baseline;
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-rule);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  grid-area: num;
  min-width: 1.6ch;
  font-size: clamp(2rem, 1.3rem + 1.8vw, 3.5rem);
  font-weight: var(--wght-display);
  font-stretch: var(--wdth-display);
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.step-title { grid-area: title; font-size: var(--text-title); }
.step-text { grid-area: text; margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 45ch; }
@media (min-width: 64rem) {
  .step { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; column-gap: var(--col-gap); }
  .step-num { grid-area: auto; grid-column: 1 / span 1; }
  .step-title { grid-area: auto; grid-column: 2 / span 4; }
  .step-text { grid-area: auto; grid-column: 6 / span 7; margin-top: 0; }
}
.rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); margin: clamp(var(--space-2xl), 6vw, var(--space-3xl)) 0 0; padding: 0; list-style: none; }
.rule { padding: var(--space-sm) 0 var(--space-lg); border-top: 2px solid var(--color-ink); }
.rule h3 { font-size: 1.1875rem; font-weight: var(--wght-ui); line-height: 1.3; }
.rule p { margin-top: var(--space-2xs); max-width: 45ch; color: var(--color-ink-2); font-size: 1rem; line-height: 1.55; }
@media (min-width: 40rem) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 100rem) { .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.faq-list details { border-top: 1px solid var(--color-rule); }
@media (min-width: 64rem) {
  .faq-list details:first-child { border-top: 0; }
  .faq-list details:first-child summary { padding-top: 0; min-height: 48px; }
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
  padding-block: var(--space-sm);
  font-size: var(--text-title);
  font-weight: var(--wght-ui);
  letter-spacing: var(--track-title);
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-short) var(--ease-out);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-list details[open] .faq-plus::after { transform: rotate(0deg); }
.faq-answer { padding-bottom: var(--space-lg); max-width: 45ch; color: var(--color-ink-2); }
@media (hover: hover) and (pointer: fine) {
  .faq-list summary:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .faq-answer { animation: answer-in 420ms var(--ease-out); }
}
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }


/* ---------- Page heads shared by every inner page (moved from pagina.css, 2026-11-22): the trail, the dark band
   (an inset night card with the WebGL colour field: .band[data-band] > .campo + .band-inner > .trail + .band-title
   (.band-title--l, --m, --s by length) + .band-lead + .band-actions) and the crema header (.paper-head > .shell >
   .trail + .paper-title + .paper-lead + .paper-actions). Hand-written pages use these classes too (shell.md). ---------- */

/* The trail (breadcrumb): small, the current page not a link; on phones the current page is left out (the title is right
   under it) so the trail stays on one or two short lines */
.trail ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; column-gap: var(--space-2xs); }
.trail li { display: inline-flex; align-items: center; gap: var(--space-2xs); min-width: 0; font-size: 0.9375rem; font-weight: var(--wght-small); line-height: 1.3; }
.trail li + li::before { content: "/"; opacity: 0.55; }
.trail a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; min-width: 44px; text-decoration: none; transition: text-decoration-color var(--dur-color) var(--ease-out); }
.trail [aria-current] { color: inherit; }
@media (max-width: 39.99rem) { .trail li:last-child:not(:first-child) { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .trail a { min-height: 32px; min-width: 24px; }
  .trail a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--color-accent); }
}

/* ---------- The dark band: an inset night card with the moving colour field ---------- */
.band {
  position: relative;
  isolation: isolate;
  margin: var(--space-2xs) var(--band-x) 0;
  overflow: hidden;
  border-radius: var(--radius-sheet);
  background: var(--color-night);
  color: var(--color-on-night);
}
.band :focus-visible { outline-color: var(--color-on-night); }
.band .campo { opacity: 0.9; }
/* Phones: edge to edge with only the lower corners rounded, like the homepage's first screen, so the bar's wordmark and
   menu button keep their full margin over the night */
@media (max-width: 39.99rem) {
  .band { margin: 0; border-radius: 0 0 var(--radius-sheet) var(--radius-sheet); }
  /* No inset on phones, so the content takes the full gutter: on the same line as the wordmark and the page below */
  .band > .band-inner { width: min(100% - 2 * var(--gutter), var(--shell-max)); }
}
/* The content keeps the page's own left edge (the shell), not the card's */
.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--col-gap);
  width: min(100% - 2 * max(var(--gutter) - var(--band-x), 12px), var(--shell-max));
  margin-inline: auto;
  padding-block: calc(var(--header-h) + clamp(var(--space-sm), 4.5vh, var(--space-xl))) clamp(var(--space-3xl), 16vh, 184px);
}
.band .trail { color: var(--color-on-night-2); }
.band .trail [aria-current] { color: var(--color-on-night); }
.band-title, .paper-title {
  margin-top: clamp(var(--space-sm), 2.4vh, var(--space-lg));
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 22ch;
  font-size: var(--text-band-m);
  font-weight: var(--wght-display);
  font-stretch: var(--wdth-display);
  font-style: normal;
  letter-spacing: var(--track-display);
  line-height: 1;
  text-wrap: balance;
}
.band-title { color: var(--color-on-night); }
.band .stop { color: var(--color-accent-on-night); }
/* A short line under the title, for pages whose band carries one (the hand-written pages) */
.band-lead { margin-top: clamp(var(--space-sm), 2vh, var(--space-md)); max-width: 52ch; color: var(--color-on-night-2); font-size: var(--text-lead); line-height: 1.45; text-wrap: pretty; }
.band-title--l, .paper-title--l { font-size: var(--text-band-l); max-width: 17ch; line-height: var(--leading-display); }
.band-title--s, .paper-title--s { font-size: var(--text-band-s); max-width: 26ch; line-height: 1.04; }
.band-actions, .paper-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: clamp(var(--space-lg), 4.4vh, var(--space-2xl));
}
.band-actions .btn, .paper-actions .btn { width: 100%; }
@media (min-width: 40rem) {
  .band-actions, .paper-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  .band-actions .btn, .paper-actions .btn { width: auto; }
}
@media (min-width: 64rem) {
  .band-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .band-inner > * { grid-column: 1 / span 11; }
}
/* Arrival: the trail, the title and the pills fade, rise and unblur on the house curve, once (quicker than the
   homepage's statement: on an inner page the visitor came to read) */
@media (prefers-reduced-motion: no-preference) {
  .band-rise { animation: band-rise var(--t, 1100ms) var(--ease-out) var(--d, 0ms) both; }
  .trail.band-rise { --d: 80ms; --y: 10px; --b: 0px; }
  .band-title.band-rise { --t: 1400ms; --d: 160ms; --y: 26px; --b: 10px; }
  .band-actions.band-rise { --d: 420ms; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 39.99rem) {
  .band-rise { --b: 3px; }
}
/* Phones: the title is there from the first frame, like the homepage's statement; the rest follows at once */
@media (prefers-reduced-motion: no-preference) and (max-width: 63.99rem) {
  .band-title.band-rise { animation: none; }
  .band-rise { --t: 700ms; }
  .trail.band-rise { --d: 0ms; }
  .band-actions.band-rise { --d: 120ms; }
}
@keyframes band-rise { from { opacity: 0; transform: translate3d(0, var(--y, 16px), 0); filter: blur(var(--b, 6px)); } }
@media (prefers-reduced-motion: reduce) { .band-rise { animation: none; } }

/* ---------- The crema header: long reading, no card ---------- */
.paper-head { padding: calc(var(--header-h) + clamp(var(--space-lg), 7vh, var(--space-3xl))) 0 clamp(var(--space-xl), 5vw, var(--space-2xl)); }
.paper-head .trail { color: var(--color-ink-2); }
.paper-head .trail [aria-current] { color: var(--color-ink); }
.paper-title { color: var(--color-ink); max-width: 20ch; }
.paper-lead { margin-top: clamp(var(--space-md), 2.6vw, var(--space-lg)); max-width: 52ch; color: var(--color-ink-2); font-size: var(--text-lead-read); line-height: 1.5; text-wrap: pretty; }
.paper-actions .btn--line { background: transparent; }
/* Phones: the actions come right under the title and the lead follows them (as under the dark band), so a long title
   and a long lead never push the page's main action out of the first screen (390 x 664); a tighter top too. The order
   is visual only: the lead holds no control, so the keyboard meets the same links in the same order. */
@media (max-width: 39.99rem) {
  .paper-head { padding-top: calc(var(--header-h) + clamp(var(--space-sm), 3vh, var(--space-xl))); }
  .paper-head > .shell { display: flex; flex-direction: column; }
  .paper-head .paper-title { margin-top: var(--space-2xs); }
  .paper-head .paper-actions { order: 1; margin-top: var(--space-md); }
  .paper-head .paper-lead { order: 2; margin-top: var(--space-lg); }
}

/* Pressed and unavailable states shared by every control */
.filter:active, .round-btn:active, .viewer-icon:active, .viewer-new:active, .attendant-suggestions button:active { transform: translateY(1px); }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; }
.viewer-icon:disabled, .menu-button:disabled { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .work-open:hover .work-figure, .work-open:hover .work-figure img { transform: none !important; }
  .follow img { transform: none; transition: none; }
}
