/* =========================================================
   ByteSize Webdesign: design tokens
   Dark editorial base, ByteSize red as the single accent.
   ========================================================= */
:root {
  /* colour */
  --bg: #0c0708;
  --bg-2: #120a0c;
  --surface: #1a1013;
  --surface-2: #231518;
  --border: rgba(255, 235, 235, 0.10);
  --border-strong: rgba(255, 235, 235, 0.18);
  --text: #f6efef;
  --text-muted: #bfb1b3;      /* 9.2:1 on --bg */
  --text-dim: #93878a;        /* 5.6:1 on --bg */
  --red: #d61f27;             /* brand red; white text 5.3:1 */
  --red-hover: #ec2a33;
  --red-text: #ff6b70;        /* red for text on dark, 6.4:1 */
  --red-glow: rgba(225, 38, 45, 0.45);
  --navy: #0b2e45;

  /* type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 700ms;

  /* z-index scale */
  --z-header: 40;
  --z-float: 30;
  --z-skip: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 10px 16px; background: var(--red); color: #fff; border-radius: var(--radius-sm);
  transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 40px, 860px); }
.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.02em; }
.muted { color: var(--text-dim); }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- type ---------- */
h1, h2 { text-wrap: balance; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.h3-lg { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- pill eyebrow ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  background: rgba(214, 31, 39, 0.10);
  color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 22px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red-hover);
  box-shadow: 0 0 0 4px rgba(236, 42, 51, 0.22);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 28px -10px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 10px 34px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.3); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding: 14px 0;
  transition: background-color var(--dur) var(--ease-out), backdrop-filter var(--dur);
}
.site-header.scrolled {
  background: rgba(12, 7, 8, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  width: min(100% - 32px, 1320px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word strong { font-weight: 800; }

.nav-pill {
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  background: rgba(26, 16, 19, 0.6);
  backdrop-filter: blur(12px);
  padding: 4px;
}
.nav-pill ul { display: flex; gap: 2px; }
.nav-pill a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 16px; border-radius: var(--pill);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-pill a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-pill a.active { color: #fff; background: rgba(214, 31, 39, 0.22); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.05);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  width: min(100% - 32px, 1320px); margin: 12px auto 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 8px;
}
.mobile-menu a {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 190px) 0 80px;
  isolation: isolate;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 1100px; z-index: -1;
  background:
    radial-gradient(50% 45% at 50% 30%, rgba(214, 31, 39, 0.38), transparent 70%),
    radial-gradient(35% 30% at 18% 55%, rgba(120, 14, 22, 0.35), transparent 70%),
    radial-gradient(35% 30% at 85% 50%, rgba(120, 14, 22, 0.30), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  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: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero h1 .and {
  font-style: italic; font-weight: 500; color: var(--red-text);
}
.hero .lead { margin-inline: auto; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* showcase (replaces the reference site's "Identities" screenshot) */
.showcase-wrap { margin-top: 72px; perspective: 1600px; }
.showcase {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(214, 31, 39, 0.15),
    0 40px 120px -30px rgba(214, 31, 39, 0.55),
    0 30px 60px -20px rgba(0,0,0,0.8);
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--tilt-scale, 1));
  will-change: transform;
}
.showcase-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px 14px;
}
.showcase-bar > span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.showcase-bar > span:first-child { background: var(--red); }
.showcase-url {
  margin-left: 12px; padding: 4px 14px; border-radius: var(--pill);
  background: rgba(255,255,255,0.06); font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
}
.showcase img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%;
  border-radius: calc(var(--radius-lg) - 10px);
}
.showcase-tag {
  position: absolute; left: 28px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--pill);
  background: rgba(12, 7, 8, 0.75); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem; font-weight: 600;
}

/* integrations strip */
.integrations { margin-top: 56px; text-align: center; }
.integrations-label {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.chips .ico { width: 18px; height: 18px; color: var(--red-text); }

/* =========================================================
   WHY: floating cards
   ========================================================= */
.why { padding: 140px 0 120px; position: relative; }
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 40% at 50% 50%, rgba(120, 14, 22, 0.28), transparent 70%);
}
.why-stage { position: relative; }
.why-head { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; }
.why-head h2 { margin-bottom: 20px; }
.why-head .lead { margin-inline: auto; }

.float-cards {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fcard {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(35, 21, 24, 0.92), rgba(22, 13, 15, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur) var(--ease-out), translate var(--dur) var(--ease-out);
  translate: 0 var(--float-y, 0px);
}
.fcard:hover { border-color: rgba(255, 107, 112, 0.4); }
.fcard:nth-child(3n + 2) { margin-top: 48px; }
.fcard:nth-child(3n + 3) { margin-top: 18px; }
.fcard-ico {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(214, 31, 39, 0.16); color: var(--red-text);
  border: 1px solid rgba(255, 107, 112, 0.25);
}
.fcard h3 { margin-bottom: 10px; }
.fcard .problem { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 14px; }
.fcard .answer {
  font-size: 0.95rem; color: var(--text);
  padding-top: 14px; border-top: 1px dashed var(--border-strong);
}
.fcard .answer em { font-style: normal; color: var(--red-text); font-weight: 600; }

/* =========================================================
   VISION
   ========================================================= */
.vision { padding: 100px 0 120px; text-align: center; }
.vision .container { display: flex; flex-direction: column; align-items: center; }
.vision-quote { position: relative; margin: 8px 0 28px; }
.vision-quote p {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.25; font-weight: 500; font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.q-mark {
  display: block; font-size: 5rem; line-height: 0.6; color: var(--red);
  font-weight: 800; font-style: normal; height: 40px;
}
.q-mark.end { margin-top: 26px; }
.vision-mission { color: var(--text-muted); max-width: 56ch; margin-bottom: 32px; }
.vision-mission strong { color: var(--text); }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.section-head h2 { max-width: 22ch; }
.section-head .lead { margin-top: 18px; margin-inline: auto; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 120px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.svc-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.svc {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.svc:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.svc p { color: var(--text-muted); }
.svc h3 { font-size: 1.3rem; }
.svc-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(214, 31, 39, 0.14); color: var(--red-text); margin-bottom: 18px;
}
.svc-ico .ico { width: 24px; height: 24px; }
.svc-feature {
  background: linear-gradient(150deg, #e2252d 0%, #b5141b 60%, #8f0f15 100%);
  border-color: transparent;
  box-shadow: 0 30px 80px -30px var(--red-glow);
}
.svc-feature p { color: rgba(255,255,255,0.88); }
.svc-feature .svc-ico { background: rgba(255,255,255,0.16); color: #fff; }

.support { margin-top: 80px; }
.support-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.support-head p { color: var(--text-muted); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sup {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(26, 16, 19, 0.5);
}
.sup h4 { font-size: 1.1rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
.sup h4 .mono { color: var(--red-text); }
.sup > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative; padding-left: 28px; font-size: 0.95rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(214, 31, 39, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* =========================================================
   PROOF STATS
   ========================================================= */
.proof { padding: 40px 0 120px; background: var(--bg-2); }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
}
.stat { padding: 40px 36px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.stat-num {
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin: 10px 0 12px;
  background: linear-gradient(180deg, #fff 30%, #ff8a8e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-num span { font-size: 0.5em; letter-spacing: -0.01em; }
.stat-sub { color: var(--text-dim); font-size: 0.92rem; }

/* =========================================================
   WORK
   ========================================================= */
.work { padding: 120px 0; }
.work-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 5px; margin: 0 auto 40px; width: fit-content; max-width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--pill); background: var(--surface);
}
.work-tabs button {
  min-height: 44px; padding: 10px 20px; border-radius: var(--pill);
  background: transparent; border: 0; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; color: var(--text-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.work-tabs button:hover { color: var(--text); }
.work-tabs button[aria-selected="true"] { background: var(--red); color: #fff; }

.work-panel {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center;
  padding: 40px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  animation: panelIn var(--dur-slow) var(--ease-out);
}
.work-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.devices { position: relative; padding-right: 9%; padding-bottom: 6%; }
.device-desktop {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong);
  background: #000; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1e1517;
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.browser-bar span:first-child { background: var(--red); }
.browser-bar p {
  margin-left: 10px; padding: 2px 12px; border-radius: var(--pill); background: rgba(255,255,255,0.07);
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim);
}
.device-desktop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device-phone {
  position: absolute; right: 0; bottom: 0; width: 26%;
  border-radius: 22px; overflow: hidden; border: 5px solid #1e1517;
  box-shadow: 0 30px 50px -15px rgba(0,0,0,0.9), 0 0 0 1px var(--border-strong);
  background: #000;
}
.device-phone img { width: 100%; aspect-ratio: 420 / 909; object-fit: cover; object-position: top; }

.work-info h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin: 6px 0 6px; }
.work-num { color: var(--red-text); text-transform: uppercase; letter-spacing: 0.1em; }
.work-cat { color: var(--red-text); font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.work-info > p:not(.work-num):not(.work-cat) { color: var(--text-muted); margin-bottom: 22px; }
.work-info .ticks { margin-bottom: 28px; }

.clients {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.clients a {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.clients a:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: #fff; padding: 22px;
}
.logo-tile.navy { background: var(--navy); }
.logo-tile { position: relative; }
.logo-tile img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; }
.client-meta { padding: 16px 18px; display: grid; gap: 2px; }
.client-meta strong { font-size: 0.95rem; line-height: 1.3; }
.client-meta span { font-size: 0.85rem; color: var(--red-text); font-weight: 600; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 120px 0; background: var(--bg-2); position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 500px; translate: -50% -40%;
  background: radial-gradient(closest-side, rgba(214,31,39,0.22), transparent);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.step {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); text-align: center;
}
.step-num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: -64px auto 20px;
  border-radius: 50%; background: #fff; color: var(--red);
  font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--bg-2), 0 0 40px -4px var(--red-glow);
}
.steps .step:first-child .step-num, .steps .step .step-num { margin-top: -64px; }
.steps { padding-top: 32px; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* =========================================================
   WHO + COMPARE
   ========================================================= */
.who { padding: 120px 0; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.who h2 { margin-bottom: 32px; }
.who-list { display: grid; gap: 4px; }
.who-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}
.who-list .mono { color: var(--red-text); }

.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
}
.compare-col { padding: 30px 26px; }
.compare-col h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 1.05rem; }
.compare-col ul { display: grid; gap: 16px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.compare-col .ico { width: 18px; height: 18px; margin-top: 3px; }
.compare .before { background: var(--surface); color: var(--text-muted); }
.compare .before h3 { color: var(--text); }
.compare .before .ico { color: var(--text-dim); }
.compare .after {
  background: linear-gradient(160deg, #d61f27, #8f0f15);
  color: #fff;
}
.compare .after .ico { color: #fff; stroke-width: 2.4; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 120px 0; background: var(--bg-2); }
.faq-list { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur);
}
.faq details[open] { border-color: rgba(255, 107, 112, 0.35); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 24px;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(214,31,39,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b70' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-muted); max-width: 70ch; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; padding: 140px 0; overflow: hidden; isolation: isolate; }
.contact-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 60% at 20% 50%, rgba(214, 31, 39, 0.35), transparent 70%),
    radial-gradient(40% 50% at 90% 80%, rgba(120, 14, 22, 0.35), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-ways { margin-top: 36px; display: grid; gap: 12px; }
.way {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: var(--radius); background: rgba(26, 16, 19, 0.7);
  border: 1px solid var(--border);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.way:hover { border-color: rgba(255, 107, 112, 0.45); transform: translateX(4px); }
.way-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--red); color: #fff; flex: none;
}
.way-label { display: block; font-size: 0.82rem; color: var(--text-dim); font-weight: 500; }
.way-val { display: block; font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }

.contact-form {
  padding: 36px; border-radius: var(--radius-lg);
  background: rgba(26, 16, 19, 0.85); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9);
  display: grid; gap: 18px;
}
.contact-form h3 { font-size: 1.45rem; margin-bottom: 4px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--red-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(12, 7, 8, 0.6);
  font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfb1b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-text); box-shadow: 0 0 0 3px rgba(255, 107, 112, 0.25);
}
.field input[aria-invalid="true"] { border-color: #ff8a8e; }
.err { color: #ff9a9d; font-size: 0.85rem; min-height: 0; }
.err:empty { display: none; }
.form-note { font-size: 0.82rem; color: var(--text-dim); }
.form-status { font-size: 0.92rem; color: var(--text-muted); min-height: 1.4em; }
.form-status.ok { color: #7ee2a8; }
.form-status.bad { color: #ff9a9d; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 34ch; font-size: 0.95rem; }
.footer-brand .muted { margin-top: 8px; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 4px; font-size: 0.95rem; color: var(--text-muted); }
.site-footer ul li { min-height: 32px; display: flex; align-items: center; }
.site-footer ul a { overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--text); }
.footer-cta { margin-top: 18px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: var(--text-dim);
}
.to-top:hover { color: var(--text); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
  transition: transform var(--dur) var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .showcase { transform: none !important; }
  .fcard { translate: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-pill a { padding: 8px 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav-pill, .hide-sm { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 960px) {
  .nav-pill, .hide-sm { display: none; }
  .menu-toggle { display: inline-block; }
  .svc-grid, .support-grid { grid-template-columns: 1fr; }
  .float-cards { grid-template-columns: 1fr 1fr; }
  .fcard:nth-child(n) { margin-top: 0; }
  .work-panel { grid-template-columns: 1fr; gap: 36px; padding: 28px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .who-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .proof-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .container, .container.narrow { width: min(100% - 32px, var(--container)); }
  .brand-word { font-size: 1rem; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding-top: 120px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .showcase-wrap { margin-top: 48px; }
  .showcase { padding: 6px; border-radius: 18px; }
  .showcase img { aspect-ratio: 4 / 3; border-radius: 13px; }
  .showcase-url { display: none; }
  .showcase-tag { left: 16px; bottom: 16px; font-size: 0.78rem; }
  .float-cards { grid-template-columns: 1fr; }
  .why, .services, .work, .process, .who, .faq, .contact { padding: 88px 0; }
  .work-tabs { border-radius: var(--radius); width: 100%; }
  .work-tabs button { flex: 1 1 45%; padding: 10px 12px; font-size: 0.85rem; }
  .work-panel { padding: 18px; }
  .compare { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq details p { padding: 0 18px 18px; }
}

/* hero entrance: CSS only, so above-the-fold content never waits on JS */
.hero-in { animation: heroIn 800ms var(--ease-out) both; }
.hero-inner .hero-in:nth-child(2) { animation-delay: 80ms; }
.hero-inner .hero-in:nth-child(3) { animation-delay: 160ms; }
.hero-inner .hero-in:nth-child(4) { animation-delay: 240ms; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
