/*
 * courtesy-fade.css: styles of the courtesy page variants (full-page photos with a slow fade).
 * Based on «Under construction» by Nenad Milosevic (https://codepen.io/nndmlsvc/pen/WoEpYX), MIT License.
 * System fonts only, so no visitor data goes to a font service.
 * requested_by: Giangiacomo
 * created_by: Vera
 * machine: Nerone
 * created: 2026-11-02
 * purpose: session 0143N point 64: shared styles of the courtesy page variants.
 */
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .8);
  --veil: rgba(10, 12, 16, .55);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fade: 3.5s;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #1b1e24;
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
}
.bg {
  position: fixed;
  inset: 0;
  background-color: #1b1e24;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity var(--fade) ease-in-out;
}
.bg.is-visible { opacity: 1; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.veil { position: fixed; inset: 0; background: var(--veil); }
.veil--gradient { background: linear-gradient(180deg, rgba(10,12,16,.25) 0%, rgba(10,12,16,.35) 45%, rgba(10,12,16,.8) 100%); }
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}
.stage--bottom { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 32px clamp(16px, 6vw, 72px) clamp(32px, 8vh, 80px); }
/* The reading measure sits on the section container, never on the text (web-design-system §15.1). */
.wrap { width: min(100%, 780px); }
.logo { width: clamp(150px, 26vw, 260px); height: auto; margin-bottom: clamp(24px, 5vh, 48px); opacity: .95; }
.title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(40px, 9vw, 104px);
  letter-spacing: .02em;
  line-height: 1.02;
}
.title--serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.title--small { font-size: clamp(32px, 6vw, 72px); }
.lead {
  margin: clamp(16px, 3vh, 28px) 0 0;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
}
.domain {
  margin-top: clamp(28px, 6vh, 56px);
  font-size: 12px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.line { transition: opacity 1.2s ease, transform 1.2s ease; }
.line.is-leaving { opacity: 0; transform: translateY(8px); }
.signature {
  position: fixed;
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vh, 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-decoration: none;
}
.signature img { width: 96px; height: auto; }
.breath {
  width: clamp(110px, 18vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
  margin: 0 auto clamp(24px, 5vh, 44px);
  animation: breathe var(--cycle, 10s) ease-in-out infinite;
}
.breath span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
@keyframes breathe { 0%, 100% { transform: scale(.82); background: rgba(255,255,255,.02); } 50% { transform: scale(1.08); background: rgba(255,255,255,.1); } }
@media (max-width: 480px) {
  .signature img { width: 76px; }
  .breath span { font-size: 10px; letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  .bg, .line { transition: none; }
  .bg.is-visible, .breath { animation: none; }
}
