/* Virgilio marketing site. No external fonts or requests: system faces only. */

:root {
  --paper: #f6f1e7;
  --paper-2: #eee6d6;
  --card: #fcf9f3;
  --ink: #1c2430;
  --ink-2: #4e5866;
  --line: #ddd3c1;
  --line-strong: #c9bca5;
  --accent: #8c2f39;
  --accent-hover: #74252e;
  --accent-ink: #ffffff;
  --accent-soft: #f0dcdd;
  --signal: #1f6f6b;
  --signal-soft: #d6e9e6;
  --band: #1c2430;
  --band-ink: #ece5d8;
  --band-ink-2: #aeb5bf;
  --band-line: #2f3a48;
  --shadow: 0 1px 2px rgba(28, 36, 48, 0.06), 0 18px 40px rgba(28, 36, 48, 0.1);
  --radius: 14px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}

/* Dark palette: with the system setting, unless the visitor chose a theme (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11161d;
    --paper-2: #161c25;
    --card: #1b222c;
    --ink: #ece5d8;
    --ink-2: #a9b0ba;
    --line: #2b3440;
    --line-strong: #3a4553;
    --accent: #e07f88;
    --accent-hover: #ea98a0;
    --accent-ink: #1d0f11;
    --accent-soft: #3a2125;
    --signal: #62c4ba;
    --signal-soft: #173230;
    --band: #0b0f14;
    --band-ink: #ece5d8;
    --band-ink-2: #a3aab4;
    --band-line: #222b36;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11161d;
  --paper-2: #161c25;
  --card: #1b222c;
  --ink: #ece5d8;
  --ink-2: #a9b0ba;
  --line: #2b3440;
  --line-strong: #3a4553;
  --accent: #e07f88;
  --accent-hover: #ea98a0;
  --accent-ink: #1d0f11;
  --accent-soft: #3a2125;
  --signal: #62c4ba;
  --signal-soft: #173230;
  --band: #0b0f14;
  --band-ink: #ece5d8;
  --band-ink-2: #a3aab4;
  --band-line: #222b36;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container-narrow {
  max-width: 860px;
}

.center {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-small {
  padding: 0.6em 1.1em;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-mark-bg {
  fill: var(--ink);
}

.brand-mark-path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark-dot {
  fill: var(--accent);
}

.brand-name {
  font: 600 1.35rem/1 var(--serif);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.82rem/1 var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-toggle:hover,
.menu-toggle:hover {
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  padding: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.announce::after {
  content: "→";
  color: var(--accent);
}

.announce:hover {
  border-color: var(--accent);
}

.announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

.eyebrow,
.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  color: var(--ink-2);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

/* Map card */

.map-card {
  position: relative;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.map-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.map-card-title {
  font-weight: 600;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: blink 2s ease-in-out infinite;
}

.floor-map {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 12px 6px;
}

.fp-floor {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.fp-door {
  fill: var(--paper-2);
}

.fp-shelf {
  fill: var(--card);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.fp-target {
  fill: var(--accent);
}

/* Warehouse map: rack levels and the devices on them */
.fp-level {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.fp-box {
  fill: var(--signal-soft);
  stroke: var(--signal);
  stroke-width: 1;
}

.fp-fov {
  fill: var(--signal);
  opacity: 0.1;
}

.fp-route-base {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 10;
  animation: march 0.9s linear infinite;
}

.fp-pulse {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.2s ease-out infinite;
}

.fp-walker {
  fill: var(--accent);
  stroke: var(--card);
  stroke-width: 2.5;
}

.fp-gate,
.fp-camera {
  fill: var(--signal);
}

.fp-camera-lens {
  fill: var(--card);
}

.fp-wave {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}

.fp-label {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.05em;
  fill: var(--ink-2);
  text-anchor: middle;
}

.fp-label-target {
  fill: var(--accent);
}

.fp-label-signal {
  fill: var(--signal);
  text-anchor: start;
}

.fp-label-center {
  text-anchor: middle;
}

.fp-label-end {
  text-anchor: end;
}

.item-card {
  display: grid;
  gap: 3px;
  margin: 0 14px 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  font-size: 0.9rem;
}

.item-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.item-title {
  font: 600 1.12rem/1.25 var(--serif);
}

.item-where {
  color: var(--ink-2);
}

.item-seen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--signal);
  font-weight: 600;
  font-size: 0.84rem;
}

@media (min-width: 1100px) {
  .item-card {
    position: absolute;
    right: -26px;
    bottom: -34px;
    margin: 0;
    min-width: 250px;
    box-shadow: var(--shadow);
  }
}

/* ---------- Audience strip ---------- */

.audience {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.audience-inner {
  display: flex;
  align-items: center;
  gap: 18px 32px;
  flex-wrap: wrap;
  padding-block: 22px;
}

.audience-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 1.02rem/1.4 var(--serif);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 9vw, 124px);
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-intro {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.grid-feature {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.card,
.role-card,
.tech-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3,
.role-card h3,
.tech-card h3 {
  margin-bottom: 12px;
}

.card p,
.role-card p,
.tech-card p,
.feature p,
.step p,
.timeline-step p {
  color: var(--ink-2);
}

.card {
  border-top: 3px solid var(--accent);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.step-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  position: absolute;
  top: 26px;
  right: 28px;
  font: 600 1.6rem/1 var(--serif);
  color: var(--line-strong);
}

.step h3 {
  margin: 20px 0 10px;
}

/* Quote */

.quote-section {
  padding-block: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  margin: 0;
  font: italic 500 clamp(1.5rem, 3vw, 2.25rem)/1.35 var(--serif);
}

.quote figcaption {
  margin-top: 24px;
  color: var(--ink-2);
}

.quote cite {
  font-style: italic;
}

/* Roles */

.role-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 1px;
}

/* Features */

.feature {
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

/* Technology */

.tech-card {
  border-top: 3px solid var(--signal);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}

.flow-step strong {
  font: 600 1.1rem/1.2 var(--serif);
}

.flow-step span {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step:last-child {
  border-style: solid;
  border-color: var(--accent);
}

/* Security band */

.section-ink {
  background: var(--band);
  color: var(--band-ink);
}

.section-ink .kicker {
  color: var(--accent);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .section-ink .kicker {
    color: #e3a0a7;
  }
}
:root[data-theme="light"] .section-ink .kicker {
  color: #e3a0a7;
}

.security-grid {
  gap: 0;
  border-top: 1px solid var(--band-line);
}

.sec-item {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--band-line);
}

.sec-item h3 {
  margin-bottom: 10px;
  color: var(--band-ink);
}

.sec-item p {
  color: var(--band-ink-2);
}

.security-note {
  margin-top: 36px;
  max-width: 820px;
  color: var(--band-ink-2);
  font-size: 0.95rem;
}

/* Pilot timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pilot;
}

.timeline-step {
  position: relative;
  padding-top: 26px;
  border-top: 3px solid var(--line-strong);
  counter-increment: pilot;
}

.timeline-step::before {
  content: counter(pilot, decimal-leading-zero);
  position: absolute;
  top: -15px;
  left: 0;
  padding-right: 10px;
  background: var(--paper);
  font: 600 1.15rem/1.2 var(--serif);
  color: var(--accent);
}

.timeline-step:first-child {
  border-top-color: var(--accent);
}

.timeline-step h3 {
  margin-bottom: 10px;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font: 600 1.1rem/1.35 var(--serif);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 1.6rem/1 var(--sans);
  color: var(--accent);
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 22px 22px;
  color: var(--ink-2);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.contact-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-email {
  margin: 10px 0 24px;
  font: 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--serif);
  overflow-wrap: anywhere;
}

.contact-email a {
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.footer-tagline {
  margin-top: 12px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 32px;
}

.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-meta {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */

@keyframes march {
  to {
    stroke-dashoffset: -11;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fp-route,
  .fp-pulse,
  .live-dot,
  .announce-dot {
    animation: none;
  }

  .fp-walker {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -21px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .map-card-bar {
    flex-wrap: wrap;
  }

  .sec-item {
    padding-right: 0;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Journey: the low-poly archive room at the top (journey.js) ----------
   The scene is always dark, whatever the colour scheme, so its text uses fixed light colours. */

.journey { position: relative; height: 700vh; background: var(--night); --journey-top: 69px; --night: #12151b; --night-ink: #f3ede0; --night-ink-2: #b9c0cd; }
/* The scene fills the screen below the page header (which is --journey-top tall). */
.journey-sticky { position: sticky; top: var(--journey-stick, var(--journey-top)); height: calc(100vh - var(--journey-top)); height: calc(100svh - var(--journey-top)); overflow: hidden; background: var(--night); color: var(--night-ink); }
.journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey-intro { position: relative; display: grid; gap: 22px; align-content: center; height: 100%; padding-bottom: 4vh; }
.journey-intro > * { max-width: 540px; margin: 0; }
.journey-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--night-ink); }
.journey-intro .eyebrow { color: var(--journey-accent, #ffc857); }
.journey .btn-secondary { color: var(--night-ink); border-color: color-mix(in srgb, var(--night-ink) 45%, transparent); }
.journey .btn-secondary:hover { border-color: var(--night-ink); background: color-mix(in srgb, var(--night-ink) 10%, transparent); color: var(--night-ink); }
.journey-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--night) 0%, color-mix(in srgb, var(--night) 80%, transparent) 30%, transparent 56%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.journey-intro, .journey-hint, .journey-step { z-index: 1; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.7s; }
.journey:not([data-stage="start"]) .journey-sticky::after { transform: translateX(-100%); }
.journey:not([data-stage="start"]) .journey-intro { transform: translateX(-110vw); visibility: hidden; }
.journey[data-stage="start"] .journey-intro,
.journey[data-step="1"] .journey-step[data-at="1"], .journey[data-step="2"] .journey-step[data-at="2"], .journey[data-step="3"] .journey-step[data-at="3"] { transition-delay: 0s; }
.journey-hint { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-ink-2); }
.journey:not([data-stage="start"]) .journey-hint { transform: translateY(80px); visibility: hidden; }
/* One short line per stage, bottom left, on a dark plate so it reads over any part of the scene. */
.journey-step { position: absolute; left: clamp(16px, 5vw, 64px); bottom: clamp(28px, 8vh, 72px); margin: 0; max-width: min(680px, calc(100% - 32px)); padding: 14px 20px; border-left: 3px solid var(--journey-accent, #ffc857); border-radius: 4px 12px 12px 4px; background: color-mix(in srgb, var(--night) 90%, transparent); color: var(--night-ink); font: 600 clamp(1.25rem, 2.4vw, 1.9rem)/1.15 var(--serif, Georgia, serif); transform: translateX(-120%); visibility: hidden; }
.journey[data-step="1"] .journey-step[data-at="1"], .journey[data-step="2"] .journey-step[data-at="2"], .journey[data-step="3"] .journey-step[data-at="3"] { transform: none; visibility: visible; }
@media (max-width: 860px) {
  .journey-intro { align-content: start; padding-top: 5vh; gap: 16px; }
  .journey-sticky::after { background: linear-gradient(180deg, var(--night) 0%, color-mix(in srgb, var(--night) 80%, transparent) 38%, transparent 60%); }
  .journey:not([data-stage="start"]) .journey-sticky::after { transform: translateY(-100%); }
}
/* Before the scene starts, its backdrop already matches the theme (stone, light or dark). */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .journey { --night: #e6eaf0; --night-ink: #1c2430; --night-ink-2: #4e5866; --journey-accent: #a23c0c; } }
:root[data-theme="light"] .journey { --night: #e6eaf0; --night-ink: #1c2430; --night-ink-2: #4e5866; --journey-accent: #a23c0c; }
/* The last moment: the camera is inside the page and the scene dissolves. What follows the
   journey lies underneath its last screen (pulled up by one screen), so it is there at once. */
.journey[data-step="4"] { background: var(--paper); }
.journey-sticky { z-index: 3; }
.journey[data-live] { margin-bottom: calc(var(--journey-top) - 100vh); margin-bottom: calc(var(--journey-top) - 100svh); }
.journey[data-stage="done"] .journey-sticky { visibility: hidden; }
/* What follows sits above the journey's own box and below the scene. */
.journey[data-live] + * { position: relative; z-index: 1; }
/* Text that belongs to one scene only. */
.journey[data-scene="electronics"] [data-for="books"], .journey:not([data-scene="electronics"]) [data-for="electronics"] { display: none; }
/* The look of the scene: what it holds, its style, light or dark. Shown on the first screen only. */
.journey-looks { position: absolute; z-index: 1; right: clamp(12px, 3vw, 32px); bottom: 20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: calc(100% - 24px); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.7s; }
.journey[data-stage="start"] .journey-looks { transition-delay: 0s; }
.journey:not([data-stage="start"]) .journey-looks { transform: translateY(120px); visibility: hidden; }
.journey-looks span { display: inline-flex; padding: 3px; border: 1px solid color-mix(in srgb, var(--night-ink) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--night) 82%, transparent); }
.journey-looks button { appearance: none; border: 0; border-radius: 999px; padding: 5px 11px; background: transparent; color: var(--night-ink); font: 600 0.78rem/1.2 var(--sans, system-ui, sans-serif); cursor: pointer; }
.journey-looks button:hover { background: color-mix(in srgb, var(--night-ink) 14%, transparent); }
.journey-looks button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
@media (max-width: 860px) { .journey-looks { justify-content: center; left: 12px; right: 12px; bottom: 12px; gap: 6px; } .journey-looks button { padding: 5px 9px; font-size: 0.74rem; } .journey-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; margin-bottom: 0 !important; }
  .journey-hint, .journey-step { display: none; }
}

/* "Why Virgilio": each problem is followed by what Virgilio does about it. */
.fix { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.fix strong { display: block; margin-bottom: 2px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal, var(--accent)); }

/* The section the journey opens into starts close to the top of the screen. */
.journey + .section { padding-top: clamp(36px, 6vw, 72px); }

/* One page, two audiences: the scene chosen in the journey ("Archivio" or "Elettronica") decides
   which sections, menu links and texts are shown. journey-init.js mirrors it on <html>. */
html[data-scene="electronics"] [data-for="books"], html:not([data-scene="electronics"]) [data-for="electronics"] { display: none !important; }
.journey[data-live] ~ section { position: relative; z-index: 1; }
