/* =========================================================================
   Jean Pierre Dev v2 "Observatório" — layout and components.
   Every color, type size, space and duration comes from tokens.css.
   Raw colors only appear inside data URIs (grain, select chevron).
   ========================================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--c-void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-3));
  overflow-x: clip;
}
html.motion-ok { scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-brand);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: var(--w-400);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain: a tiny inline SVG noise tile over everything (below the header). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-hud);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
main:focus { outline: none; }
::selection { background: var(--c-signal); color: var(--c-void); }

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: calc(-1 * var(--s-9));
  z-index: var(--z-skip);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-1);
  background: var(--c-signal);
  color: var(--c-void);
  font-weight: var(--w-600);
  font-size: var(--t-small);
  letter-spacing: var(--ls-button);
  text-decoration: none;
}
.skip:focus { top: var(--s-3); }

.wrap {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
/* v6: eyebrows are quiet sentence-case Figtree (mono only survives for prices, S1/S2/S3, counts and the HUD line) */
.label {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: var(--t-label);
  line-height: var(--lh-label);
  letter-spacing: 0;
  color: var(--c-text-dim);
}
.label__n { color: var(--c-signal); }

.sec-title {
  font-weight: 500;
  font-size: var(--t-title);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-display);
  color: var(--c-text-hi);
  text-wrap: balance;
}

/* v6 accent: one gold italic-serif clause per promise (the H1 hook, the H2s, the footer tagline). Instrument Serif
   draws smaller than Figtree at the same size, so it is set a touch larger. */
h1 em, .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.01em;
  color: var(--c-signal);
}
/* v6 critic pass: the serif accent is a signature, not a template. Only the H1 and the footer tagline carry it; every
   section title is one all-sans voice whose strength comes from scale steps (Serviços is the page's big type moment,
   Processo and Contato step down, the dense panels smaller still). The <em> stays for meaning, without a costume. */
h2 em { font: inherit; letter-spacing: inherit; color: inherit; }

/* calm invitations to touch: one per interactive scene, 13px, dim (hint--fine / hint--coarse pick the wording) */
.hint { font-size: 13px; line-height: 1.4; font-weight: 400; letter-spacing: 0; color: var(--c-text-dim); }
.hint--coarse { display: none; }
@media (pointer: coarse) { .hint--fine { display: none; } .hint--coarse { display: inline; } }

.sec-intro { max-width: 48ch; color: var(--c-text); }

.u { color: var(--c-signal); }

/* ---------- Buttons and links ---------- */
/* v6: pills in sentence case. Gold is light, not paint: the primary glows a little; the ghost is frosted glass. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: var(--s-2) var(--s-5);
  border: 0;
  border-radius: var(--r-round);
  font-family: var(--font-brand);
  font-weight: var(--w-600);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: var(--ls-button);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out),
    color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--d-base) var(--ease-out); }
.btn--primary {
  background: var(--c-signal);
  color: var(--c-void);
  box-shadow: 0 0 0 1px rgba(216, 182, 106, .5), 0 10px 40px -12px rgba(216, 182, 106, .55);
}
.btn--primary:hover { background: var(--c-signal-hover); box-shadow: 0 0 0 1px rgba(232, 204, 140, .7), 0 12px 48px -10px rgba(216, 182, 106, .75); }
.btn--primary:active { background: var(--c-signal-press); box-shadow: 0 0 0 1px rgba(216, 182, 106, .5); transform: translateY(1px); }
.btn--ghost {
  background: rgba(244, 242, 238, .06);
  color: var(--c-text-hi);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 238, .1);
}
.btn--ghost:hover { background: rgba(244, 242, 238, .12); box-shadow: inset 0 0 0 1px rgba(244, 242, 238, .18); }
.btn--ghost:active { transform: translateY(1px); }
@media (hover: hover) { .btn:hover .i { transform: translate(2px, -2px); } }
.btn--sm { min-height: var(--tap); padding-inline: var(--s-4); }
.btn--xs { min-height: 40px; padding: 0 18px 0 14px; font-size: 14px; }
.btn:disabled { background: var(--c-raised); color: var(--c-text-off); box-shadow: none; cursor: not-allowed; }
.i--wa { fill: currentColor; stroke: none; width: 16px; height: 16px; }

.qlink {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--c-text-hi);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 11px) / 32% 1px no-repeat;
  transition: color var(--d-fast) var(--ease-out), background-size var(--d-base) var(--ease-out);
}
.qlink:hover { color: var(--c-signal); background-size: 100% 1px; }
.qlink .i { width: 16px; height: 16px; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: var(--border) solid var(--c-line-ui);
  border-radius: var(--r-round);
  background: transparent;
  color: var(--c-text-hi);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.iconbtn:hover { border-color: var(--c-signal); background: var(--c-signal-wash); }
.iconbtn:disabled { color: var(--c-text-off); border-color: var(--c-line); background: transparent; cursor: default; }
.iconbtn--solid { background: var(--c-signal); border-color: var(--c-signal); color: var(--c-void); }
.iconbtn--solid:hover { background: var(--c-signal-hover); border-color: var(--c-signal-hover); box-shadow: var(--glow-signal); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 28px;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-round);
  background: rgba(244, 242, 238, .06);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: var(--t-label);
  line-height: 1.2;
  color: var(--c-text-hi);
}
.chip__dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: var(--r-round);
  background: var(--c-signal);
  box-shadow: 0 0 0 3px var(--c-signal-wash);
}

.ticks { display: grid; gap: var(--s-2); }
.ticks li { display: flex; align-items: baseline; gap: var(--s-3); color: var(--c-text); }
/* a small gold dot on the first line (it replaced the old "//") */
.ticks li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  border-radius: var(--r-round);
  background: var(--c-signal);
  transform: translateY(-.22em);
}
.ticks--dim li::before { background: var(--c-text-dim); }

/* v6: no corner brackets anywhere. A media frame (screenshots, previews) is a rounded window with a faint inner ring. */
.vf { position: relative; }
.media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-panel);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}
.media__cap { margin-top: var(--s-3); font-size: 14px; line-height: 1.5; color: var(--c-text-dim); }

.plate {
  position: relative;
  background: var(--c-scrim);
  border-radius: 24px;
  padding: var(--plate-pad);
}

/* ---------- Stage: the fixed black hole (WebGL canvas over a still poster) ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: var(--z-stage);
  overflow: hidden;
  background: var(--c-void);
}
.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 84% 46%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity var(--d-slow) var(--ease-out);
}
.stage.is-framed .stage__poster {
  /* placed by a translate, not by left/top: the switch from the cover poster to the framed one (and every
     re-framing) keeps the box's start point, so it is not a layout shift (CLS). Same picture. */
  inset: 0 auto auto 0;
  width: var(--pw);
  height: var(--ph);
  transform: translate(var(--px), var(--py));
  object-fit: fill;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--c-void) 9%, var(--c-void) 91%, transparent),
    linear-gradient(180deg, transparent, var(--c-void) 9%, var(--c-void) 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, var(--c-void) 9%, var(--c-void) 91%, transparent),
    linear-gradient(180deg, transparent, var(--c-void) 9%, var(--c-void) 86%, transparent);
  mask-composite: intersect;
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  transition: opacity var(--d-slow) var(--ease-out);
}
.stage.is-live .stage__canvas { opacity: 1; }
/* the sky can be held: grab over empty space, grabbing while dragging */
@media (hover: hover) and (pointer: fine) {
  html.motion-ok .stage.is-live .stage__canvas { cursor: grab; }
  html.motion-ok .stage.is-live .stage__canvas:active { cursor: grabbing; }
}
.stage.is-live .stage__poster { opacity: 0; transition-delay: var(--d-slow); }
/* A soft lens vignette behind the header keeps the nav legible over the upper arc. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--header-h) + var(--s-5));
  background: linear-gradient(to bottom, var(--c-scrim), transparent);
  pointer-events: none;
}

/* ---------- Header ---------- */
/* v6: frosted glass instead of a 92% slab (content no longer ghosts through it), no rule, a short fade below */
/* v6 (critic pass): no bar. The universe reaches the top edge; a soft dark fade (no bottom edge) keeps the nav
   legible over the disk at the hero, and once the page moves a blur joins it under the same fade. */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
}
.hdr::before,
.hdr::after {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--s-6));
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--d-slow) var(--ease-out);
}
.hdr::before { background: linear-gradient(to bottom, rgba(4, 4, 4, .74), rgba(4, 4, 4, .46) 58%, rgba(4, 4, 4, 0)); }
.hdr::after {
  opacity: 0;
  background: rgba(4, 4, 4, .38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent);
  mask-image: linear-gradient(to bottom, #000 52%, transparent);
}
.hdr.is-scrolled::after, html:not(.js) .hdr::after { opacity: 1; }

.hdr__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hdr__brand { display: flex; align-items: center; min-height: var(--tap); margin-right: auto; flex: none; }
.hdr__brand img { width: 126px; }

.hdr__nav, .hdr__wa, .hdr__wai { display: none; }
.hdr__menu {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: var(--r-round);
  background: rgba(244, 242, 238, .08);
  color: var(--c-text-hi);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  transition: background-color var(--d-fast) var(--ease-out);
}
.hdr__menu .i { width: 18px; height: 18px; }
.hdr__menu:hover { background: rgba(244, 242, 238, .14); }
/* a 40px pill keeps a 44px touch target */
.hdr__menu, .hdr__wa { position: relative; }
.hdr__menu::before, .hdr__wa::before { content: ""; position: absolute; inset: -2px 0; }
html:not(.js) .hdr__menu { display: none; }

.nav { display: flex; gap: 28px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--c-text);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85);
  transition: color var(--d-fast) var(--ease-out);
}
/* the section you are in: a 4px gold point under its name */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: var(--r-round);
  background: var(--c-signal);
  box-shadow: 0 0 8px rgba(216, 182, 106, .8);
  opacity: 0;
  transform: scale(0);
}
html.motion-ok .nav a::after { transition: transform var(--d-base) var(--ease-pop), opacity var(--d-base) var(--ease-out); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--c-text-hi); }
.nav a[aria-current="true"]::after { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .hdr__brand img { width: 144px; }
  .hdr__wa { display: inline-flex; }
}
@media (min-width: 1200px) {
  .hdr__in { gap: var(--s-6); }
  .hdr__nav { display: block; }
  .hdr__menu { display: none; }
  /* over the hero the disk's upper arc runs right behind the links: a soft pool of dark under them (closest-side, it
     reaches zero inside its own box: no edge, no bar) keeps them at 4.5:1 or better on the brightest part */
  .hdr__nav { position: relative; isolation: isolate; }
  .hdr__nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -22px -64px;
    background: radial-gradient(closest-side, rgba(4, 4, 4, .86), rgba(4, 4, 4, .8) 62%, rgba(4, 4, 4, 0));
    pointer-events: none;
  }
  .nav a { color: var(--c-text-hi); }
  /* every link is bright now: hover shows the section's gold point, dimmer than the current one's */
  .nav a:hover:not([aria-current="true"])::after { opacity: .55; transform: scale(.8); }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  background: var(--c-void);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
html.motion-ok .menu { transition: opacity var(--d-base) var(--ease-out); }
@starting-style { html.motion-ok .menu { opacity: 0; } }

.menu__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.menu__logo { width: 126px; }
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: var(--r-round);
  background: rgba(244, 242, 238, .08);
  color: var(--c-text-hi);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 15px;
}
.menu__close .i { width: 18px; height: 18px; }
.menu__nav ol { list-style: none; margin: 0; padding: var(--s-5) var(--gutter); }
.menu__nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  border-bottom: var(--border) solid var(--c-line);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--c-text-hi);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}
.menu__nav li:last-child a { border-bottom: 0; }
.menu__nav a:hover { color: var(--c-signal-hover); }
.menu__nav .menu__wa { margin-top: var(--s-4); color: var(--c-signal); }
.menu__nav .menu__wa .i { width: 20px; height: 20px; }
.menu__foot { margin-top: auto; display: grid; gap: var(--s-3); padding: var(--s-5) var(--gutter) var(--s-6); }
.menu__social { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.menu__social a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.menu__social a:hover { color: var(--c-signal); }

/* ---------- Hero (v6: one promise on the scene, no furniture) ---------- */
.hero {
  --hero-plate-w: 440px;
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--s-5)) max(var(--gutter), calc((100% - var(--w-wide)) / 2 + var(--gutter))) var(--s-5);
  pointer-events: none;            /* empty space belongs to the canvas: drag to orbit, click to pulse */
}
.hero__title, .hero__plate, .hero__lead, .hero a, .hero button { pointer-events: auto; }

.hero__main { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: var(--s-5); }
/* the text sits on the scene itself: only a soft radial dim behind the block (no plate, no border) */
.hero__main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34% -12% -48px -22%;   /* never below the hero's foot (a box past the screen counted as a layout shift) */
  /* closest-side: the dim reaches zero inside its own box, so no edge of the box ever shows on the disk */
  background: radial-gradient(closest-side at 42% 52%, rgba(4, 4, 4, .64), rgba(4, 4, 4, .4) 52%, rgba(4, 4, 4, 0));
  pointer-events: none;
}

.hero__title {
  max-width: 12ch;
  font-weight: 500;
  font-size: clamp(44px, 6.8vw, 108px);
  line-height: .95;
  letter-spacing: var(--ls-display);
  color: var(--c-text-hi);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
}

.hero__plate { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.hero__lead {
  max-width: 34ch;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
  color: rgba(244, 242, 238, .86);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-1); }
.hero__alt {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-text-hi);
  text-decoration: underline;
  text-decoration-color: var(--c-signal-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .8);
  transition: color var(--d-fast) var(--ease-out), text-decoration-color var(--d-fast) var(--ease-out);
}
.hero__alt:hover { color: var(--c-signal-hover); text-decoration-color: currentColor; }
.hero__touch { margin-top: calc(-1 * var(--s-2)); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
/* a drag hint fades once the hand has done it (fx.js: html.has-touched for the sky, html.has-spun for the planets;
   once per session) */
.hero__touch, .world__hint { transition: opacity var(--d-slow) var(--ease-out); }
html.has-touched .hero__touch, html.has-spun .world__hint { opacity: 0; }
html:not(.motion-ok) .hero__touch, html:not(.motion-ok) .world__hint { display: none; }

/* Phones and portrait tablets: the hole owns the band under the header, the copy stack sits at the bottom */
@media not all and (min-width: 1024px) and (orientation: landscape) {
  /* fades out inside its own box as well (no hard edge at the hero's foot once the page moves); the box never reaches
     past the hero's foot (a box hanging below the screen showed up as a layout shift while the hero eased in) */
  /* v6 r3: no slab. A soft ellipse that reaches zero inside its own box (the sky's band and galaxy stay visible around
     the copy; the engine itself steps the sky back under the text, scenes.js -> bh.setCalm) */
  .hero__main::before { inset: -40px calc(-1 * var(--gutter)) calc(-1 * var(--s-5)); background: radial-gradient(closest-side at 50% 58%, rgba(4, 4, 4, .44), rgba(4, 4, 4, .3) 62%, rgba(4, 4, 4, 0)); }
  .hero__ctas { width: 100%; }
}
@media (max-width: 767px) {
  .hero__main { gap: var(--s-4); }
  .hero__title { max-width: none; font-size: clamp(40px, 11.4vw, 48px); line-height: .98; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .hero__plate { gap: var(--s-3); }
  .hero__alt { min-height: var(--tap); }
}
/* Short phones: H1 and the buttons fit the first view; the paragraph follows below the fold */
@media (max-width: 767px) and (max-height: 699px) {
  .hero { padding-top: max(calc(var(--header-h) + 150px), calc(100svh - 300px)); }
  .hero__main { margin-top: 0; }
  .hero__lead { order: 3; }
  .hero__alt { order: 4; }
  .hero__touch { order: 5; }
}

/* Tablets (portrait) */
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-6)); padding-bottom: var(--s-7); }
  .hero__main { gap: var(--s-5); }
  .hero__plate { max-width: 600px; }
}

/* Desktop and landscape tablets: H1 bottom-left, the lead, buttons and hint in the right column on its baseline */
@media (min-width: 1024px) and (orientation: landscape) {
  .hero__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--hero-plate-w);
    align-items: end;
    gap: var(--s-7);
  }
  .hero__title { font-size: max(44px, min(6.8vw, 108px, 13.5svh)); margin-bottom: -.06em; }
  .hero__plate { position: relative; max-width: none; padding-bottom: 2px; }
  /* the bright lower disk can pass behind the right column: a soft local dim (no box), erased with the text on exit */
  .hero__plate::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -34% -18% -20% -24%;
    background: radial-gradient(farthest-side, rgba(4, 4, 4, .82) 38%, rgba(4, 4, 4, .56) 66%, rgba(4, 4, 4, 0));
    pointer-events: none;
  }
  .hero__touch { margin-top: 0; }
}
@media (min-width: 1440px) and (orientation: landscape) {
  .hero { --hero-plate-w: 460px; }
}

/* ---------- Sections (opaque from here on) ---------- */
.sec {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--section-y);
  background: var(--c-void);
  border-top: var(--border) solid var(--c-line);
}

.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 1024px) {
  .sec-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: var(--s-5);
    align-items: end;
    margin-bottom: var(--s-8);
  }
  .sec-head > .label { grid-column: 1 / -1; }
  .sec-head > .sec-title { grid-column: 1 / span 7; }
  .sec-head > .sec-intro { grid-column: 8 / span 5; justify-self: end; }
}

/* ---------- Projects ---------- */
.projects { background: radial-gradient(40% 30% at 100% 0, var(--c-signal-wash), transparent 70%), var(--c-void); }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feat {
  grid-column: 1 / -1;
  display: grid;
  background: var(--c-raised);
  border: var(--border) solid var(--c-signal-line);
}
.feat__frame { aspect-ratio: 960 / 675; overflow: hidden; background: var(--c-panel); border-bottom: var(--border) solid var(--c-line); }
.feat__frame img, .card__frame img, .sheet__img img, .show__img img, .about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.feat__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-4); padding: var(--plate-pad); }
.feat__title {
  font-weight: var(--w-550);
  font-size: var(--t-statement);
  line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement);
  color: var(--c-text-hi);
}
.feat__sum { max-width: 46ch; }
.feat__domain { font-family: var(--font-mono); font-size: var(--t-small); color: var(--c-text-dim); }
.feat__body .btn { margin-top: var(--s-2); }
@media (min-width: 1024px) {
  .feat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feat__frame { border-bottom: 0; border-right: var(--border) solid var(--c-line); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-panel);
  border: var(--border) solid var(--c-line);
  transition: border-color var(--d-base) var(--ease-out);
}
.card:hover { border-color: var(--c-signal-line); }
@supports selector(:has(*)) {
  .card:has(.card__link:focus-visible) { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
}
.card__frame { aspect-ratio: 960 / 675; overflow: hidden; background: var(--c-raised); border-bottom: var(--border) solid var(--c-line); }
html.motion-ok .card__frame img { transition: transform var(--d-slow) var(--ease-out); }
.card:hover .card__frame img { transform: scale(1.03); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); }
.card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); }
.card__cat, .card__status {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.card__status { display: inline-flex; align-items: center; gap: var(--s-2); }
.card__status::before { content: ""; width: 5px; height: 5px; border-radius: var(--r-round); background: var(--c-line-ui); }
.card__title {
  font-weight: var(--w-550);
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-text-hi);
}
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* the whole card shows the focus ring where :has() exists; elsewhere the link keeps its own */
.card__link:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
@supports selector(:has(*)) {
  .card__link:focus-visible { outline: none; }
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: var(--border) solid var(--c-line);
}
.card__domain { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .02em; color: var(--c-text-dim); overflow-wrap: anywhere; }
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-hi);
  transition: color var(--d-fast) var(--ease-out);
}
.card__cta .i { width: 16px; height: 16px; }
.card:hover .card__cta { color: var(--c-signal); }

/* Collapsed list (only once site.js takes over; without JS every project shows). */
.projects.is-collapsible:not(.is-open) .card.is-extra { display: none; }
.pgrid__more { display: none; }
.projects.is-collapsible .pgrid__more { display: block; }
@media (min-width: 768px) and (max-width: 1199px) {
  .projects.is-open .pgrid__more { grid-column: 1 / -1; }
}
.more {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  padding: var(--s-6);
  border: var(--border) solid var(--c-line);
  background: var(--c-panel);
  color: var(--c-text-hi);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: border-color var(--d-base) var(--ease-out), background-color var(--d-base) var(--ease-out);
}
.more:hover { border-color: var(--c-signal-line); background: var(--c-raised); }
.more__ic {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: var(--border) solid var(--c-line-ui);
  border-radius: var(--r-round);
  color: var(--c-signal);
  transition: border-color var(--d-fast) var(--ease-out);
}
.more:hover .more__ic { border-color: var(--c-signal); }
.pm__v { transform-box: fill-box; transform-origin: center; }
html.motion-ok .pm__v { transition: transform var(--d-base) var(--ease-out); }
.more[aria-expanded="true"] .pm__v, .faq__item[open] .pm__v { transform: scaleY(0); }

/* ---------- Services ---------- */
.svc__rail { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.svc__track { display: grid; gap: var(--gap); }
.svc-panel {
  display: grid;
  gap: var(--s-6);
  padding: var(--plate-pad);
  background: var(--c-panel);
  border: var(--border) solid var(--c-line);
}
.svc-panel__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.svc-panel__n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  color: var(--c-signal);
}
.svc-panel__t {
  font-weight: var(--w-550);
  font-size: var(--t-statement);
  line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.svc-panel__d { max-width: 52ch; }
.svc-panel .ticks { margin-block: var(--s-1) var(--s-3); }
@media (min-width: 1024px) {
  .svc-panel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s-8); }
}

.fig { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-5); background: var(--c-void); border: var(--border) solid var(--c-line); }
.fig__cap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.fig__n { color: var(--c-text-hi); }
.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.sheet__cell--lg { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .sheet { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .sheet__cell--lg { grid-column: 1; grid-row: 1 / span 2; }
}
.sheet__img { aspect-ratio: 960 / 675; overflow: hidden; background: var(--c-raised); border: var(--border) solid var(--c-line); }
.sheet__cap {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  color: var(--c-text-dim);
}
.fig__svg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.fx-grid path { fill: none; stroke: var(--c-line); stroke-width: 1; stroke-dasharray: 2 6; }
.fx-line { fill: none; stroke: var(--c-line-strong); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.fx-sig { stroke: var(--c-signal-line); }
.fx-dash { stroke-dasharray: 5 5; }
.fx-box rect { fill: var(--c-panel); stroke: var(--c-line-strong); stroke-width: 1; }
.fx-box.is-hi rect { fill: var(--c-signal-wash); stroke: var(--c-signal); }
.fx-text { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; fill: var(--c-text-hi); }
.fx-small { font-size: 11px; }
.fx-dim { fill: var(--c-text-dim); }
.fx-node { fill: var(--c-signal); }
.fx-ring { fill: none; stroke: var(--c-signal-line); stroke-width: 1; }

.rail__ctrl { display: none; }
.rail__count {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  color: var(--c-text-dim);
  font-variant-numeric: tabular-nums;
}
.rail__count span { color: var(--c-text-hi); }
.rail__bar { flex: 1; display: flex; gap: var(--s-1); }
.rail__bar span { flex: 1; height: 1px; background: var(--c-line-strong); }
.rail__bar span.is-on { background: var(--c-signal); }
.rail__btns { display: flex; gap: var(--s-3); }

@media (min-width: 1200px) {
  .svc.is-rail .svc__viewport { overflow: hidden; }
  .svc.is-rail .svc__track { display: flex; gap: 0; transform: translate3d(calc(var(--i, 0) * -100%), 0, 0); }
  .svc.is-rail .svc-panel { flex: 0 0 100%; min-width: 0; }
  html.motion-ok .svc.is-rail .svc__track { transition: transform var(--d-slow) var(--ease-out); }
  .svc.is-rail .rail__ctrl { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-5); }
}

/* ---------- Process: a straight trajectory ---------- */
.steps { display: grid; gap: var(--s-7); }
.step { display: grid; grid-template-columns: var(--s-6) minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-3); }
.step__rail { position: relative; grid-column: 1; grid-row: 1 / span 3; display: flex; justify-content: center; padding-top: var(--s-3); }
.step__rail::before {
  content: "";
  position: absolute;
  top: var(--s-3);
  bottom: calc(-1 * var(--s-7));
  left: 50%;
  width: 1px;
  background: var(--c-line-strong);
}
.step:last-child .step__rail::before { bottom: 0; }
.step__node {
  position: relative;
  width: 12px; height: 12px;
  background: var(--c-signal);
  box-shadow: 0 0 0 6px var(--c-signal-wash);
}
.step__n, .step__t, .step__d { grid-column: 2; }
.step__n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-statement);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-text-hi);
}
.step__t {
  font-weight: var(--w-550);
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.step__d { max-width: 44ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .step { display: flex; flex-direction: column; gap: var(--s-4); padding-right: var(--s-6); }
  .step__rail { display: block; height: 12px; padding: 0; margin-block: var(--s-3); }
  .step__rail::before { top: 50%; bottom: auto; left: 0; right: calc(-1 * var(--gap) - var(--s-6)); width: auto; height: 1px; }
  .step:last-child .step__rail::before { right: 0; }
  .step__node { display: block; }
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: var(--s-8); }
.about__media { max-width: 480px; }
.about__photo { aspect-ratio: 540 / 600; background: var(--c-panel); border: var(--border) solid var(--c-line); }
.about__photo img { position: relative; }
.about__sig { width: min(220px, 60%); margin-top: var(--s-5); opacity: .92; }
.about__bio {
  margin-top: var(--s-5);
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--c-text-hi);
  max-width: 34em;
}
.about__lists { display: grid; gap: var(--s-7); margin-top: var(--s-8); }
.about__lt { margin-bottom: var(--s-3); }
.rows { border-top: var(--border) solid var(--c-line-strong); }
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: var(--border) solid var(--c-line);
  color: var(--c-text-hi);
}
.rows__y {
  flex: none;
  font-size: var(--t-small);
  color: var(--c-text-dim);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .about__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .about__media { grid-column: 1 / span 5; max-width: none; }
  .about__body { grid-column: 7 / span 6; }
}

/* ---------- Capabilities ---------- */
.caps__list { margin-top: var(--s-6); border-bottom: var(--border) solid var(--c-line); }
.caps__row { display: grid; gap: var(--s-3); padding-block: var(--s-6); border-top: var(--border) solid var(--c-line); }
.caps__w {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  font-weight: var(--w-550);
  font-size: var(--t-title);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  color: var(--c-text-hi);
}
.caps__i {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  color: var(--c-signal);
  transform: translateY(-.2em);
}
.caps__d { max-width: 40ch; }
.caps__note {
  margin-top: var(--s-7);
  max-width: 36ch;
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--c-text-hi);
}
@media (min-width: 1024px) {
  .caps__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap); padding-block: var(--s-7); }
}

/* ---------- Robô de Vagas showcase ---------- */
.show__head { display: grid; gap: var(--s-6); }
.show__titles { display: grid; gap: var(--s-5); }
.show__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.show__p { max-width: 44ch; }
.show__fig { margin-top: var(--s-7); }
/* the product screenshot in the same media frame as the project previews, warmed a little toward the gold light */
.show__img { aspect-ratio: 16 / 9; }   /* the capture is 1440x810: the frame hugs it */
.show__img img { width: 100%; height: 100%; object-fit: contain; object-position: top; filter: sepia(.12) saturate(.86) brightness(.96); }
.read3 { display: grid; margin-top: var(--s-8); border-top: var(--border) solid var(--c-line-strong); }
.read3__item { display: grid; align-content: start; gap: var(--s-2); padding-block: var(--s-5); border-bottom: var(--border) solid var(--c-line); }
.read3__k {
  font-weight: 500;
  font-size: var(--t-label);
  color: var(--c-text-dim);
}
.sl { color: var(--c-signal); }
.read3__h {
  font-weight: var(--w-550);
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-text-hi);
}
.read3__s { color: var(--c-text); }
@media (min-width: 768px) {
  .read3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--border) solid var(--c-line); }
  .read3__item { padding: var(--s-6) var(--s-5); border-bottom: 0; border-left: var(--border) solid var(--c-line); }
  .read3__item:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 1024px) {
  .show__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .show__titles { grid-column: 1 / span 8; }
  .show__aside { grid-column: 9 / span 4; }
  .show__fig { margin-top: var(--s-8); }
  .show__img { aspect-ratio: 16 / 9; }
  .show__img img { object-fit: cover; }
}

/* ---------- Pricing: a comparison table, not three identical cards ---------- */
.price { background: radial-gradient(36% 30% at 0 100%, var(--c-signal-wash), transparent 70%), var(--c-void); }
.plans { display: grid; gap: var(--s-4); }
.plan {
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding: var(--plate-pad);
  background: var(--c-panel);
  border: var(--border) solid var(--c-line);
}
.plan--hi { background: var(--c-raised); border-color: var(--c-signal-line); box-shadow: inset 0 2px 0 var(--c-signal); }
.plan__name {
  font-weight: var(--w-550);
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.plan__price { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-block: var(--border) solid var(--c-line-strong); }
.plan__from {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-signal);
}
.plan__val {
  font-weight: var(--w-550);
  font-size: var(--t-statement);
  line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement);
  color: var(--c-text-hi);
  font-variant-numeric: tabular-nums;
}
.plan__inc {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.plan .btn { justify-self: stretch; margin-top: var(--s-3); }
@media (min-width: 1024px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    gap: 0;
    border-top: var(--border) solid var(--c-line-strong);
    border-bottom: var(--border) solid var(--c-line);
  }
  .plan {
    grid-row: span 6;
    grid-template-rows: subgrid;
    gap: var(--s-4);
    padding: var(--s-7) var(--s-6);
    background: transparent;
    border: 0;
    border-left: var(--border) solid var(--c-line);
  }
  .plan:first-child { border-left: 0; }
  .plan--hi { background: var(--c-raised); }
  .plan .btn { align-self: end; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--s-6); }
.faq__head { display: grid; gap: var(--s-3); align-content: start; }
.faq__list { border-top: var(--border) solid var(--c-line); }
.faq__item { border-bottom: var(--border) solid var(--c-line); }
.faq__item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--tap);
  padding-block: var(--s-5);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__n {
  min-width: 2ch;
  font-weight: 500;
  font-size: var(--t-label);
  color: var(--c-text-off);
  font-variant-numeric: tabular-nums;
  transition: color var(--d-base) var(--ease-out);
}
.faq__item[open] .faq__n { color: var(--c-signal); }
.faq__q {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--c-text-hi);
}
/* 40px round toggle; the whole summary row is the touch target */
.faq__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-round);
  background: rgba(244, 242, 238, .08);
  color: var(--c-text-hi);
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.faq__ic .i { width: 18px; height: 18px; }
.faq__item summary:hover .faq__ic { background: var(--c-signal-wash); color: var(--c-signal); }
.faq__item[open] .faq__ic { background: rgba(216, 182, 106, .16); color: var(--c-signal); }
.faq__a { max-width: var(--measure); padding-bottom: var(--s-6); color: var(--c-text); }
/* links inside running text (FAQ answers, service descriptions, price labels): quiet underline, gold on hover */
.faq__a a, .world__d a, .world__price dt a {
  color: var(--c-text-hi);
  text-decoration: underline;
  text-decoration-color: var(--c-signal-line);
  text-underline-offset: 3px;
  transition: color var(--d-fast) var(--ease-out);
}
.faq__a a:hover, .world__d a:hover, .world__price dt a:hover { color: var(--c-signal); }
@media (min-width: 768px) {
  .faq__a { padding-left: calc(2ch + var(--s-4)); padding-right: var(--s-8); }
}
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
}
@supports (interpolate-size: allow-keywords) {
  html.motion-ok { interpolate-size: allow-keywords; }
  html.motion-ok .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height var(--d-base) var(--ease-out), content-visibility var(--d-base) allow-discrete;
  }
  html.motion-ok .faq__item[open]::details-content { height: auto; }
}

/* ---------- Contact: inside the black hole (the page fell in on the way here; the void is the backdrop) ---------- */
.contact {
  position: relative;
  z-index: var(--z-content);
  padding-bottom: var(--section-y);
  pointer-events: none;
}
/* it used to frame the hole above the form (46svh); inside the hole there is nothing to frame: a breath, not a gap */
.contact__window { height: 14vh; height: 14svh; }
.contact__wrap { position: relative; }
.contact__plate { pointer-events: auto; display: grid; gap: var(--s-4); }
.contact__title {
  font-weight: 500;
  font-size: clamp(44px, 6.8vw, 108px);
  line-height: .95;
  letter-spacing: var(--ls-display);
  color: var(--c-text-hi);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .7);
}
.contact__lead { max-width: 44ch; color: var(--c-text); }
.contact__plate .form { margin-top: var(--s-4); }
.contact__head { display: grid; gap: var(--s-4); position: relative; isolation: isolate; }
/* one quiet sign of place behind the heading: a far galaxy of the new sky (tilted, warm core, no edge) */
.contact__head::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  top: -18%;
  width: clamp(220px, 34vw, 560px);
  aspect-ratio: 3.4 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 210, .28), rgba(236, 222, 196, .1) 28%, rgba(236, 228, 214, .03) 62%, rgba(236, 228, 214, 0));
  transform: rotate(-14deg);
  pointer-events: none;
}
/* the other side of the horizon: a dim field of stars behind the form. It is the whole sky without WebGL; when the
   engine paints its own sky after the fall it adds html.sky-after and this layer steps back. */
.contact__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .7;
  /* irregular positions over the whole box (no tile, so no lattice) */
  background:
    radial-gradient(1.5px 1.5px at 33.1% 17.2%, rgba(244, 242, 238, 0.27), transparent 60%),
    radial-gradient(1.5px 1.5px at 11.0% 57.8%, rgba(236, 228, 214, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 42.1% 25.6%, rgba(244, 242, 238, 0.44), transparent 60%),
    radial-gradient(1.5px 1.5px at 13.9% 24.0%, rgba(236, 228, 214, 0.51), transparent 60%),
    radial-gradient(1px 1px at 58.2% 7.7%, rgba(244, 242, 238, 0.27), transparent 60%),
    radial-gradient(1px 1px at 29.8% 16.6%, rgba(244, 242, 238, 0.51), transparent 60%),
    radial-gradient(1.5px 1.5px at 67.5% 12.7%, rgba(244, 242, 238, 0.54), transparent 60%),
    radial-gradient(1px 1px at 54.6% 8.9%, rgba(244, 242, 238, 0.53), transparent 60%),
    radial-gradient(1px 1px at 53.0% 76.1%, rgba(244, 242, 238, 0.51), transparent 60%),
    radial-gradient(1.5px 1.5px at 30.8% 77.7%, rgba(236, 228, 214, 0.60), transparent 60%),
    radial-gradient(1px 1px at 30.8% 49.5%, rgba(236, 228, 214, 0.58), transparent 60%),
    radial-gradient(1px 1px at 96.1% 14.1%, rgba(236, 228, 214, 0.32), transparent 60%),
    radial-gradient(1.5px 1.5px at 91.6% 42.6%, rgba(244, 242, 238, 0.28), transparent 60%),
    radial-gradient(1px 1px at 77.8% 79.9%, rgba(244, 242, 238, 0.56), transparent 60%),
    radial-gradient(2px 2px at 57.7% 45.9%, rgba(236, 228, 214, 0.53), transparent 60%),
    radial-gradient(1.5px 1.5px at 68.9% 9.1%, rgba(244, 242, 238, 0.57), transparent 60%),
    radial-gradient(1px 1px at 97.3% 80.3%, rgba(244, 242, 238, 0.57), transparent 60%),
    radial-gradient(1px 1px at 35.3% 91.4%, rgba(236, 228, 214, 0.33), transparent 60%),
    radial-gradient(1px 1px at 7.7% 75.2%, rgba(244, 242, 238, 0.58), transparent 60%),
    radial-gradient(1px 1px at 90.0% 49.7%, rgba(244, 242, 238, 0.45), transparent 60%),
    radial-gradient(2px 2px at 86.8% 80.0%, rgba(244, 242, 238, 0.67), transparent 60%),
    radial-gradient(1px 1px at 96.7% 67.2%, rgba(236, 228, 214, 0.68), transparent 60%),
    radial-gradient(1px 1px at 18.9% 24.8%, rgba(244, 242, 238, 0.26), transparent 60%),
    radial-gradient(1px 1px at 19.5% 29.5%, rgba(244, 242, 238, 0.44), transparent 60%),
    radial-gradient(1.5px 1.5px at 56.4% 92.6%, rgba(244, 242, 238, 0.64), transparent 60%),
    radial-gradient(1px 1px at 64.9% 72.5%, rgba(244, 242, 238, 0.65), transparent 60%),
    radial-gradient(1px 1px at 86.0% 78.0%, rgba(244, 242, 238, 0.43), transparent 60%),
    radial-gradient(1px 1px at 48.2% 40.6%, rgba(236, 228, 214, 0.28), transparent 60%),
    radial-gradient(1px 1px at 17.6% 35.0%, rgba(244, 242, 238, 0.30), transparent 60%),
    radial-gradient(1.5px 1.5px at 53.5% 92.2%, rgba(244, 242, 238, 0.26), transparent 60%),
    radial-gradient(60% 40% at 78% 30%, rgba(216, 182, 106, .05), transparent 70%);
  transition: opacity 1.2s var(--ease-out);
}
html.sky-after .contact__sky { opacity: 0; }
@media (min-width: 1024px) and (orientation: landscape) {
  .contact { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: var(--section-y); }
  .contact__window { display: none; }
  .contact__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .contact__plate { grid-column: 1 / span 7; }
}

.form { display: grid; gap: var(--s-5); }
.form__grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
  .field--full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-weight: 500;
  font-size: 14px;
  line-height: var(--lh-label);
  color: var(--c-text);
}
/* fields: soft wells, no outline; a 1px gold ring of light when focused */
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: 14px;
  background: rgba(244, 242, 238, .05);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 238, .06);
  color: var(--c-text-hi);
  font-size: var(--t-body);
  line-height: 1.4;
  transition: box-shadow var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
textarea.input { min-height: 132px; padding-block: var(--s-3); resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238e8a83' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
  background-size: 20px 20px;
  cursor: pointer;
}
select.input option { background: var(--c-panel); color: var(--c-text-hi); }
.input:hover { background: rgba(244, 242, 238, .07); }
.input:focus { outline: none; background: rgba(244, 242, 238, .07); box-shadow: inset 0 0 0 1px var(--c-signal), 0 0 0 4px rgba(216, 182, 106, .12); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--c-error); }
.field__err { margin-top: var(--s-2); font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-error); }
.field__err:empty { display: none; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.form__actions .btn { width: 100%; }
@media (min-width: 768px) { .form__actions .btn { width: auto; } }
.form__direct { font-size: var(--t-small); color: var(--c-text-dim); }
.form__direct a { color: var(--c-text-hi); text-underline-offset: 3px; }
.form__direct a:hover { color: var(--c-signal); }
.form__note { font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-text-dim); max-width: 62ch; }
.form__status { font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-ok); }
.form__status:empty { display: none; }
.form__fallback { font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-warn); }
.form__fallback a { color: var(--c-warn); text-underline-offset: 3px; }

/* ---------- Footer: the ending (you crossed; a new sky). v6 r3: a neutral void, no warm horizon (it read as brown) ---------- */
.ftr {
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
  padding-block: var(--s-9) var(--s-6);
  background: #040404;
}
/* with the scenes on, the footer's top is open: the sky behind the contact dissolves into it over 240px (no seam) */
html.v5-on .ftr {
  background: linear-gradient(to bottom, rgba(4, 4, 4, 0), rgba(4, 4, 4, .8) 240px, #040404 420px);
}
/* short laptop screens (1280x720): the whole ending fits under the header at the end of the scroll */
@media (min-width: 1024px) and (max-height: 800px) {
  .ftr.ftr { padding-block: var(--s-8) var(--s-5); }
  .ftr .ftr__mark { font-size: min(12vw, 200px, 14vh); }
  .ftr .ftr__cols { margin-top: var(--s-5); padding-top: var(--s-5); }
  .ftr .ftr__bar { margin-top: var(--s-5); }
}
html.v5-on .ftr__sky { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 240px); mask-image: linear-gradient(to bottom, transparent, #000 240px); }
.ftr > .wrap { position: relative; }
/* a faint starfield and one far galaxy (a tilted soft ellipse with a warm core): the same universe, from the other side */
.ftr__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 45.4% 55.6%, rgba(244, 242, 238, 0.64), transparent 60%),
    radial-gradient(1.5px 1.5px at 58.4% 20.4%, rgba(244, 242, 238, 0.46), transparent 60%),
    radial-gradient(1px 1px at 19.9% 45.0%, rgba(244, 242, 238, 0.29), transparent 60%),
    radial-gradient(1px 1px at 68.6% 6.9%, rgba(244, 242, 238, 0.68), transparent 60%),
    radial-gradient(1px 1px at 61.1% 17.8%, rgba(236, 228, 214, 0.62), transparent 60%),
    radial-gradient(1.5px 1.5px at 5.4% 85.7%, rgba(244, 242, 238, 0.26), transparent 60%),
    radial-gradient(1.5px 1.5px at 44.3% 82.2%, rgba(236, 228, 214, 0.36), transparent 60%),
    radial-gradient(1.5px 1.5px at 2.4% 11.0%, rgba(244, 242, 238, 0.38), transparent 60%),
    radial-gradient(1.5px 1.5px at 97.6% 82.0%, rgba(244, 242, 238, 0.36), transparent 60%),
    radial-gradient(1.5px 1.5px at 51.2% 5.8%, rgba(244, 242, 238, 0.59), transparent 60%),
    radial-gradient(1px 1px at 83.3% 39.3%, rgba(236, 228, 214, 0.63), transparent 60%),
    radial-gradient(1px 1px at 22.1% 88.6%, rgba(244, 242, 238, 0.42), transparent 60%),
    radial-gradient(1px 1px at 42.3% 56.2%, rgba(236, 228, 214, 0.60), transparent 60%),
    radial-gradient(1px 1px at 10.4% 34.3%, rgba(236, 228, 214, 0.59), transparent 60%),
    radial-gradient(1px 1px at 25.7% 12.5%, rgba(244, 242, 238, 0.46), transparent 60%),
    radial-gradient(1.5px 1.5px at 67.5% 20.7%, rgba(244, 242, 238, 0.34), transparent 60%),
    radial-gradient(1px 1px at 14.6% 63.5%, rgba(244, 242, 238, 0.43), transparent 60%),
    radial-gradient(2px 2px at 2.0% 84.2%, rgba(244, 242, 238, 0.68), transparent 60%),
    radial-gradient(2px 2px at 3.9% 20.6%, rgba(244, 242, 238, 0.68), transparent 60%),
    radial-gradient(1px 1px at 6.0% 16.8%, rgba(244, 242, 238, 0.37), transparent 60%),
    radial-gradient(1px 1px at 33.6% 30.9%, rgba(236, 228, 214, 0.28), transparent 60%),
    radial-gradient(1px 1px at 63.1% 4.5%, rgba(244, 242, 238, 0.42), transparent 60%),
    radial-gradient(1.5px 1.5px at 94.1% 48.5%, rgba(244, 242, 238, 0.31), transparent 60%),
    radial-gradient(1px 1px at 62.2% 32.2%, rgba(236, 228, 214, 0.62), transparent 60%),
    radial-gradient(1.5px 1.5px at 20.2% 72.5%, rgba(244, 242, 238, 0.34), transparent 60%),
    radial-gradient(1px 1px at 86.7% 59.7%, rgba(236, 228, 214, 0.27), transparent 60%),
    radial-gradient(1.5px 1.5px at 51.2% 27.0%, rgba(236, 228, 214, 0.57), transparent 60%),
    radial-gradient(1px 1px at 81.1% 59.1%, rgba(244, 242, 238, 0.48), transparent 60%),
    radial-gradient(1px 1px at 95.8% 14.9%, rgba(244, 242, 238, 0.50), transparent 60%),
    radial-gradient(1px 1px at 61.0% 29.3%, rgba(236, 228, 214, 0.59), transparent 60%),
    radial-gradient(1px 1px at 41.5% 26.4%, rgba(244, 242, 238, 0.33), transparent 60%),
    radial-gradient(1px 1px at 56.9% 15.4%, rgba(244, 242, 238, 0.31), transparent 60%),
    radial-gradient(1.5px 1.5px at 33.8% 71.9%, rgba(236, 228, 214, 0.51), transparent 60%),
    radial-gradient(1px 1px at 5.4% 4.7%, rgba(244, 242, 238, 0.57), transparent 60%);
}
.ftr__sky::after {
  content: "";
  position: absolute;
  right: 9%; top: 16%;
  width: clamp(180px, 22vw, 340px);
  aspect-ratio: 4 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 242, 216, .42), rgba(236, 228, 214, .14) 26%, rgba(236, 228, 214, .045) 60%, rgba(236, 228, 214, 0));
  transform: rotate(-17deg);
}
.ftr__km {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-dim);
}
.ftr__km b { font-weight: 600; color: var(--c-signal); }
.ftr__mark {
  margin: var(--s-4) 0 0 -.04em;
  font-weight: 400;
  font-size: clamp(64px, 12vw, 200px);
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--c-text-hi);
}
.ftr__tag {
  margin-top: var(--s-3);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.1;
  color: var(--c-signal);
}
.ftr__where { margin-top: var(--s-4); font-size: 14px; color: var(--c-text-dim); }
.ftr__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: var(--border) solid var(--c-line);
}
.ftr__list { margin-top: var(--s-3); }
.ftr__list a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  color: var(--c-text-hi);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}
.ftr__list a:hover { color: var(--c-signal); }
.ftr__list .i { width: 16px; height: 16px; color: var(--c-text-dim); }
.ftr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: var(--border) solid var(--c-line);
}
.ftr__copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-dim);
}
.ftr__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-6); }
.ftr__motion {
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--c-text-dim);
  text-decoration: underline;
  text-decoration-color: var(--c-line-strong);
  text-underline-offset: 4px;
}
.ftr__actions .qlink { font-size: 13px; }
.ftr__motion:hover { color: var(--c-text-hi); }
@media (min-width: 1024px) {
  .ftr__cols { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .ftr__col:first-child { grid-column: 7 / span 3; }
  .ftr__col:last-child { grid-column: 10 / span 3; }
}
/* three columns (navigation, contact, the immersive-site pages): on phones the third one takes its own row, so the
   visual order is also the reading and tab order */
.ftr__cols--3 .ftr__col:nth-child(3) { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .ftr__cols--3 .ftr__col:nth-child(1) { grid-column: 4 / span 3; }
  .ftr__cols--3 .ftr__col:nth-child(2) { grid-column: 7 / span 3; }
  .ftr__cols--3 .ftr__col:nth-child(3) { grid-column: 10 / span 3; }
}

/* ---------- Print ---------- */
@media print {
  .stage, .hdr, .menu, body::after, .hero__touch, .contact__sky, .ftr__sky { display: none !important; }
  .hero, .contact { pointer-events: auto; }
}
