/* ============================================================
   BioVantage — Apple-inspired Light Theme
   Style: Bento Grid + Minimalism
   ============================================================ */

:root {
  /* — Surfaces — */
  --bg: #fafafa;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --card-elev: #ffffff;
  --border: #e5e5ea;
  --border-strong: #d2d2d7;

  /* — Text — */
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-soft: #86868b;

  /* — Brand (biomedical) — */
  --brand: #0891b2; /* cyan */
  --brand-2: #06b6d4;
  --health: #059669; /* health green */
  --grad: linear-gradient(135deg, #0891b2 0%, #059669 100%);
  --grad-soft: linear-gradient(135deg, rgba(8, 145, 178, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);

  /* — Type scale — */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --display: clamp(2.5rem, 6vw, 4.75rem);
  --h1: clamp(2rem, 4.5vw, 3.5rem);
  --h2: clamp(1.75rem, 3.4vw, 2.75rem);
  --h3: 1.375rem;
  --h4: 1.0625rem;
  --body: 1rem;
  --small: 0.875rem;

  /* — Geometry — */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* — Shadow ladder — */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-2: 0 4px 14px rgba(0, 0, 0, 0.05);
  --sh-3: 0 10px 30px rgba(0, 0, 0, 0.06);
  --sh-4: 0 20px 50px -10px rgba(0, 0, 0, 0.1);

  /* — Motion — */
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 360ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ─────────────────  TYPOGRAPHY UTILS  ───────────────── */

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 600;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); font-weight: 600; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* ─────────────────  BUTTONS  ───────────────── */

.btn {
  --btn-bg: var(--text);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease),
    color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-3);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--text);
  --btn-fg: #fff;
}

.btn--primary:hover {
  --btn-bg: #2c2c2e;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(0, 0, 0, 0.04);
}

.btn--text {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  height: auto;
  padding: 4px 0;
  border-radius: 0;
  font-weight: 500;
}
.btn--text:hover {
  transform: none;
  box-shadow: none;
  --btn-fg: #075a73;
}

.btn--lg {
  height: 56px;
  padding: 0 32px;
  font-size: 1rem;
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn--block {
  width: 100%;
}

/* ─────────────────  NAV  ───────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 250, 0.85);
}

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

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.nav__logo {
  width: 28px;
  height: 28px;
}

.nav__name {
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  gap: 28px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nav__links a {
  position: relative;
  padding: 6px 2px;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--t-base) var(--ease);
}
.nav__links a:hover::after {
  width: 18px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
}
.nav__toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) linear;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nav__mobile:not([hidden]) {
  display: flex;
}
.nav__mobile a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  font-weight: 500;
}
.nav__mobile .btn {
  margin-top: 12px;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle,
  .nav__mobile {
    display: none !important;
  }
}

/* ─────────────────  HERO  ───────────────── */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  text-align: center;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__orb--a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: -120px;
  left: -10%;
}
.hero__orb--b {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  bottom: -100px;
  right: -8%;
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, -40px) scale(1.1);
  }
}

.hero__title {
  font-size: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 18px auto 24px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 80px auto 0;
  max-width: 880px;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

@media (min-width: 700px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__num {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num span {
  font-size: 0.65em;
  font-weight: 600;
  margin-left: 2px;
}
.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ─────────────────  SECTION SHELL  ───────────────── */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section--soft {
  background: var(--bg-soft);
}

.section__header {
  max-width: 720px;
  margin: 0 0 56px;
}
.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__title {
  font-size: var(--h2);
  letter-spacing: -0.028em;
  margin: 14px 0 16px;
  font-weight: 600;
}
.section__lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ─────────────────  PRODUCT — FEATURE  ───────────────── */

.product-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--sh-2);
  transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.product-feature:hover {
  box-shadow: var(--sh-4);
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .product-feature {
    grid-template-columns: 1.05fr 1fr;
  }
}

.product-feature__media {
  position: relative;
  background: linear-gradient(135deg, #ecfeff 0%, #d1fae5 100%);
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-feature__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.product-feature__body h3 {
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-top: 4px;
}
.product-feature__body .lead {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-top: -4px;
}

.tag {
  display: inline-flex;
  width: max-content;
  padding: 5px 12px;
  background: var(--grad-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: grid;
  gap: 8px;
}
.check li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.95rem;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}

/* DNA visual */
.dna {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}
.dna span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
  animation: helix 4s ease-in-out infinite;
}
.dna span:nth-child(1) { left: 10%;  top: 0;   animation-delay: 0s; }
.dna span:nth-child(2) { left: 30%;  top: 12%; animation-delay: 0.4s; }
.dna span:nth-child(3) { left: 50%;  top: 24%; animation-delay: 0.8s; }
.dna span:nth-child(4) { left: 70%;  top: 36%; animation-delay: 1.2s; }
.dna span:nth-child(5) { left: 70%;  top: 56%; animation-delay: 1.6s; }
.dna span:nth-child(6) { left: 50%;  top: 68%; animation-delay: 2s; }
.dna span:nth-child(7) { left: 30%;  top: 80%; animation-delay: 2.4s; }
.dna span:nth-child(8) { left: 10%;  top: 92%; animation-delay: 2.8s; }

@keyframes helix {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ─────────────────  BENTO  ───────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .bento__card--md { grid-column: span 2; }
  .bento__card--lg { grid-column: span 4; grid-row: span 1; }
  .bento__card--sm { grid-column: span 2; }
}

.bento__card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.bento__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
  border-color: var(--border-strong);
}

.bento__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.bento__card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: 0 6px 16px -4px var(--c1);
}
.bento__icon svg {
  width: 22px;
  height: 22px;
}

.bento__meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  font-weight: 500;
}

.bento__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.bento__chips span {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bento__card--lg {
  background:
    radial-gradient(at 95% 0%, rgba(8, 145, 178, 0.08) 0%, transparent 60%),
    radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    var(--card);
}

.bento__card--lg h3 {
  font-size: 1.5rem;
  letter-spacing: -0.022em;
  margin-top: 4px;
}

/* Mobile bento adjust */
@media (max-width: 899px) {
  .bento__card--lg, .bento__card--md { grid-column: span 2; }
  .bento__card--sm { grid-column: span 1; }
}

/* ─────────────────  STRENGTHS  ───────────────── */

.strengths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 700px) {
  .strengths {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .strengths {
    grid-template-columns: repeat(4, 1fr);
  }
}

.strength {
  background: var(--card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--t-base) var(--ease);
}
.strength:hover {
  background: #fcfcfd;
}

.strength__num {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
}

.strength h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.strength p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ─────────────────  TECHNOLOGY  ───────────────── */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 800px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.tech {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.tech:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}

.tech__visual {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.tech__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.7) 100%);
}

.tech__visual--ai {
  background:
    radial-gradient(at 30% 30%, #a5f3fc 0%, transparent 50%),
    radial-gradient(at 70% 60%, #6366f1 0%, transparent 55%),
    #f0f9ff;
}
.tech__visual--seq {
  background:
    radial-gradient(at 50% 50%, #06b6d4 0%, transparent 50%),
    repeating-linear-gradient(90deg, #ecfeff 0 12px, transparent 12px 24px),
    #f5fdff;
}
.tech__visual--regen {
  background:
    radial-gradient(at 40% 60%, #34d399 0%, transparent 50%),
    radial-gradient(at 80% 30%, #fbcfe8 0%, transparent 60%),
    #f0fdf4;
}
.tech__visual--syn {
  background:
    conic-gradient(from 220deg at 50% 50%, #fbbf24 0%, #f472b6 33%, #818cf8 66%, #fbbf24 100%),
    #faf5ff;
  filter: saturate(0.9);
  opacity: 0.95;
}
.tech__visual--syn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px);
}

.tech__body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tech__body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.tech__body p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ─────────────────  CTA BANNER  ───────────────── */

.cta-banner__inner {
  position: relative;
  background:
    radial-gradient(at 80% 0%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    var(--grad);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 64px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
}
.cta-banner__inner h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: #fff;
}
.cta-banner__inner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  max-width: 50ch;
  margin: 0 auto 28px;
}
.cta-banner__inner .btn {
  background: #fff;
  color: var(--text);
}
.cta-banner__inner .btn:hover {
  background: #f5f5f7;
}

/* ─────────────────  CONTACT  ───────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 22px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-list strong {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.contact-list span {
  color: var(--text);
  font-size: 0.9375rem;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  box-shadow: var(--sh-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.field textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.field .hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.form .btn {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--health);
  min-height: 1em;
}

@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }
  .contact-list li {
    grid-template-columns: 100px 1fr;
  }
}

/* ─────────────────  FOOTER  ───────────────── */

.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.4fr 2fr;
    gap: 56px;
  }
}

.footer__brand .nav__name {
  color: #fff;
}
.footer__brand p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
  font-size: 0.9375rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__cols h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__cols a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a:hover {
  color: #fff;
}

@media (min-width: 600px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* ─────────────────  REVEAL ON SCROLL  ───────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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