/* ==========================================================================
   DFX Technology Limited — landing page
   ========================================================================== */

:root {
  --paper: #f5f3ee;
  --paper-2: #efece5;
  --card: #ffffff;
  --ink: #0e1a2e;
  --ink-2: #46526a;
  --ink-3: #7d879a;
  --line: #e2ded4;
  --line-strong: #cfcabd;
  --accent: #e0472e;
  --accent-2: #c43a22;
  --accent-soft: #fbe8e3;
  --navy: #0e1a2e;
  --navy-2: #15243d;
  --navy-line: #263752;
  --on-navy: #e9edf4;
  --on-navy-2: #aeb8ca;

  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --shadow: 0 28px 56px -36px rgba(14, 26, 46, 0.45);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 40px; } }

/* ---------- Bilingual text layers (see buildStacks in main.js) ---------- */

/* Both translations share one grid cell, so an element is always as tall and wide
   as its longer translation — switching language does not move the layout. */
.i18n-stack {
  display: inline-grid;
  vertical-align: top;
}
.i18n-layer { grid-area: 1 / 1; }

html[data-lang="en"] .i18n-layer[data-l="zh"],
html[data-lang="zh"] .i18n-layer[data-l="en"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.3em);
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* Cross-fade: the old text fades out first, then the new one rises in */
.i18n-ready .i18n-layer {
  transition:
    opacity 0.4s ease 0.14s,
    transform 0.55s var(--ease-out) 0.14s,
    filter 0.4s ease 0.14s,
    visibility 0s linear 0.14s;
}
html.i18n-ready[data-lang="en"] .i18n-layer[data-l="zh"],
html.i18n-ready[data-lang="zh"] .i18n-layer[data-l="en"] {
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    filter 0.16s ease,
    visibility 0s linear 0.16s;
}

/* Until the layers are built, hide the English fallback text for Chinese visitors */
.i18n-pending [data-i18n],
.i18n-pending [data-i18n-html] { visibility: hidden; }

/* ---------- Typography ---------- */

.display,
.h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

.display {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hl { color: var(--accent); }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow-light { color: #ff7b62; }

/* Chinese text: no negative tracking, slightly airier line-height.
   Target the layers only, so the hidden English layer keeps its own metrics. */
.display .i18n-layer:lang(zh) { letter-spacing: 0.01em; line-height: 1.1; font-weight: 700; }
.h2 .i18n-layer:lang(zh) { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
h3 .i18n-layer:lang(zh) { letter-spacing: 0; }
.eyebrow .i18n-layer:lang(zh) { letter-spacing: 0.12em; }
.hl:lang(zh) { white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.45s var(--ease-out),
    transform 0.35s var(--ease-out);
}
.btn .i18n-stack,
.footer-nav .i18n-stack { justify-items: center; }
@media (min-width: 900px) {
  .nav .i18n-stack { justify-items: center; }
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 24px -12px rgba(224, 71, 46, 0.6); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand img { height: 26px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a { position: relative; padding: 6px 0; transition: color 0.3s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch with a sliding indicator */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}
.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out);
}
html[data-lang="zh"] .lang-switch::before { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  min-width: 46px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: #fff; }

.lang-switch-dark { border-color: var(--navy-line); background: transparent; }
.lang-switch-dark::before { background: #fff; }
.lang-switch-dark button { color: var(--on-navy-2); }
.lang-switch-dark button:hover { color: #fff; }
.lang-switch-dark button[aria-pressed="true"] { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(14, 26, 46, 0.35);
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .brand img { height: 22px; }
}
@media (max-width: 400px) {
  .header-actions { gap: 8px; }
  .lang-switch button { min-width: 42px; padding: 6px 9px; }
}

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

.hero { position: relative; overflow: hidden; padding: 56px 0 8px; }

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 26, 46, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-copy .display { margin-top: 24px; }
.hero-copy .lead { margin-top: 24px; max-width: 33rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Globe */
.hero-visual { position: relative; }

.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.globe-canvas.is-dragging { cursor: grabbing; }

.globe-badge {
  position: absolute;
  top: 6%;
  left: 2%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
}
.globe-badge .i18n-layer:lang(zh) { letter-spacing: 0.06em; }

.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.5);
  animation: live 2s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(34, 181, 115, 0); }
}


.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.chip small { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.3; }
.chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.chip-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon-ok { background: #e3f6ec; color: #1f9d63; }
.chip-qc { top: 12%; right: -2%; }
.chip-ship { bottom: 11%; left: -3%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Stats band */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.stat dd { margin-top: 6px; font-size: 0.9rem; color: var(--ink-2); }

@media (max-width: 1023px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .globe-wrap { max-width: 520px; }
  .chip-qc { right: 0; }
  .chip-ship { left: 0; }
}

@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .stat { padding: 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; }
  .chip-icon { width: 30px; height: 30px; border-radius: 8px; }
  .chip-icon svg { width: 17px; height: 17px; }
  .chip strong { font-size: 0.8rem; }
  .chip small { font-size: 0.7rem; }
  .chip-qc { top: 4%; }
  .chip-ship { bottom: 7%; }
  .globe-badge { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

@media (max-width: 767px) { .section { padding: 80px 0; } }

.section-head { max-width: 820px; margin-bottom: 56px; }
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
}
.section-lead { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.45s ease,
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 24px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }

/* Service cards with 3D illustrations */
.card-service { padding-top: 24px; overflow: hidden; }
.card-service::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 71, 46, 0.08), transparent 70%);
  transition: transform 0.5s var(--ease-out);
}
.card-service:hover::before { transform: scale(1.4); }
.card-art {
  position: relative;
  width: 112px;
  height: 112px;
  margin-left: -6px;
  filter: drop-shadow(0 16px 18px rgba(14, 26, 46, 0.16));
  transition: transform 0.5s var(--ease-out);
}
.card-service:hover .card-art { transform: translateY(-4px) rotate(-4deg) scale(1.05); }
.card-service h3 { margin-top: 16px; }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-why:hover .icon { background: var(--accent); color: #fff; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.quote {
  margin-top: 36px;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.about-body > p { font-size: 1.05rem; color: var(--ink-2); }
.about-body > p + p { margin-top: 18px; }
.facts {
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
}
.facts > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.facts dd { font-weight: 500; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 64px;
  right: -24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.step h3 { margin-top: 22px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; padding: 0 0 32px; }
  .step::before { top: 54px; bottom: 0; left: 27px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 12px; }
}

/* Contact */
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark .h2 { color: #fff; }
.section-dark .section-lead { color: var(--on-navy-2); max-width: 32rem; }
.section-dark .btn { margin-top: 36px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.contact-list {
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
}
.contact-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}
.contact-list a,
.contact-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}
.contact-list a { transition: color 0.3s ease; }
.contact-list a:hover { color: #ff7b62; }
.icon-dark { flex: none; background: rgba(224, 71, 46, 0.14); color: #ff7b62; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  border-top: 1px solid var(--navy-line);
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 48px 36px;
}
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { transition: color 0.3s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding-block: 0 28px;
  font-size: 0.82rem;
  color: #7f8aa0;
}
.footer-bottom p { padding-top: 22px; border-top: 1px solid var(--navy-line); }

/* ---------- Reveal on scroll ---------- */

/* A one-off animation rather than a transition, so it never overrides the
   hover transitions of the same elements (cards, steps). */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: reveal 0.8s var(--ease-out) backwards; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { animation-delay: 0.06s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { animation-delay: 0.12s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { animation-delay: 0.18s; }
.cards .reveal:nth-child(5) { animation-delay: 0.24s; }
.cards .reveal:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal:not(.is-visible) { opacity: 1; }
}
