/* ==========================================================================
   ejaad — light, bold, consultancy
   Type: Inter Tight (display) / Inter (body)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --soft: #f4f4f6;
  --lilac: #f1f5ff;
  --ink: #0b0b0c;
  --ink-2: #17171a;
  --muted: #5c5c66;
  --faint: #8a8a93;
  --line: #e5e5ea;
  --line-strong: #d3d3da;
  --accent: #2b47f0;
  --accent-deep: #1f37c9;
  --accent-soft: #eef2ff;
  --accent-light: #7fe9c6;
  --radius: 8px;
  --max: 1200px;
  --header-h: 72px;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
h2 { font-size: clamp(2.15rem, 4.7vw, 3.55rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.02em; }

.accent { color: var(--accent); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

::selection { background: rgba(43, 71, 240, 0.18); color: var(--ink); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4.2vw, 2.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sq {
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
}
/* blur on a pseudo-element so the fixed mobile nav is not trapped by it */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav > a {
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav > a:hover { color: var(--ink); background: var(--soft); }

.nav a.nav-cta {
  margin-left: 0.65rem;
  padding: 0.62rem 1.05rem;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.18s var(--ease);
}
.nav a.nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 3px;
  font-size: 0.94rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(2.8rem, 6.5vw, 5.2rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60% 45% at 92% 0%, rgba(43, 71, 240, 0.07), transparent 70%),
    radial-gradient(40% 40% at 0% 20%, rgba(43, 71, 240, 0.045), transparent 70%);
}

.hero-copy h1 { font-size: clamp(2.5rem, 4.8vw, 4.2rem); max-width: none; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(95% 80% at 85% 5%, #dbe4ff 0%, transparent 60%),
    radial-gradient(90% 80% at 5% 100%, #d6f8ec 0%, transparent 65%),
    #f7f8fc;
}
.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 12, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 12, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 85%);
}
.poster-badge {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.poster-mark {
  position: relative;
  width: 44%;
  max-width: 190px;
  aspect-ratio: 1;
  filter: drop-shadow(0 26px 44px rgba(11, 11, 12, 0.22));
}
.poster-mark svg { width: 100%; height: 100%; }
.poster-foot {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 + .hero-row { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}
.lede {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
}

/* capability band */
.capability-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap {
  --tint: #eef2ff;
  --tint-hover: #e2e9ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: 152px;
  padding: 1.35rem 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
  position: relative;
  background: var(--tint);
  transition: background 0.22s ease;
}
.cap:nth-child(2) { --tint: #fff1ea; --tint-hover: #ffe7dc; }
.cap:nth-child(3) { --tint: #e9faf3; --tint-hover: #d9f6ea; }
.cap:nth-child(4) { --tint: #f4f0ff; --tint-hover: #ebe3ff; }
.cap:last-child { border-right: 0; }
.cap::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.cap:hover { background: var(--tint-hover); }
.cap:hover::before { transform: scaleX(1); }
.cap-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cap-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.cap-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.2rem;
  font-size: 1.05rem;
  color: var(--muted);
  transition: transform 0.22s var(--ease), color 0.18s ease;
}
.cap:hover .cap-name { color: var(--accent); }
.cap:hover .cap-arrow { color: var(--accent); transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(4.2rem, 8vw, 6.8rem); }
.section-soft { background: var(--soft); }
.section-lilac { background: var(--lilac); }

.section-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem 4rem;
  align-items: end;
}
.section-sub {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Service rows
   -------------------------------------------------------------------------- */

.service-rows { border-top: 1px solid var(--line-strong); }

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  gap: 1.25rem;
  align-items: start;
  margin-inline: -1rem;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.service-row:hover { background: var(--accent-soft); }

.row-num {
  padding-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.55rem;
}
.row-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.1;
  transition: color 0.18s ease;
}
.service-row:hover .row-title { color: var(--accent); }
.row-tag {
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.row-copy {
  display: block;
  max-width: 66ch;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.row-tags span {
  padding: 0.28rem 0.6rem;
  background: var(--soft);
  border-radius: 3px;
  font-size: 0.74rem;
  color: var(--muted);
  transition: background 0.2s ease;
}
.service-row:hover .row-tags span { background: #fff; }
.row-arrow {
  align-self: center;
  justify-self: end;
  font-size: 1.3rem;
  color: var(--faint);
  transition: transform 0.22s var(--ease), color 0.18s ease;
}
.service-row:hover .row-arrow { color: var(--accent); transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats-band {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.6rem, 4.5vw, 3.6rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { padding-inline: clamp(1rem, 2.4vw, 2.2rem); border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat strong span { color: var(--accent-light); font-size: 0.62em; letter-spacing: -0.02em; }
.stat p { max-width: 20ch; margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.85rem; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
}
.step {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
  transition: border-color 0.2s ease;
}
.step:hover { border-top-color: var(--accent); }
.step-num {
  margin-bottom: 2.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step h3 { margin-bottom: 0.6rem; font-size: clamp(1.35rem, 1.9vw, 1.6rem); }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.58; }
.step-meta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.28s var(--ease), border-color 0.22s ease, box-shadow 0.28s ease;
}
.case:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -36px rgba(11, 11, 12, 0.45);
}

.case-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 10;
  padding: 1.1rem 1.2rem;
  color: #fff;
  overflow: hidden;
}
.case-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px);
  opacity: 0.8;
  transition: transform 0.5s var(--ease);
}
.case:hover .case-cover::before { transform: scale(1.06); }
.cover-ai {
  background:
    radial-gradient(90% 120% at 100% 0%, #6f9bff 0%, transparent 58%),
    radial-gradient(80% 110% at 0% 100%, #16308f 0%, transparent 62%),
    #0d1638;
}
.cover-game {
  background:
    radial-gradient(80% 110% at 90% 10%, #ff8a5c 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, #2b47f0 0%, transparent 65%),
    #241026;
}
.cover-ops {
  background:
    radial-gradient(80% 110% at 100% 20%, #4f7dff 0%, transparent 60%),
    radial-gradient(80% 110% at 0% 100%, #0e6b57 0%, transparent 65%),
    #0b2430;
}
.cover-num {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}
.cover-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cover-mark {
  position: relative;
  align-self: flex-end;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.25s var(--ease);
}
.case:hover .cover-mark { transform: translate(3px, -3px); }

.case-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.3rem 1.5rem; }
.case-body h3 { margin-bottom: 0.6rem; font-size: 1.3rem; line-height: 1.15; }
.case-copy { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.case-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.3rem;
  font-size: 0.78rem;
  color: var(--faint);
}
.case-meta li::before { content: "— "; color: var(--accent); }

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stack-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.stack-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack-list li {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.73rem;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.stack-list li:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.about-side { display: flex; flex-direction: column; gap: 1.8rem; }
.about-grid h2 { max-width: 14ch; }

.values {
  display: grid;
  gap: 0.8rem;
  margin-top: 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(43, 71, 240, 0.22);
}
.values li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.values strong { color: var(--ink); }

.about-copy { max-width: 60ch; }
.about-copy blockquote {
  position: relative;
  margin: 0 0 1.8rem;
  padding-left: 2.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.about-copy blockquote em { font-style: normal; color: var(--accent); }
.quote-mark {
  position: absolute;
  left: 0;
  top: -0.18em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
}
.about-copy p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { margin-bottom: 1.3rem; }
.contact .section-sub { max-width: 44ch; }

.contact-lines { margin-top: 2.2rem; border-top: 1px solid var(--line-strong); }
.contact-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s ease;
}
.contact-line:hover { border-color: var(--line-strong); }
.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  flex: none;
}
.contact-value { font-size: 0.95rem; font-weight: 500; }
a.contact-line:hover .contact-value { color: var(--accent); }

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235c5c66' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
.field input::placeholder,
.field textarea::placeholder { color: #a3a3ac; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 71, 240, 0.14);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #d92d20; }

.contact-form .btn { margin-top: 0.2rem; }
.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--faint);
}
.form-note.is-error { color: #d92d20; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-top {
  padding-bottom: clamp(2.4rem, 4.5vw, 3.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-kicker {
  margin-bottom: 1.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem 3rem;
}
.footer-cta h2 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.4rem;
}
.footer-brand p {
  max-width: 32ch;
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-brand .brand-mark svg rect { fill: #1f1f24; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: flex-start; }
.footer-nav a { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); transition: color 0.16s ease; }
.footer-nav a:hover { color: #fff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-base p { margin: 0; font-size: 0.7rem; color: rgba(255, 255, 255, 0.42); }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-poster { display: none; }
  .hero-row { gap: 1.3rem; }
  .capability-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:nth-child(2n) { border-right: 0; }
  .cap:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section-head.split { grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .step { min-height: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .case { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .case-cover { aspect-ratio: auto; min-height: 240px; }
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-side { display: contents; }
  .about-head { order: 1; }
  .about-copy { order: 2; }
  .values { order: 3; }
  .about-grid h2 { max-width: 20ch; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.15rem, 4.2vw, 2.75rem) calc(2rem + env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.26s var(--ease), visibility 0.22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a {
    padding: 1rem 0.1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  .nav > a:hover { background: none; color: var(--accent); }
  .nav a.nav-cta {
    margin: 1.3rem 0 0;
    padding: 0.95rem 1.2rem;
    border: 0;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
  }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 2.2rem; padding-bottom: 1.6rem; }
  .hero h1 { font-size: clamp(2.45rem, 10.5vw, 3.6rem); }
  .poster-foot span:last-child { display: none; }
  .hero-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .cap { padding: 1.1rem 0.9rem 1.3rem; gap: 0; min-height: 118px; }
  .cap-name { font-size: 1rem; }
  .cap-arrow { display: none; }

  .service-row { grid-template-columns: 38px minmax(0, 1fr) 28px; gap: 0.7rem; margin-inline: -0.65rem; padding: 1.5rem 0.65rem; }
  .row-num { padding-top: 0.2rem; }
  .row-copy { font-size: 0.92rem; }
  .row-arrow { font-size: 1.1rem; align-self: start; margin-top: 0.2rem; }
  .row-tag { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .stat { padding-inline: 1.2rem; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat strong { font-size: 2.3rem; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { min-height: 0; padding: 1.4rem 0; border-top-width: 1px; }
  .step-num { margin-bottom: 1rem; }
  .step-meta { padding-top: 0.9rem; }

  .case { display: flex; }
  .case-cover { aspect-ratio: 16 / 9; min-height: 0; }

  .stack { flex-direction: column; align-items: flex-start; }

  .field-row { grid-template-columns: 1fr; }
  .contact-line { flex-direction: column; align-items: flex-start; gap: 0.15rem; }

  .footer-cta { align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 1.6rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.42rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 0.9rem 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat strong { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

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

@media print {
  .site-header, .nav-toggle, .capability-band, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer, .stats-band { background: #fff !important; color: #000 !important; }
  .site-footer p, .site-footer a, .stat p { color: #000 !important; }
  .case, .step, .service-row { break-inside: avoid; }
}
