/* ============================================================
   TechForze — Design System
   A single source of truth: tokens, base, components, sections.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f4f3ee;
  --surface: #ffffff;
  --dark: #0e1014;
  --dark-2: #161a21;
  --dark-3: #1d222b;
  --ink: #10141a;
  --ink-2: #343a44;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --line: #e4e1d8;
  --line-dark: #2a3039;
  --accent: #ff4d1c;
  --accent-soft: #ffe9e0;
  --accent-2: #1c6feb;
  --ok: #16a34a;

  --ff-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --shadow-1: 0 1px 2px rgba(14, 16, 20, 0.05), 0 8px 24px rgba(14, 16, 20, 0.06);
  --shadow-2: 0 2px 4px rgba(14, 16, 20, 0.04), 0 20px 48px rgba(14, 16, 20, 0.1);
  --shadow-accent: 0 12px 32px rgba(255, 77, 28, 0.28);

  --container: 1180px;
  --section: clamp(88px, 9vw, 140px);
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--dark { background: var(--dark); color: #e8eaef; }
.section--ink { background: var(--ink); color: #e8eaef; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.display {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.display--1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.display--2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.display--3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-2); line-height: 1.7; }
.section--dark .lead, .section--ink .lead { color: #b7bdc8; }

.muted { color: var(--muted); }
.section--dark .muted, .section--ink .muted { color: var(--faint); }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--r-full);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { transform: translateY(-2px); background: #e84312; }
.btn--ghost { border-color: var(--line-dark); color: #e8eaef; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.84rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }

/* Section head */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head p.sub { max-width: 560px; margin-top: 16px; }

/* ---------- 4. Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 5. Header ---------- */
.topbar {
  background: var(--ink);
  color: #c9ced7;
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
}
.topbar ul { display: flex; gap: 26px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(14, 16, 20, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand em { font-style: normal; color: var(--accent); }

.nav-main { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav-main > li { position: relative; }
.nav-main > li > a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-main > li > a:hover, .nav-main > li.is-active > a { color: var(--accent); }
.nav-main a.is-active { color: var(--accent); }

.has-drop {
  position: relative;
}
.has-drop .caret {
  width: 11px; height: 11px;
  transition: transform 0.2s;
}
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--paper); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav-main {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 22px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-main.open { display: flex; }
  .nav-main > li > a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 14px;
    display: none;
  }
  .has-drop.open .dropdown { display: block; }
  .topbar ul li:last-child { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 77, 28, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(28, 111, 235, 0.1), transparent 55%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(64px, 9vw, 140px);
}
.hero__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero__eyebrow i {
  width: 34px; height: 1px; background: var(--accent);
  font-style: normal;
}
.hero h1 { margin-bottom: 26px; }
.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.hero p { max-width: 540px; margin-bottom: 38px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 3vw, 44px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  max-width: 620px;
}
.stat b {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat b sup { font-size: 0.55em; color: var(--accent); font-weight: 600; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* Hero visual */
.hero__visual { position: relative; }
.window {
  background: var(--dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  border: 1px solid #23282f;
  transform: rotate(-1.5deg);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--dark-2);
  border-bottom: 1px solid #242a32;
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a414b; }
.window__bar i:nth-child(1) { background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: #7d8590;
}
.window__body { padding: 22px 22px 26px; font-family: var(--ff-mono); font-size: 0.84rem; line-height: 1.9; color: #cdd3dc; }
.window__body .c-dim { color: #5c6470; }
.window__body .c-k { color: #ff7a5c; }
.window__body .c-s { color: #7fd0a0; }
.window__body .c-b { color: #6fb3ff; }
.window__body .c-ok { color: #ffd866; }

.hero__float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.hero__float svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.hero__float strong { display: block; font-size: 0.86rem; font-family: var(--ff-display); color: var(--ink); }
.hero__float span { font-size: 0.76rem; color: var(--muted); }
.hero__float--t { top: -24px; right: 6%; text-align: left; }
.hero__float--b { bottom: -22px; left: -6%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 52px;
  background: linear-gradient(var(--muted), transparent);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none; }
}

/* ---------- 7. Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-block: 26px;
}

/* Services strip */
.svc-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.svc-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding-block: 28px;
}
.svc-strip a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 12px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.svc-strip a svg {
  width: 16px; height: 16px;
  color: var(--accent);
  transition: color 0.2s ease;
}
.svc-strip a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}
.svc-strip a:hover svg { color: #fff; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #565d68;
  letter-spacing: -0.01em;
}
.badge .stars { color: #f5a623; font-size: 0.82rem; letter-spacing: 2px; }
.badge small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 8. Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.cap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 32px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cap:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.cap__num {
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--line);
  line-height: 1;
}
.cap__icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 26px;
}
.cap__icon svg { width: 26px; height: 26px; }
.cap h3 { font-family: var(--ff-display); font-size: 1.32rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.cap p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 22px; }
.cap a.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.cap:hover .link svg, .link:hover svg { transform: translateX(4px); }

.partner-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.partner-band::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -140px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.35), transparent 65%);
  border-radius: 50%;
}
.partner-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.partner-band p { color: #b7bdc8; max-width: 520px; margin-bottom: 24px; }
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .partner-band { grid-template-columns: 1fr; }
}

/* ---------- 9. Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px 30px;
  display: flex;
  gap: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.svc-card:hover::before { transform: scaleY(1); }
.svc-card__num {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.svc-card h3 { font-family: var(--ff-display); font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.svc-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 18px; }
.svc-card ul.deliverables { display: flex; flex-wrap: wrap; gap: 8px; }
.deliverable {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: var(--r-full);
  padding: 6px 12px;
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 46px;
  border-top: 1px solid var(--line-dark);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px; left: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--dark);
  padding-right: 10px;
}
.step h4 { font-family: var(--ff-display); font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--faint); line-height: 1.6; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } .step:nth-child(5) { grid-column: span 2; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- 10. Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-list { display: grid; gap: 0; margin-top: 30px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.02rem;
  color: #dfe3e9;
}
.why-list li:first-child { border-top: 1px solid var(--line-dark); }
.why-list .tick {
  width: 34px; height: 34px; flex: none;
  border-radius: var(--r-full);
  background: rgba(255, 77, 28, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.why-list .tick svg { width: 16px; height: 16px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-1);
}
.contact-form h3 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 6px; }
.contact-form .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.14);
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form.dark {
  background: var(--dark-2);
  border-color: var(--line-dark);
}
.contact-form.dark h3, .contact-form.dark label { color: #fff; }
.contact-form.dark .sub { color: var(--faint); }
.contact-form.dark input, .contact-form.dark textarea {
  background: var(--dark-3);
  border-color: var(--line-dark);
  color: #e8eaef;
}
.contact-form.dark input::placeholder, .contact-form.dark textarea::placeholder { color: var(--faint); }
.contact-form.dark input:focus { background: #20242c; }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- 11. Stats ribbon ---------- */
.stats-ribbon {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-rib b {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-rib span { font-size: 0.88rem; opacity: 0.9; }
.stat-rib + .stat-rib { border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 24px; }
@media (max-width: 800px) {
  .stats-ribbon { grid-template-columns: 1fr 1fr; }
  .stat-rib:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- 12. Work ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  transition: all 0.2s;
  background: var(--surface);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.project__cover {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.project__cover .monogram {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  transition: transform 0.3s ease;
}
.project:hover .project__cover .monogram { transform: scale(1.08); }
.project__cover .shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.project:hover .project__cover .shine { transform: translateX(100%); }
.project__body { padding: 20px 22px 24px; }
.project__body h3 { font-family: var(--ff-display); font-size: 1.06rem; font-weight: 600; margin-bottom: 4px; }
.project__body span { font-size: 0.8rem; color: var(--muted); }
.project__body .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.project__body .go svg { width: 13px; height: 13px; transition: transform 0.2s; }
.project:hover .project__body .go svg { transform: translateX(4px); }

/* cover duotones */
.cover-a { background: linear-gradient(135deg, #1c6feb, #0e1014); }
.cover-b { background: linear-gradient(135deg, #ff4d1c, #7a1c0a); }
.cover-c { background: linear-gradient(135deg, #14b8a6, #0c4a42); }
.cover-d { background: linear-gradient(135deg, #7c3aed, #2a0e4f); }
.cover-e { background: linear-gradient(135deg, #f59e0b, #7c4a03); }
.cover-f { background: linear-gradient(135deg, #0e7490, #063440); }
.cover-g { background: linear-gradient(135deg, #64748b, #1e293b); }
.cover-h { background: linear-gradient(135deg, #e11d48, #700a1f); }
.cover-i { background: linear-gradient(135deg, #16a34a, #064e1c); }

@media (max-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* ---------- 13. Community CTA ---------- */
.community {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.community::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(255, 77, 28, 0.22), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(28, 111, 235, 0.18), transparent 55%);
}
.community__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.community h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 14px; }
.community p { color: #b7bdc8; max-width: 620px; margin-bottom: 24px; }
.community .attrs { display: flex; flex-wrap: wrap; gap: 10px; }
.community .attr {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: #e6c9bc;
  border: 1px solid rgba(255, 77, 28, 0.5);
  padding: 7px 14px;
  border-radius: var(--r-full);
}
@media (max-width: 900px) { .community__inner { grid-template-columns: 1fr; } }

/* ---------- 14. Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.testi .quote { font-family: var(--ff-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.testi blockquote { font-size: 0.96rem; color: var(--ink-2); line-height: 1.75; }
.testi footer { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.testi .avatar {
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  flex: none;
}
.testi .avatar.accent { background: var(--accent); }
.testi b { display: block; font-size: 0.95rem; }
.testi span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--ink); color: #c9ced7; }
.site-footer__top {
  padding-block: clamp(56px, 6vw, 80px) 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer p.blurb { font-size: 0.92rem; color: var(--faint); max-width: 340px; line-height: 1.75; }
.site-footer h5 {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer li { margin-bottom: 12px; }
.site-footer li a { font-size: 0.92rem; color: var(--faint); transition: color 0.2s, padding-left 0.2s; }
.site-footer li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }
.footer-contact a:hover { color: var(--accent); padding-left: 0; }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  color: var(--faint);
  transition: all 0.2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--faint);
}
.site-footer__bottom a { color: var(--faint); }
.site-footer__bottom a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* ---------- 16. Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 110px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(255, 77, 28, 0.25), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, rgba(28, 111, 235, 0.18), transparent 55%);
}
.page-hero__inner { position: relative; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 18px; margin-bottom: 18px; }
.page-hero p { color: #b7bdc8; max-width: 620px; }
.crumbs { display: flex; gap: 8px; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--accent); }

/* ---------- 17. About page pieces ---------- */
.value-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px;
}
.value-card .icon { margin: 0 auto 20px; width: 60px; height: 60px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h3 { font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ---------- 18. Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .contact-aside { position: static; } }
.contact-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.contact-card .ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card b { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.contact-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.contact-help {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.contact-help h4 { font-family: var(--ff-display); font-size: 1.05rem; margin-bottom: 14px; }
.contact-help ul { list-style: none; display: grid; gap: 12px; }
.contact-help li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.contact-help .ch-tick { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.contact-help .ch-tick svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Map */
.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark);
  color: #e8eaef;
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
}
.map .pin-pulse {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.map .pin-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 77, 28, 0.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* ---------- 19. Misc ---------- */
.hr-line { height: 1px; background: var(--line); border: 0; margin: 0; }
.big-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.big-quote em { font-style: normal; color: var(--accent); }

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  box-shadow: var(--shadow-2);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--ok); }

.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 200;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--accent); }
.back-top svg { width: 18px; height: 18px; }

/* ---------- 20. Responsive refinement (all display sizes) ---------- */
body { overflow-x: hidden; overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, .display, .stat b { overflow-wrap: break-word; }
button, a, .field input, .field textarea, select { -webkit-tap-highlight-color: transparent; }

/* Tablets: drop 3-col grids to 2-col for comfort */
@media (max-width: 980px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* Testimonials: 3 -> 2 -> 1 */
@media (max-width: 920px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* Stats ribbon: 4 -> 2 -> 1 */
@media (max-width: 800px) {
  .stats-ribbon { grid-template-columns: 1fr 1fr; }
  .stat-rib:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-rib:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 24px; }
}
@media (max-width: 440px) {
  .stats-ribbon { grid-template-columns: 1fr; gap: 20px; }
  .stat-rib, .stat-rib:nth-child(4) { border-left: 0 !important; padding-left: 0 !important; }
}

/* Hero: center visual, keep floats inside bounds */
@media (max-width: 900px) {
  .hero__visual { max-width: 540px; margin-inline: auto; }
  .hero__float--t { right: 10px; }
  .hero__float--b { left: 10px; }
}

@media (max-width: 560px) {
  .hero__grid { padding-block: clamp(56px, 12vw, 96px); }
  .hero p { margin-bottom: 30px; }
  .hero__cta { margin-bottom: 40px; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { gap: 18px 14px; padding-top: 24px; }
  .stat b { font-size: clamp(1.4rem, 7vw, 2rem); }
  .stat span { font-size: 0.75rem; }
  .window { transform: none; }
  .hero__float { padding: 10px 14px; gap: 10px; }
  .hero__float svg { width: 22px; height: 22px; }
  .hero__float strong { font-size: 0.8rem; }
  .hero__float span { font-size: 0.68rem; }
  .hero__float--t { top: -18px; }
  .hero__float--b { bottom: -16px; }
}

/* Services strip: tidy 2-up chips on phones */
@media (max-width: 560px) {
  .svc-strip__inner { gap: 10px; padding-block: 24px; }
  .svc-strip a { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 13px 14px; }
}

/* Cards: reduce padding & blows on small screens */
@media (max-width: 560px) {
  .section-head { margin-bottom: 36px; }
  .cap { padding: 30px 24px; }
  .cap__num { top: 20px; right: 22px; font-size: 2rem; }
  .svc-card { padding: 28px 22px 26px; gap: 18px; }
  .testi { padding: 24px 20px; }
  .partner-band { padding: 32px 24px; }
  .value-card { padding: 30px 20px; }
  .btn--lg { padding: 15px 26px; }
  .community__inner { gap: 28px; }
  .community .btn, .partner-band .btn { width: 100%; }
  .why-list li { font-size: 0.96rem; padding: 15px 0; }
  .page-hero { padding-block: 52px; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* Prevent iOS zoom on form inputs + mobile tap comfort */
@media (max-width: 480px) {
  .field input, .field textarea, .contact-form select { font-size: 16px; padding: 14px 15px; }
  .contact-card { padding: 18px 18px; }
  .contact-help { padding: 20px; }
  .crumbs { font-size: 0.7rem; }
  .window__bar { padding: 12px 14px; }
  .window__bar span { font-size: 0.66rem; }
  .window__body { padding: 16px 16px 20px; font-size: 0.76rem; overflow-wrap: anywhere; }
  .toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }
  .back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Tablets & phones: keep sticky header height stable */
@media (max-width: 560px) {
  .header-inner { height: 64px; }
  .brand { font-size: 1.15rem; }
  .brand__mark { width: 32px; height: 32px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-main { top: 64px; max-height: calc(100vh - 64px); }
  .footer-contact li { font-size: 0.88rem; }
}