:root {
  /* Fontclair palette */
  --tyrian: #0D2B52;     /* logo, title, body text */
  --poel: #003E83;       /* headings, prices */
  --helvetia: #0057BA;   /* header line, accent */
  --medici: #417777;     /* subtitle, small print */
  --tint: #DCE6F7;       /* table header fills */
  --tint-soft: #EEF3FB;  /* highlight box background */
  --soft: #A9BFE3;       /* borders, table lines */

  --bg: #FFFFFF;
  --fg: var(--tyrian);
  --muted: var(--medici);
  --line: var(--soft);
  --accent: var(--helvetia);

  --sans: "Nunito Sans", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.2vw, 28px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--tint); color: var(--tyrian); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--tyrian); color: #fff; padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh; min-height: 520px;
  display: grid; place-items: center;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}
.hero__gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: pan-y;
}
.hero__mark { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero__mark img {
  width: min(62vw, 1000px); height: auto;
  transition: opacity .9s var(--ease-out);
}
.gl-ready .hero__mark img { opacity: 0; }

.hero__line {
  position: absolute; left: 50%; bottom: clamp(88px, 16vh, 160px);
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  margin: 0; text-align: center;
  font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; color: var(--tyrian);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3em .7em;
  z-index: 2;
}
.dot-link { display: inline-flex; align-items: baseline; gap: .4em; white-space: nowrap; padding: 6px 0; font-weight: 600; color: var(--accent); }
.dot-link .dot {
  align-self: center;
  width: .5em; height: .5em; border-radius: 50%; background: var(--accent);
  transition: transform .35s var(--ease-out);
}
.dot-link:hover .dot { transform: scale(1.5); }

.hero__hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  margin: 0; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity 1.2s var(--ease-out) .6s;
}
.gl-ready .hero__hint { opacity: 1; }
.hint-done .hero__hint { opacity: 0; transition-delay: 0s; }

/* ── Contact ─────────────────────────────────────────── */
.contact {
  min-height: 90svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px var(--gutter);
  background: var(--tint-soft);
  border-top: 1px solid var(--line);
}
.contact__eyebrow { margin: 0 0 28px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__title {
  margin: 0; font-weight: 800; color: var(--poel);
  font-size: clamp(40px, 7.4vw, 112px);
  line-height: 1; letter-spacing: -0.03em; text-wrap: balance; max-width: 14ch;
}
.contact__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.contact__mail {
  margin-top: 48px; font-size: clamp(20px, 2.6vw, 32px); font-weight: 600; color: var(--tyrian);
  padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  transition: background-size .45s var(--ease-out), color .2s;
}
.contact__mail:hover { color: var(--accent); background-size: 0% 2px; background-position: 100% 100%; }
.contact__note { margin: 28px 0 0; max-width: 40ch; color: var(--muted); font-size: 17px; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.4; color: var(--muted);
}
.foot a:hover { color: var(--accent); }

/* ── Small screens ──────────────────────────────────── */
@media (max-width: 640px) {
  .hero__line { flex-direction: column; align-items: center; }
  .hero__mark img { width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
