/* Clock Relojoaria e Óptica · Design v2
   Identidade: azul #43627F, bege #D9C2B0, marfim #F7F3ED, grafite #202831.
   Georgia nos títulos, Raleway na interface. */

@font-face {
  font-family: Raleway;
  src: url("/assets/fontes/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #43627f;
  --blue-deep: #34506a;
  --blue-soft: #e6ebef;
  --beige: #d9c2b0;
  --beige-soft: #efe5db;
  --ivory: #f7f3ed;
  --ink: #202831;
  --muted: #5a6470;
  --line: rgba(32, 40, 49, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Raleway, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1:focus, h2:focus, h3:focus, legend:focus { outline: none; }
::selection { background: var(--beige); color: var(--ink); }

.shell {
  display: flex;
  flex-direction: column;
  width: min(100% - (var(--gutter) * 2), 1240px);
  min-height: 100vh;
  margin-inline: auto;
}

main { flex: 1; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  background: rgba(251, 249, 245, .9);
  box-shadow: 0 0 0 100vmax rgba(251, 249, 245, .9);
  clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand { display: block; max-width: 46%; padding-block: 8px; }
.brand img { display: block; width: min(148px, 100%); height: auto; }

.contact {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: .78rem;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.contact span, .button span, .bio-links a span:last-child, .site-footer a span {
  display: inline-block;
  transition: transform .35s var(--ease);
}

@media (hover: hover) {
  .contact:hover { background: var(--blue); color: #fff; }
  .contact:hover span, .bio-links a:hover span:last-child, .site-footer a:hover span { transform: translate(2px, -2px); }
}

/* ---------- Tipografia comum ---------- */

.eyebrow {
  margin: 0;
  font: 400 .66rem/1.4 var(--sans);
  letter-spacing: .24em;
  color: var(--blue);
  text-transform: uppercase;
}

/* ---------- Bio: abertura ---------- */

.hero {
  display: grid;
  gap: 18px;
  padding-top: 10px;
}

.hero-copy { position: relative; }

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-clock {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.hero-clock circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.hero-clock line { stroke: currentColor; stroke-linecap: round; transform-origin: 12px 12px; transform: rotate(calc(var(--a, 0) * 1deg)); }
.hero-clock .hand-h { stroke-width: 1.5; }
.hero-clock .hand-m { stroke-width: 1.2; }
.hero-clock .hand-s { stroke-width: .7; stroke: var(--beige); }

.hero h1 {
  margin: 12px 0 10px;
  font: 400 clamp(2.15rem, 10.4vw, 3.1rem)/1.02 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 em { display: block; color: var(--blue); font-weight: 400; }
.hero-intro { margin: 0; color: var(--muted); font-size: .9rem; }

.hero-media {
  position: relative;
  overflow: hidden;
  height: clamp(168px, 47vw, 300px);
  border-radius: 2px;
  background: var(--beige-soft);
}

.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
}

/* ---------- Bio: categorias ---------- */

.catalogue { margin-top: 26px; }

.catalogue > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}

.catalogue > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cards { display: grid; gap: 8px; }

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 37%;
  min-height: 82px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--beige-soft);
  text-decoration: none;
  transition: background-color .4s var(--ease);
}

.card:nth-child(even) { background: var(--blue-soft); }

.card-media {
  position: relative;
  order: 2;
  overflow: hidden;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--photo-position, 50%);
  transition: transform .9s var(--ease);
}

.card--optica { --photo-position: 28%; }
.card--relogios { --photo-position: 52%; }
.card--joias { --photo-position: 56%; }
.card--manutencoes { --photo-position: 65%; }

.card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.card-index {
  align-self: start;
  padding-top: 5px;
  color: var(--blue);
  font-size: .62rem;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.card-copy { display: grid; gap: 3px; }

.card-title {
  font: 400 1.42rem/1.05 var(--serif);
  letter-spacing: -.025em;
}

.card-description {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 35, 80, .45);
  border-radius: 50%;
  color: var(--blue);
  font: 400 .95rem/1 var(--serif);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}

@media (max-width: 739px) {
  .card { grid-template-columns: minmax(0, 1fr) 34%; }
  .card-body { gap: 10px; padding: 12px 12px 12px 14px; }
  .card-arrow { width: 26px; height: 26px; font-size: .85rem; }
  .card:nth-child(even) { grid-template-columns: 34% minmax(0, 1fr); }
  .card:nth-child(even) .card-media { order: 0; }
}

.card:focus-visible { outline-offset: 2px; }

@media (hover: hover) {
  .card:hover .card-photo { transform: scale(1.06); }
  .card:hover .card-arrow { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateX(3px); }
}

.card:active .card-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Bio: atalhos ---------- */

.bio-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bio-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.bio-links a span:last-child { margin-left: auto; color: var(--blue); }

.bio-links svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .bio-links a:hover { border-color: var(--blue); background: #fff; }
}

/* ---------- Rodapé ---------- */

.site-footer {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: clamp(40px, 8vw, 96px);
  padding-block: 34px 30px;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  font-size: .74rem;
  letter-spacing: .02em;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/marca/pattern-negativo.png") center / 460px auto;
  opacity: .06;
  pointer-events: none;
}

.footer-logo { position: relative; display: block; width: 168px; height: auto; }

.footer-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: #fff; }

/* ---------- Páginas internas ---------- */

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .3s var(--ease);
}

.back:hover { color: var(--blue); }
.editorial-back { margin-bottom: 4px; }

.editorial { --rule: var(--line); }

.editorial-hero {
  --feature-bg: var(--blue);
  --feature-fg: #fff;
  --feature-accent: var(--beige);
  --feature-muted: rgba(255, 255, 255, .86);
  display: grid;
  margin-inline: calc(var(--gutter) * -1);
  background: var(--feature-bg);
  color: var(--feature-fg);
}

#relogios .editorial-hero {
  --feature-bg: var(--blue-soft);
  --feature-fg: var(--ink);
  --feature-accent: var(--blue);
  --feature-muted: var(--muted);
}

#joias .editorial-hero {
  --feature-bg: var(--beige);
  --feature-fg: var(--ink);
  --feature-accent: var(--blue);
  --feature-muted: #3d4650;
}

#manutencoes .editorial-hero { --feature-bg: var(--ink); }

.editorial-copy {
  align-self: center;
  padding: 34px var(--gutter) 36px;
}

.editorial-copy .eyebrow { color: var(--feature-accent); }

.editorial h2 {
  margin: 14px 0 18px;
  font: 400 clamp(2.7rem, 12vw, 5.4rem)/.96 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.editorial h2 em {
  display: block;
  color: var(--feature-accent, var(--blue));
  font-weight: 400;
}

.editorial-lead {
  max-width: 40ch;
  margin: 0 0 26px;
  color: var(--feature-muted, var(--muted));
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.editorial-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: clamp(240px, 78vw, 420px);
  background: var(--beige-soft);
}

.editorial-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--editorial-crop, 45%);
}

#optica, #provador, #manutencoes-oculos { --editorial-crop: 31%; }
#relogios, #manutencoes-relogios { --editorial-crop: 54%; }
#joias, #manutencoes-joias { --editorial-crop: 57%; }
#manutencoes { --editorial-crop: 69%; }

/* ---------- Botões ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 400 .9rem/1.2 var(--sans);
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.button:active { transform: scale(.98); }

@media (hover: hover) {
  .button:hover { background-color: var(--blue-deep); }
  .button:hover span { transform: translateX(4px); }
}

#optica .editorial-hero .button,
#manutencoes .editorial-hero .button { background: var(--beige); color: var(--ink); }
#optica .editorial-hero .button:hover { background-color: #fff; }
#optica .editorial-hero .button:focus-visible { outline-color: var(--beige); }

/* ---------- Listas editoriais ---------- */

.editorial-section {
  display: grid;
  align-items: start;
  gap: 16px;
  margin: clamp(34px, 6vw, 80px) auto 8px;
}

.editorial-section h3, .service-copy h3 {
  margin: 0;
  font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.12 var(--serif);
  letter-spacing: -.02em;
}

.editorial-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.editorial-row {
  display: grid;
  grid-template-columns: 2.4ch minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding .45s var(--ease), background-color .45s var(--ease);
}

.editorial-row strong { display: block; font: 400 1.26rem/1.2 var(--serif); letter-spacing: -.01em; }
.editorial-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.editorial-index {
  color: var(--blue);
  font: 400 .66rem/1.4 var(--sans);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.row-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 35, 80, .4);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--serif);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

@media (hover: hover) {
  a.editorial-row:hover { padding-inline: 14px; background: #fff; }
  a.editorial-row:hover .row-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
}

.editorial-secondary {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-size: .9rem;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ---------- Serviços ---------- */

.service-layout, .fitting-layout {
  display: grid;
  gap: 28px;
}

.service-copy h2, .fitting-copy h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.service-copy .editorial-lead { margin-bottom: 0; }
.service-copy h3 { margin: 30px 0 12px; font-size: 1.3rem; }
.service-list { margin-bottom: 26px; }
.service-list .editorial-row { min-height: 52px; padding-block: 13px; font-size: .98rem; }
.service-view .editorial-image { min-height: clamp(220px, 62vw, 380px); margin-inline: calc(var(--gutter) * -1); }

/* ---------- Provador ---------- */

.fitting-layout {
  gap: 0;
  border-top: 1px solid var(--rule);
}

.fitting-copy { padding: clamp(22px, 4vw, 52px) 0; min-width: 0; }
.fitting-preview { margin: 0; min-width: 0; align-self: start; }

.fitting-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(200px, 58vw, 300px);
  overflow: hidden;
  border-radius: 2px;
  background: radial-gradient(ellipse at 50% 42%, #fffdf9 8%, var(--beige-soft) 62%, #e4d3c4 100%);
}

.fitting-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/marca/simbolo.png") center / 58% auto no-repeat;
  opacity: .16;
  pointer-events: none;
}

.fitting-grid {
  position: absolute;
  inset: 12% -5%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #ffffffa6, transparent 68%);
  transform: translate(var(--scene-x, 0px), var(--scene-y, 0px));
  transition: transform .6s var(--ease);
  pointer-events: none;
}

.fitting-placeholder {
  max-width: 22ch;
  margin: 28px;
  color: var(--blue);
  font: italic 400 1.08rem/1.4 var(--serif);
  text-align: center;
}

.fitting-preview:not([data-renderer="idle"]) .fitting-placeholder { display: none; }
.fitting-preview:not([data-renderer="idle"]) .fitting-stage::before { opacity: .07; }
.fitting-preview[data-renderer="idle"] .fitting-fallback { display: none; }

.fitting-model, .fitting-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fitting-model { opacity: 0; pointer-events: none; --progress-bar-height: 0; transition: opacity .6s var(--ease); }
.fitting-fallback {
  object-fit: contain;
  pointer-events: none;
  transition: transform .6s var(--ease);
}

.fitting-preview[data-renderer="3d"] .fitting-model { opacity: 1; pointer-events: auto; }
.fitting-preview[data-renderer="3d"] .fitting-fallback { visibility: hidden; }
.fitting-preview[data-phase="formato"] .fitting-fallback { transform: scale(1.26); }
.fitting-preview[data-phase="lente"] .fitting-fallback { transform: translateX(-12%) scale(2); }

.fitting-stage-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 249, 245, .88);
  color: var(--blue);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.fitting-orbit { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }

.fitting-orbit button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(15, 35, 80, .35);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(251, 249, 245, .88);
  font: 400 1rem/1 var(--serif);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.fitting-orbit button:hover { background: var(--blue); color: #fff; }

.fitting-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
  padding-top: 9px;
  color: var(--muted);
  font-size: .76rem;
}

.fitting-preview figcaption small { font-size: .7rem; }
.fitting-hint { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }

@media (max-width: 739px) {
  .fitting-copy { display: contents; }
  .fitting-heading { grid-row: 1; padding: 22px 0 16px; }
  .fitting-heading h2 { margin-bottom: 0; }
  .fitting-preview { grid-row: 2; }
  #provador-form, #provador-resultado { grid-row: 3; padding-bottom: 22px; }
}

.fitting-progress { margin: 24px 0 22px; }

.provador-progress {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.fitting-progress progress {
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: var(--line);
  accent-color: var(--blue);
  -webkit-appearance: none;
  appearance: none;
}

.fitting-progress progress::-webkit-progress-bar { background: var(--line); }
.fitting-progress progress::-webkit-progress-value { background: var(--blue); transition: width .6s var(--ease); }
.fitting-progress progress::-moz-progress-bar { background: var(--blue); }

.provador-step { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }

.provador-step legend, #provador-resultado h3 {
  margin: 0 0 16px;
  padding: 0;
  font: 400 clamp(1.5rem, 3vw, 2rem)/1.15 var(--serif);
  letter-spacing: -.02em;
}

.provador-choices { display: grid; gap: 8px; }

.provador-choices label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), padding .3s var(--ease);
}

.provador-choices input {
  order: 2;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(15, 35, 80, .55);
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.provador-choices input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform .3s var(--ease);
}

.provador-choices input:checked::before { transform: scale(1); }
.provador-choices input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.provador-choices label:hover { border-color: rgba(15, 35, 80, .6); background: #fff; }
.provador-choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); padding-left: 20px; }

.provador-error { margin: 0 0 14px; color: #9a2923; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

.provador button.text-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.provador button.text-link:hover { color: var(--blue); }

.result-kicker { margin: 26px 0 10px; }
.provador-suggestion { max-width: 47ch; margin: 0 0 18px; color: var(--muted); }
.provador-summary { margin: 0 0 24px; border-top: 1px solid var(--rule); }

.provador-summary div {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
}

.provador-summary dt { color: var(--blue); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.provador-summary dd { margin: 0; font: 400 1.05rem/1.3 var(--serif); }

/* ---------- Telas muito estreitas ---------- */

@media (max-width: 350px) {
  :root { --gutter: 15px; }
  .contact { padding-inline: 11px; font-size: .72rem; }
  .card { min-height: 74px; }
  .card-body { gap: 9px; padding: 9px 11px; }
  .card-title { font-size: 1.24rem; }
  .card-description { font-size: .7rem; }
  .card-arrow { width: 26px; height: 26px; }
}

/* ---------- Tablet e desktop ---------- */

@media (min-width: 740px) {
  :root { --gutter: 48px; }
  .site-header { min-height: 78px; }
  .brand img { width: 186px; }
  .contact { min-height: 42px; padding-inline: 20px; font-size: .84rem; }
  .eyebrow { font-size: .7rem; }

  .hero {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: stretch;
    gap: clamp(28px, 5vw, 72px);
    padding-top: 18px;
  }
  .hero-copy { align-self: center; padding-block: 24px; }
  .hero-clock { width: 26px; height: 26px; }
  .hero h1 { margin: 22px 0 20px; font-size: clamp(3rem, 6.1vw, 5.6rem); line-height: .98; }
  .hero-intro { font-size: 1.05rem; }
  .hero-media { height: auto; min-height: clamp(340px, 40vw, 520px); }

  .catalogue { margin-top: clamp(40px, 5vw, 72px); }
  .catalogue > h2 { margin-bottom: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { grid-template-columns: minmax(0, 1fr) 42%; min-height: 148px; }
  .card-body { gap: 16px; padding: 20px 22px; }
  .card-title { font-size: clamp(1.7rem, 2.9vw, 2.2rem); }
  .card-description { font-size: .9rem; }
  .card-arrow { width: 38px; height: 38px; font-size: 1.1rem; }

  .bio-links { gap: 14px; margin-top: 14px; }
  .bio-links a { min-height: 56px; padding-inline: 20px; font-size: .88rem; }

  .site-footer { padding-block: 52px 40px; font-size: .8rem; }
  .footer-logo { width: 210px; }

  .editorial-hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); margin-inline: 0; }
  .editorial-copy { padding: clamp(36px, 5.5vw, 84px); }
  .editorial-hero .editorial-image { min-height: clamp(440px, 46vw, 620px); }
  .editorial--reverse .editorial-hero { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
  .editorial--reverse .editorial-image { grid-area: 1 / 1; }

  .editorial-section {
    grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
    column-gap: clamp(24px, 5vw, 72px);
  }
  .editorial-section h3 { position: sticky; top: 104px; }
  .editorial-row { min-height: 78px; padding-block: 20px; }
  .editorial-row strong { font-size: 1.45rem; }
  .editorial-secondary { grid-column: 2; }

  .service-layout {
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    gap: clamp(28px, 6vw, 88px);
    padding-top: 12px;
  }
  .service-copy { padding-block: 20px; }
  .service-view .editorial-image {
    position: sticky;
    top: 104px;
    align-self: start;
    min-height: clamp(420px, 44vw, 600px);
    margin-inline: 0;
  }

  .fitting-layout { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .fitting-copy { padding-right: clamp(24px, 6vw, 80px); }
  .fitting-preview { position: sticky; top: 104px; margin-top: clamp(22px, 4vw, 52px); }
  .fitting-stage { min-height: clamp(380px, 40vw, 520px); }
  .provador-choices label { min-height: 60px; padding-inline: 20px; }
}

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { display: flex; flex-direction: column; min-height: 0; }
  .card-media { order: 0; aspect-ratio: 4 / 4.6; }
  .card-body { flex: 1; align-items: start; gap: 14px; padding: 20px 20px 22px; }
  .card-title { font-size: clamp(1.6rem, 2.1vw, 2rem); }
  .card-arrow { align-self: center; }
}

/* ---------- Movimento ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes curtain {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0); }
  }

  @keyframes settle {
    from { transform: scale(1.14); }
    to { transform: scale(1); }
  }

  @keyframes tick {
    to { transform: rotate(calc(var(--a, 0) * 1deg + 360deg)); }
  }

  .hero-copy > *,
  .editorial-copy > *,
  .service-copy > .eyebrow,
  .service-copy > h2,
  .service-copy > .editorial-lead,
  .fitting-heading > *,
  .editorial-back {
    animation: rise .8s var(--ease) both;
  }

  .hero-copy > :nth-child(2), .editorial-copy > :nth-child(2), .service-copy > h2, .fitting-heading > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3), .editorial-copy > :nth-child(3), .service-copy > .editorial-lead { animation-delay: 160ms; }
  .editorial-copy > :nth-child(4) { animation-delay: 240ms; }

  .hero-media, .editorial-image, .fitting-stage { animation: curtain 1.1s cubic-bezier(.7, 0, .2, 1) 120ms both; }
  .hero-photo, .editorial-image img { animation: settle 1.6s var(--ease) 120ms both; }

  .hero-clock .hand-s { animation: tick 60s linear infinite; }
  .hero-clock .hand-m { animation: tick 3600s linear infinite; }
  .hero-clock .hand-h { animation: tick 43200s linear infinite; }

  .provador-step:not([hidden]) .provador-choices label { animation: rise .55s var(--ease) both; }
  .provador-step .provador-choices label:nth-child(2) { animation-delay: 50ms; }
  .provador-step .provador-choices label:nth-child(3) { animation-delay: 100ms; }
  .provador-step .provador-choices label:nth-child(4) { animation-delay: 150ms; }
  .provador-step .provador-choices label:nth-child(5) { animation-delay: 200ms; }
  .provador-step:not([hidden]) legend, #provador-resultado:not([hidden]) > * { animation: rise .6s var(--ease) both; }

  /* Revelação na rolagem: ativada por motion.js */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js .reveal.is-in { opacity: 1; transform: none; }

  ::view-transition-old(root) { animation: vt-out .28s ease both; }
  ::view-transition-new(root) { animation: vt-in .4s ease both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .editorial-hero .editorial-image img, .hero-photo {
      animation: settle 1.6s var(--ease) 120ms both, depth linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% exit 100%;
      height: 112%;
      top: -6%;
    }

    @keyframes depth {
      from { translate: 0 -4%; }
      to { translate: 0 4%; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Movimento v2.1: shimmer nos CTAs, feixe de luz no título
   e mais vida nas telas. Tudo dentro de no-preference.
   ========================================================== */

.button, .contact { position: relative; overflow: hidden; isolation: isolate; }
.editorial-copy { position: relative; overflow: hidden; }
.editorial-copy > * { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  /* Shimmer nos botões de CTA */
  .button::after, .contact::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 1;
    background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .42) 50%, transparent 66%);
    transform: translateX(-130%);
    animation: shimmer 3.6s ease-in-out 1s infinite;
    pointer-events: none;
  }

  .contact::after { background: linear-gradient(105deg, transparent 34%, rgba(15, 35, 80, .2) 50%, transparent 66%); animation-delay: 2.2s; }
  .contact:hover::after { background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .4) 50%, transparent 66%); }
  #optica .editorial-hero .button::after, #manutencoes .editorial-hero .button::after { background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .7) 50%, transparent 66%); }

  @keyframes shimmer {
    0% { transform: translateX(-130%); }
    45%, 100% { transform: translateX(130%); }
  }

  @media (hover: hover) {
    .button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(32, 40, 49, .55); }
    .button { transition: background-color .3s var(--ease), color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
  }

  /* Título da Bio: entrada lenta e discreta, sem desfoque nem brilho */
  @keyframes title-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  .hero .hero-copy h1 { animation: title-in 1.8s cubic-bezier(.25, .1, .25, 1) .15s both; }
  .hero .hero-copy h1 em { animation: title-in 1.8s cubic-bezier(.25, .1, .25, 1) .45s both; }

  /* Entradas mais marcadas */
  @keyframes rise {
    from { opacity: 0; transform: translateY(36px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  @keyframes track {
    from { letter-spacing: .6em; opacity: 0; }
    to { letter-spacing: .24em; opacity: 1; }
  }

  @keyframes draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .hero-top .eyebrow, .editorial-copy > .eyebrow, .service-copy > .eyebrow, .fitting-heading > .eyebrow {
    animation: track 1.2s var(--ease) both;
  }

  .hero-clock { animation: rise .8s var(--ease) both, sway 7s ease-in-out 1s infinite; }
  @keyframes sway {
    0%, 100% { rotate: -6deg; }
    50% { rotate: 6deg; }
  }

  .catalogue > h2::after { transform-origin: left; animation: draw 1.4s var(--ease) .5s both; }
  .editorial-list { position: relative; border-top-color: transparent; }
  .editorial-list::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: var(--rule);
    transform-origin: left;
    animation: draw 1.2s var(--ease) .3s both;
  }

  /* Fotos sempre em leve movimento */
  @keyframes drift {
    from { scale: 1; }
    to { scale: 1.07; }
  }

  .hero-photo, .editorial-image img {
    animation: settle 1.6s var(--ease) 120ms both, drift 14s ease-in-out 1.8s infinite alternate;
  }

  .card-photo { animation: drift 11s ease-in-out infinite alternate; }
  .card:nth-child(2) .card-photo { animation-delay: -3s; }
  .card:nth-child(3) .card-photo { animation-delay: -6s; }
  .card:nth-child(4) .card-photo { animation-delay: -9s; }

  /* A foto do cartão acompanha o cursor (motion.js define --px e --py) */
  @media (hover: hover) {
    .card:hover .card-photo {
      transform: scale(1.1) translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px));
      transition: transform .5s var(--ease);
    }
  }

  /* Setas que convidam ao clique */
  @keyframes nudge {
    0%, 70%, 100% { translate: 0 0; }
    82% { translate: 5px 0; }
  }

  .card-arrow, .row-arrow { animation: nudge 3.2s var(--ease) infinite; }
  .card:nth-child(2) .card-arrow, li:nth-child(2) .row-arrow { animation-delay: .25s; }
  .card:nth-child(3) .card-arrow, li:nth-child(3) .row-arrow { animation-delay: .5s; }
  .card:nth-child(4) .card-arrow, li:nth-child(4) .row-arrow { animation-delay: .75s; }

  /* Revelação na rolagem com mais percurso */
  .js .reveal {
    transform: translateY(48px) scale(.97);
    filter: blur(6px);
    transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js .reveal.is-in { filter: none; }
  .js .editorial-list > li.reveal { transform: translateX(-36px); }
  .js .editorial-list > li.reveal.is-in { transform: none; }

  /* Luz suave que atravessa os painéis de cor */
  .editorial-copy::before {
    content: "";
    position: absolute;
    inset: -40% -30%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%);
    animation: glow 12s ease-in-out infinite alternate;
    pointer-events: none;
  }

  @keyframes glow {
    from { transform: translate(-28%, -18%); }
    to { transform: translate(30%, 22%); }
  }

  /* Marca em movimento: pattern do rodapé e monograma do provador */
  .site-footer::before { animation: pattern 60s linear infinite; }
  @keyframes pattern {
    to { background-position: calc(50% + 460px) 50%; }
  }

  .fitting-stage::before { animation: float 9s ease-in-out infinite alternate; }
  @keyframes float {
    from { transform: translateY(-8px) scale(1); }
    to { transform: translateY(8px) scale(1.05); }
  }

  .fitting-model, .fitting-fallback { animation: hover-y 6s ease-in-out infinite alternate; }
  @keyframes hover-y {
    from { translate: 0 -5px; }
    to { translate: 0 5px; }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .editorial-hero .editorial-image img, .hero-photo {
      animation: settle 1.6s var(--ease) 120ms both, drift 14s ease-in-out 1.8s infinite alternate, depth linear both;
      animation-timeline: auto, auto, view();
      animation-range: normal, normal, entry 0% exit 100%;
    }
  }
}

/* ==========================================================
   Movimento v2.2: cada CTA com um efeito próprio.
   · Shimmer: botões das aberturas de Relógios e Joias.
   · Linha de luz na borda: "Fale com a Clock", "Começar o provador"
     e os botões das páginas de manutenção.
   · Seta em ciclo: "Continuar" do provador.
   · Halo pulsante: "Conversar com a Clock" no resumo do provador.
   ========================================================== */

@property --orbit {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@media (prefers-reduced-motion: no-preference) {
  /* Linha de luz percorrendo a borda */
  .contact, #optica .editorial-hero .button, .service-copy > .button {
    --beam: #fff;
    --beam-soft: rgba(255, 255, 255, .25);
  }

  .contact::before, #optica .editorial-hero .button::before, .service-copy > .button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--orbit), transparent 0 58%, var(--beam-soft) 72%, var(--beam) 94%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: orbit 3.2s linear infinite;
    pointer-events: none;
  }

  @keyframes orbit {
    to { --orbit: 360deg; }
  }

  .contact {
    --beam: var(--blue);
    --beam-soft: rgba(15, 35, 80, .2);
    border-color: rgba(15, 35, 80, .28);
  }

  .contact::before { inset: -1px; padding: 1.5px; }
  .contact:hover { --beam: #fff; --beam-soft: rgba(255, 255, 255, .3); border-color: var(--blue); }

  #optica .editorial-hero .button { --beam: var(--blue); --beam-soft: rgba(15, 35, 80, .25); }
  #optica .editorial-hero .button::before { animation-duration: 2.8s; }
  .service-copy > .button::before { animation-duration: 3.6s; }

  /* Seta em ciclo no "Continuar" do provador */
  #provador-form .button span { animation: arrow-loop 2.2s var(--ease) infinite; }

  @keyframes arrow-loop {
    0%, 55% { transform: translateX(0); opacity: 1; }
    72% { transform: translateX(16px); opacity: 0; }
    73% { transform: translateX(-16px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }

  /* Halo pulsante no CTA final do provador */
  #provador-resultado .button { overflow: visible; animation: halo 2.4s ease-out .8s infinite; }

  @keyframes halo {
    0% { box-shadow: 0 0 0 0 rgba(15, 35, 80, .45); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(15, 35, 80, 0); }
  }
}

/* ==========================================================
   Movimento v2.3: abertura da primeira visita.
   Uma cortina marfim com o monograma sobe e, só então, textos,
   fotos e botões entram em sequência. Aparece uma vez por sessão.
   ========================================================== */

.intro-curtain { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Enquanto a cortina está na tela, o resto aguarda no ponto de partida. */
  .intro *, .intro *::before, .intro *::after { animation-play-state: paused !important; }
  .intro .intro-curtain, .intro .intro-curtain * { animation-play-state: running !important; }

  .intro-play .intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 22px;
    background: var(--ivory);
    pointer-events: none;
    animation: curtain-up 1s cubic-bezier(.76, 0, .24, 1) 1.15s both;
  }

  .intro-curtain img {
    width: clamp(84px, 16vw, 132px);
    height: auto;
    animation: mark-in .9s var(--ease) both, mark-out .5s ease 1s forwards;
  }

  .intro-line {
    width: clamp(120px, 22vw, 180px);
    height: 1px;
    background: var(--blue);
    transform-origin: left;
    animation: draw .95s cubic-bezier(.65, 0, .35, 1) .15s both, mark-out .4s ease 1s forwards;
  }

  @keyframes mark-in {
    from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  @keyframes mark-out {
    to { opacity: 0; }
  }

  @keyframes curtain-up {
    from { transform: translateY(0); }
    to { transform: translateY(-101%); visibility: hidden; }
  }

  /* Cabeçalho: logo e botão descem com suavidade. */
  @keyframes drop {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: none; }
  }

  .brand { animation: drop 1s var(--ease) .05s both; }
  .contact { animation: drop 1s var(--ease) .18s both; }

  /* Título em dois tempos: a segunda linha chega logo depois da primeira. */
  @keyframes line-in {
    from { opacity: 0; transform: translateY(.5em); }
    to { opacity: 1; transform: none; }
  }

  .hero-copy > .hero-intro { animation-delay: .42s; }
  .hero-media { animation-delay: .25s; }

  /* Botões das páginas internas chegam por último, com leve escala. */
  @keyframes button-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: none; }
  }

  .editorial-copy > .button { animation: button-in .9s var(--ease) .42s both; }
  #provador-form .actions { animation: button-in .9s var(--ease) .35s both; }
}

/* ==========================================================
   Movimento v2.4: contenção.
   · Todas as entradas seguem o título: fade lento e deslize curto,
     sem desfoque, sem escala.
   · Um único efeito contínuo por tela: a linha de luz no CTA principal.
     O restante só se move quando o cursor passa por cima.
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {
  :root { --soft: cubic-bezier(.25, .1, .25, 1); }

  /* ----- Entradas ----- */
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes track {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes curtain {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes settle {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
  }

  @keyframes button-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes drop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes mark-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  .hero-copy > *,
  .editorial-copy > *,
  .service-copy > .eyebrow,
  .service-copy > h2,
  .service-copy > .editorial-lead,
  .fitting-heading > *,
  .editorial-back,
  .hero-top .eyebrow,
  .editorial-copy > .eyebrow,
  .service-copy > .eyebrow,
  .fitting-heading > .eyebrow,
  .editorial-copy > .button,
  #provador-form .actions,
  .brand,
  .contact {
    animation-duration: 1.5s;
    animation-timing-function: var(--soft);
  }

  .hero-clock { animation: rise 1.5s var(--soft) both; }

  .hero-media, .editorial-image, .fitting-stage {
    animation-duration: 1.8s;
    animation-timing-function: var(--soft);
  }

  .hero-photo, .editorial-image img { animation: settle 2.6s var(--soft) 120ms both; }

  .js .reveal,
  .js .editorial-list > li.reveal {
    transform: translateY(12px);
    filter: none;
    transition: opacity 1.3s var(--soft), transform 1.3s var(--soft);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  /* ----- Efeitos contínuos desligados ----- */
  .card-photo,
  .card-arrow, .row-arrow,
  .site-footer::before,
  .fitting-stage::before,
  .fitting-model, .fitting-fallback,
  #provador-form .button span { animation: none; }

  .editorial-copy::before { content: none; }

  #provador-resultado .button { overflow: hidden; animation: none; }

  /* Brilho só ao passar o cursor, uma única vez */
  .button::after, .contact::after { animation: none; }

  @keyframes sweep {
    from { transform: translateX(-130%); }
    to { transform: translateX(130%); }
  }

  @media (hover: hover) {
    .button:hover::after, .contact:hover::after { animation: sweep 1.1s var(--soft) 1; }
  }

  /* ----- Linha de luz: só no CTA principal de cada tela ----- */
  .editorial-hero .button, .service-copy > .button, #provador-resultado .button {
    --beam: #fff;
    --beam-soft: rgba(255, 255, 255, .25);
  }

  #optica .editorial-hero .button, #manutencoes .editorial-hero .button {
    --beam: var(--blue);
    --beam-soft: rgba(15, 35, 80, .25);
  }

  .editorial-hero .button::before, #provador-resultado .button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--orbit), transparent 0 58%, var(--beam-soft) 72%, var(--beam) 94%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
  }

  .contact::before,
  .editorial-hero .button::before,
  #optica .editorial-hero .button::before,
  .service-copy > .button::before,
  #provador-resultado .button::before { animation: orbit 5.5s linear infinite; }

  /* Fora da tela inicial, o botão do cabeçalho fica em repouso. */
  body:has(#inicio[hidden]) .contact::before { content: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .editorial-hero .editorial-image img, .hero-photo {
      animation: settle 2.6s var(--soft) 120ms both, depth linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% exit 100%;
    }
  }
}

/* ==========================================================
   Relógios: vídeo explodido conduzido pela rolagem.
   O palco fica fixo enquanto a rolagem avança os quadros
   (pecas-scroll.js). O branco do vídeo vira marfim por multiply.
   ========================================================== */

.watch-scroll { display: none; }

.js .watch-scroll {
  --head: 62px;
  display: block;
  position: relative;
  height: 290vh;
  height: 290svh;
  margin: -40px calc(50% - 50vw) clamp(28px, 4vw, 56px);
}

#relogios > .editorial-back { position: relative; z-index: 2; }

.watch-stage {
  position: sticky;
  top: var(--head);
  height: calc(100vh - var(--head));
  height: calc(100svh - var(--head));
  overflow: hidden;
  /* Luz de estúdio: branco atrás do relógio preserva a cor do metal. */
  background: radial-gradient(closest-side, #fff 0 50%, var(--ivory) 100%) var(--ivory);
}

.watch-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}

.watch-progress {
  position: absolute;
  bottom: clamp(22px, 4vh, 40px);
  left: 50%;
  width: 120px;
  height: 1px;
  margin-left: -60px;
  background: var(--line);
}

.watch-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

@media (min-width: 740px) {
  .js .watch-scroll { --head: 78px; height: 340vh; height: 340svh; }
}

@media (prefers-reduced-motion: no-preference) {
  /* A entrada do relógio é feita em pecas-scroll.js; a linha surge no fim dela. */
  .watch-progress { opacity: 0; transition: opacity 1.2s cubic-bezier(.25, .1, .25, 1); }
  .watch-scroll.is-in .watch-progress { opacity: 1; }
}

/* Movimento reduzido: só o quadro final, sem percurso de rolagem. */
@media (prefers-reduced-motion: reduce) {
  .js .watch-scroll { height: auto; }
  .watch-stage { position: relative; top: 0; height: min(60vh, 56vw); }
  .watch-progress { display: none; }
}

/* Abrir direto por #pagina não esconde o topo atrás do cabeçalho fixo. */
.view { scroll-margin-top: 120px; }

/* Vídeo da entrada do relógio: posicionado e animado por pecas-scroll.js. */
.watch-entry {
  position: absolute;
  max-width: none;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform, opacity;
}

/* O cabeçalho desfocado custa caro a cada quadro do relógio; aqui ele fica liso. */
body:has(#relogios:not([hidden])) .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--ivory);
}
