/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --pd-bg: #f0f1fa;
  --pd-fg: #f9f9f9;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--pd-fg);
  font-family: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Hero ---------- */
.hero-scene {
  position: relative;
}

.hero-scene--pinned {
  height: calc(140vh + 100vh);
}

.hero-scene-end {
  height: 0;
}

.hero-scene-end--active {
  height: 50vh;
}

@media (max-width: 767px) {
  .hero-scene--pinned {
    height: 300vh;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-scene--pinned {
    height: 300vh;
  }
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  overflow: hidden;
  background: #f0f1fa;
  /* The hero canvas is now a light background -- --pd-fg (near-white) was
     tuned for the previous dark scene, so override it just within the hero
     rather than changing the shared token used elsewhere. */
  --pd-fg: #14203a;
}

@media (min-width: 768px) {
  .hero {
    padding-left: 80px;
    padding-right: 80px;
  }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__canvas.is-ready {
  opacity: 1;
}

.hero--static {
  background-image: url("../images/hero-poster.jpg");
  background-size: cover;
  background-position: center;
}

.statement {
  position: relative;
  z-index: 1;
  margin: 0;
  margin-top: auto;
  max-width: 420px;
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--pd-fg);
}

.statement__lead {
  font-weight: 500;
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: inline-flex;
  color: var(--pd-fg);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .lang-switch {
    right: 80px;
  }
}

.lang-switch:hover,
.lang-switch:focus-visible {
  opacity: 1;
}

.lang-switch__letter {
  display: block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}

.lang-switch__letter-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.lang-switch__letter-track span {
  display: block;
  height: 1em;
  line-height: 1;
  flex-shrink: 0;
}

.lang-switch__letter:nth-child(2) .lang-switch__letter-track {
  transition-delay: 0.08s;
}

.lang-switch.is-active .lang-switch__letter-track {
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch__letter-track {
    transition: none;
  }
}

/* ---------- Pegada Digital logo ---------- */
:root {
  --pd-logo-height: 40px;
  --pd-logo-width: calc(var(--pd-logo-height) * 243 / 272.14);
  --pd-logo-duration: 0.45s;
}

@media (hover: hover) {
  :root {
    --pd-logo-duration: 0.2s;
  }
}

.pd-logo {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 0;
}

.pd-logo__mask {
  display: block;
  height: var(--pd-logo-height);
  width: var(--pd-logo-width);
  overflow: hidden;
}

.pd-logo__track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform var(--pd-logo-duration) cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.pd-logo__letter {
  display: block;
  height: var(--pd-logo-height);
  width: var(--pd-logo-width);
  flex-shrink: 0;
}

.hero .pd-logo__letter {
  /* p.svg/d.svg are solid near-white (#f2f2f2), made for a dark hero --
     invert reads them as near-black against the new light background. */
  filter: invert(1);
}

.pd-logo:focus-visible .pd-logo__track,
.pd-logo.is-active .pd-logo__track {
  transform: translateY(calc(-1 * var(--pd-logo-height)));
}

@media (hover: hover) {
  .pd-logo:hover .pd-logo__track {
    transform: translateY(calc(-1 * var(--pd-logo-height)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-logo__track {
    transition: none;
  }
}
