@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14284b;
  --navy-deep: #0c1a34;
  --navy-soft: #24406f;
  --gold: #b8924a;
  --gold-bright: #d2ad63;
  --gold-ink: #7d5f24;
  --paper: #fbfaf7;
  --sand: #f2eee4;
  --line: #ddd5c3;
  --ink: #18223a;
  --ink-soft: #49546c;
  --on-navy: #f4f0e6;
  --on-navy-soft: #c3cbdc;
  --it-green: #1f8a4c;
  --it-red: #c8102e;
  --error: #a3231f;

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --text: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold) var(--sand);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--navy);
  caret-color: var(--gold-ink);
}

::selection { background: var(--navy); color: var(--on-navy); }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--on-navy);
  padding: 0.75rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Bodoni Moda's display cut has hairlines that vanish on screens, so the optical size is pinned low
   (sturdier strokes) instead of following the font size. */
h1, h2, .review-title, .brand-name, .step-n, .contact-form h3 {
  font-family: var(--display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 22;
}
h1, h2 {
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--navy); }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; color: var(--navy); }

.section { padding-block: var(--section); }
.section-lead {
  --d: 0.08s;
  margin-top: 1rem;
  max-width: 56ch;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold-bright); color: var(--navy-deep); }
.btn-gold:hover { background: #e2c07a; box-shadow: 0 10px 24px -12px rgba(12, 26, 52, 0.55); transform: translateY(-1px); }

.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-soft); box-shadow: 0 10px 24px -12px rgba(12, 26, 52, 0.6); transform: translateY(-1px); }

.btn-ghost { color: var(--on-navy); border-color: rgba(244, 240, 230, 0.5); }
.btn-ghost:hover { background: rgba(244, 240, 230, 0.12); border-color: var(--on-navy); }
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}
/* Scroll progress as a small tricolore. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--it-green) 0 33.34%, #fff 33.34% 66.67%, var(--it-red) 66.67%);
  box-shadow: 0 1px 2px rgba(12, 26, 52, 0.25);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  pointer-events: none;
}
.site-header.is-scrolled { box-shadow: 0 14px 30px -22px rgba(12, 26, 52, 0.55); }
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; }
.brand-name {
  font-size: 1.3rem; font-weight: 620;
  font-variation-settings: "opsz" 12;
  letter-spacing: 0.005em; color: var(--navy); white-space: nowrap;
}
.brand-name span { color: var(--gold-ink); }

.site-nav { display: flex; gap: clamp(0.85rem, 1.8vw, 1.9rem); }
.site-nav a {
  position: relative; padding-block: 0.5rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 0.9rem; }

.langs { display: flex; gap: 0.3rem; }
.langs button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.langs svg {
  width: 28px; height: 20px; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(24, 34, 58, 0.18);
  opacity: 0.5; filter: saturate(0.6);
  transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s;
}
.langs button:hover svg { opacity: 0.85; filter: none; }
.langs button[aria-pressed="true"] svg {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 3px var(--gold);
}

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.bars { position: relative; margin-inline: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  background: var(--navy-deep);
  color: var(--on-navy);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 26, 52, 0.94) 0%, rgba(12, 26, 52, 0.8) 38%, rgba(12, 26, 52, 0.25) 72%, rgba(12, 26, 52, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 26, 52, 0.55) 0%, rgba(12, 26, 52, 0) 40%);
}
.hero-body { padding-block: clamp(2rem, 6vh, 6rem) clamp(5.5rem, 13vh, 9rem); }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-variation-settings: "opsz" 30;
  line-height: 1.04;
  color: #fff;
}
.hero h1 em { font-style: italic; font-weight: 520; color: var(--gold-bright); }
.hero-lead {
  margin-top: clamp(1rem, 3vh, 1.5rem); max-width: 50ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 450;
  color: var(--on-navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(1.5rem, 4vh, 2.25rem); }
.hero-note { margin-top: clamp(1rem, 2.5vh, 1.5rem); font-size: 0.9375rem; color: var(--on-navy-soft); }

.ribbon {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0;
  width: 100%; height: clamp(64px, 9vw, 130px);
  overflow: visible; pointer-events: none;
}
/* Once the script takes over, the three strokes become filled bands it redraws every frame. */
.ribbon.is-live path { stroke: none; stroke-dasharray: none; animation: none; }
.ribbon.is-live .r-green { fill: var(--it-green); }
.ribbon.is-live .r-white { fill: #fbfaf7; }
.ribbon.is-live .r-red { fill: var(--it-red); }
.ribbon-top { top: -1px; bottom: auto; }
.hero .btn-gold { position: relative; overflow: hidden; }
.hero .btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); pointer-events: none;
}
.ribbon path { fill: none; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.r-green { stroke: var(--it-green); }
.r-white { stroke: #fbfaf7; }
.r-red { stroke: var(--it-red); }

/* Services */
.services-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(12, 26, 52, 0.55); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo-docs { aspect-ratio: 4 / 4.4; }
.photo-borgo { aspect-ratio: 4 / 3.2; margin-top: 2.25rem; }
.photo-colemar { aspect-ratio: 4 / 5; }
.photo-colemar img { object-position: 50% 12%; }

.service-list { margin-top: 2.25rem; }
.service-list li {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.1rem; align-items: start;
  padding-block: 1.35rem; border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list svg { width: 2.25rem; height: 2.25rem; color: var(--gold-ink); margin-top: 0.1rem; }
.service-list p { margin-top: 0.3rem; color: var(--ink-soft); max-width: 48ch; }

/* Steps */
.steps-section { background: var(--sand); }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  gap: var(--gap); margin-top: 3.5rem;
  position: relative;
}
.steps::before, .steps::after {
  content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: calc(25% - 0.75 * var(--gap) - 1.6rem);
  height: 2px; background: var(--line);
}
.steps::after {
  background: var(--gold); transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.js .steps:not(.is-in)::after { transform: scaleX(0); }
.steps li { position: relative; z-index: 1; }
.step-n {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  font-size: 1.4rem; font-weight: 650; font-variation-settings: "opsz" 12;
  box-shadow: 0 0 0 6px var(--sand);
}
.steps h3 { margin-top: 1.4rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-soft); }

/* Reviews */
.stars { width: 6.25rem; height: 1.25rem; color: var(--gold); }
.review blockquote p { color: var(--ink); max-width: 62ch; }
.review figcaption { margin-top: 1rem; font-size: 1rem; }
.review figcaption strong { color: var(--navy); font-weight: 650; }
.review-title { margin-top: 0.9rem; }
.review-grid .review-title {
  font-family: var(--text); font-variation-settings: normal;
  font-size: 1.125rem; font-weight: 650; line-height: 1.3; color: var(--navy);
}

.review-lead {
  margin-top: 3rem; padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
}
.review-lead .stars { color: var(--gold-bright); }
.review-lead .review-title {
  margin-top: 1.1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 560; line-height: 1.12;
  letter-spacing: -0.012em; color: #fff; text-wrap: balance;
}
.review-lead blockquote { margin-top: 1.1rem; }
.review-lead blockquote p {
  font-size: 1.1875rem; line-height: 1.7; font-weight: 450; color: var(--on-navy);
  text-wrap: pretty;
}
.review-lead figcaption { margin-top: 1.4rem; }
.review-lead figcaption strong { color: var(--gold-bright); }

.review-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: 1.5rem;
}
.review-grid .review { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.review-grid blockquote { margin-top: 0.5rem; }

/* About */
.about { background: var(--sand); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.about p { margin-top: 1.25rem; max-width: 54ch; font-size: 1.1875rem; color: var(--ink-soft); }
.ticks { margin-block: 1.75rem 2.25rem; display: grid; gap: 0.8rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; font-weight: 600; color: var(--ink); }
.ticks svg { width: 1.5rem; height: 1.5rem; color: var(--it-green); margin-top: 0.15rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 1.3rem 3rem 1.3rem 0;
  font-size: 1.125rem; font-weight: 650; color: var(--navy);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%;
  width: 16px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--gold-ink);
  transition: transform 0.35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--navy-soft); }
.faq details p { padding-bottom: 1.4rem; max-width: 60ch; color: var(--ink-soft); }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: calc(var(--section) + 2rem) var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.contact-copy p { margin-top: 1.25rem; max-width: 40ch; font-size: 1.1875rem; font-weight: 450; color: var(--on-navy); }
.contact-copy .btn { margin-top: 2rem; }
.contact-copy .contact-phone { margin-top: 1.25rem; font-size: 1.0625rem; color: var(--on-navy-soft); font-variant-numeric: tabular-nums; }
.contact-phone a { text-decoration-color: rgba(210, 173, 99, 0.6); text-underline-offset: 4px; }
.contact-phone a:hover { color: #fff; text-decoration-color: var(--gold-bright); }
.contact-copy .contact-ig { margin-top: 0.6rem; font-size: 1.0625rem; color: var(--on-navy-soft); }
.contact-ig a, .footer-ig { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.contact-ig svg, .footer-ig svg { width: 1.2rem; height: 1.2rem; }
.contact-ig a:hover { color: #fff; }
.footer-ig { font-weight: 600; color: var(--navy); }
.footer-ig svg { color: var(--gold-ink); }
.footer-ig:hover { color: var(--gold-ink); }

.contact-form {
  background: var(--paper); color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.contact-form h3 { font-weight: 600; font-size: 1.6rem; font-variation-settings: "opsz" 16; letter-spacing: -0.005em; }
.field { margin-top: 1.25rem; }
.field label, .field legend { display: block; font-size: 0.9375rem; font-weight: 650; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field textarea {
  width: 100%; margin-top: 0.45rem; padding: 0.8rem 0.95rem;
  background: #fff; border: 1.5px solid #b9b2a1; border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder { color: #6b7386; }
.field input:hover, .field textarea:hover { border-color: var(--navy-soft); }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.4); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.55rem; }
.choices label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.4rem 1rem; border: 1.5px solid #b9b2a1; border-radius: 999px;
  font-weight: 500; color: var(--ink); cursor: pointer; background: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}
.choices label:hover { border-color: var(--navy-soft); }
.choices label:has(input:checked) { border-color: var(--navy); background: #eef1f7; }
.choices input { width: 1.05rem; height: 1.05rem; margin: 0; }
.contact-form .btn { margin-top: 1.6rem; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; }
.form-status[data-state="ok"] { background: #e7f3ec; color: #14532d; }
.form-status[data-state="fail"] { background: #fbeceb; color: var(--error); }
.form-wa {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; margin-top: 0.75rem; padding: 0.3rem 0;
  background: none; border: 0; cursor: pointer;
  font-weight: 650; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
}
.form-wa svg { width: 1.15rem; height: 1.15rem; color: var(--it-green); }
.form-wa:hover { color: var(--gold-ink); }
.form-note { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--paper); padding-block: 3.5rem 6.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.footer-logo { width: 190px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer nav a { font-weight: 600; text-decoration: none; padding-block: 0.4rem; }
.site-footer nav a:hover { color: var(--gold-ink); }
.footer-contact { display: grid; gap: 0.5rem; justify-items: end; color: var(--ink-soft); font-size: 0.9375rem; }
.footer-wa { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; color: var(--navy); text-decoration: none; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.footer-wa svg { width: 1.2rem; height: 1.2rem; color: var(--it-green); }
.footer-wa:hover { color: var(--gold-ink); }

/* Floating WhatsApp */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #1c9a55; color: #fff;
  box-shadow: 0 14px 28px -10px rgba(12, 26, 52, 0.6);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1c9a55; opacity: 0; pointer-events: none;
}
.fab svg { width: 30px; height: 30px; }
.fab:hover { transform: translateY(-3px) scale(1.04); background: #178548; }

/* Motion. The hero is the authored moment: the photo settles, the copy rises, the ribbon draws and keeps
   swaying like a flag. Below it, each section arrives in its own material: photographs settle, lists
   step in, the steps line fills, stars wipe, ticks draw. Everything is visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: settle 2.4s var(--ease) both; }
  .hero h1, .hero-lead, .hero-actions, .hero-note { animation: rise 1.1s var(--ease) both; }
  .hero-lead { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.22s; }
  .hero-note { animation-delay: 0.32s; }

  .ribbon path { stroke-dasharray: 1; }
  .ribbon .r-green { animation: draw 2.2s var(--ease) 0.35s both, sway 6s ease-in-out 2.6s infinite alternate; }
  .ribbon .r-white { animation: draw 2.2s var(--ease) 0.5s both, sway 7s ease-in-out 2.9s infinite alternate; }
  .ribbon .r-red { animation: draw 2.2s var(--ease) 0.65s both, sway 8s ease-in-out 3.2s infinite alternate; }
  .hero.is-away .ribbon path { animation-play-state: paused; }

  @supports (animation-timeline: scroll()) {
    .hero-photo { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-body { animation: recede linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }

  .js [data-reveal], .js [data-stagger] > * {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-stagger] > * { --d: calc(var(--i, 0) * 90ms); }
  .js [data-reveal="up"]:not(.is-in), .js [data-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }

  .js [data-reveal="photo"] { transition-duration: 1.1s; }
  .js [data-reveal="photo"]:not(.is-in) { opacity: 0; transform: translateY(28px) scale(0.97); }
  .js [data-reveal="photo"] img { transition: transform 1.8s var(--ease); }
  .js [data-reveal="photo"]:not(.is-in) img { transform: scale(1.14); }

  /* Steps arrive in order, in time with the line. */
  .js .steps[data-stagger] > * { --d: calc(var(--i, 0) * 360ms); }
  .js .steps .step-n { transition: transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
  .js .steps:not(.is-in) .step-n { transform: scale(0.4); }

  .js .review .stars { transition: clip-path 1.1s var(--ease) 0.35s; clip-path: inset(0); }
  .js .review-lead:not(.is-in) .stars, .js .review-grid:not(.is-in) .stars { clip-path: inset(0 100% 0 0); }

  .js .ticks svg {
    stroke-dasharray: 1; stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 0.3s);
  }
  .js .ticks:not(.is-in) svg { stroke-dashoffset: 1; }

  .hero .btn-gold::after { animation: shine 1.1s var(--ease) 2.4s 1 both; }
  .site-nav.is-open { animation: menu-in 0.35s var(--ease) both; }
  .fab::before { animation: pulse 2.6s var(--ease) 3.5s 3; }
  .fab:hover svg { animation: nudge 0.6s var(--ease); }

  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }

  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
}
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sway { from { transform: translateY(-2px); } to { transform: translateY(5px); } }
@keyframes drift { to { transform: translateY(16%); } }
@keyframes recede { to { opacity: 0.15; transform: translateY(-36px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes shine { to { transform: translateX(120%); } }
@keyframes nudge { 40% { transform: rotate(-12deg) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 980px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(12, 26, 52, 0.4);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 0.9rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 860px) {
  .services-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .photo-docs { aspect-ratio: 4 / 3; }
  .photo-borgo { display: none; }
  .photo-colemar { aspect-ratio: 4 / 4.4; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 2.5rem; }
  .steps::before, .steps::after { display: none; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; left: calc(1.6rem - 1px); top: 3.2rem; bottom: 0;
    width: 2px; background: var(--gold);
  }
  .steps li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .steps li:last-child { padding-bottom: 0; }
  .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 0.3rem; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-contact { justify-items: start; }
  .hero::before {
    background: linear-gradient(180deg, rgba(12, 26, 52, 0.9) 0%, rgba(12, 26, 52, 0.76) 55%, rgba(12, 26, 52, 0.3) 100%);
  }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand img { height: 42px; }
  .brand-name { display: none; }
  .header-cta { display: none; }
  .header-tools { gap: 0.35rem; }
  .langs { gap: 0; }
  .hero-actions .btn { width: 100%; }
  .footer-logo { width: 160px; }
  .fab { width: 54px; height: 54px; }
  .fab svg { width: 27px; height: 27px; }
}
