/* ==========================================================================
   Gas Aperto — Buf Lab × Cantina Mongalli
   Editoriale, monocromatica, accento tinta unita.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F3F0;
  --surface: #FFFFFF;
  --ink: #131313;
  --ink-soft: #4A4A48;
  --muted: #8A8985;
  --border: #E4E3DF;
  --accent: #EA5241;

  --font: 'Darker Grotesque', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 880px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 14vh, 160px) clamp(24px, 6vw, 96px);
}

/* ---------- Progress bar ---------- */

.progress {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 80ms linear;
}

/* ---------- Brand bar ---------- */

.brandbar {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 90;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.brandbar.is-hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.brandbar__link { display: block; }
.brandbar__logo { width: 105px; height: auto; display: block; }

/* ---------- Stamp (rotating badge) ---------- */

.stamp {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 90;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.stamp.is-hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.stamp:active {
  transform: scale(0.92);
}
.stamp__img {
  width: 70px;
  height: auto;
  animation: stampSpin 14s linear infinite;
}
@keyframes stampSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.hero {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero__logo {
  width: min(560px, 84vw);
  height: auto;
  margin: 0 auto;
}
.hero__subtitle {
  max-width: 560px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.hero__link {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.hero__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.scrollcue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scrollcue span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrollcue__line {
  width: 1px;
  height: 40px;
  background: var(--muted);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0.2; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.2; }
}

/* ---------- Point sections ---------- */

.point {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-content: center;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}
.point--alt {
  background: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.point__mascot {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.point__mascot img {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.point__body { max-width: var(--maxw); }

.point__title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.point__text {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 640px;
}
.point__text strong { color: var(--ink); font-weight: 700; }

/* ---------- Quote blocks ---------- */

.quote {
  margin: 20px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  max-width: 620px;
}
.quote p {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.32;
  color: var(--ink);
}

/* ---------- Chips ---------- */

.chiplist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 8px;
  background: #F1F1F1;
  color: var(--accent);
}

/* ---------- Demo / video section ---------- */

.demo {
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.demo__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.video-frame__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.video-frame.is-loaded .video-frame__video { display: block; }
.video-frame.is-loaded .video-frame__placeholder { display: none; }

.video-frame--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-alt);
}
.video-frame__label {
  font-family: 'SF Mono', 'Geist Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.video-frame__hint {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.timeline__item:first-child {
  border-top: none;
  padding-top: 0;
}
.timeline__marker {
  display: flex;
  justify-content: center;
  padding-top: clamp(7px, 0.9vw, 10px);
}
.timeline__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.timeline__content h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.15;
}
.timeline__content p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
}

.timeline__item--current .timeline__dot {
  background: transparent;
}
.timeline__item--future {
  opacity: 0.4;
}
.timeline__item--future .timeline__dot {
  background: transparent;
  border-color: var(--border);
}

/* ---------- CTA / closing ---------- */

.cta {
  align-items: center;
  text-align: center;
  gap: 16px;
  background: var(--ink);
  color: #FFFFFF;
}
.cta__logo {
  height: 26px;
  filter: invert(1);
  margin-bottom: 6px;
  position: relative;
}
.cta__title {
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  position: relative;
  color: #FFFFFF;
}
.cta__text {
  max-width: 540px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1;
  color: #FFFFFF;
  margin: 4px 0 0;
  position: relative;
}
.cta__contact {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  position: relative;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.cta__contact:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .point {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .point__mascot {
    justify-content: flex-start;
  }
  .point__mascot img {
    max-width: 100px;
  }
  .stamp__img {
    width: 64px;
  }
  section {
    padding-left: 24px;
    padding-right: 24px;
  }
}
