@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07140f;
  --ink-2: #0c241c;
  --text: #15261e;
  --muted: #4e6458;
  --paper: #eef3f0;
  --white: #ffffff;
  --line: rgba(7, 20, 16, 0.1);
  --green: #0b8a5b;
  --green-d: #086b46;
  --mint: #e5f8ef;
  --gold: #e0b15a;
  --danger: #a33b32;
  --shadow: 0 18px 50px rgba(7, 20, 16, 0.08);
  --header: 78px;
  --radius: 24px;
  --font: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 10px);
}

body.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
  background:
    radial-gradient(circle at 100% -10%, rgba(11, 138, 91, 0.12), transparent 32%),
    var(--paper);
}

img, svg { max-width: 100%; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  line-height: 1.35;
  font-weight: 800;
  margin: 0;
}

a { color: var(--green-d); }

p { margin: 0; }

ul { margin: 0; padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus { top: 0.7rem; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #3ddeaf);
  transform: scaleX(0);
  transform-origin: right center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  color: white;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(7, 20, 16, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand strong,
.brand small { display: block; }

.brand strong {
  font-size: 0.98rem;
  line-height: 1.35;
  white-space: nowrap;
}

.brand small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.75rem;
  font-weight: 500;
}

.logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  position: relative;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  inset-inline: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle span:nth-child(4) { top: 28px; }

.site-header.menu-open .nav-toggle span:nth-child(2) {
  top: 22px;
  transform: rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(3) { opacity: 0; }

.site-header.menu-open .nav-toggle span:nth-child(4) {
  top: 22px;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav > ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: var(--header);
}

.site-nav > ul > li {
  display: flex;
  align-items: center;
  position: relative;
}

.site-nav > ul > li > a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .site-nav > ul > li > a:hover,
.site-header.menu-open .site-nav > ul > li > a:hover,
.site-header.scrolled .site-nav > ul > li > a:focus-visible,
.site-header.menu-open .site-nav > ul > li > a:focus-visible {
  background: rgba(11, 138, 91, 0.1);
}

.site-nav a.is-active { color: #d9ffe9; }

.site-header.scrolled .site-nav a.is-active,
.site-header.menu-open .site-nav a.is-active { color: var(--green-d); }

.sub {
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  min-width: 250px;
  background: white;
  color: var(--text);
  border-radius: 18px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}

.sub a:hover,
.sub a:focus-visible { background: var(--mint); color: var(--green-d); }

.sub a.is-active { color: var(--green-d); background: var(--mint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; }

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #14a06c, #0b8a5b);
  color: white;
  box-shadow: 0 10px 24px rgba(11, 138, 91, 0.28);
}

.btn-primary:hover { color: white; }

.btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.btn-ghost:hover { background: white; color: var(--ink); }

.btn-line {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover { color: var(--ink); }

.nav-cta { margin-inline-start: 0.3rem; }

.hero,
.page-hero {
  position: relative;
  color: white;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(20, 176, 122, 0.28), transparent 55%),
    radial-gradient(700px 380px at 90% 80%, rgba(224, 177, 90, 0.16), transparent 50%),
    linear-gradient(165deg, #07140f 0%, #0c2a22 52%, #07110e 100%);
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero { padding: calc(var(--header) + 2.6rem) 0 6.2rem; }

.page-hero { padding: calc(var(--header) + 2.2rem) 0 3.2rem; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 2.5rem;
  align-items: center;
}

.hero .eyebrow,
.page-hero .eyebrow { color: var(--gold); }

.hero h1,
.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  max-width: 100%;
}

.lead {
  margin-top: 0.9rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.35rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-points li { display: flex; align-items: center; gap: 0.4rem; }

.hero-points li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3ddeaf;
}

.hero-copy > * { animation: rise 0.8s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

.hero-stage {
  position: relative;
  min-height: 460px;
  animation: rise 0.9s 0.12s ease both;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.orb-a {
  width: 190px;
  height: 190px;
  background: rgba(20, 176, 122, 0.28);
  inset-inline-end: -10px;
  top: -20px;
}

.orb-b {
  width: 130px;
  height: 130px;
  background: rgba(224, 177, 90, 0.25);
  inset-inline-start: 0;
  bottom: 30px;
}

.glass {
  position: relative;
  z-index: 1;
  margin: 46px 34px 70px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.glass-top,
.glass-body { padding: 1rem 1.1rem; }

.glass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots { display: flex; gap: 0.35rem; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--gold); }
.dots i:nth-child(2) { background: #3ddeaf; }
.dots i:nth-child(3) { background: rgba(255, 255, 255, 0.45); }

.glass-body { display: grid; gap: 0.65rem; }

.bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #3ddeaf);
  transform-origin: left center;
  animation: grow 2.8s ease infinite;
}

.bar.d2::before { animation-delay: 0.35s; }
.bar.d3::before { animation-delay: 0.7s; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.metrics div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem;
}

.metrics b { display: block; font-size: 0.92rem; }
.metrics small { color: rgba(255, 255, 255, 0.68); }

.float-card {
  position: absolute;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 132px;
  background: rgba(8, 24, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-card span { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; }
.float-a { inset-inline-start: 6px; bottom: 18px; }
.float-b { inset-inline-end: 8px; top: 18px; animation-delay: -2.2s; }

.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 74px;
  z-index: 2;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: 100%; display: block; }

.marquee {
  overflow: hidden;
  direction: ltr;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding-block: 0.9rem;
  animation: ticker 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  direction: rtl;
  white-space: nowrap;
  font-weight: 600;
  color: var(--muted);
}

.marquee span::before {
  content: "●";
  color: var(--green);
  margin-inline-end: 0.55rem;
  font-size: 0.55rem;
}

.section { padding-block: clamp(3.2rem, 7vw, 5.8rem); }

.section-head { max-width: 40rem; margin-bottom: 1.5rem; }

.section-head h2,
.block-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.45rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--green-d);
}

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.9rem;
}

.bento-card,
.mini-card,
.project,
.value,
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(7, 20, 16, 0.04);
}

.bento-card,
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  padding: 1.25rem;
  min-height: 190px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover,
.mini-card:hover,
.project:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: rgba(11, 138, 91, 0.35);
  box-shadow: var(--shadow);
}

.bento .wide {
  grid-row: span 2;
  min-height: 100%;
  color: white;
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(224, 177, 90, 0.2), transparent 50%),
    linear-gradient(180deg, #0c241c, #0d3b2c);
}

.bento .wide p { color: rgba(255, 255, 255, 0.78); }

.kicker {
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.bento-card h3,
.mini-card h3,
.project h2,
.value h3,
.step h3 { margin: 0.35rem 0 0.4rem; font-size: 1.18rem; }

.bento-card p,
.mini-card p,
.project p,
.value p,
.step p,
.section-head p,
.prose p,
.sidecard p { color: var(--muted); }

.bento .wide p { color: rgba(255, 255, 255, 0.78); }

.more {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 800;
  color: var(--green-d);
}

.wide .more { color: #d9ffe9; }

.split,
.with-side,
.contact-grid,
.cards-3,
.steps,
.values,
.project-grid {
  display: grid;
  gap: 0.9rem;
}

.split { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.with-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.cards-3,
.project-grid,
.values { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(4, 1fr); list-style: none; }

.panel,
.sidecard,
.form-card,
.nap-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.sidecard { position: sticky; top: calc(var(--header) + 1rem); }

.sidecard h2 { font-size: 1.2rem; margin-bottom: 0.45rem; }

.ticks { list-style: none; margin-top: 0.8rem; }

.ticks li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin: 0.4rem 0;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  font-weight: 800;
}

.step,
.value,
.project { padding: 1.15rem 1.15rem 1.2rem; }

.step span,
.project-kicker {
  color: var(--green-d);
  font-weight: 800;
  font-size: 0.92rem;
}

.manifesto {
  margin-top: 1rem;
  background: var(--ink);
  color: white;
  border-radius: 28px;
  padding: 1.3rem 1.4rem;
}

.manifesto p { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; font-weight: 700; }

.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.guide p { margin-bottom: 0.8rem; }

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.2rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 500;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p { margin: 0 0 1rem; }

.cta-wrap { padding-bottom: clamp(3rem, 6vw, 5rem); }

.cta-inner {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(224, 177, 90, 0.25), transparent 45%),
    linear-gradient(135deg, #08261c, #0e6b49);
  color: white;
  border-radius: 32px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
}

.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.35rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); max-width: 40rem; }

.site-footer {
  background: var(--ink);
  color: #e7f6ef;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.footer-title { font-weight: 800; margin-bottom: 0.6rem; }

.site-footer a { color: #d7f3e6; text-decoration: none; }
.site-footer a:hover { color: white; }

.site-footer ul { list-style: none; }
.site-footer li { margin: 0.28rem 0; }

.footer-brand p { color: rgba(231, 246, 239, 0.75); margin-top: 0.8rem; }

.footer-contact li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 0.35rem;
}

.footer-contact span { opacity: 0.7; }

.phone-slot {
  display: inline-block;
  min-width: 7.5rem;
  min-height: 1.15em;
  border-bottom: 1px dashed currentColor;
  vertical-align: baseline;
}

.phone-slot:not(:empty) {
  border-bottom: 0;
  min-width: 0;
}

.phone-link {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 0.9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(231, 246, 239, 0.7);
  font-size: 0.92rem;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.crumb li { display: flex; align-items: center; }
.crumb a { color: white; text-decoration: none; }
.crumb li:not(:last-child)::after { content: "/"; margin-inline: 0.4rem; opacity: 0.5; }

.prose .values { grid-template-columns: 1fr 1fr; margin: 1rem 0 0.4rem; }

.prose h2 { font-size: 1.45rem; margin: 1.8rem 0 0.55rem; }
.prose h3 { font-size: 1.12rem; margin: 1.2rem 0 0.35rem; }
.prose p { margin-bottom: 0.85rem; }
.prose a { font-weight: 700; text-underline-offset: 0.18em; }
.prose .ticks { margin-bottom: 1rem; }

.offer-list { display: grid; gap: 0.8rem; margin: 1rem 0; }

.offer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
}

.offer h3 { margin-bottom: 0.25rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.filters button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.filters button.is-on,
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin-top: 0.8rem; }

.tags li {
  background: var(--mint);
  color: var(--green-d);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.note {
  background: #fff8ea;
  border: 1px solid rgba(224, 177, 90, 0.45);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.nap-card h2 { margin-bottom: 0.8rem; }

.nap-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.nap-line span { color: var(--muted); }

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 20px;
  margin-top: 1rem;
}

.map-note { margin-top: 0.55rem; font-size: 0.92rem; }

.form-card h2 { margin-bottom: 0.35rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.field { margin-top: 0.75rem; }

.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }

.field input,
.field textarea,
.field select {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(7, 20, 16, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  min-height: 52px;
  outline: none;
}

.field textarea { min-height: 140px; resize: vertical; }

.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--danger); }

.err { color: var(--danger); min-height: 0; font-size: 0.86rem; margin: 0.25rem 0 0; }

.field.invalid .err { min-height: 1.2em; }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.form-status {
  margin-top: 0.9rem;
  border-radius: 16px;
}

.form-status:not(:empty) {
  background: var(--mint);
  padding: 0.9rem 1rem;
}

.preview {
  white-space: pre-wrap;
  background: white;
  border-radius: 12px;
  padding: 0.7rem;
  margin-top: 0.6rem;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.to-top {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 30;
  background: var(--ink);
  color: white;
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: white; background: var(--green-d); }

.lift { transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }

.empty-page { min-height: 70vh; display: grid; align-items: center; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: #b7efd4; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes grow {
  0% { transform: scaleX(0.35); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0.55); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }

  .site-header { overflow: visible; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100dvh - var(--header));
    background: #f7faf8;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.15rem 2rem;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav > ul {
    flex-direction: column;
    height: auto;
    align-items: stretch;
  }

  .site-nav > ul > li {
    display: block;
  }

  .site-nav > ul > li > a {
    display: block;
    padding: 0.8rem 0.2rem;
    border-radius: 12px;
  }

  .site-header.menu-open .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 0 0 0.35rem;
  }

  .site-header.menu-open .sub a {
    color: #3d5348;
    padding-inline-start: 1rem;
  }

  .nav-cta { width: 100%; margin: 0.4rem 0 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .with-side,
  .contact-grid,
  .guide,
  .cards-3,
  .project-grid,
  .values { grid-template-columns: 1fr; }

  .bento,
  .steps { grid-template-columns: 1fr 1fr; }

  .bento .wide { grid-row: auto; grid-column: 1 / -1; }

  .hero-stage { min-height: 0; }
  .glass { margin: 0; }
  .float-card { position: static; animation: none; }
  .hero-stage { display: grid; gap: 0.7rem; }
  .float-a, .float-b { justify-self: start; }

  .sidecard { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand strong { white-space: normal; }
}

@media (max-width: 640px) {
  .bento,
  .steps,
  .form-row,
  .footer-grid,
  .metrics,
  .prose .values { grid-template-columns: 1fr; }

  .hero { padding-top: calc(var(--header) + 1.6rem); }
  .brand small { display: none; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .marquee-track { flex-wrap: wrap; width: auto; }
}

@media print {
  .site-header,
  .marquee,
  .scroll-progress,
  .to-top,
  .hero-stage,
  .cta-wrap { display: none !important; }

  body { background: white; }
  .hero, .page-hero { background: white; color: black; padding-top: 0; }
  .lead, .hero-points { color: black; }
}
