/* ==========================================================================
   sigzw — light, technical, restrained
   Single accent: ink blue. Everything else is ink / neutral gray.
   ========================================================================== */

:root {
  --bg: #FCFCFD;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E5E7EB;
  --blue: #1D4ED8;
  --blue-deep: #1E3A8A;
  --blue-tint: #EFF4FE;
  /* Used once, on the first letter of the wordmark */
  --logo-accent: #EA580C;

  --container: 1080px;
  --radius: 10px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --ease: cubic-bezier(0.16, 0.84, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Eyebrow / label -------------------------------------------------------- */

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.lead {
  color: var(--muted);
}

/* Skip link -------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 253, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-initial {
  color: var(--logo-accent);
}

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

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.hero .lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-deep);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

/* Services --------------------------------------------------------------- */

.services {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 58ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.section-head .lead {
  margin-top: 14px;
}

.service-list {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.service:nth-child(even) {
  grid-template-columns: 1.15fr 0.85fr;
}

.service:nth-child(even) .service-art {
  order: 2;
}

.service-art {
  margin: 0;
}

.service-art img {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.service-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.service-body h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.service-body p {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--muted);
}

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

.contact {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.contact .lead {
  margin-top: 14px;
}

.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.email-link {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.28);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.email-link:hover {
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

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

.site-footer {
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand--footer {
  font-size: 1.0625rem;
}

.footer-tagline {
  margin-top: 8px;
  max-width: 42ch;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-contact {
  text-align: right;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Focus ------------------------------------------------------------------ */

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

/* Reserve space for illustrations before they load (avoids layout shift) -- */

img[src$="work-together.svg"] { aspect-ratio: 845 / 545; }
img[src$="cloud-hosting.svg"] { aspect-ratio: 672 / 669; }
img[src$="wireframe-to-app.svg"] { aspect-ratio: 960 / 717; }
img[src$="around-the-world.svg"] { aspect-ratio: 960 / 825; }
img[src$="team-chat.svg"] { aspect-ratio: 847 / 624; }
img[src$="travel-destination.svg"] { aspect-ratio: 960 / 402; }

/* Motion — a single, restrained entrance --------------------------------- */

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy > *,
  .hero-art {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.7s var(--ease) forwards;
  }

  .hero-copy .eyebrow { animation-delay: 0.02s; }
  .hero-copy h1 { animation-delay: 0.08s; }
  .hero-copy .lead { animation-delay: 0.16s; }
  .hero-copy .hero-actions { animation-delay: 0.24s; }
  .hero-art { animation-delay: 0.14s; animation-duration: 0.8s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-art img {
    max-width: 420px;
  }

  .service,
  .service:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service:nth-child(even) .service-art {
    order: 0;
  }

  .service-art img {
    max-width: 300px;
    margin-inline: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}