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

:root {
  --bg: #fff;
  --ink: #111;
  --text: #3b3a36;
  --muted: #74726c;
  --line: #e3e1da;
  --pill: #f1f0ec;
  --accent: #c9d22a;
  --serif: "Crimson Pro", "Minion Pro", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --space: clamp(72px, 8.9vw, 128px); /* top/bottom padding of every section */
  --gutter: clamp(16px, 3.9vw, 56px); /* left/right page padding, shared with the header */
}

html { scroll-behavior: smooth; scroll-padding-top: 69px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; padding-inline: var(--gutter); }

/* Type */
.eyebrow { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.display, .h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.display { font-size: clamp(48px, 6.6vw, 96px); line-height: .98; }
.h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; }
.eyebrow + .display, .eyebrow + .h2 { margin-top: 18px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--text); }
.lead + .lead { margin-top: 1em; }
.arrow-link { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); text-decoration: none; }
.arrow-link:hover { color: var(--ink); }

/* Header (WOBL-style): full-width bar, centred text links, CTA pill + arrow circle. */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 69px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid rgb(0 0 0 / .07);
  background: var(--bg);
  font-family: "Satoshi", var(--sans);
  transition: box-shadow .3s;
}
.bar.scrolled { box-shadow: 0 8px 24px rgb(0 0 0 / .05); }
.bar .logo { justify-self: start; }
.bar .logo img { width: auto; height: 48px; }
.bar nav { display: flex; gap: 12px; }
.bar nav a { position: relative; padding: 8px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none; }
.bar nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  translate: 0 4px;
  transition: opacity .2s, translate .2s;
}
.bar nav a:hover::after, .bar nav a.active::after { opacity: 1; translate: 0; }
.actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.cta-btn { display: flex; gap: 2px; text-decoration: none; }
.cta-btn .label, .cta-btn .arrow { display: grid; place-items: center; height: 48px; border-radius: 999px; background: var(--ink); color: #fff; transition: background .2s; }
.cta-btn .label { padding: 0 24px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.cta-btn .arrow { width: 48px; }
.cta-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: rotate .3s; }
.cta-btn:hover .label, .cta-btn:hover .arrow { background: #2b2b2b; }
.cta-btn:hover svg { rotate: 45deg; }
.pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font: 15px/1.4 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover, .pill[aria-current] { background: #fff; border-color: #bdbab1; }
.pill.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.solid:hover { background: #333; }
.pill.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 17px; padding: 10px 20px; }
.pill.accent:hover { filter: brightness(.95); }
.mnav { display: none; position: relative; }
.mnav summary {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: rotate .25s, translate .25s; }
.mnav[open] summary span:first-child { translate: 0 3.3px; rotate: 45deg; }
.mnav[open] summary span:last-child { translate: 0 -3.3px; rotate: -45deg; }
.mnav .panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / .12);
}
.mnav .panel a { padding: 10px 14px; border-radius: 12px; text-decoration: none; }
.mnav .panel a:hover { background: var(--bg); }

/* Sections */
.section { padding-block: var(--space); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.split > :last-child { padding-bottom: 6px; }
.split-top { align-items: start; }
.stack-gap { margin-top: clamp(48px, 6vw, 80px); }

.hero { padding-block: var(--space); }
.hero .display { max-width: 1000px; }
.hero .lead { max-width: 600px; margin-top: 40px; }
.hero .arrow-link { margin-top: 48px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }

/* Project cards */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 18px; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
.card .pic { overflow: hidden; border-radius: 14px; background: var(--pill); }
.card .pic img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.card .meta { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 28px; }
.card h3 { font: 400 24px/1.3 var(--sans); }
.card p { color: var(--text); font-size: 18px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--text); }
/* site.js adds .zoom, then .in once the image scrolls into view. */
.pic.zoom img { transform: scale(1.3); }
.pic.zoom.in img { transform: none; }
/* site.js adds .reveal to each section, then .in when it first scrolls into view. */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; translate: 0; }

/* Numbered services */
.services { margin-top: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 94px 1fr 1fr; gap: 24px; padding-block: 32px 40px; border-top: 1px solid var(--line); }
.services .num { font-size: 15px; color: var(--muted); padding-top: 10px; }
.services h3 { font: 500 clamp(32px, 3.4vw, 50px)/1.1 var(--serif); }
.services p { color: var(--text); font-size: 18px; line-height: 1.6; padding-top: 6px; }
.services + .arrow-link { margin-top: 40px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: clamp(56px, 7vw, 96px); padding-top: 48px; border-top: 1px solid var(--line); }
.principles h3 { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); }
.principles p { margin-top: 24px; color: var(--text); max-width: 400px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: clamp(56px, 7vw, 96px); padding-top: 48px; border-top: 1px solid var(--line); }
.step-num { display: block; font: 500 clamp(72px, 7vw, 104px)/.9 var(--serif); }
.steps h3 { margin-top: 28px; font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); }
.steps p { margin-top: 16px; color: var(--text); max-width: 400px; }

/* Start a project */
.cta .display { font-size: clamp(48px, 7vw, 104px); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* FAQ */
.faq { margin-top: 56px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  font-size: clamp(18px, 1.6vw, 22px);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 44px/.8 var(--sans); transition: rotate .25s; }
.faq details[open]:not(.closing) summary::after { rotate: 45deg; }
.faq details p { max-width: 760px; padding-bottom: 28px; overflow: hidden; color: var(--text); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: 24px; }
.clients li { padding-block: 16px; border-top: 1px solid var(--line); font-size: 19px; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.form label { display: block; font-size: 15px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #b9b6ad;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 20px/1.4 var(--sans);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-bottom-color: var(--ink); }
.form .pill { justify-self: start; }
.contact-actions { padding-top: 34px; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 24px);
  text-decoration: none;
  transition: filter .2s;
}
.wa-btn:hover { filter: brightness(.95); }
.contact-actions .note { margin-top: 20px; max-width: 440px; color: var(--text); }
.brief { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.brief summary { display: flex; justify-content: space-between; gap: 16px; font-size: 19px; list-style: none; cursor: pointer; }
.brief summary::-webkit-details-marker { display: none; }
.brief summary::after { content: "+"; font: 300 32px/.7 var(--sans); transition: rotate .25s; }
.brief[open] summary::after { rotate: 45deg; }
.brief .optional { color: var(--muted); }
.brief .form { margin-top: 32px; }
.details { display: grid; gap: 28px; }
.details p { font-size: 20px; line-height: 1.5; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding-top: calc(var(--space) / 2); border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: start; }
.foot-top .cell span { display: block; color: var(--muted); }
.foot-top .cell a { font-size: 22px; font-weight: 500; text-decoration: none; }
.foot-top .cell a:hover { text-decoration: underline; }
.foot-top .right { margin-left: auto; text-align: right; }
.foot-top .social { display: flex; justify-content: flex-end; gap: 18px; color: var(--muted); }
.foot-top .social a { font-size: 17px; font-weight: 400; color: var(--muted); }
.foot-top .right p { margin-top: 24px; font-size: 24px; line-height: 1.4; }
.wordmark { margin-top: clamp(120px, 22vw, 320px); }
.wordmark text { font: 800 140px var(--wide); font-stretch: 125%; fill: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; color: var(--muted); font-size: 16px; }

@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar nav, .cta-btn .label { display: none; }
  .mnav { display: block; }
  .split, .work-grid, .principles, .steps, .clients, .form { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .work-grid { gap: 56px; }
  .card .meta { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .services li { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .services li p { grid-column: 2; }
  .principles { gap: 40px; }
  .foot-top .right { margin-left: 0; text-align: left; flex-basis: 100%; }
  .foot-top .social { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .pic img { transition: none; }
}
