/* =============================================================
   Mahabir Orthopedic Equipments — "Precision Instrument"
   Design system: gunmetal + titanium + biomedical teal
   ============================================================= */

:root {
  /* Color */
  --ink: #0d1922;
  --ink-2: #13232f;
  --surface: #f4f6f7;
  --paper: #ffffff;
  --steel: #56656f;
  --steel-2: #7d8b93;
  --line: #dce2e5;
  --line-soft: #eaeef0;
  --teal: #0fb5a6;
  --teal-deep: #0a8579;
  --teal-wash: #e6f7f5;
  --signal: #e0a54a;
  --danger: #d9534f;

  /* Type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Metrics */
  --wrap: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -24px rgba(13, 25, 34, 0.35);
  --shadow-sm: 0 6px 22px -14px rgba(13, 25, 34, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: #dfe7eb; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Eyebrow — monospace spec label (typographic signature) */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--teal);
}
.section--dark .eyebrow { color: var(--teal); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--steel); margin-top: 16px; font-size: 1.08rem; }
.section--dark .section-head p { color: #a9b8c0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 40px;
  font-family: var(--f-display); font-weight: 500; font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--teal); color: #04231f; box-shadow: 0 12px 30px -12px rgba(15, 181, 166, 0.6); }
.btn--primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 246, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(244,246,247,0.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand__sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.24em; color: var(--steel); text-transform: uppercase; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px; border-radius: 30px; font-size: 0.95rem; font-weight: 500;
  color: var(--steel); transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(13,25,34,0.05); }
.nav__links a.active { color: var(--teal-deep); background: var(--teal-wash); }
.nav__cta { margin-left: 10px; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.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; padding: 60px 0 80px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__loc {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-deep); display: inline-flex; gap: 9px; align-items: center;
  background: var(--teal-wash); padding: 7px 14px; border-radius: 30px; margin-bottom: 24px;
}
.hero__loc svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero__lead { color: var(--steel); font-size: 1.15rem; margin-top: 22px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 8px;
}
.chip svg { width: 15px; height: 15px; color: var(--teal); }

/* Blueprint panel — signature */
.blueprint {
  position: relative; background: var(--ink); border-radius: 20px; padding: 30px;
  box-shadow: var(--shadow); aspect-ratio: 1 / 1.02;
  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: 26px 26px;
  overflow: hidden;
}
.blueprint::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(15,181,166,0.28); border-radius: 12px;
  pointer-events: none;
}
.blueprint__tag {
  position: absolute; top: 22px; left: 26px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--teal); text-transform: uppercase; z-index: 2;
}
.blueprint__corner { position: absolute; font-family: var(--f-mono); font-size: 9.5px; color: rgba(255,255,255,0.4); z-index: 2; }
.blueprint svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.bp-line { stroke: #7de9de; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bp-fill { fill: rgba(15,181,166,0.12); stroke: var(--teal); stroke-width: 1.4; }
.bp-dim { stroke: rgba(255,255,255,0.35); stroke-width: 0.8; fill: none; }
.bp-txt { fill: #9fe9e0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; }
.draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.hero.reveal .draw { animation: draw 2.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .bp-txt, .hero .bp-dim { opacity: 0; }
.hero.reveal .bp-txt, .hero.reveal .bp-dim { animation: fadeUp 0.8s var(--ease) 1.6s forwards; }

/* Marquee trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust__row { display: flex; align-items: center; gap: 40px; padding: 22px 0; flex-wrap: wrap; justify-content: space-between; }
.trust__item { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; }
.trust__item strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico {
  width: 50px; height: 50px; border-radius: 12px; background: var(--teal-wash);
  display: grid; place-items: center; color: var(--teal-deep); margin-bottom: 20px;
}
.card__ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.98rem; }
.card__idx { position: absolute; top: 22px; right: 26px; font-family: var(--f-mono); font-size: 11px; color: var(--steel-2); letter-spacing: 0.1em; }

/* Product cards */
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard__visual { aspect-ratio: 16/10; background: var(--ink); position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px; display: grid; place-items: center; }
.pcard__visual svg { width: 62%; height: 62%; }
.pcard__visual .bp-line { stroke-width: 1.6; }
.pcard__badge { position: absolute; top: 14px; left: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase; }
.pcard__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__body h3 { font-size: 1.25rem; }
.pcard__body p { color: var(--steel); font-size: 0.96rem; flex: 1; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--teal-deep); background: var(--teal-wash); padding: 5px 10px; border-radius: 6px; }
.pcard__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 500; color: var(--ink); font-size: 0.95rem; margin-top: 4px; }
.pcard__link svg { width: 16px; transition: transform 0.25s; }
.pcard:hover .pcard__link svg { transform: translateX(4px); color: var(--teal-deep); }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__body p { color: var(--steel); margin-top: 16px; }
.split__list { margin-top: 26px; display: grid; gap: 14px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; }
.split__list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.split__list b { display: block; font-family: var(--f-display); font-weight: 600; }
.split__list span { color: var(--steel); font-size: 0.95rem; }

.stat-badge {
  position: relative; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px; display: grid; gap: 28px; overflow: hidden;
}
.stat-badge::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px; }
.stat-badge__row { position: relative; display: flex; align-items: baseline; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.stat-badge__row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-num { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; color: var(--teal); letter-spacing: -0.03em; min-width: 130px; }
.stat-label { color: #b8c6cd; font-size: 0.95rem; }

/* Process steps (genuinely sequential — numbered) */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--f-mono); font-size: 13px; color: var(--teal-deep); letter-spacing: 0.1em; padding-top: 6px; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--steel); max-width: 620px; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.cert:hover { transform: translateY(-4px); border-color: var(--teal); }
.cert__seal { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; border: 2px dashed var(--teal); display: grid; place-items: center; color: var(--teal-deep); }
.cert__seal svg { width: 26px; height: 26px; }
.cert h3 { font-size: 1.05rem; }
.cert p { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--steel); text-transform: uppercase; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #0a3b39 130%); color: #fff; border-radius: 24px; padding: 60px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(15,181,166,0.3); }
.cta-band::before { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(15,181,166,0.18); }
.cta-band__inner { position: relative; z-index: 1; max-width: 640px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: #fff; }
.cta-band p { color: #a9c4c0; margin-top: 14px; font-size: 1.08rem; }
.cta-band .hero__cta { margin-top: 30px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  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: 30px 30px; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: #fff; }
.page-hero p { color: #a9b8c0; margin-top: 18px; font-size: 1.12rem; max-width: 620px; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: #7d8b93; text-transform: uppercase; margin-bottom: 22px; }
.crumbs a { color: var(--teal); }
.crumbs span { color: #506069; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq__q .plus { width: 26px; height: 26px; flex: none; position: relative; }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--teal-deep); border-radius: 2px; transition: transform 0.3s; }
.faq__q .plus::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.faq__q .plus::after { top: 4px; left: 12px; width: 2px; height: 18px; }
.faq__item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { color: var(--steel); padding: 0 4px 26px; max-width: 720px; }

/* ---------- Blog ---------- */
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__top { aspect-ratio: 16/9; background: var(--ink); display: grid; place-items: center; position: relative;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 22px 22px; }
.post-card__top svg { width: 46%; color: var(--teal); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--teal-deep); text-transform: uppercase; }
.post-card__body h3 { font-size: 1.2rem; }
.post-card__body p { color: var(--steel); font-size: 0.96rem; flex: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.info-card__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-wash); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.info-card__ico svg { width: 22px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--steel); font-size: 0.98rem; }
.info-card a:hover { color: var(--teal-deep); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.98rem; background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,181,166,0.15); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .field__err { display: block; }
.form__note { font-size: 12px; color: var(--steel-2); margin-top: 12px; font-family: var(--f-mono); letter-spacing: 0.03em; }
.form-success { display: none; background: var(--teal-wash); border: 1px solid var(--teal); border-radius: var(--radius); padding: 22px; color: var(--teal-deep); font-weight: 500; margin-top: 18px; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb0b8; padding: 68px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: var(--teal); }
.footer-brand p { margin-top: 18px; font-size: 0.95rem; max-width: 320px; color: #8ea1a9; }
.footer-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #6f818a; margin-bottom: 18px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: #9fb0b8; font-size: 0.95rem; padding: 5px 0; }
.footer-col a:hover { color: var(--teal); }
.footer-cert { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-cert span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; color: #8ea1a9; border: 1px solid rgba(255,255,255,0.12); padding: 5px 9px; border-radius: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; color: #708289; flex-wrap: wrap; }
.footer-bottom a { color: #8ea1a9; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-deep); }
.to-top svg { width: 20px; }

/* ---------- Reveal animation ---------- */
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 44px 32px; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 24px 24px;
    transform: translateY(-140%); transition: transform 0.35s var(--ease); box-shadow: var(--shadow);
    align-items: stretch;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 8px; border-radius: 8px; width: 100%; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .cert-grid, .form__row { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .trust__row { justify-content: flex-start; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
  .reveal-up { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* =============================================================
   INTERACTION SYSTEM — scroll motion, tilt, magnetism, cursor
   ============================================================= */

/* Scroll progress bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--teal), var(--signal)); z-index: 200; transition: width 0.08s linear; }

/* Cursor glow (desktop only, decorative) */
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(circle, rgba(15,181,166,0.10) 0%, rgba(15,181,166,0) 70%); transform: translate(-50%, -50%); will-change: transform; }
.cursor-glow.active { opacity: 1; }
@media (max-width: 860px), (hover: none) { .cursor-glow { display: none; } }

/* Staggered reveal — index-driven delay */
.reveal-up { transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-pop { opacity: 0; transform: scale(0.94) translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-pop.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right.in { opacity: 1; transform: none; }

/* 3D tilt cards */
.tilt { perspective: 900px; }
.tilt__inner { transition: transform 0.15s ease-out, box-shadow 0.3s; transform-style: preserve-3d; will-change: transform; }

/* Magnetic buttons */
.magnetic { display: inline-block; will-change: transform; }
.magnetic .btn { transition: transform 0.35s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s; }

/* Parallax layers */
[data-parallax] { will-change: transform; }

/* Photo + blueprint hybrid media block */
.media-block { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.media-block img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.media-block:hover img { transform: scale(1.06); }
.media-block__tag { position: absolute; top: 16px; left: 16px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(13,25,34,0.55); backdrop-filter: blur(6px); padding: 7px 12px; border-radius: 30px; z-index: 2; }
.media-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,25,34,0) 55%, rgba(13,25,34,0.55) 100%); pointer-events: none; }
.media-block--tall { aspect-ratio: 3/4; }
.media-block--wide { aspect-ratio: 16/9; }
.media-block--square { aspect-ratio: 1/1; }

/* Reveal mask — clip-path wipe on scroll */
.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease); }
.reveal-mask.in { clip-path: inset(0 0 0% 0); }

/* Photo collage grid (About / region sections) */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 60px); gap: 14px; }
.collage .media-block:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 4; }
.collage .media-block:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 3; }
.collage .media-block:nth-child(3) { grid-column: 4 / 6; grid-row: 3 / 5; }
.collage .media-block:nth-child(4) { grid-column: 6 / 7; grid-row: 3 / 5; }
.collage .media-block:nth-child(1) img, .collage .media-block:nth-child(2) img, .collage .media-block:nth-child(3) img, .collage .media-block:nth-child(4) img { position: absolute; inset: 0; }
.collage .media-block { position: relative; }
@media (max-width: 720px) { .collage { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(4, 110px); } .collage .media-block:nth-child(1){grid-column:1/3;grid-row:1/3;} .collage .media-block:nth-child(2){grid-column:1/2;grid-row:3/5;} .collage .media-block:nth-child(3){grid-column:2/3;grid-row:3/4;} .collage .media-block:nth-child(4){grid-column:2/3;grid-row:4/5;} }

/* Hero floating photo badge */
.hero__visual { position: relative; }
.hero__float { position: absolute; width: 132px; height: 132px; border-radius: 16px; overflow: hidden; border: 4px solid var(--surface); box-shadow: var(--shadow); z-index: 3; transition: transform 0.3s var(--ease); }
.hero__float:hover { transform: scale(1.06) rotate(-2deg); }
.hero__float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__float--photo { left: -22px; bottom: -22px; }
@media (max-width: 960px) { .hero__float { display: none; } }

/* Marquee strip (certifications / standards) */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.marquee__item svg { width: 16px; height: 16px; color: var(--teal); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Material compare toggle (products page) */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.compare__tabs { display: flex; border-bottom: 1px solid var(--line); }
.compare__tabs button { flex: 1; padding: 15px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.compare__tabs button.active { color: var(--teal-deep); border-color: var(--teal); background: var(--teal-wash); }
.compare__panel { display: none; padding: 26px; }
.compare__panel.active { display: block; }
.compare__row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.compare__row:last-child { border-bottom: none; }
.compare__row b { font-family: var(--f-mono); font-weight: 500; color: var(--steel); font-size: 0.85rem; letter-spacing: 0.03em; }

/* Sticky spec rail (products page) */
@media (min-width: 961px) { .sticky-rail { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Scroll-spy TOC (blog articles) */
.toc { border-left: 2px solid var(--line); padding-left: 20px; display: grid; gap: 10px; }
.toc a { color: var(--steel); font-size: 0.92rem; transition: color 0.2s, padding-left 0.2s; display: block; }
.toc a:hover { color: var(--teal-deep); }
.toc a.active { color: var(--teal-deep); font-weight: 600; padding-left: 6px; }

/* Article body typography */
.article-body { max-width: 720px; }
.article-body h2 { font-size: 1.5rem; margin: 42px 0 16px; }
.article-body h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.article-body p { color: var(--steel); margin-bottom: 18px; font-size: 1.03rem; }
.article-body ul, .article-body ol { color: var(--steel); margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--teal); padding: 4px 0 4px 20px; margin: 26px 0; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.article-body .callout { background: var(--teal-wash); border: 1px solid rgba(15,181,166,0.25); border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0; font-size: 0.95rem; color: var(--ink); }
.article-body .callout strong { color: var(--teal-deep); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.article-meta { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 26px; flex-wrap: wrap; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel-2); }
.article-hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; margin-bottom: 8px; box-shadow: var(--shadow); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.share-row { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-row span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--steel); transition: all 0.2s; }
.share-btn:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }

/* Newsletter inline form */
.inline-form { display: flex; gap: 10px; max-width: 420px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 0.94rem; }
.inline-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,181,166,0.15); }
.section--dark .inline-form input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; }
.section--dark .inline-form input::placeholder { color: #7d8b93; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(13,25,34,0.92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2); }
.lightbox__close:hover { background: rgba(255,255,255,0.18); }
[data-lightbox] { cursor: zoom-in; }

/* Number ticker highlight underline (signal accent for occasional emphasis) */
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: rgba(224,165,74,0.35); z-index: -1; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tilt__inner { transform: none !important; }
  .magnetic { transform: none !important; }
  .marquee__track { animation: none; }
  .reveal-mask { clip-path: inset(0 0 0% 0); }
  .reveal-pop, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
