/* ============================================================
   FOSS Church — dark theme
   Display: Sora · Body: Inter
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0b0f17;
  --bg-alt: #0e1420;
  --bg-elev: #121a28;
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e7edf6;
  --text-muted: #9aa7b8;
  --text-dim: #8a97a8; /* WCAG AA (>=4.5:1) on --bg for small muted text */

  /* Brand */
  --teal: #2dd4bf;
  --cyan: #38bdf8;
  --gold: #f5b942;
  --grad: linear-gradient(135deg, var(--teal), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(56, 189, 248, 0.16));

  /* Effects */
  --ring: 0 0 0 3px rgba(56, 189, 248, 0.35);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
  --radius: 16px;
  --radius-sm: 11px;

  --container: 1140px;
  --header-h: 70px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f7fc;
}

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

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

p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Accessibility helpers --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--cyan);
  color: #04121d;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ============================ Buttons ============================ */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  padding: 0.92em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad);
  color: #04161b;
  box-shadow: 0 12px 30px -12px rgba(45, 212, 191, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(56, 189, 248, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 15, 23, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 15, 23, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-mark {
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}
.brand-accent {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-menu a.nav-cta {
  margin-left: 6px;
  color: #04161b;
  background: var(--grad);
  font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(45, 212, 191, 0.8);
}
.nav-menu a.nav-cta:hover {
  color: #04161b;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================ Hero ============================ */
.hero {
  position: relative;
  padding: clamp(64px, 12vh, 130px) 0 clamp(60px, 9vh, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.hero-glow-1 {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 65%);
}
.hero-glow-2 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42), transparent 65%);
}

.hero-inner {
  position: relative;
  max-width: 880px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ============================ Sections ============================ */
.section {
  padding: clamp(64px, 11vh, 116px) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ============================ Values ============================ */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.value-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.value-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--teal);
  margin-bottom: 20px;
}
.value-icon svg {
  width: 24px;
  height: 24px;
}
.value-card h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.value-card p {
  font-size: 0.97rem;
}

/* ============================ Cards (services/products) ============================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.card:hover::before {
  opacity: 1;
}
.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--cyan);
  margin-bottom: 22px;
}
.card-icon svg {
  width: 25px;
  height: 25px;
}
.card h3 {
  font-size: 1.26rem;
  margin-bottom: 11px;
}
.card p {
  font-size: 0.99rem;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-product {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.card-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  transition: gap 0.2s ease, color 0.2s ease;
}
.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.card-link:hover {
  color: var(--cyan);
}
.card-link:hover svg {
  transform: translateX(3px);
}

.badge {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-progress {
  color: var(--gold);
  background: rgba(245, 185, 66, 0.12);
  border-color: rgba(245, 185, 66, 0.3);
}
.badge-soon {
  color: #a8b6ff;
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.32);
}

/* ============================ Steps ============================ */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #04161b;
  background: var(--grad);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.96rem;
}

/* ============================ About ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 14px 0 18px;
}
.about-copy p {
  margin-bottom: 16px;
  font-size: 1.04rem;
}
.about-copy blockquote {
  margin: 26px 0 0;
  padding: 18px 24px;
  border-left: 3px solid var(--teal);
  background: var(--grad-soft);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: #eaf2f9;
}
.about-copy blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  font-style: normal;
  color: var(--teal);
  letter-spacing: 0.03em;
}
.about-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
}
.about-panel h3 {
  font-size: 1.16rem;
  margin-bottom: 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin-bottom: 26px;
  display: grid;
  gap: 13px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ============================ Contact ============================ */
.section-contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 14px 0 16px;
}
.contact-intro > p {
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.contact-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-muted);
}
.contact-points svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-points a:hover {
  color: var(--text);
}

/* Form ------------------------------------------------------------------- */
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-card);
}
.form {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0;
}
.req {
  color: var(--gold);
}
.optional {
  color: var(--text-dim);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa7b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}
.field input.invalid,
.field textarea.invalid {
  border-color: rgba(248, 113, 113, 0.7);
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check input:checked {
  background: var(--grad);
  border-color: transparent;
}
.check input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #04161b;
  border-bottom: 2px solid #04161b;
  transform: rotate(45deg);
}
/* :focus fallback for engines without :focus-visible (e.g. Safari < 15.4),
   suppressed for mouse focus where :focus-visible is supported. */
.check input:focus {
  box-shadow: var(--ring);
}
.check input:focus:not(:focus-visible) {
  box-shadow: none;
}

.btn-submit {
  margin-top: 6px;
  position: relative;
}
.btn-submit .spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(4, 22, 27, 0.35);
  border-top-color: #04161b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading {
  opacity: 0.85;
  pointer-events: none;
}
.btn-submit.loading .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Always rendered (never display:none) so the aria-live region is present in
   the accessibility tree and announcements fire reliably. */
.form-status {
  margin: 0;
  font-size: 0.93rem;
  min-height: 1.2em;
}
.form-status.success {
  color: var(--teal);
}
.form-status.error {
  color: #f8a4a4;
}
.form-fineprint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================ Footer ============================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 360px;
  font-size: 0.96rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.footer-nav h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-nav a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 5px 0;
  transition: color 0.16s ease;
}
.footer-nav a:hover {
  color: var(--teal);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.86rem;
  color: var(--text-dim);
}
.footer-verse {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal) !important;
}

/* ============================ Reveal animation ============================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================ Responsive ============================ */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .values,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px clamp(20px, 5vw, 40px) 22px;
    background: rgba(11, 15, 23, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    visibility: hidden; /* remove off-screen links from the tab order when closed */
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-menu a {
    padding: 13px 14px;
    font-size: 1rem;
    border-radius: 11px;
  }
  .nav-menu a.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
  .cards,
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 22px;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
}

/* ============================ Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
