:root {
  --bg: #f4f3ef;
  --ink: #0e0e0e;
  --mute: #6b6b68;
  --rule: #0e0e0e;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Header */
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.mark { font-weight: 900; letter-spacing: 0.08em; text-decoration: none; font-size: 16px; }
nav a { text-decoration: none; margin-left: 28px; font-size: 15px; color: var(--mute); }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(80px, 16vh, 180px) 0 clamp(64px, 12vh, 140px); }
.hero h1 {
  font-size: clamp(64px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.88;
}
.hero p.tag {
  margin-top: 36px;
  font-size: clamp(20px, 2.4vw, 30px);
  max-width: 22em;
  line-height: 1.3;
}

/* Sections */
section { border-top: 2px solid var(--rule); padding: 64px 0 88px; }
.label {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 28px; display: block;
}
.lead { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; max-width: 26em; font-weight: 500; }

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.cell { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--rule); }
.cell:nth-child(odd) { border-right: 1px solid var(--rule); }
.cell:nth-child(even) { padding-left: 32px; }
.cell .num { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cell h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 12px; }
.cell p { color: var(--mute); max-width: 28em; }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 2px solid var(--ink); padding: 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.card .status { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-top: 48px; }
.card p { color: var(--mute); font-size: 16px; margin-top: 8px; }
.card.dark { background: var(--ink); color: var(--bg); }
.card.dark p { color: #a9a9a4; }

.contact .enquire { margin-top: 28px; font-size: 16px; color: var(--mute); }
.contact .enquire a { color: var(--ink); text-underline-offset: 3px; }
.contact .enquire a:hover { opacity: 0.7; }

/* Footer */
footer {
  border-top: 2px solid var(--rule);
  padding: 28px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: var(--mute);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Privacy pill */
.pill {
  position: fixed; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; padding: 10px 12px 10px 16px; border-radius: 999px;
  text-decoration: none;
}
.pill button {
  background: none; border: 0; color: inherit; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 0 4px; opacity: 0.7;
}
.pill button:hover { opacity: 1; }

/* Legal page */
.legal { padding: 48px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 48px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 48px 0 14px; padding-top: 24px; border-top: 2px solid var(--rule); }
.legal p, .legal li { color: #2b2b29; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; }
.legal dt { color: var(--mute); }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(odd), .cell:nth-child(even) { padding: 28px 0 32px; border-right: 0; }
  .work { grid-template-columns: 1fr; }
  nav a { margin-left: 16px; font-size: 14px; }
  nav a:not(:last-child) { display: none; }
  .pill { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
