/* Moretti Premium B — base: reset, type, header/nav, footer, buttons, reveal utilities, light-frame.
   Shared by every page (owner: coder-HOME). Class-scoped only: no bare tag selectors inside @media. */

/* ---------- design tokens (fixed contract, shared by every page; was css/tokens.css, merged to save a render-blocking request).
   Font URLs carry ?v=N, identical to the <link rel="preload"> href of every page: bump both together. ---------- */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2?v=1") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks: while the web fonts load, text is set in a local face scaled to the same advance
   width (size-adjust) and vertical metrics, so the swap does not re-wrap lines (no layout shift).
   Values measured in Chrome against Big Shoulders Display 800 / Manrope 420 and 700 (canvas measureText). */
@font-face {
  font-family: "MM Display Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold"), local("LiberationSansNarrow-Bold");
  font-weight: 100 900;
  size-adjust: 79.25%;
  ascent-override: 123.7%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "MM Text Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Helvetica");
  font-weight: 200 550;
  size-adjust: 103.26%;
  ascent-override: 103.6%;
  descent-override: 29.05%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "MM Text Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold");
  font-weight: 551 800;
  size-adjust: 100.83%;
  ascent-override: 106.1%;
  descent-override: 29.75%;
  line-gap-override: 0%;
}

:root {
  /* colour */
  --ink: #0b141c;
  --navy: #142532;
  --charcoal: #1c2329;
  --ivory: #f5f1e7;
  --ivory-dim: rgba(245, 241, 231, .68);
  --line: rgba(245, 241, 231, .14);
  --copper: #b87333;        /* glints; as text it passes AA on --ink (4.6:1) only at >=16px */
  --copper-light: #d39a63;  /* copper used as small text (7.6:1 on --ink) */
  --light: #fff4dc;         /* sunlight sweep tone */

  /* type */
  --font-display: "Big Shoulders Display", "MM Display Fallback", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-text: "Manrope", "MM Text Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(4.6rem, 1.2rem + 13.4vw, 14vw);
  --fs-d1: clamp(3.4rem, 1.6rem + 7.6vw, 10rem);
  --fs-d2: clamp(2.6rem, 1.4rem + 4.8vw, 6.4rem);
  --fs-d3: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
  --fs-lead: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .75rem;

  --track-display: -.012em;
  --track-label: .18em;

  /* space / layout */
  --gutter: clamp(1rem, .4rem + 2.6vw, 3rem);
  --section: clamp(5rem, 3rem + 9vw, 12rem);
  --max: 1440px;
  --header-h: 72px;

  /* motion */
  --ease-cine: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.23, 1, .32, 1);
  --dur-ui: 200ms;
  --dur-reveal: 1100ms;
  --dur-slow: 1400ms;

  color-scheme: dark;
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--copper); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: var(--gutter); top: 12px; z-index: 200;
  padding: .75rem 1.1rem; background: var(--ivory); color: var(--ink);
  font-weight: 700; font-size: var(--fs-small);
  transform: translateY(-160%); transition: transform var(--dur-ui) var(--ease-ui);
}
.skip-link:focus-visible { transform: none; }

/* film grain over the whole night gallery — static layer, no blend mode (cheap to composite) */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background-size: 160px 160px;
  opacity: 0;
  transition: opacity 1200ms ease;
}
/* the grain is texture, not content: it arrives with the motion layer, off the critical path */
.mm-ready .grain, html:not(.js) .grain { background-image: url("../assets/grain.webp"); opacity: .5; }
/* a deferred image (core.js fills data-src near the viewport) never shows its alt text as a placeholder */
img[data-src] { color: transparent; }

/* page-transition veil: fades out by pure CSS on load (no JS dependency), fades in on internal navigation */
.pt-veil {
  position: fixed; inset: 0; z-index: 180; pointer-events: none;
  background: var(--ink);
  opacity: 0;
  animation: pt-veil-out 700ms var(--ease-cine) both;
}
.pt-veil.is-leaving { animation: none; opacity: 1; transition: opacity 420ms var(--ease-cine); }
@keyframes pt-veil-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- layout + type ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: 1; /* accented capitals (Ó, É, Ã…) rise ~.98em: anything tighter lets them touch the line above */
  font-kerning: normal;
}
.d1 { font-size: var(--fs-d1); }
.d2 { font-size: var(--fs-d2); }
.d3 { font-size: var(--fs-d3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-micro); font-weight: 650;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ivory-dim);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--copper); }

.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ivory); font-weight: 400; max-width: 34ch; }
.muted { color: var(--ivory-dim); }
/* copy that depends on the input: pointer + keyboard vs touch */
.when-touch { display: none; }
@media (hover: none) {
  .when-fine { display: none; }
  .when-touch { display: inline; }
}
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons / links ---------- */
.btn {
  --btn-bg: var(--ivory); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .85rem;
  min-height: 52px; padding: 0 1.5rem 0 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .9375rem; letter-spacing: .02em;
  border-radius: 0;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 160ms var(--ease-ui), color var(--dur-ui) ease;
}
.btn__arrow { display: inline-block; transition: transform var(--dur-ui) var(--ease-ui); }
.btn::after { /* light passes over the button on hover: transform only */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 244, 220, .9) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease-cine);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(110%); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::after { background: linear-gradient(100deg, transparent 30%, rgba(184, 115, 51, .35) 50%, transparent 70%); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; font-weight: 600; /* touch target; the underline (::after) rides 6px above the box bottom, just under the text */
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--copper); transform: scaleX(.25); transform-origin: left;
  transition: transform 450ms var(--ease-cine);
}
@media (hover: hover) and (pointer: fine) { .link-line:hover::after { transform: scaleX(1); } }
.link-line:focus-visible::after { transform: scaleX(1); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform 500ms var(--ease-cine);
}
.site-header::before { /* night glass — opacity only, appears once the page scrolls */
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 20, 28, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 500ms var(--ease-cine);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* original logo on an ivory plate (navy artwork is not legible on --ink; the file is never recoloured) */
.brand-plate {
  display: inline-flex; align-items: center;
  background: var(--ivory); padding: 9px 14px;
  box-shadow: 0 0 0 1px rgba(184, 115, 51, .0);
  transition: box-shadow var(--dur-ui) ease;
}
.brand-plate img { width: 212px; height: auto; aspect-ratio: 480 / 68; }
@media (hover: hover) and (pointer: fine) { .brand-plate:hover { box-shadow: 0 0 0 1px var(--copper); } }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em; color: var(--ivory);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform 450ms var(--ease-cine);
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .site-nav__link:hover::after { transform: scaleX(1); } }
.site-nav__cta { min-height: 44px; padding: 0 1.15rem; font-size: var(--fs-small); }

.menu-toggle {
  display: none; position: relative;
  width: 48px; height: 48px; margin-right: -10px;
  align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block; width: 26px; height: 1.5px; background: var(--ivory);
  transition: transform 350ms var(--ease-cine);
}
.menu-toggle__bars { position: relative; transform: translateY(-4px); }
.menu-toggle__bars::before { content: ""; position: absolute; left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .brand-plate { padding: 7px 10px; }
  .brand-plate img { width: 176px; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2.5rem;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
    opacity: 0; visibility: hidden;
    transition: opacity 450ms var(--ease-cine), visibility 0s linear 450ms;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity 450ms var(--ease-cine), visibility 0s; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav__link {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(3rem, 15vw, 5rem); line-height: 1; letter-spacing: var(--track-display);
  }
  .site-nav__link::after { bottom: 4px; height: 2px; }
  .site-nav__cta { margin-top: 2rem; min-height: 52px; font-size: .9375rem; }
}
.site-nav__foot { display: none; }
@media (max-width: 899px) {
  .site-nav__foot { display: block; color: var(--ivory-dim); font-size: var(--fs-small); }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative; border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  background: var(--ink);
}
.site-footer__grid {
  display: grid; gap: 2.75rem 2rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) repeat(2, minmax(0, 1fr)); }
}
.site-footer .brand-plate img { width: 260px; }
.site-footer__tag { margin-top: 1.25rem; color: var(--ivory-dim); font-size: var(--fs-small); max-width: 30ch; }
.site-footer__title {
  font-size: var(--fs-micro); font-weight: 650; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--copper-light); margin-bottom: 1rem;
}
.site-footer__list { display: grid; gap: 0; }
.site-footer__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ivory); font-size: .9375rem; overflow-wrap: anywhere;
  transition: color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .site-footer__link:hover { color: var(--copper-light); } }
.site-footer__person { color: var(--ivory-dim); font-size: var(--fs-small); margin-top: .75rem; }
.site-footer__person:first-child { margin-top: 0; }
.site-footer__base {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  color: var(--ivory-dim); font-size: var(--fs-micro); letter-spacing: .04em;
}

/* ---------- light-frame: a render lit by a moving band of sunlight ----------
   .lf            frame (sets aspect / size by the page)
   .lf__base      the render in shadow
   .lf__band      the sunlit copy, masked to a soft diagonal band; JS translates the band by X
                  and the inner image by -X so the picture stays still while the light travels (transform-only) */
.lf { position: relative; overflow: hidden; background: var(--charcoal); isolation: isolate; }
.lf__base, .lf__lit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lf__base { filter: brightness(.36) saturate(.7) contrast(1.06); }
.lf__band {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(105deg, transparent 22%, #000 40%, #000 60%, transparent 78%);
  mask-image: linear-gradient(105deg, transparent 22%, #000 40%, #000 60%, transparent 78%);
  transform: translate3d(-120%, 0, 0);
}
.lf__lit { filter: brightness(1.04) saturate(1.04) sepia(.1); transform: translate3d(120%, 0, 0); }
/* compositor layers only where a band is scrubbed (promoting them mid-scroll re-rasterises and hitches);
   a band parked off the frame is not painted at all */
.lf.is-live .lf__band, .lf.is-live .lf__lit, .luz .lf__band, .luz .lf__lit { will-change: transform; }
.lf.is-off:not(.is-static) .lf__band { visibility: hidden; }
.lf__band::after { /* warm sun tint inside the band */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 220, .16) 50%, transparent 65%);
}
.lf__glint { /* copper/sun hairline riding the band's leading edge */
  position: absolute; top: -25%; left: 59%; width: 1px; height: 150%;
  background: linear-gradient(180deg, transparent, rgba(255, 244, 220, .75) 35%, var(--copper) 70%, transparent);
  transform: rotate(15deg); opacity: .85;
}
.lf__shade { position: absolute; inset: 0; pointer-events: none; }
.lf.is-static .lf__band { transform: none; -webkit-mask-image: none; mask-image: none; }
.lf.is-static .lf__lit { transform: none; }
.lf.is-static .lf__glint, .lf.is-static .lf__band::after { display: none; }

/* ---------- reveal utilities ----------
   Content is visible by default. core.js hides only what is below the fold at load (.rv-pending),
   so a JS failure never leaves text invisible. */
.rv-pending[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.rv-in[data-reveal] {
  opacity: 1; transform: none;
  transition: opacity var(--dur-reveal) var(--ease-cine), transform var(--dur-reveal) var(--ease-cine);
  transition-delay: var(--rv-delay, 0ms);
}
/* stagger without inline style (strict CSP): data-delay="N" on a [data-reveal] element = N ms */
[data-delay="0"] { --rv-delay: 0ms; } [data-delay="60"] { --rv-delay: 60ms; } [data-delay="80"] { --rv-delay: 80ms; } [data-delay="120"] { --rv-delay: 120ms; } [data-delay="160"] { --rv-delay: 160ms; } [data-delay="180"] { --rv-delay: 180ms; } [data-delay="200"] { --rv-delay: 200ms; } [data-delay="240"] { --rv-delay: 240ms; } [data-delay="300"] { --rv-delay: 300ms; } [data-delay="320"] { --rv-delay: 320ms; } [data-delay="360"] { --rv-delay: 360ms; }
/* line mask reveal ([data-lines]); core.js wraps each rendered line in .ln > .ln__in */
.ln { display: block; overflow: hidden; padding: .14em 0 .08em; margin: -.14em 0 -.08em; } /* room for accents above the cap height */
.ln__in { display: block; }
.rv-pending .ln__in { transform: translate3d(0, 105%, 0); }
.rv-in .ln__in { transform: none; transition: transform var(--dur-reveal) var(--ease-cine); transition-delay: calc(var(--i, 0) * 90ms); }

@media print {
  .rv-pending[data-reveal] { opacity: 1; transform: none; }
  .rv-pending .ln__in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-veil { animation-duration: 200ms; }
  .pt-veil.is-leaving { transition-duration: 150ms; }
  .rv-pending[data-reveal] { transform: none; }
  .rv-in[data-reveal] { transition: opacity 300ms ease; }
  .rv-pending .ln__in, .rv-in .ln__in { transform: none; transition: none; }
  .btn::after, .link-line::after, .site-nav__link::after { transition-duration: 1ms; }
  .site-header { transition: none; }
}

/* ---------- header while the mobile menu is open: never hidden, glass on ---------- */
.site-header.is-menu { transform: none; }
.site-header.is-menu::before { opacity: 1; }

/* ---------- custom cursor (created by core.js on fine pointers only) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 190; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--copper); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center;
}
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(245, 241, 231, .5);
  transition: transform 350ms var(--ease-cine), background-color 350ms ease, border-color 350ms ease;
}
.cursor__label {
  position: relative; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity 200ms ease;
}
.cursor[data-state="link"] .cursor__ring::before { transform: scale(1.5); border-color: var(--copper); }
.cursor[data-state="drag"] .cursor__ring::before,
.cursor[data-state="view"] .cursor__ring::before { transform: scale(2.6); background: var(--light); border-color: var(--light); }
.cursor[data-state="drag"] .cursor__label,
.cursor[data-state="view"] .cursor__label { opacity: 1; }
.cursor[data-state="drag"] .cursor__dot,
.cursor[data-state="view"] .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(.8); }
.cursor[data-state="drag"].is-down .cursor__ring::before { transform: scale(2.2); }

/* ============ FIX2 · footer scene, lantern, contact sheet, card tilt ============ */

/* footer as the last scene: one large closing line, the local hour in Santa Catarina, the lantern hint */
.scene {
  position: relative;
  padding-bottom: clamp(2.75rem, 6vw, 5rem); margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.scene::before { /* the sun line rests on the last frame */
  content: ""; position: absolute; top: -12%; bottom: -8%; right: 9%; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 244, 220, .55) 40%, var(--copper) 72%, transparent);
  transform: rotate(15deg); opacity: .55;
}
.scene__phrase { font-size: clamp(3.1rem, 9vw, 9.5rem); line-height: .92; max-width: 15ch; }
.scene__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--fs-small); color: var(--ivory-dim);
}
.scene__clock { display: inline-flex; align-items: baseline; gap: .6rem; }
.scene__clock::before { content: ""; width: 7px; height: 7px; background: var(--copper); transform: rotate(45deg) translateY(-1px); }
.scene__time { display: inline-block; min-width: 5ch; color: var(--ivory); font-weight: 700; font-variant-numeric: tabular-nums; }
html:not(.js) .scene__clock { display: none; }
.scene__key {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .35em; margin-inline: .15em;
  font: 700 .75rem/1 var(--font-text); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--copper);
}
/* credits and links: a little sunlight passes over the text on hover */
.site-footer__link { position: relative; isolation: isolate; }
.site-footer__link::after {
  content: ""; position: absolute; inset: 6px -6px; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 244, 220, .2) 50%, transparent 80%);
  transform: translateX(-120%) scaleX(.6); opacity: 0;
  transition: transform 0ms linear 260ms, opacity 260ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__link:hover::after { transform: translateX(120%) scaleX(.6); opacity: 1; transition: transform 900ms var(--ease-cine), opacity 200ms ease; }
}
.site-footer__base a { color: var(--ivory); min-height: 44px; }

/* easter egg: the page goes dark and the pointer carries a soft lamp (core.js, mouse only) */
.lantern {
  position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none;
  width: 200vw; height: 200vh; margin: -100vh 0 0 -100vw;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 220, .07) 0, rgba(255, 244, 220, 0) 150px),
    radial-gradient(circle at 50% 50%, rgba(4, 8, 12, 0) 0, rgba(4, 8, 12, .1) 80px, rgba(4, 8, 12, .9) 250px, rgba(4, 8, 12, .97) 420px);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease-cine), visibility 0s linear 500ms;
  will-change: transform;
}
.is-lantern .lantern { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease-cine), visibility 0s; }

/* contact sheet: night glass rising from the bottom, dragged down to close */
.sheet { position: fixed; inset: 0; z-index: 170; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 12, .62); opacity: 0; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100svh - 2.5rem); overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(20, 37, 50, .96); /* no backdrop-filter: blurring the page behind a full-width sliding panel cost ~160 ms of compositing per open */
  box-shadow: 0 -30px 80px rgba(4, 8, 12, .55);
  transform: translate3d(0, 100%, 0);
  will-change: transform;
}
.sheet__panel::before { /* refracted edge: a hairline of light, copper at the centre */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 220, .45) 30%, var(--copper) 50%, rgba(255, 244, 220, .45) 70%, transparent);
}
.sheet__head { flex: 0 0 auto; padding-top: .75rem; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.sheet.is-dragging .sheet__head { cursor: grabbing; }
.sheet__grab { display: block; width: 44px; height: 4px; margin: 0 auto .5rem; border-radius: 2px; background: rgba(245, 241, 231, .35); }
.sheet__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; }
.sheet__title { font-size: clamp(2.6rem, 2rem + 4vw, 5.5rem); line-height: .9; margin-top: .6rem; }
.sheet__close {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px; margin-right: -6px;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-ui) ease, transform 160ms var(--ease-ui);
}
.sheet__close span::before, .sheet__close span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: var(--ivory);
  transform: rotate(45deg);
}
.sheet__close span::after { transform: rotate(-45deg); }
.sheet__close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .sheet__close:hover { box-shadow: inset 0 0 0 1px var(--copper); } }
.sheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom) + 1rem)); }
.sheet__lead { font-size: var(--fs-small); }
.sheet__people { display: grid; gap: 1.75rem 3rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
@media (min-width: 768px) { .sheet__people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet__person { padding-top: 1rem; border-top: 1px solid var(--line); }
.sheet__role { font-size: var(--fs-micro); font-weight: 650; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--copper-light); }
.sheet__name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-top: .35rem; }
.sheet__reg { font-size: var(--fs-small); margin-top: .2rem; }
.sheet__links { margin-top: .75rem; }
.sheet__link {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  min-height: 44px; border-bottom: 1px solid var(--line); font-size: .9375rem;
  transition: color var(--dur-ui) ease;
}
.sheet__k { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-dim); }
.sheet__v { overflow-wrap: anywhere; }
.sheet__a { color: var(--copper-light); }
@media (hover: hover) and (pointer: fine) { .sheet__link:hover { color: var(--copper-light); } }
.sheet__page { margin-top: 1.25rem; }
.sheet.is-reduced .sheet__backdrop { transition: opacity 150ms ease; }

/* card tilt: the sun glint follows the pointer across the render (core.js; fine pointers, full motion only) */
.tilt-glint {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 24rem; height: 24rem; margin: -12rem 0 0 -12rem; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 244, 220, .3) 0%, rgba(255, 244, 220, .1) 32%, rgba(255, 244, 220, 0) 64%);
}
@media (prefers-reduced-motion: reduce) { .tilt-glint { display: none; } }

/* ---------- AJUSTE-2: office city in the footer ---------- */
.site-footer__place { margin-top: .75rem; color: var(--ivory); font-size: var(--fs-small); }
.sheet__office { margin-top: .5rem; font-size: var(--fs-small); color: var(--ivory); }
.sheet__office span { color: var(--ivory-dim); }

/* ---------- floating WhatsApp (José João): night glass, one copper hairline; out of the way of every overlay ---------- */
.wa-float {
  position: fixed; z-index: 90; /* under the header (100), the sheet and the lightbox (170) */
  right: max(1rem, calc(env(safe-area-inset-right) + .75rem));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + .75rem));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory);
  background: rgba(20, 37, 50, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(4, 8, 12, .45);
  transition: opacity 320ms var(--ease-cine), transform 320ms var(--ease-cine), visibility 0s, box-shadow var(--dur-ui) ease;
}
.wa-float__ring { /* the copper glint: a short arc of light on the rim */
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 62%, var(--copper) 70%, transparent 78% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}
.wa-float:active { transform: scale(.94); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { box-shadow: inset 0 0 0 1px var(--copper), 0 12px 32px rgba(4, 8, 12, .45); } }
@media (min-width: 900px) { .wa-float { right: 1.5rem; bottom: 1.5rem; width: 60px; height: 60px; } }
/* tucked away while a contact block is on screen, while the page scrolls down (.is-away, with the header),
   or while a menu / sheet / lightbox is open (html.is-overlay from core.js; :has() kept as the no-JS-timing path) */
.wa-float.is-tucked,
.wa-float.is-away,
html.is-overlay .wa-float,
html:has(.site-header.is-menu) .wa-float,
html:has(.sheet.is-open) .wa-float,
html:has(.lb.is-open) .wa-float { opacity: 0; visibility: hidden; transform: translate3d(0, 12px, 0) scale(.9); transition: opacity 240ms ease, transform 240ms ease, visibility 0s 240ms; }
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float.is-tucked, .wa-float.is-away { transition: opacity 150ms ease, visibility 0s; transform: none; } }
