/* ============================================================
   Level N Ltd - site stylesheet
   Brand: ink black #0b0b0d, orange #ef8f00 (from logo)
   ============================================================ */

:root {
  --ink: #0b0b0d;
  --ink-soft: #1a1a1f;
  --orange: #ef8f00;
  --orange-deep: #d97e00;
  --paper: #ffffff;
  --mist: #f5f4f1;
  --line: #e6e3dd;
  --grey: #5c5c66;
  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: baseline; gap: 8px; }
.brand img { height: 34px; width: auto; }
.brand .ltd {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.nav { display: flex; gap: 4px; align-items: center; }

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover { background: var(--mist); }

.nav a.active {
  background: var(--ink);
  color: var(--paper);
}

.nav a.cta {
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  margin-left: 6px;
}

.nav a.cta:hover { background: var(--orange-deep); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--orange); }

.hero p.lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: #c9c9d1;
  max-width: 34em;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark { background: var(--ink); color: var(--paper); }

.hero-art svg { width: 100%; height: auto; }

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 56px;
}

.page-hero .kicker {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 14px;
  color: #c9c9d1;
  max-width: 46em;
  font-size: 1.08rem;
}

/* ---------- sections ---------- */

section.block { padding: 80px 0; }
section.block.tint { background: var(--mist); }

.section-head { margin-bottom: 44px; }

.section-head .kicker {
  color: var(--orange-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 11, 13, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p { color: var(--grey); font-size: 0.97rem; }

.card .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--orange-deep);
  font-size: 0.95rem;
}

.card .more::after { content: " \2192"; }

.card-icon { width: 52px; height: 52px; }

/* ---------- service rows ---------- */

.service {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.service:last-child { border-bottom: none; }

.service .num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.service h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service p { margin-top: 14px; color: #3a3a42; max-width: 62em; }

.badge-new {
  background: var(--orange);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.tech-list { margin-top: 18px; display: grid; gap: 8px; }

.tech-list .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 0.92rem;
}

.tech-list .label {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.tech-list .val { color: #9a9aa2; }

.tech-list .val strong { color: var(--ink); font-weight: 700; }

.tech-legend {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--grey);
}

.tech-legend strong { color: var(--ink); font-weight: 700; }

/* ---------- projects ---------- */

.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 38px;
  margin-bottom: 28px;
}

.project .num {
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.project h3 {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.project p { margin-top: 14px; color: #3a3a42; }

.project .stack {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.project .links { margin-top: 18px; font-size: 0.95rem; }
.project .links a {
  color: var(--orange-deep);
  font-weight: 600;
  word-break: break-all;
}
.project .links a:hover { text-decoration: underline; }

/* ---------- milestones timeline ---------- */

.milestones { margin-top: 12px; }

.milestone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.milestone:last-child { border-bottom: none; }

.milestone .when {
  font-weight: 800;
  color: var(--orange-deep);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.milestone h4 { font-size: 1.02rem; font-weight: 700; }

.milestone p { color: var(--grey); font-size: 0.93rem; margin-top: 4px; }

@media (max-width: 640px) {
  .milestone { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- clients ---------- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.client h3 { font-size: 1.08rem; font-weight: 800; }

.client .tag {
  display: inline-block;
  margin-top: 4px;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client p { margin-top: 10px; color: var(--grey); font-size: 0.93rem; }

.case-study {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px 40px;
  margin-top: 28px;
}

.case-study .num { color: var(--orange); font-weight: 800; letter-spacing: 0.14em; font-size: 0.85rem; }
.case-study h3 { margin-top: 6px; font-size: 1.4rem; font-weight: 800; }
.case-study .sub { color: #9a9aa6; margin-top: 2px; font-size: 0.95rem; }
.case-study p { margin-top: 14px; color: #c9c9d1; }
.case-study a { color: var(--orange); font-weight: 600; }
.case-study a:hover { text-decoration: underline; }

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .n {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange-deep);
  letter-spacing: -0.02em;
}

.stat .l { color: var(--grey); font-size: 0.92rem; margin-top: 4px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
}

.contact-card h3 { font-size: 1.1rem; font-weight: 800; }
.contact-card p { margin-top: 10px; color: var(--grey); }
.contact-card .email {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-deep);
}
.contact-card .email:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #9a9aa6;
  padding: 56px 0 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer img { height: 28px; width: auto; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--orange); }

.site-footer .legal { width: 100%; font-size: 0.85rem; border-top: 1px solid #26262c; padding-top: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-art { order: -1; max-width: 420px; }
  .card-grid, .client-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; }
  .nav a { border-radius: 10px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line);
    border-radius: 10px; padding: 8px 14px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; font-family: var(--font);
  }
  .nav.open { display: flex; }
  .card-grid, .client-grid { grid-template-columns: 1fr; }
  .tech-list .row { grid-template-columns: 1fr; gap: 2px; }
}
