@font-face {
  font-family: "AM Grotesk";
  src: url("../voltra/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AM Grotesk";
  src: url("../voltra/assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "AM Grotesk";
  src: url("../voltra/assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "AM Mono";
  src: url("../voltra/assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "AM Display";
  src: url("../voltra/assets/fonts/Unbounded-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --am-black: #080908;
  --am-ink: #101210;
  --am-panel: #151815;
  --am-paper: #efede7;
  --am-paper-deep: #d8d4cb;
  --am-muted: #9b9d98;
  --am-line: rgba(239, 237, 231, 0.17);
  --am-line-dark: rgba(8, 9, 8, 0.17);
  --am-red: #c8241f;
  --am-red-dark: #851512;
  --am-shell: 1480px;
  --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --am-header-height: 76px;
  color-scheme: dark;
}

/* Fixed film-grain layer. Cheap, GPU-friendly texture that reads as analog
   signal noise rather than a flat vector fill — the "tension" layer the
   brand direction calls for. Never intercepts pointer events. */
.am-grain {
  position: fixed;
  inset: -140px;
  z-index: 84;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: am-grain-shift 1.1s steps(4) infinite;
}

@keyframes am-grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1.4%, 1.1%, 0); }
  50% { transform: translate3d(1.1%, -1.6%, 0); }
  75% { transform: translate3d(-1.8%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .am-grain { animation: none; opacity: 0.035; }
}

@media (max-width: 760px) {
  .am-grain { opacity: 0.035; }
}

/* Native cross-document view transitions: every internal navigation
   crossfades instead of hard-cutting to a blank page while the next
   document loads. Pure CSS, no JS — unsupported browsers (Firefox, older
   Safari) simply ignore the rule and get the normal instant navigation. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--am-black);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--am-paper);
  background: var(--am-black);
  font-family: "AM Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.am-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--am-paper);
  outline-offset: 5px;
}

.am-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--am-black);
  background: var(--am-paper);
  transform: translateY(-160%);
  transition: transform 220ms var(--am-ease);
}

.am-skip-link:focus {
  transform: translateY(0);
}

.am-shell {
  width: min(calc(100% - 64px), var(--am-shell));
  margin-inline: auto;
}

.am-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 260ms var(--am-ease), border-color 260ms var(--am-ease);
}

.am-site-header.is-scrolled,
.am-site-header.is-open {
  border-color: var(--am-line);
  background: rgba(8, 9, 8, 0.92);
}

/* backdrop-filter on the header creates a new containing block for its
   position:fixed children — including the full-screen .am-nav-links panel —
   which collapses that panel's inset:0 sizing down to the header's own tiny
   box instead of the viewport. Only ever blur while NOT open. */
.am-site-header.is-scrolled:not(.is-open) {
  backdrop-filter: blur(18px);
}

.am-nav {
  min-height: var(--am-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.am-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 0.76rem;
  font-weight: 600;
}

.am-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.am-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.66rem;
  font-weight: 600;
}

.am-nav-links a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(239, 237, 231, 0.7);
  white-space: nowrap;
  transition: color 220ms var(--am-ease);
}

.am-nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--am-ease);
}

.am-nav-links a:hover,
.am-nav-links a[aria-current="page"] {
  color: var(--am-paper);
}

.am-nav-links a:hover::after,
.am-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.am-menu-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.am-menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 260ms var(--am-ease), top 260ms var(--am-ease);
}

.am-menu-toggle span:first-child {
  top: 17px;
}

.am-menu-toggle span:last-child {
  top: 26px;
}

.am-menu-toggle[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.am-menu-toggle[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.am-sound-control {
  min-width: max-content;
  padding: 0;
  border: 0;
  color: rgba(239, 237, 231, 0.56);
  background: transparent;
  font-family: "AM Mono", monospace;
  font-size: 0.58rem;
  cursor: default;
}

.am-kicker {
  color: var(--am-muted);
  font-family: "AM Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
}

.am-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 18px;
  border: 1px solid var(--am-red);
  border-radius: 2px;
  color: #fff;
  background: var(--am-red);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 240ms var(--am-ease), background-color 240ms var(--am-ease), transform 240ms var(--am-ease);
}

.am-action:hover {
  color: var(--am-red);
  background: transparent;
  transform: translateY(-2px);
}

.am-action:active {
  transform: translateY(0);
}

.am-action-light {
  border-color: var(--am-black);
  color: var(--am-paper);
  background: var(--am-black);
}

.am-action-light:hover {
  color: var(--am-black);
  background: transparent;
}

.am-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.69rem;
  font-weight: 600;
}

.am-text-link span {
  transition: transform 220ms var(--am-ease);
}

.am-text-link:hover span {
  transform: translate(3px, -2px);
}

.am-section {
  padding: 130px 0 150px;
}

.am-section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 62px;
}

.am-section-heading h2 {
  max-width: 14ch;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.am-section-heading > p:last-child {
  max-width: 48ch;
  color: var(--am-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.am-section-heading-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.am-section-heading-row > div {
  display: grid;
  gap: 18px;
}

.am-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.am-footer {
  border-top: 1px solid var(--am-line);
  color: var(--am-muted);
  background: var(--am-black);
}

.am-footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 0.67rem;
}

.am-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.am-footer a {
  color: var(--am-paper);
}

.js [data-reveal],
.js [data-cine-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms var(--am-ease), transform 760ms var(--am-ease);
}

.js [data-reveal].is-visible,
.js [data-cine-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* On capable desktops the motion script takes [data-cine-reveal] over
   entirely (kicker / heading / link each get their own choreography) and
   pins the block itself to visible immediately — this fallback only ever
   paints on reduced-motion or no-JS. */
.js [data-cine-reveal].am-cine-armed {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1180px) {
  .am-menu-toggle {
    display: block;
  }

  .am-nav-links {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 0;
    padding: 88px 32px 40px;
    background: var(--am-black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 260ms var(--am-ease), visibility 260ms var(--am-ease), transform 260ms var(--am-ease);
  }

  .am-nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .am-nav-links a {
    min-height: 58px;
    justify-content: center;
    border-bottom: 1px solid var(--am-line);
    color: var(--am-paper);
    font-size: 0.95rem;
  }

  .am-nav-links a::after {
    display: none;
  }

  .am-sound-control {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --am-header-height: 66px;
  }

  .am-shell {
    width: min(calc(100% - 36px), var(--am-shell));
  }

  .am-brand {
    font-size: 0.68rem;
  }

  .am-brand img {
    width: 38px;
    height: 38px;
  }

  .am-sound-control {
    font-size: 0.53rem;
  }

  .am-section {
    padding: 84px 0 98px;
  }

  .am-section-heading {
    margin-bottom: 38px;
  }

  .am-section-heading h2 {
    font-size: 2.7rem;
    line-height: 1;
  }

  .am-section-heading-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .am-action {
    width: 100%;
  }

  .am-footer-inner {
    min-height: 160px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .am-footer nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
