:root {
  --bg: #0a0e14;
  --bg-elev: #0e141c;
  --panel: #111a24;
  --panel-2: #0d131b;
  --border: #1e2a38;
  --text: #e6edf3;
  --muted: #93a1b0;
  --accent: #5eead4;
  --accent-2: #a78bfa;
  --accent-ink: #06251f;
  --danger: #f87171;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

::selection {
  background: rgba(94, 234, 212, 0.25);
}

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

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-menu a {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="true"] {
  color: var(--accent);
}

.nav-num {
  color: var(--accent);
  margin-right: 3px;
}

.nav-cta-item a {
  color: var(--accent-ink) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 360px at 12% 18%, rgba(94, 234, 212, 0.13), transparent 60%),
    radial-gradient(560px 340px at 88% 6%, rgba(167, 139, 250, 0.12), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 161, 176, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 161, 176, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.88rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.06);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.hero-title {
  max-width: 840px;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
  margin-top: 24px;
  font-size: 1.05rem;
}

.hero-focus {
  max-width: 640px;
  margin-top: 22px;
}

.hero-focus li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 9px;
}

.hero-focus li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-focus li strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 10px;
}

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

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #7df0dd;
  box-shadow: 0 8px 26px rgba(94, 234, 212, 0.22);
}

.btn-ghost {
  border-color: rgba(94, 234, 212, 0.5);
  color: var(--accent);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(94, 234, 212, 0.08);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

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

.section {
  padding: 92px 0;
}

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

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 8px;
}

.section-index {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 44px;
}

/* ---------- Forensic data analysis ---------- */

.forensic-hero {
  margin-bottom: 44px;
}

.forensic-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 52px;
  align-items: start;
}

.about-main .lead {
  font-size: 1.18rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.about-main p:not(.lead) {
  color: var(--muted);
}

.about-actions {
  margin-top: 30px;
}

.profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.profile-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.profile-name {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.profile-role {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

.profile-callout {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
  margin-top: 8px;
}

.case-summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
  text-align: left;
}

.profile-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.badge {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
}

.badge-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.badge-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Network ---------- */

.network {
  margin-top: 76px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.network-title {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.network-text {
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 28px;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.network-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.network-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.45);
}

.network-card h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card-link-icon {
  color: var(--accent);
}

.network-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.network-card strong {
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.4);
}

/* ---------- Community ---------- */

.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: center;
}

.community-text p {
  color: var(--muted);
  margin: 16px 0 28px;
}

.community-text .section-title {
  margin-top: 8px;
}

.schedule-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.schedule-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.schedule-list li {
  position: relative;
  color: var(--muted);
  padding-left: 22px;
  margin-bottom: 10px;
}

.schedule-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.schedule-loc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.schedule-loc-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- Consulting banner ---------- */

.consult-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, rgba(94, 234, 212, 0.6), rgba(167, 139, 250, 0.6)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 34px 32px;
  margin-bottom: 40px;
}

.consult-body {
  max-width: 680px;
}

.consult-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.consult-body p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.45);
}

.service-media {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 55%, rgba(10, 14, 20, 0.32) 100%);
  pointer-events: none;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.service-body h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.service-body > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-list li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

.service-cta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
  transition: color 0.2s ease;
}

.service-cta:hover {
  color: #7df0dd;
}

.service-cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.service-cta:hover span {
  transform: translateX(4px);
}

/* ---------- Projects ---------- */

.ai-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent-2);
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
  border-radius: 999px;
  padding: 4px 13px;
  margin-right: 10px;
  vertical-align: middle;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.5);
}

.project-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.14), rgba(167, 139, 250, 0.14));
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-media--logo {
  display: grid;
  place-items: center;
  padding: 30px;
}

.project-media--logo img {
  object-fit: contain;
}

.project-media--logo svg {
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.project-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.07);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 12px;
}

.project-body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.project-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
}

.project-link:hover {
  color: #7df0dd;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 70px 0;
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.12), rgba(167, 139, 250, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-inner p {
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.contact-info .section-title {
  margin: 8px 0 16px;
}

.contact-info > p {
  color: var(--muted);
}

.contact-points {
  margin-top: 26px;
}

.contact-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.96rem;
}

.contact-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.contact-direct {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-direct a {
  font-family: var(--mono);
  color: var(--accent);
  transition: color 0.2s ease;
}

.contact-direct a:hover {
  color: #7df0dd;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.form-success {
  margin-top: 16px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text);
}

.form-success strong {
  color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-elev);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.to-top {
  color: var(--accent);
}

.to-top:hover {
  color: #7df0dd;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

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

  .about-side {
    max-width: 420px;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(10, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 10px 4px 18px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 11px 10px;
    font-size: 0.98rem;
  }

  .nav-cta-item {
    margin-top: 10px;
  }

  .nav-cta-item .btn {
    display: block;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 96px 0 80px;
  }

  .section {
    padding: 68px 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 26px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .consult-banner {
    padding: 26px 22px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}