/* XFornax — Enterprise brand system
   Palette from FX logo + forged pillar medals */

:root {
  --bg-deep: #07090c;
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --bg-card: #1a2030;
  --bg-card-hover: #222b3d;
  --navy: #0a1628;
  --navy-mid: #1b2a4a;
  --ink: #f7f4ee;
  --ink-muted: #a8b0bf;
  --ink-dim: #6b7385;
  --flame: #c41e3a;
  --flame-hot: #e63946;
  --flame-deep: #8b1528;
  --copper: #b87333;
  --bronze: #cd7f32;
  --gold: #d4a574;
  --parchment: #f5f0e6;
  --border: rgba(212, 165, 116, 0.18);
  --border-strong: rgba(212, 165, 116, 0.35);
  --success: #3d9b6a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.15);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 30, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(184, 115, 51, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(27, 42, 74, 0.35), transparent 55%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--flame-hot); }
ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ——— Typography ——— */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 36em;
}

.section { padding: 5.5rem 0; position: relative; z-index: 1; }
.section-sm { padding: 3.5rem 0; }
.section-head { margin-bottom: 2.75rem; max-width: 40rem; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 12, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(196, 30, 58, 0.35));
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  margin-left: 0.5rem !important;
  background: linear-gradient(135deg, var(--flame), var(--flame-deep)) !important;
  color: white !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: white !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Language switcher (EN | ES) — first-class, not a afterthought */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--ink-dim);
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="page"],
.lang-switch a.is-active {
  color: var(--bg-deep);
  background: var(--gold);
}

.lang-switch .lang-sep {
  color: var(--ink-dim);
  opacity: 0.5;
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-banner {
  display: none;
  position: relative;
  z-index: 90;
  background: rgba(26, 32, 48, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.lang-banner.is-visible { display: block; }

.lang-banner a {
  color: var(--gold);
  font-weight: 600;
  margin: 0 0.25rem;
}

.lang-banner button {
  margin-left: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--flame-hot), var(--flame-deep));
  color: white;
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover { color: white; filter: brightness(1.06); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--bronze), var(--copper));
  color: #1a1208;
  box-shadow: 0 8px 24px rgba(184, 115, 51, 0.3);
}

.btn-gold:hover { color: #1a1208; filter: brightness(1.05); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ——— Hero ——— */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.15rem;
  background: linear-gradient(180deg, #fff 0%, #d8cfc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--flame-hot));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-visual img:nth-child(2),
.hero-visual img:nth-child(4) {
  transform: translateY(1.5rem);
}

.hero-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.hero-badge img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: none; aspect-ratio: auto; box-shadow: none; }

/* ——— Cards / grids ——— */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid rgba(196, 30, 58, 0.25);
  font-size: 1.4rem;
  color: var(--flame-hot);
}
.card-icon svg { display: block; }

.card p { color: var(--ink-muted); font-size: 0.95rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.pillar-card {
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
}

.pillar-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.pillar-card h3 { font-family: var(--font-display); letter-spacing: 0.04em; }
.pillar-card .handle {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 0.65rem;
}

/* ——— Stats ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat { text-align: center; padding: 0.75rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.stat-label { font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.35rem; }

/* ——— Product cards ——— */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}
.product-card .btn { width: 100%; margin-top: auto; }

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame-hot);
  background: rgba(196, 30, 58, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0.75rem 0 1rem;
}

.product-price span {
  font-size: 0.9rem;
  color: var(--ink-dim);
  font-family: var(--font-body);
}

.product-features {
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.product-features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.55rem;
  top: 0.4rem;
}

.featured {
  border-color: rgba(196, 30, 58, 0.45);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.flagship-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--flame);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* ——— App showcase ——— */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.phone-mock {
  width: min(280px, 100%);
  margin: 0 auto;
  background: linear-gradient(160deg, #1e2638, #0d1118);
  border: 2px solid var(--border-strong);
  border-radius: 36px;
  padding: 0.65rem;
  box-shadow: var(--shadow), var(--shadow-glow);
  aspect-ratio: 9/19;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #050608;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 0.75rem;
}

.phone-screen {
  background: var(--bg-deep);
  border-radius: 26px;
  height: calc(100% - 30px);
  padding: 1rem;
  overflow: hidden;
  font-size: 0.72rem;
}

.phone-screen .ph-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.phone-metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: space-between;
}

.phone-metric strong { color: var(--gold); }

/* ——— Forms ——— */
.form-card {
  max-width: 560px;
  margin: 0 auto;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(61, 155, 106, 0.12);
  border: 1px solid rgba(61, 155, 106, 0.35);
  border-radius: var(--radius-sm);
  color: #7dcea0;
  margin-bottom: 1rem;
}

.form-error {
  display: none;
  padding: 1rem;
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid rgba(196, 30, 58, 0.35);
  border-radius: var(--radius-sm);
  color: #f0a0ab;
  margin-bottom: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.page-hero p { color: var(--ink-muted); max-width: 38rem; margin-top: 0.85rem; }

/* ——— Legal ——— */
.legal {
  max-width: 48rem;
  color: var(--ink-muted);
}

.legal h2 { margin-top: 2rem; font-size: 1.4rem; color: var(--ink); }
.legal h3 { margin-top: 1.35rem; color: var(--ink); }
.legal p, .legal li { margin-bottom: 0.85rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal a { text-decoration: underline; }

/* ——— CTA band ——— */
.cta-band {
  background:
    linear-gradient(135deg, rgba(196, 30, 58, 0.18), rgba(10, 22, 40, 0.9)),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-band p {
  color: var(--ink-muted);
  max-width: 32rem;
  margin: 0.75rem auto 0;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  background: rgba(7, 9, 12, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-top: 0.85rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding: 0.3rem 0;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* ——— Timeline / protocol ——— */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(var(--flame), var(--copper));
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
  padding-left: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}

/* ——— Tables ——— */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
td { color: var(--ink-muted); }
tr:last-child td { border-bottom: none; }

/* ——— Utility ——— */
.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0 auto;
  max-width: var(--max);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid,
  .app-showcase,
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-visual img:nth-child(2),
  .hero-visual img:nth-child(4) { transform: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    background: #0a0c10;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav.open { display: flex; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 0.5rem !important; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 2.5rem; }
  .cta-band { padding: 2rem 1.25rem; }
}

/* Skip link a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--flame);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Zip redesign extras ——— */
.pillar-seal {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: block;
}
.pillar-seal.right { margin-left: auto; }
.pillar-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.btn-block { width: 100%; }
.cta-band .form-card { max-width: 28rem; margin-inline: auto; }
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-open { display: none; }
.menu-toggle.is-open .icon-close { display: block; }
.header-inner { position: relative; }
.focus-ring:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.legal strong { color: var(--ink); }
.timeline.flame::before { background: var(--flame); }
.timeline.copper::before { background: var(--copper); }

@media (max-width: 960px) {
  .pillar-block { grid-template-columns: 1fr; }
  .pillar-seal, .pillar-seal.right { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Honest offline-form note (not a success state) */
.form-offline {
  padding: 1rem 1.1rem;
  background: rgba(184, 115, 51, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-offline a { font-weight: 600; }
.contact-email {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.contact-email a { font-weight: 600; color: var(--gold); }

/* 320px header: keep logo + lang + menu usable */
@media (max-width: 420px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .header-inner { gap: 0.5rem; }
  .header-actions { gap: 0.4rem; }
  .logo { gap: 0.4rem; font-size: 1.15rem; }
  .logo img { width: 36px; height: 36px; }
  .lang-switch {
    margin-left: 0;
    padding: 0.15rem 0.3rem;
    font-size: 0.72rem;
    gap: 0.15rem;
  }
  .lang-switch a { padding: 0.2rem 0.35rem; }
  .menu-toggle { width: 40px; height: 40px; }
}

@media (max-width: 360px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 1.15rem, var(--max)); }
  .logo span { display: none; }
  .logo { gap: 0; }
  .header-inner { gap: 0.35rem; }
  .site-header { height: var(--header-h); }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 9, 12, 0.62);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-backdrop.is-visible { display: block; }
body.nav-open { overflow: hidden; }
@media (min-width: 961px) {
  .nav-backdrop { display: none !important; }
}
.handle a { color: inherit; }
code { font-size: 0.88em; color: var(--gold); }
