:root {
  --bg: #ffffff;
  --soft: #f5f5f5;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --navy: #0a0a0a;
  --navy-2: #262626;
  --gold: #0a0a0a;
  --radius: 14px;
  --max: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--navy); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; }
.brand-logo svg { width: 22px; height: 22px; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font: 500 15px/1 var(--font);
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn svg { width: 16px; height: 16px; }
.btn.light { background: #fff; color: var(--text); border-color: var(--border); }
.btn.light:hover { border-color: #cfcfcf; background: var(--soft); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 99px;
  font-size: 13px; color: var(--muted); background: #fff;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #0a0a0a; box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.hero h1 { font-size: clamp(36px, 4.4vw, 54px); margin: 22px 0 20px; }
.hero h1 span { color: var(--muted); }
.hero-lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-meta div { font-size: 14px; color: var(--muted); }
.hero-meta b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }

.hero-visual { position: relative; padding: 0 0 36px 0; }
.hero-visual .scr.main { width: 100%; }
.hero-visual .scr.phone { position: absolute; right: -10px; bottom: 0; width: 30%; }

/* ---------- screens ---------- */
.scr { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -16px rgba(0, 0, 0, .18); }
.scr-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--soft); border-bottom: 1px solid var(--border); }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; }
.scr-bar span { margin-left: 10px; font: 400 11px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr img { width: 100%; height: auto; }
.scr.phone { border-radius: 26px; padding: 6px; background: #0a0a0a; border-color: #0a0a0a; }
.scr.phone img { border-radius: 20px; }
.blurred { position: relative; }
.blurred::after {
  content: 'Client data blurred';
  position: absolute; right: 10px; bottom: 10px;
  font: 500 11px/1 var(--font); color: #fff; background: rgba(0, 0, 0, .75);
  padding: 6px 10px; border-radius: 99px;
}

/* ---------- clients strip ---------- */
.clients { border-block: 1px solid var(--border); background: var(--soft); }
.clients-in { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; justify-content: center; padding: 22px 0; font-weight: 600; color: #8a8a8a; font-size: 15px; letter-spacing: -0.01em; }
.clients-in .eyebrow { width: 100%; text-align: center; margin-bottom: 4px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.soft { background: var(--soft); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; }
.head p { max-width: 30em; color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-size: clamp(32px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- featured work ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 14px 0 12px; }
.feature p { color: var(--muted); font-size: 17px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; font-size: 15px; }
.feature li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: rgba(0, 0, 0, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; }
.feature-media { position: relative; }
.feature-media .phones { display: flex; gap: 14px; justify-content: center; }
.feature-media .phones .scr { width: 31%; }
.feature-media .phones .scr:nth-child(2) { transform: translateY(-18px); }
.feature-media .stacked { position: relative; padding: 0 0 40px 40px; }
.feature-media .stacked .scr:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 55%; }
.feature-media .stacked .scr.phone:nth-child(2) { width: 26%; left: auto; right: -8px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--navy); background: rgba(0, 0, 0, .05); padding: 5px 10px; border-radius: 99px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tag { font: 400 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; background: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--navy); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.service .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 22px; height: 22px; stroke: #fff; }
.service h4 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 20px; }
.about-text p { color: var(--muted); font-size: 17px; }
.about-text p + p { margin-top: 14px; }
.timeline { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.tl { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 24px; }
.tl + .tl { border-top: 1px solid var(--border); }
.tl h4 { font-size: 16px; margin-bottom: 4px; }
.tl p { color: var(--muted); font-size: 15px; }
.tl .eyebrow { padding-top: 3px; }

/* ---------- international ---------- */
.intl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intl .service h4 { font-size: 17px; }

/* ---------- contact ---------- */
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta p { color: rgba(255, 255, 255, .72); margin-top: 14px; font-size: 17px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; height: 52px; }
.cta .btn:hover { background: #ededed; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: clamp(64px, 9vw, 110px); }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-in a:hover { color: var(--text); }

/* ---------- work page ---------- */
.page-head { padding: clamp(48px, 7vw, 80px) 0 32px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin: 14px 0 14px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 36em; }
.filters { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--border); border-radius: 12px; margin-top: 28px; flex-wrap: wrap; }
.filters button { font: 500 14px/1 var(--font); color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.filters button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tier { padding: 40px 0; }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.tier-head h2 { font-size: 24px; }
.grid { display: grid; gap: 24px; }
.grid.t1, .grid.t2 { grid-template-columns: repeat(2, 1fr); }
.grid.t3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: #d4d4d4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .22); }
/* each project framed in a thin line of its brand colour */
.card { border: 1.5px solid var(--c, var(--border)); }
.card:hover { border-color: var(--c, #d4d4d4); }
.card-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; border-bottom: 1px solid var(--c, var(--border)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { padding: 20px 22px 22px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-body h3 { font-size: 20px; }
.card-body p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card-body .sector { font-size: 13px; color: var(--muted); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); width: 100%; font-weight: 500; font-size: 14px; color: var(--text); }
.card-more svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .card-more svg { transform: translateX(4px); }
.hidden { display: none !important; }

/* ---------- project page ---------- */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--text); }
.proj-head { padding: clamp(40px, 6vw, 72px) 0 40px; }
.proj-head h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 18px 0 16px; }
.proj-head .lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 40em; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.meta div { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.meta .eyebrow { font-size: 11px; }
.meta p { margin-top: 8px; font-weight: 500; font-size: 15px; }
.proj-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding: 24px 0 56px; }
.proj-body h2 { font-size: 22px; margin-bottom: 14px; }
.proj-body .intro { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; }
.checks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(0, 0, 0, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.gallery { display: grid; gap: 28px; padding-bottom: 40px; }
.gal-row { display: grid; gap: 24px; align-items: start; }
.gal-row.pair { grid-template-columns: 1fr 1fr; }
.gal-row.phones { grid-template-columns: repeat(auto-fit, minmax(170px, 250px)); justify-content: center; background: var(--soft); border-radius: 20px; padding: 32px; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-top: 24px; transition: border-color .2s, background .2s; }
.next:hover { background: var(--soft); }
.next h3 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature, .about, .cta, .proj-body { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .stats, .services { grid-template-columns: 1fr 1fr; }
  .intl { grid-template-columns: 1fr; }
  .grid.t3 { grid-template-columns: 1fr 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .services, .grid.t1, .grid.t2, .grid.t3, .gal-row.pair { grid-template-columns: 1fr; }
  .stat { padding: 18px; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .hero-visual .scr.phone { width: 34%; right: 0; }
  .feature-media .stacked { padding: 0 0 30px 16px; }
  .gal-row.phones { padding: 20px; }
  .next { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}
