/* =============== Meta Project Solutions — Design System =============== */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --bg-dark: #0c0c0c;
  --bg-dark2: #111111;
  --ink: #0c0c0c;
  --ink-soft: #1f1f1f;
  --muted: #717171;
  --line: #e8e6e1;
  --line-strong: #1a1a1a;
  --accent: #ff5a1f;
  --accent-deep: #d94310;
  --accent-soft: #fff1ea;
  --green: #1a7a4a;
  --green-soft: #eaf5ef;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 0px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- typography ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0 0 0.35em;
}
h1 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: clamp(17px, 1.7vw, 22px); color: var(--muted); max-width: 58ch; line-height: 1.5; }

::selection { background: var(--accent); color: #fff; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(72px, 10vw, 140px) 0; }
hr.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; background: var(--accent);
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  display: block;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 11px 20px !important;
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  transition: background 0.2s, border-color 0.2s !important;
  letter-spacing: 0.02em;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--ink);
  padding: 8px 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; cursor: pointer; font-weight: 600;
}

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

/* ---- mobile menu ---- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px var(--pad);
  gap: 0;
  position: fixed;
  top: 72px; left: 0; right: 0; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 600;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  font-family: var(--font-display);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-accent {
  background: var(--accent); border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-lg { padding: 20px 40px; font-size: 16px; }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(5px); }

/* ---- pill / badge ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-weight: 500;
}
.pill.pill-green {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.pill.pill-green .dot { background: var(--green); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,31,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,90,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); }
}

/* ---- HERO ---- */
.hero {
  padding: clamp(72px,10vw,140px) 0 clamp(56px,8vw,112px);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,90,31,0.035) 100%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: end;
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero::before { display: none; }
}
.hero-eyebrow { margin-bottom: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-panel {
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  padding: 0;
  overflow: hidden;
}
.hero-panel-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-panel-row {
  display: grid; grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--line);
}
.hero-panel-row:last-child { border-bottom: 0; }
.hero-panel-k {
  padding: 14px 20px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.hero-panel-v {
  padding: 14px 20px;
  font-size: 14px; font-weight: 600;
}

/* ---- ticker ---- */
.ticker {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
}
.ticker-track {
  display: inline-block;
  animation: ticker 50s linear infinite;
}
.ticker span { margin: 0 32px; }
.ticker .dot { color: var(--accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- section header ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; line-height: 1.55; }

/* ---- product cards (earthly services) ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 40px 36px 44px;
  background: var(--bg);
  position: relative;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-card:hover { background: var(--bg-alt); }
.product-card .tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.product-card h3 { font-size: clamp(22px,2vw,30px); margin: 0; letter-spacing: -0.03em; }
.product-card .desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.product-card .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.product-card .price strong { font-size: 22px; letter-spacing: -0.02em; }
.product-card .card-link {
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}
.product-card:hover .card-link { gap: 10px; }

/* ---- big number metrics ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2,1fr); } }
.metric {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric:nth-child(4n) { border-right: 0; }
@media (max-width: 720px) { .metric:nth-child(2n) { border-right: 0; } }
.metric .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.metric .v sup { color: var(--accent); font-size: 0.45em; vertical-align: super; }
.metric .k {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}

/* ---- service grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 720px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 40px 36px 44px;
  background: var(--bg);
  position: relative;
  transition: background 0.25s;
}
.service:hover { background: var(--bg-alt); }
.service .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.15em;
  margin-bottom: 28px;
}
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.service ul {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft);
}
.service ul li { padding: 5px 0; border-top: 1px dashed var(--line); }
.service ul li:first-child { border-top: 0; }

/* ---- creds / dia city ---- */
.creds {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(72px,9vw,140px) 0;
}
.creds .eyebrow { color: rgba(255,255,255,0.45); }
.creds h2 { color: #fff; }
.creds-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px;
  margin-top: 48px;
}
@media (max-width: 900px) { .creds-grid { grid-template-columns: 1fr; gap: 36px; } }
.cred-list { display: grid; gap: 0; }
.cred {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cred:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.cred .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-top: 2px; }
.cred h4 { color: #fff; margin-bottom: 4px; font-size: 16px; }
.cred span { color: rgba(255,255,255,0.55); font-size: 14px; }

/* ---- process steps ---- */
.process { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line-strong);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.15em; padding-top: 4px; }
.step h3 { margin: 0; font-size: 22px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 700px) {
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
}

/* ---- page hero ---- */
.page-hero {
  padding: clamp(80px,11vw,160px) 0 clamp(56px,7vw,96px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 24px; display: inline-block; }
.page-hero h1 { font-size: clamp(44px,6.5vw,88px); }

/* ---- rows list ---- */
.rows { border-top: 1px solid var(--line-strong); }
.row-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.row-item .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.row-item h3 { margin: 0; font-size: 18px; }
.row-item .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---- stack grid ---- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .stack-grid { grid-template-columns: repeat(2,1fr); } }
.stack-item {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 16px;
  font-family: var(--font-mono); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  transition: background 0.2s, color 0.2s;
}
.stack-item:hover { background: var(--ink); color: #fff; }
.stack-item .t { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.stack-item:hover .t { color: var(--accent); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq details {
  border-bottom: 1px solid var(--line-strong);
  padding: 24px 0;
  cursor: pointer;
}
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--accent);
  font-size: 22px; transition: transform 0.2s;
  min-width: 20px; text-align: right;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---- contact form ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.field {
  display: block;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  margin-bottom: 4px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 0; background: transparent;
  font-family: var(--font-display);
  font-size: 16px; color: var(--ink);
  padding: 6px 0; outline: none;
  appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.contact-info .row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  align-items: center;
}
.contact-info .row .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.contact-info .row .v { color: var(--ink); font-weight: 500; }

/* ---- footer ---- */
.site-footer {
  background: var(--bg-dark); color: #fff;
  padding: 88px 0 36px;
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 500;
  margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3,1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; max-width: 32ch; margin-top: 20px; }
.footer-brand .brand small { color: rgba(255,255,255,0.4); }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); }
.footer-brand .brand-mark::after { background: var(--accent); }
.footer-brand .brand { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ---- reveal ---- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* stagger children */
.stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.35s; }
.stagger.in > * { opacity: 1; transform: translateY(0); }

/* reveal from left */
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

/* reveal scale */
.reveal-scale {
  opacity: 0; transform: scale(0.93);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* ---- floating decorative objects ---- */
.deco-grid {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 0;
}
.deco-sq {
  position: absolute;
  border: 1px solid rgba(255,90,31,0.18);
  animation: deco-float 8s ease-in-out infinite;
}
.deco-sq:nth-child(2) { animation-delay: -3s; animation-duration: 11s; }
.deco-sq:nth-child(3) { animation-delay: -6s; animation-duration: 9s; }
@keyframes deco-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(1.5deg); }
  66%      { transform: translateY(6px) rotate(-1deg); }
}

.deco-dot-grid {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---- animated counter ---- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---- magnetic button ---- */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.2s ease, border-color 0.2s ease;
}

/* ---- line draw ---- */
.line-draw {
  position: relative;
  overflow: hidden;
}
.line-draw::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.line-draw.in::after { transform: scaleX(1); }

/* ---- ticker hover pause ---- */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---- service card lift ---- */
.service {
  transition: background 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 1;
}

/* ---- product card lift ---- */
.product-card {
  transition: background 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ---- metric count animation ---- */
.metric {
  transition: background 0.2s;
}
.metric:hover { background: var(--bg-alt); }

/* ---- hero cursor light ---- */
.cursor-light {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: left 0.12s ease, top 0.12s ease;
  z-index: 0;
  mix-blend-mode: multiply;
}

/* ---- nav underline slide ---- */
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

/* ---- brand mark spin on hover ---- */
.brand:hover .brand-mark {
  animation: sq-spin 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes sq-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(90deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ---- stack item appear ---- */
.stack-grid .stack-item {
  opacity: 0; transform: translateY(12px);
  transition: background 0.2s, color 0.2s,
              opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.stack-grid.in .stack-item { opacity: 1; transform: translateY(0); }
.stack-grid.in .stack-item:nth-child(1)  { transition-delay: 0.00s; }
.stack-grid.in .stack-item:nth-child(2)  { transition-delay: 0.04s; }
.stack-grid.in .stack-item:nth-child(3)  { transition-delay: 0.08s; }
.stack-grid.in .stack-item:nth-child(4)  { transition-delay: 0.12s; }
.stack-grid.in .stack-item:nth-child(5)  { transition-delay: 0.16s; }
.stack-grid.in .stack-item:nth-child(6)  { transition-delay: 0.20s; }
.stack-grid.in .stack-item:nth-child(7)  { transition-delay: 0.24s; }
.stack-grid.in .stack-item:nth-child(8)  { transition-delay: 0.28s; }

/* ---- cred row appear ---- */
.cred {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
}
.cred:hover { transform: translateX(6px); }

/* ============================================================
   MOBILE OPTIMIZATION — max-width: 640px
   ============================================================ */

@media (max-width: 640px) {

  /* layout */
  :root {
    --pad: 20px;
  }
  section { padding: 56px 0; }
  .page-hero { padding: 56px 0 40px; }

  /* hero */
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-panel { display: none; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-eyebrow { gap: 8px; }
  .hero-eyebrow .pill { font-size: 10px; padding: 5px 10px; }

  /* section head */
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }

  /* metrics */
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric { padding: 24px 16px; }
  .metric .v { font-size: 36px; }

  /* services grid */
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 28px 24px 32px; }

  /* quick services */
  .quick-services { grid-template-columns: 1fr; }
  .qs-card { padding: 28px 24px 32px; }

  /* products grid */
  .products-grid { grid-template-columns: 1fr; }

  /* process steps */
  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0; }
  .step p { grid-column: 2; margin-top: 8px; }
  .step h3 { font-size: 18px; }

  /* creds */
  .creds-grid { grid-template-columns: 1fr; gap: 28px; }
  .cred { grid-template-columns: 48px 1fr; gap: 16px; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info .row { grid-template-columns: 1fr; gap: 4px; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* stack grid */
  .stack-grid { grid-template-columns: repeat(2,1fr); }

  /* rows */
  .row-item { grid-template-columns: 48px 1fr; gap: 12px; }
  .row-item .meta { display: none; }

  /* included grid */
  .included-grid { grid-template-columns: 1fr; }

  /* price panel */
  .price-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }

  /* packages */
  .packages { grid-template-columns: 1fr; }

  /* buttons */
  .btn-lg { padding: 16px 24px; font-size: 15px; }
  .sticky-cta { bottom: 16px; right: 16px; left: 16px; }
  .sticky-cta .btn { width: 100%; justify-content: center; }

  /* cases */
  .cases-grid { grid-template-columns: 1fr; }
  .case-card.featured { flex-direction: column; }
  .case-card.featured .case-visual { width: 100%; min-height: unset; aspect-ratio: 16/9; }
  .case-card.featured .case-body { padding: 28px 24px; }
  .case-body { padding: 24px 20px 28px; }
  .case-results { grid-template-columns: repeat(3,1fr); gap: 0; }
  .case-result .rv { font-size: 18px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* shop / landing pages */
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-right { display: none; }
  .shop-hero-grid { grid-template-columns: 1fr; }
  .shop-hero-right { display: none; }
  .steps-compact { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 72px 1fr; gap: 16px; }
  .tl-row .tl-desc { grid-column: 2; }
  .shop-timeline .tl-row { grid-template-columns: 72px 1fr; }

  /* typography scale down */
  h1 { font-size: clamp(36px, 10vw, 56px); }
  h2 { font-size: clamp(26px, 7vw, 36px); }
  .lede { font-size: 16px; }

  /* ticker */
  .ticker { font-size: 11px; }
  .ticker span { margin: 0 20px; }

  /* deco objects */
  .deco-grid { display: none; }

  /* trust bar */
  .trust-bar-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .trust-bar-items { gap: 16px; }

  /* cta fullbleed */
  .cta-fullbleed { padding: 56px 0; }
  .cta-fullbleed p { font-size: 16px; }
}

/* ============================================================
   TABLET — 641px–1024px
   ============================================================ */

@media (min-width: 641px) and (max-width: 1024px) {

  :root { --pad: 32px; }
  section { padding: 80px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { display: none; }
  .hero-cta .btn { padding: 14px 24px; }

  .section-head { grid-template-columns: 1fr 1fr; gap: 32px; }

  .metrics { grid-template-columns: repeat(2,1fr); }

  .services-grid { grid-template-columns: repeat(2,1fr); }

  .stack-grid { grid-template-columns: repeat(3,1fr); }

  .creds-grid { grid-template-columns: 1fr; gap: 36px; }

  .step { grid-template-columns: 90px 1fr 1fr; gap: 20px; }

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

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

  .cases-grid { grid-template-columns: 1fr; }
  .case-card.featured { flex-direction: column; }
  .case-card.featured .case-visual { width: 100%; min-height: unset; aspect-ratio: 16/9; }

  .packages { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: repeat(2,1fr); }

  h1 { font-size: clamp(40px, 7vw, 72px); }
}

/* ---- touch: disable hover tilt on cards ---- */
@media (hover: none) {
  .service:hover,
  .product-card:hover,
  .qs-card:hover,
  .package:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .btn:hover { transform: none !important; }
  .cursor-light { display: none !important; }
}

/* ---- btn press ---- */
.btn:active { transform: scale(0.97); }

@media (max-width: 860px) {
  .site-header .wrap { height: 60px; }
  .brand { font-size: 13px; }
  .brand small { display: none; }
  .brand-mark { width: 26px; height: 26px; }

  .mobile-menu {
    top: 60px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .mobile-menu a { font-size: 16px; padding: 14px 0; }
}


/* ---- service page layout ---- */
.service-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--line-strong);
}
@media (max-width: 800px) { .service-detail { grid-template-columns: 1fr; gap: 20px; } }

/* ---- product page hero ---- */
.product-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(80px,11vw,160px) 0 clamp(56px,7vw,96px);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,90,31,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.product-hero h1 { color: #fff; }
.product-hero .lede { color: rgba(255,255,255,0.7); }
.product-hero .eyebrow { color: rgba(255,255,255,0.5); }

/* ---- included list ---- */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 860px) { .included-grid { grid-template-columns: 1fr; } }
.included-item {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 32px 30px;
}
.included-item .ico {
  font-family: var(--font-mono); font-size: 28px;
  color: var(--accent); margin-bottom: 16px; line-height: 1;
}
.included-item h4 { margin-bottom: 8px; font-size: 18px; }
.included-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- timeline ---- */
.timeline { border-top: 1px solid var(--line-strong); }
.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tl-day {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
  padding-top: 3px;
}
.tl-item h4 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- price block ---- */
.price-panel {
  background: var(--bg-dark);
  color: #fff;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .price-panel { grid-template-columns: 1fr; padding: 40px 32px; } }
.price-big {
  font-family: var(--font-display);
  font-size: clamp(52px,6vw,80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.price-big sub {
  font-size: 0.4em; color: rgba(255,255,255,0.5);
  font-weight: 500; vertical-align: baseline;
}
