/* ==========================================================================
   AVD Gate — site styles
   Ported from "AVD Gate Landing v3" design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #f4f6f9;
  --bg-alt: #f2efeb;
  --bg-dark: #16202a;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);

  /* Ink */
  --ink: #16202a;
  --ink-2: #3c4c5b;
  --ink-3: #566876;
  --ink-4: #6b7b8a;
  --ink-5: #93a3b1;
  --ink-nav: #5b6b7a;

  /* Ink on dark surfaces */
  --ink-on-dark: #ffffff;
  --ink-on-dark-2: #c4d0da;
  --ink-on-dark-3: #a9b7c3;
  --ink-on-dark-4: #edf2f6;

  /* Accent */
  --accent: #c9795b;
  --accent-ink: #a85e42;
  --accent-ink-hover: #8c4b33;
  --accent-light: #d08863;
  --accent-deep: #b0603f;
  --accent-soft: #fbbaa1;
  --accent-softer: #efc7b0;
  --accent-grad: linear-gradient(135deg, #d08863, #b0603f);

  /* Lines */
  --line: rgba(22, 32, 42, 0.08);
  --line-2: rgba(22, 32, 42, 0.1);
  --line-3: rgba(22, 32, 42, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Feedback */
  --danger: #a2453b;

  /* Type */
  --font-display: Archivo, "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 28px);
  --section-y: clamp(56px, 6vw, 96px);
  --header-h: 78px;
  --header-h-compact: 60px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.34, 1);
  --ease-spring: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.32, 1);

  /* Shared durations — keep interactions on one rhythm */
  --t-fast: 0.18s;
  --t-base: 0.28s;
  --t-slow: 0.42s;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-ink-hover);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(201, 121, 91, 0.16);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(23, 35, 46, 0.18);
}

.skip-link:focus {
  left: 0;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section[id] {
  scroll-margin-top: 96px;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--bg-dark);
  padding: clamp(64px, 7vw, 104px) 0;
  overflow: hidden;
}

.section--clip {
  overflow: hidden;
}

/* Two-column split used by Solutions / Conversion / Developers */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.split--wide-gap {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.eyebrow--on-dark {
  color: var(--accent-light);
}

.eyebrow--glass {
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.eyebrow--centred {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--accent-softer);
}

.eyebrow__rule {
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: block;
}

.section-title {
  font-size: clamp(27px, 3vw, 38px);
  margin-bottom: 20px;
}

.section-title--on-dark {
  color: var(--ink-on-dark);
  margin-bottom: 18px;
}

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 34em;
  text-wrap: pretty;
}

.lede + .lede {
  margin-top: 18px;
}

.lede--loose {
  line-height: 1.78;
}

.lede--on-dark {
  color: var(--ink-on-dark-3);
  max-width: none;
}

.rule-fade {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-ink), rgba(201, 121, 91, 0));
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, filter 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.btn__arrow {
  font-size: 17px;
  line-height: 1;
}

/* Primary — filled gradient */
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  padding: 14px 26px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(176, 96, 63, 0.22);
}

.btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(176, 96, 63, 0.32);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Ghost — tinted outline */
.btn--ghost {
  background: rgba(201, 121, 91, 0.06);
  color: var(--accent-ink);
  border: 1px solid rgba(201, 121, 91, 0.4);
  padding: 13px 24px;
}

.btn--ghost:hover {
  color: var(--accent-ink);
  background: rgba(201, 121, 91, 0.12);
  border-color: rgba(201, 121, 91, 0.7);
  transform: translateY(-2px);
}

.btn--ghost:active {
  transform: translateY(0);
}

/* Size modifiers */
.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  box-shadow: 0 16px 38px rgba(176, 96, 63, 0.34);
}

.btn--lg .btn__arrow {
  font-size: 18px;
}

.btn--lg:hover {
  box-shadow: 0 22px 46px rgba(176, 96, 63, 0.42);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14.5px;
  gap: 8px;
}

.btn--block {
  width: 100%;
}

.btn[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Chips
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips--centred {
  justify-content: center;
}

.chip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 15px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.chip--sm {
  font-size: 12.5px;
  color: var(--ink-on-dark-4);
  padding: 6px 14px;
  border-color: rgba(255, 255, 255, 0.2);
}

.chip--sm:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 250, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-compact {
  box-shadow: 0 10px 40px rgba(23, 35, 46, 0.14);
}

.site-header__bar {
  width: 100%;
  max-width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.25s ease;
}

.site-header.is-compact .site-header__bar {
  height: var(--header-h-compact);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand__logo {
  height: 26px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header.is-compact .brand__logo {
  height: 21px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14.5px;
  color: var(--ink-nav);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 32, 42, 0.11);
  border-radius: 8px;
  padding: 12px 11px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(201, 121, 91, 0.45);
}

.burger span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu — animates open rather than snapping into place */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 251, 0.97);
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--t-slow) var(--ease-soft),
    opacity var(--t-base) ease, padding var(--t-slow) var(--ease-soft),
    visibility 0s linear var(--t-slow);
}

.mobile-menu.is-open {
  visibility: visible;
  max-height: 460px;
  opacity: 1;
  padding: 18px var(--gutter) 26px;
  transition: max-height var(--t-slow) var(--ease-soft),
    opacity var(--t-base) ease, padding var(--t-slow) var(--ease-soft),
    visibility 0s;
}

.mobile-menu__link {
  padding: 13px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu__cta {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 0 0 clamp(80px, 9vw, 130px);
  overflow: hidden;
}

.hero__stage {
  position: relative;
  min-height: clamp(520px, 70vh, 720px);
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 26, 33, 0.28) 0%,
    rgba(20, 26, 33, 0.18) 52%,
    rgba(20, 26, 33, 0.42) 100%
  );
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 620px;
  border-radius: 50%;
  animation: avdDrift 14s ease-in-out infinite;
  background: radial-gradient(
    circle,
    rgba(201, 121, 91, 0.22) 0%,
    rgba(201, 121, 91, 0) 68%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(88px, 10vw, 140px) 28px clamp(64px, 7vw, 96px);
  text-align: center;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 auto 32px;
  max-width: 34em;
  text-wrap: pretty;
}

.hero__chips {
  margin-bottom: 36px;
  pointer-events: auto;
}

.hero__actions {
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   9. Media cards (video + icon overlay)
   -------------------------------------------------------------------------- */
.media-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  /* Card clips are lazy-loaded, so paint the dark ground up front to avoid a
     transparent gap before the video arrives. */
  background: var(--bg-dark);
}

.media-card--5-4 {
  aspect-ratio: 5 / 4;
}

.media-card--4-3 {
  aspect-ratio: 4 / 3;
}

.media-card--16-11 {
  aspect-ratio: 16 / 11;
}

.media-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
  z-index: 2;
}

/* --------------------------------------------------------------------------
   10. Section: About
   -------------------------------------------------------------------------- */
.about__aside {
  align-self: start;
  position: sticky;
  top: 110px;
}

.about__title {
  max-width: 16em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 6px;
}

.about__body .lede + .lede {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   11. Section: Solutions / Conversion / Developers
   -------------------------------------------------------------------------- */
.split__text--offset {
  padding-top: 26px;
}

.section-title--w20 {
  max-width: 20em;
}

.section-title--w18 {
  max-width: 18em;
}

.split__glow {
  position: absolute;
  top: 20%;
  left: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  animation: avdDrift2 18s ease-in-out infinite;
  background: radial-gradient(
    circle,
    rgba(201, 121, 91, 0.1) 0%,
    rgba(201, 121, 91, 0) 70%
  );
  pointer-events: none;
}

.cta-spacer {
  margin-top: 30px;
}

/* Mini feature grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  list-style: none;
  margin-top: 30px;
}

.mini-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(22, 32, 42, 0.09);
  border-radius: 12px;
  padding: 16px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 121, 91, 0.35);
  box-shadow: 0 14px 30px rgba(23, 35, 46, 0.1);
}

.mini-card__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-ink);
  margin-bottom: 7px;
}

.mini-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   12. Section: Payment methods
   -------------------------------------------------------------------------- */
.pm__head {
  max-width: 44em;
  margin-bottom: 44px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}

.pm-card {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pm-card:hover {
  border-color: rgba(208, 136, 99, 0.65);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.pm-card__logo {
  height: 52px;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.pm-card__logo--zoom {
  transform: scale(1.45);
}

.pm-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-on-dark);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   13. Section: Coverage banner
   -------------------------------------------------------------------------- */
.coverage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  min-height: clamp(420px, 52vh, 560px);
  display: flex;
  align-items: center;
}

.coverage__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
}

.coverage__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coverage__inner {
  position: relative;
  width: 100%;
  padding: clamp(32px, 4vw, 60px);
  pointer-events: none;
}

.coverage__panel {
  max-width: 560px;
  background: rgba(18, 26, 34, 0.5);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 28px 70px rgba(9, 14, 19, 0.35);
  pointer-events: auto;
}

.coverage__title {
  font-size: clamp(26px, 2.8vw, 36px);
  color: var(--ink-on-dark);
  margin-bottom: 18px;
}

.coverage__lede {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-on-dark-2);
  margin-bottom: 26px;
  text-wrap: pretty;
}

.coverage__chips {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   14. Section: Final CTA
   -------------------------------------------------------------------------- */
.final {
  padding: clamp(56px, 6vw, 100px) 0 clamp(72px, 8vw, 120px);
}

.final__panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(201, 121, 91, 0.26);
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  padding: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 56px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(23, 35, 46, 0.12);
}

.final__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  border-radius: 50%;
  animation: avdDrift 16s ease-in-out infinite;
  background: radial-gradient(
    circle,
    rgba(201, 121, 91, 0.14) 0%,
    rgba(201, 121, 91, 0) 66%
  );
  pointer-events: none;
}

.final__inner {
  position: relative;
}

.final__title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.final__lede {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-3);
  margin: 0 auto 34px;
  max-width: 38em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 5vw, 72px) 0 40px;
  scroll-margin-top: 96px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__logo {
  height: 24px;
  width: 184px;
  object-fit: contain;
  object-position: left center;
}

.site-footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-4);
  max-width: 20em;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__heading {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.site-footer__link {
  font-size: 14.5px;
  color: var(--ink-4);
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--ink);
}

.site-footer__email {
  font-size: 14px;
}

.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--ink-5);
}

.site-footer__copy {
  color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   16. Contact modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 34, 44, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--t-base) ease;
}

.modal[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.modal__dialog {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 460px;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border-radius: 18px;
  border: 1px solid rgba(22, 32, 42, 0.11);
  padding: 34px;
  box-shadow: 0 32px 80px rgba(23, 35, 46, 0.18);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-soft), opacity var(--t-base) ease;
}

.modal.is-open .modal__dialog {
  transform: none;
  opacity: 1;
}

/* Swapping form -> success shouldn't jump the dialog height */
.modal__dialog > [data-view-form],
.modal__dialog > [data-view-sent] {
  animation: avdViewIn var(--t-slow) var(--ease-soft) both;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-4);
  cursor: pointer;
  padding: 6px;
}

.modal__close:hover {
  color: var(--ink);
}

.modal__title {
  font-size: 23px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.modal__sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-4);
  margin-bottom: 26px;
}

.modal__fine {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-5);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.field__input {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line-3);
  border-radius: 9px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: var(--ink-5);
}

.field__input:focus {
  border-color: rgba(201, 121, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 121, 91, 0.12);
}

.field__input[aria-invalid="true"] {
  border-color: rgba(162, 69, 59, 0.55);
}

textarea.field__input {
  resize: vertical;
  min-height: 104px;
}

.form__error {
  font-size: 13.5px;
  color: var(--danger);
  background: rgba(162, 69, 59, 0.07);
  border: 1px solid rgba(162, 69, 59, 0.24);
  border-radius: 9px;
  padding: 10px 12px;
}

.form__error[hidden] {
  display: none;
}

/* Success panel */
.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 2px;
}

.sent[hidden] {
  display: none;
}

.sent__card {
  width: 100%;
  background: var(--accent-grad);
  border-radius: 14px;
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(176, 96, 63, 0.28);
}

.sent__badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.sent__title {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}

.sent__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 320px;
  text-wrap: pretty;
}

.sent__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
  margin-top: 18px;
}

.sent__email {
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.sent__close {
  margin-top: 18px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Reveal + tilt
   -------------------------------------------------------------------------- */
/* A gentle rise. The design used a hard 3D tilt (translateZ + rotateX) which
   reads as a lurch on long sections; this keeps the lift and drops the jolt. */
.reveal-hidden {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
}

.reveal-hidden[data-reveal-kind="card"] {
  transform: translate3d(0, 20px, 0) scale(0.975);
}

.reveal-hidden[data-reveal-kind="inner"] {
  transform: translate3d(0, 14px, 0);
}

.reveal-shown {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.tilt__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 6;
}

/* --------------------------------------------------------------------------
   18. Keyframes
   -------------------------------------------------------------------------- */
@keyframes avdDrift {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-46%, 14px) scale(1.06);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes avdDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes avdViewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes avdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive
   These replace the design prototype's runtime applyResponsive() JS.
   Breakpoints: 980px ("stacked") and 620px ("small") — same as the design.
   -------------------------------------------------------------------------- */
@media (max-width: 979px) {
  .nav--desktop,
  .nav__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Media column moves above the copy when the split stacks */
  .media-col {
    order: -1;
  }

  .about__aside {
    position: static;
    top: auto;
  }

  .pm-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 619px) {
  .u-hide-mobile {
    display: none;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pm-card {
    padding: 16px 10px;
  }

  .pm-card__logo {
    height: 40px;
  }

  .hero__stage {
    min-height: 460px;
  }

  .hero__title {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .coverage {
    min-height: 380px;
  }

  .site-footer__link {
    padding: 8px 0;
  }

  .modal {
    padding: 16px;
  }

  .modal__dialog {
    padding: 28px 22px;
  }

  /* Design behaviour: body copy is clamped to 4 lines on small screens to keep
     the page compact. Remove this block to show the full copy on mobile. */
  .clamp-mobile {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   20. Motion mode
   site.js stamps <html data-motion="full|reduced"> from AVD_CONFIG.motion.
   "auto" (the default) resolves to the visitor's prefers-reduced-motion setting.

   Reduced mode drops MOVEMENT — travel, parallax, drifting glows. Opacity and
   colour fades are not movement, so they stay: killing them outright (as the
   design prototype did) makes every hover and menu snap, which reads as
   "broken" rather than "calm".
   -------------------------------------------------------------------------- */
:root[data-motion="reduced"] {
  scroll-behavior: auto;
}

:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  /* No transform/position travel… */
  transition-property: opacity, color, background-color, border-color,
    box-shadow, filter, visibility, max-height, padding !important;
  scroll-behavior: auto !important;
}

/* …and no looping ambient animation. */
:root[data-motion="reduced"] .hero__glow,
:root[data-motion="reduced"] .split__glow,
:root[data-motion="reduced"] .final__glow {
  animation: none;
}

/* Content is placed, not flown in. */
:root[data-motion="reduced"] .reveal-hidden,
:root[data-motion="reduced"] .reveal-shown {
  opacity: 1;
  transform: none;
}

:root[data-motion="reduced"] .modal__dialog {
  transform: none;
}

:root[data-motion="reduced"] .modal__dialog > [data-view-form],
:root[data-motion="reduced"] .modal__dialog > [data-view-sent] {
  animation-name: avdFadeIn;
}

/* Hover lifts become plain colour changes. */
:root[data-motion="reduced"] .btn:hover,
:root[data-motion="reduced"] .chip:hover,
:root[data-motion="reduced"] .mini-card:hover {
  transform: none;
}

/* No-JS fallback: nothing gets stamped without site.js, so still honour the OS
   setting for the ambient animation CSS drives on its own. */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion]) {
    scroll-behavior: auto;
  }

  :root:not([data-motion]) .hero__glow,
  :root:not([data-motion]) .split__glow,
  :root:not([data-motion]) .final__glow {
    animation: none;
  }
}
