/* =========================================================
   AfiSofttech — Modern 2026 redesign
   ========================================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --bg-dark: #0b0b0f;
  --bg-dark-2: #14141a;
  --ink: #0b0b0f;
  --ink-2: #2a2a35;
  --ink-mute: #6b6b78;
  --line: rgba(11,11,15,0.08);
  --line-dark: rgba(255,255,255,0.09);

  --accent: oklch(0.62 0.18 280);          /* violet */
  --accent-2: oklch(0.78 0.14 195);        /* teal */
  --accent-soft: oklch(0.95 0.04 280);
  --accent-ink: #ffffff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(11,11,15,0.04), 0 2px 6px rgba(11,11,15,0.04);
  --shadow: 0 1px 2px rgba(11,11,15,0.04), 0 18px 40px -16px rgba(11,11,15,0.18);

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

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
section.tight { padding: clamp(56px, 7vw, 90px) 0; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor; opacity: 0.5;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; margin: 0; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-weight: 600; line-height: 1.02; }
h2 { font-weight: 600; line-height: 1.05; font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.025em; }
h3 { font-weight: 600; font-size: clamp(22px, 1.6vw, 26px); line-height: 1.25; }

.display {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-weight: 600;
}
.display .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(96deg, #ffffff 30%, oklch(0.78 0.14 280) 70%, oklch(0.85 0.12 195));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 760px; margin: 0 0 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin: 22px 0 0; color: var(--ink-mute); font-size: 18px; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s ease, background .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-outline-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250,250,247,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 200deg, transparent 70%, var(--accent) 80%, var(--accent-2) 92%, transparent 100%);
  animation: rotate 8s linear infinite;
  opacity: 0.9;
}
.brand-mark span { position: relative; z-index: 2; }
@keyframes rotate { to { transform: rotate(360deg); } }
.brand small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: block;
  line-height: 1;
  margin-top: 3px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }

.nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(11,11,15,0.05); color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); }
.menu-btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 180px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 80% 20%, oklch(0.45 0.18 280 / 0.45), transparent 60%),
    radial-gradient(50% 40% at 10% 100%, oklch(0.55 0.14 195 / 0.35), transparent 70%);
  z-index: -1;
}
.hero::after {
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  z-index: -1;
}
.hero .container { position: relative; }
.hero-meta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  font-size: 13px; color: rgba(255,255,255,0.8);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.hero-meta .pill {
  background: oklch(0.62 0.18 280);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 0 4px oklch(0.78 0.18 145 / 0.25);
  display: inline-block;
}
.hero h1 { margin: 28px 0 0; color: #fff; max-width: 14ch; }
.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  color: rgba(255,255,255,0.72);
  max-width: 58ch;
  line-height: 1.55;
}
.hero-actions { margin: 40px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-bottom {
  margin-top: clamp(80px, 9vw, 120px);
  border-top: 1px solid var(--line-dark);
  padding: 32px 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-bottom .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.tech-track {
  display: flex; gap: 56px;
  animation: marq 28s linear infinite;
  width: max-content;
}
.tech-track span {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat {
  padding: 56px var(--pad-x);
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(44px, 4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num small { font-size: 0.55em; color: var(--accent-2); font-weight: 600; }
.stat .lbl {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.about-image {
  position: sticky; top: 120px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, oklch(0.62 0.18 280 / 0.16), oklch(0.78 0.14 195 / 0.16)),
    var(--bg-card);
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-points { display: grid; gap: 14px; margin-top: 36px; }
.point {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.point:last-child { border-bottom: 1px solid var(--line); }
.point .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.point h4 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.point p { margin: 0; color: var(--ink-mute); font-size: 15.5px; line-height: 1.55; }

/* ---------- Services (bento) ---------- */
.services { background: var(--bg); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11,11,15,0.14); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-mute); font-size: 15.5px; line-height: 1.55; }
.card .more {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.65;
  transition: opacity .25s;
}
.card:hover .more { opacity: 1; }

.bento .card:nth-child(1) { grid-column: span 3; min-height: 320px; background: var(--ink); color: #fff; border-color: transparent; }
.bento .card:nth-child(1) h3, .bento .card:nth-child(1) .more { color: #fff; }
.bento .card:nth-child(1) p { color: rgba(255,255,255,0.7); }
.bento .card:nth-child(1) .icon { background: rgba(255,255,255,0.08); color: var(--accent-2); }
.bento .card:nth-child(1)::after {
  content: ''; position: absolute; right: -120px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.18 280 / 0.45), transparent 60%);
}
.bento .card:nth-child(2) { grid-column: span 3; min-height: 320px; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 2; }
.bento .card:nth-child(5) { grid-column: span 2; }
.bento .card:nth-child(6) { grid-column: span 3; background: var(--accent-soft); border-color: transparent; }
.bento .card:nth-child(6) .icon { background: #fff; }
.bento .card:nth-child(7) { grid-column: span 3; }

/* ---------- Industries ---------- */
.industries { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.industry {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 16px;
  transition: background .25s;
  position: relative;
}
.industry:nth-child(4n) { border-right: 0; }
.industry:hover { background: var(--bg); }
.industry .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
}
.industry h4 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.industry p { margin: 0; color: var(--ink-mute); font-size: 14.5px; line-height: 1.55; }
.industry .arrow-corner {
  position: absolute; top: 28px; right: 28px;
  width: 24px; height: 24px;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.industry:hover .arrow-corner { opacity: 0.5; transform: translate(2px, -2px); }

/* ---------- Process ---------- */
.process { background: var(--bg); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  padding: 32px 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.step h4 { font-size: 20px; font-weight: 600; margin: 18px 0 10px; }
.step p { margin: 0; color: var(--ink-mute); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 100%, oklch(0.55 0.18 280 / 0.55), transparent 60%),
    radial-gradient(40% 60% at 0% 0%, oklch(0.6 0.14 195 / 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent-2);
}
.cta-band p { color: rgba(255,255,255,0.7); margin: 18px 0 0; font-size: 17px; max-width: 50ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-card); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.info-block { display: grid; gap: 14px; margin-top: 32px; }
.info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-item .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-item h5 { margin: 0 0 4px; font-size: 13px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.info-item p { margin: 0; font-weight: 500; color: var(--ink); }

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.62 0.18 280 / 0.12);
}
.form-msg { margin: 8px 0 16px; }
.form-msg .loading,
.form-msg .error-message,
.form-msg .sent-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.form-msg .loading { background: var(--accent-soft); color: var(--accent); }
.form-msg .error-message { background: oklch(0.95 0.04 30); color: oklch(0.5 0.15 30); }
.form-msg .sent-message { background: oklch(0.95 0.04 145); color: oklch(0.45 0.15 145); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 100px 0 36px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand h3 { color: #fff; margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }
.footer-brand .office {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 18px 0 6px;
}
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 20px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
  background: #fff; color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.newsletter-form button:hover { background: var(--accent); color: #fff; }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-msg {
  margin-top: 10px;
  font-size: 13px;
  min-height: 1em;
}
.newsletter-msg.ok  { color: oklch(0.82 0.14 145); }
.newsletter-msg.err { color: oklch(0.78 0.14 30); }

/* Cloudflare Turnstile spacing */
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }

.footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13.5px;
  flex-wrap: wrap; gap: 16px;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, color .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 15px; height: 15px; }

/* ---------- Scroll-top ---------- */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  z-index: 40;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  transform: translateY(8px);
  box-shadow: var(--shadow);
}
.scroll-top.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--accent); }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: static; max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card:nth-child(n) { grid-column: span 1; }
  .bento .card:nth-child(1) { grid-column: span 2; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industry:nth-child(2n) { border-right: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .display { font-size: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .card:nth-child(n) { grid-column: span 1; }
  .industries-grid { grid-template-columns: 1fr; }
  .industry { border-right: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column-reverse; }
  .hero { padding-top: 140px; }
}

/* Mobile nav */
body.menu-open .mobile-panel { transform: translateX(0); }
.mobile-panel {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 80px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-panel a {
  font-size: 28px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid var(--line); letter-spacing: -0.02em;
}
.mobile-panel .close {
  position: absolute; top: 22px; right: var(--pad-x);
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; place-items: center;
}

