/* === tokens.css === */
/* ==========================================================================
   Design Tokens — metalinvestments.com
   Source: design-metal-investments.md
   Note: pt in design spec = px on web (1:1 mapping)
   ========================================================================== */

:root {
  /* Colours */
  --colour-light: #FDFDFD;
  --colour-ten: #D9D9D9;
  --colour-forty: #A6A6A6;
  --colour-dark: #202020;
  --colour-down: #780E0E;
  --colour-up: #44730A;

  /* Typography */
  --font-family: 'Inter', sans-serif;

  /* Spacing (pt = px) */
  --space-40: 40px;
  --space-30: 30px;
  --space-24: 24px;
  --space-22: 22px;
  --space-16: 16px;
  --space-12: 12px;
  --space-10: 10px;
  --space-8: 8px;
  --space-4: 4px;

  /* Border radius (pt = px) */
  --rad-40: 40px;
  --rad-30: 30px;
  --rad-20: 20px;

  /* Shadows */
  --shad-30: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Navigation */
  --nav-height: 60px;
  --nav-item-height: 40px;
  --nav-width: 75%;

  /* Header total height (used for body padding-top with fixed header) */
  --header-height-full: 160px;    /* ticker-top(40) + ticker(~20) + gap(40) + nav(60) */
  --header-height-compact: 100px; /* half spacing */

  /* Header spacing */
  --ticker-top: var(--space-40);
  --ticker-nav-gap: var(--space-40);
}

/* === base.css === */
/* ==========================================================================
   Base — Reset, @font-face, global styles
   ========================================================================== */

/* Font faces — self-hosted Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Skip-to-content link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--colour-dark);
  color: var(--colour-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--colour-dark);
  outline-offset: 2px;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* scroll-behavior: smooth removed — causes Chrome sticky jitter.
     Smooth scrolling handled via JS in navigation.js instead. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;  /* prevents iOS horizontal scroll caused by 100vw elements */
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--colour-dark);
  background-color: var(--colour-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;  /* clip not hidden — clip doesn't break position:sticky */
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography classes
   pt in design spec = px on web (1:1 mapping).
   Fixed sizes at spec values. Only scale down below 1024px when space runs out. */
.text-hero {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}

.text-caption {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.text-heading {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.text-paragraph {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}

.text-paragraph:last-child {
  margin-bottom: 0;
}

.text-label {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -0.05em;
}

.text-data {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.text-ticker {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.text-fine {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Scale down only when space runs out */
@media (max-width: 1024px) {
  .text-hero { font-size: clamp(28px, 5.5vw, 54px); }
  .text-caption { font-size: clamp(16px, 2.5vw, 22px); }
  .text-heading { font-size: clamp(24px, 4.2vw, 40px); }
  .text-paragraph { font-size: clamp(15px, 2vw, 18px); }
  .text-label { font-size: clamp(13px, 1.7vw, 16px); }
}

/* Utility */
.colour-up { color: var(--colour-up); }
.colour-down { color: var(--colour-down); }
.colour-forty { color: var(--colour-forty); }

/* === layout.css === */
/* ==========================================================================
   Layout — Grid, sections, fluid layout
   ========================================================================== */

/* Main content wrapper */
.site-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Fixed header — removed sticky to eliminate Chrome jumping.
   Body gets padding-top via JS to compensate for header height. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: var(--ticker-top);
  background: none;
  transition: padding-top 0.3s ease-out;
}

.site-header.is-scrolled {
  padding-top: calc(var(--space-40) / 2);
}

/* Ticker-to-nav gap */
.ticker-nav-gap {
  height: var(--ticker-nav-gap);
  transition: height 0.3s ease-out;
}

.site-header.is-scrolled .ticker-nav-gap {
  height: calc(var(--space-40) / 2);
}

/* Full-height gradient behind the header — sits below header (z-index 99)
   so content fades out as it scrolls under the ticker and nav area.
   Solid white at top for ticker readability, fades to transparent. */
.header-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 150px;
  background: linear-gradient(to bottom, var(--colour-light) 20%, transparent 100%);
  pointer-events: none;
}

/* Section layout — width matches nav bar so left edges align */
.section {
  display: flex;
  align-items: center;
  gap: var(--space-40);
  padding: 25px var(--space-40);
  min-height: 52vh;
  width: var(--nav-width);
  max-width: 1200px;
  margin: 0 auto;
}

.section--reverse {
  flex-direction: row-reverse;
}

.section__content {
  flex: 1;
  min-width: 0;
}

.section__video {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__video canvas,
.section__video img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: var(--space-40) var(--space-30);
  position: relative;
}

/* Scroll indicator — bottom of hero, animated bounce */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-30);
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.4;
}

.hero__title {
  max-width: 900px;
}

.hero__caption {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   Horizontal scroll — Business section
   The wrapper is tall (600vh) to create vertical scroll distance.
   A sticky container pins to the viewport and translates its inner
   track leftward as the user scrolls through the tall wrapper.
   ========================================================================== */

.hscroll {
  position: relative;
  height: 500vh; /* panels are 70vw */
}

.hscroll__sticky {
  position: sticky;
  top: calc(var(--header-height-compact) + 90px);
  height: calc(100vh - var(--header-height-compact) - 90px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hscroll__title {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-top: calc(var(--space-24) + 20px);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sub-navigation — mid-dot separated section names */
.hscroll__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-shrink: 0;
  padding-bottom: 80px;
}

.hscroll__nav-item {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.05em;
  color: var(--colour-forty);
  cursor: pointer;
  transition: color 0.2s ease-out;
  text-decoration: none;
}

.hscroll__nav-item:hover {
  color: var(--colour-dark);
}

.hscroll__nav-item.is-active {
  color: var(--colour-dark);
}

.hscroll__nav-dot {
  font-size: 32px;
  color: var(--colour-dark);
  user-select: none;
  line-height: 1;
}

.hscroll__track {
  display: flex;
  flex: 1;
  will-change: transform;
}

.hscroll__panel {
  flex-shrink: 0;
  width: 70vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.hscroll__panel:first-child {
  margin-left: 15vw;
}

.hscroll__panel:last-child {
  margin-right: 15vw;
}

.hscroll__panel-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
  width: 90%;
  max-width: none;
}

.hscroll__panel-video {
  flex: 0 0 35%;
  min-width: 0;
}

.hscroll__panel-content {
  flex: 1;
  min-width: 0;
}

/* Read more — inline continuation of paragraph text */
.hscroll__read-more {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.05em;
  color: var(--colour-dark);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.hscroll__read-more:hover {
  color: var(--colour-forty);
}

.hscroll__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

/* Linked pill — border outline, clickable */
.hscroll__item-link {
  display: inline-block;
  padding: var(--space-8) var(--space-16);
  background: none;
  border: 1px solid var(--colour-dark);
  border-radius: var(--rad-30);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--colour-dark);
  text-decoration: none;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
  cursor: pointer;
}

.hscroll__item-link:hover {
  background: var(--colour-dark);
  color: var(--colour-light);
}

/* Plain item — no link, invisible pill, keeps spacing */
.hscroll__item-plain {
  display: inline-block;
  padding: var(--space-8) var(--space-16);
  background: none;
  border: 1px solid var(--colour-ten);
  border-radius: var(--rad-30);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--colour-dark);
  cursor: default;
}

/* ==========================================================================
   Contact section — scroll-driven map zoom (screenshot crossfade)
   ========================================================================== */

.contact {
  position: relative;
  height: 500vh;
}

.contact__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.contact__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.contact__layer:first-child {
  opacity: 1;
}

.contact__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__overlay {
  display: none;
}

.contact__pin {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 2;
  transform: translate(-50%, -100%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.contact__card {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  transform: translate(-50%, 40px);
  opacity: 0;
  background: var(--colour-light);
  box-shadow: var(--shad-30);
  border-radius: var(--rad-30);
  padding: var(--space-40);
  text-align: center;
  min-width: 320px;
  max-width: 420px;
}

.contact__card-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--colour-dark);
  margin-bottom: var(--space-16);
}

.contact__card-address {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--colour-forty);
  margin-bottom: var(--space-16);
}

.contact__card-details {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--colour-dark);
  margin-bottom: var(--space-24);
}

.contact__card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-item-height);
  padding: 0 var(--space-30);
  border-radius: var(--rad-20);
  background: var(--colour-dark);
  color: var(--colour-light);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.25s ease-out;
}

.contact__card-cta:hover {
  opacity: 0.7;
}

/* Responsive: stack below 1024px */
@media (max-width: 1024px) {
  .section,
  .section--reverse {
    flex-direction: column;
    min-height: auto;
    padding: var(--space-30) var(--space-16);
    width: 90%;
  }

  /* Video always on top when stacked — cap width so it never grows
     larger than it was on desktop (where it's ~50% of 1200px max). */
  .section__video {
    order: -1;
    max-width: 560px;
    width: 100%;
    margin-bottom: 30px;
  }

  .section__content {
    order: 1;
  }

  .hero {
    min-height: 50vh;
    padding: var(--space-30) var(--space-16);
  }

  /* Horizontal scroll — stack panels vertically on mobile */
  .hscroll {
    height: auto !important;
    overflow: visible;
  }

  .hscroll__sticky {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .hscroll__nav {
    display: none;
  }

  .hscroll__track {
    flex-direction: column;
    transform: none !important;
  }

  .hscroll__panel {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: var(--space-30) var(--space-16);
    margin-left: 0;
    margin-right: 0;
  }

  .hscroll__panel:first-child {
    margin-left: 0;
  }

  .hscroll__panel:last-child {
    margin-right: 0;
    padding-bottom: var(--space-40);
  }

  .hscroll__panel-inner {
    flex-direction: column;
    width: 90%;
  }

  .hscroll__panel-video {
    order: -1;
    max-width: 600px;
    width: 100%;
    margin-bottom: 30px;
  }

  .hscroll__title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: var(--space-40) var(--space-16) var(--space-16);
  }

  /* Contact — static on mobile */
  .contact {
    height: 100vh;
  }

  .contact__sticky {
    position: relative;
  }

  .contact__card {
    min-width: 0;
    width: 85%;
    max-width: 380px;
    padding: var(--space-24);
  }
}

/* === components.css === */
/* ==========================================================================
   Components — Ticker, Navigation, Hero, Price Table
   ========================================================================== */

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--colour-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__blob {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: blob-morph 4s ease-in-out infinite;
  transform: scale(0.45);  /* 200 × 0.45 = 90px visible */
}

.preloader__blob.is-shrinking {
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  transform: scale(0.001);
  opacity: 0;
}

.preloader__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  max-width: none;
  margin-top: -110px;
  margin-left: -110px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-in-out, transform 1s ease-out;
}

.preloader__img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ---- Currency Ticker ---- */
.ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding-right: var(--space-24);
  white-space: nowrap;
}

.ticker__name {
  font-weight: 700;
  color: var(--colour-dark);
  transition: color 0.2s ease-out;
}

.ticker__name:hover {
  color: var(--colour-forty);
}

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

.ticker__value {
  margin-left: 0.25em;
}

.ticker__change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.ticker__change-icon {
  width: 9px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  justify-content: center;
  padding: 0 var(--space-30);
}

.nav__bar {
  width: var(--nav-width);
  max-width: 1200px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--rad-30);
  box-shadow: var(--shad-30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--space-40);
  padding-right: var(--space-10);
  margin-left: auto;
  margin-right: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--colour-dark);
  -webkit-text-decoration: none;
  text-decoration: none;
}

.nav__logo svg {
  display: block;
  height: 17px;
  width: auto;
  color: inherit;
  transition: color 0.3s ease-out;
}

.nav__logo:hover svg {
  color: var(--colour-forty);
}

.nav__items {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  height: var(--nav-item-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-30);
  border-radius: var(--rad-20);
  background: none;
  color: var(--colour-dark);
  transition: color 0.25s ease-out, background-color 0.25s ease-out;
  cursor: pointer;
  white-space: nowrap;
}

.nav__item:hover {
  color: var(--colour-forty);
}

.nav__item.is-active {
  background: var(--colour-dark);
  color: var(--colour-light);
}

.nav__item--lang {
  color: var(--colour-forty);
  margin-left: var(--space-4);
}

.nav__item--lang:hover {
  color: var(--colour-dark);
}

/* ---- Hero ---- */
.hero__title,
.hero__caption {
  color: var(--colour-dark);
}

/* ---- Price Table ---- */
.price-table {
  background: var(--colour-light);
  box-shadow: var(--shad-30);
  padding: var(--space-40);
  border-radius: var(--rad-30);
  overflow: hidden;
}

.price-table__header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--colour-ten);
  align-items: center;
}

.price-table__header-cell {
  color: var(--colour-forty);
  font-weight: 700;
  text-align: right;
}

.price-table__header-cell:first-child {
  text-align: left;
}

.price-table__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  height: 48px;
  margin-top: 0;
  padding: 0 var(--space-8);
  border-radius: 5px;
  transition: background-color 0.2s ease-out;
}

.price-table__row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.price-table__element {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.price-table__element-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.price-table__element-icon img {
  width: 100%;
  height: 100%;
}

.price-table__cell {
  text-align: right;
  color: var(--colour-dark);
}

.price-table__change {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  text-align: right;
}

.price-table__change-icon {
  width: 9px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.price-table__footer {
  padding-top: var(--space-12);
  margin-top: 0;
  border-top: 1px solid var(--colour-ten);
  color: var(--colour-forty);
}

/* ---- Section 6 — Sister company ---- */
.section__sister-logo {
  display: inline-block;
  transition: opacity 0.3s ease-out;
}

.section__sister-logo:hover {
  opacity: 0.4;
}

.section__sister-link {
  transition: opacity 0.3s ease-out;
}

.section__sister-link:hover {
  opacity: 0.4;
}

/* ---- Burger menu button (hidden on desktop) ---- */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-radius: var(--rad-20);
  transition: background-color 0.2s ease-out;
}

.nav__burger:hover {
  background: none;
}

.nav__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--colour-dark);
  position: relative;
  transition: background-color 0.2s ease-out;
}

.nav__burger-line::before,
.nav__burger-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--colour-dark);
  transition: transform 0.3s ease-out;
}

.nav__burger-line::before {
  top: -6px;
}

.nav__burger-line::after {
  top: 6px;
}

/* Burger open state → X */
.nav__burger.is-open .nav__burger-line {
  background: transparent;
}

.nav__burger.is-open .nav__burger-line::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__burger.is-open .nav__burger-line::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav__bar {
    width: 90%;
    padding-left: var(--space-24);
    padding-right: var(--space-12);
    flex-wrap: wrap;
    align-content: flex-start;
    height: auto;
    min-height: var(--nav-height);
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    max-height: var(--nav-height);
  }

  /* Expanded state — only add padding-bottom, keep top padding unchanged */
  .nav__bar.is-menu-open {
    max-height: 300px;
    padding-bottom: var(--space-16);
  }

  /* Logo and burger stay on the first row at fixed height */
  .nav__logo {
    height: var(--nav-height);
  }

  .nav__burger {
    display: flex;
    height: var(--nav-height);
  }

  /* Nav items hidden by default, stacked when open */
  .nav__items {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: var(--space-4);
    padding-top: var(--space-12);
  }

  .nav__bar.is-menu-open .nav__items {
    display: flex;
  }

  .nav__item {
    padding: var(--space-12) var(--space-16);
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--rad-20);
    font-size: 18px;
    height: auto;
  }

  /* No active state styling in mobile menu — just links */
  .nav__item.is-active {
    background: none;
    color: var(--colour-dark);
    font-weight: 700;
  }

  .price-table {
    padding: var(--space-24);
  }

}

@media (max-width: 600px) {
  .nav__bar {
    width: 95%;
    padding-left: var(--space-16);
    padding-right: var(--space-8);
  }

  .price-table {
    padding: var(--space-16);
  }

  .price-table__header {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2px;
  }

  .price-table__header-cell {
    font-size: 9px;
  }

  .price-table__row {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2px;
    height: 40px;
    padding: 0 var(--space-4);
  }

  .price-table__row .text-data {
    font-size: 11px;
  }

  .price-table__element-icon {
    width: 20px;
    height: 20px;
  }

  .price-table__element {
    gap: var(--space-4);
  }

  .price-table__footer {
    font-size: 9px;
  }
}

/* ---- Popup ---- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
}

.popup__card {
  position: relative;
  background: var(--colour-light);
  box-shadow: var(--shad-30);
  border-radius: var(--rad-30);
  padding: var(--space-40);
  padding-bottom: 0;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease-out;
}

.popup__header {
  flex-shrink: 0;
  padding-right: var(--space-40);
}

.popup__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: var(--space-40);
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge */
}

.popup__body::-webkit-scrollbar {
  display: none;                    /* Chrome/Safari */
}

.popup.is-open .popup__card {
  transform: translateY(0);
}

/* Close button — same X style as burger menu */
.popup__close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.popup__close-line {
  display: block;
  width: 18px;
  height: 2px;
  background: transparent;
  position: relative;
}

.popup__close-line::before,
.popup__close-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--colour-dark);
}

.popup__close-line::before {
  transform: rotate(45deg);
}

.popup__close-line::after {
  transform: rotate(-45deg);
}

/* Popup content styling */
.popup__title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-24);
  padding-right: var(--space-40);
}

.popup__subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: var(--colour-forty);
  margin-bottom: var(--space-24);
  letter-spacing: -0.05em;
}

.popup__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.05em;
  color: var(--colour-dark);
}

/* Spec table inside popup */
.popup__table {
  width: 100%;
  border-collapse: collapse;
}

.popup__table th {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.05em;
  color: var(--colour-forty);
  text-align: left;
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--colour-ten);
}

.popup__table th:last-child {
  text-align: right;
}

.popup__table td {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.05em;
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--colour-ten);
}

.popup__table td:last-child {
  text-align: right;
  font-weight: 600;
}

.popup__table tr:last-child td {
  border-bottom: none;
}

/* Section heading within multi-table popups */
.popup__section-heading {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.05em;
  color: var(--colour-dark);
  margin-top: var(--space-24);
  margin-bottom: var(--space-12);
}

.popup__section-heading:first-of-type {
  margin-top: 0;
}

.popup__table-note {
  font-family: var(--font-family);
  font-size: 11px;
  font-style: italic;
  color: var(--colour-forty);
  margin-top: var(--space-8);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .popup__card {
    max-width: 90%;
    padding: var(--space-24);
  }

  .popup__title {
    font-size: 22px;
  }
}

/* ---- Contact Form (inside popup) ---- */
.popup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.popup__form-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.05em;
  color: var(--colour-forty);
}

.popup__form-input {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--colour-dark);
  background: none;
  border: 1px solid var(--colour-ten);
  border-radius: var(--rad-20);
  padding: var(--space-12) var(--space-16);
  outline: none;
  transition: border-color 0.2s ease-out;
}

.popup__form-input:focus {
  border-color: var(--colour-dark);
}

.popup__form-textarea {
  resize: vertical;
  min-height: 100px;
}

.popup__form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-item-height);
  padding: 0 var(--space-30);
  border-radius: var(--rad-20);
  background: var(--colour-dark);
  color: var(--colour-light);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.03em;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease-out;
  margin-top: var(--space-8);
}

.popup__form-submit:hover {
  opacity: 0.7;
}

/* ---- Blob-masked Video ---- */
.blob-video {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blob-video__content {
  position: relative;
  width: 63%;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: linear-gradient(135deg,
    #2c2c2c 0%,
    #4a4a4a 25%,
    #1a1a1a 50%,
    #3d3d3d 75%,
    #2c2c2c 100%
  );
  background-size: 400% 400%;
  animation:
    blob-video-morph 8s ease-in-out infinite,
    blob-video-shimmer 6s ease-in-out infinite;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

/* Both videos stacked absolutely — crossfade controlled by JS */
.blob-video__content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes blob-video-morph {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 65% 35% 70%;
  }
  50% {
    border-radius: 35% 65% 30% 70% / 55% 40% 60% 45%;
  }
  75% {
    border-radius: 55% 45% 60% 40% / 70% 30% 70% 30%;
  }
}

@keyframes blob-video-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}


/* === animations.css === */
/* ==========================================================================
   Animations — Scroll animations, transitions, preloader
   ========================================================================== */

/* ---- Preloader blob ---- */
@keyframes blob-morph {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 70% 30% 50% 50% / 30% 65% 35% 70%;
  }
  50% {
    border-radius: 35% 65% 30% 70% / 55% 40% 60% 45%;
  }
  75% {
    border-radius: 55% 45% 60% 40% / 70% 30% 70% 30%;
  }
}

/* ---- Scroll indicator bounce ---- */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Hero ---- */
/* Initial hidden state — JS drives opacity and transform on scroll */
.hero__title,
.hero__caption {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* ---- Section scroll-driven reveals ---- */
/* Content slides in progressively as user scrolls, driven by JS.
   Larger travel distance, animation completes at vertical middle of screen. */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal--left {
  transform: translateX(-120px);
}

.reveal--right {
  transform: translateX(120px);
}

/* ---- Section video fade up ---- */
.reveal-video {
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

