/* David Mullins — dmullins.co.uk
   Design system: premium, understated, editorial. Navy + warm paper + brass accent. */

:root {
  --navy: #17263B;
  --navy-2: #1F3453;
  --ink: #201D19;
  --paper: #FAF7F1;
  --paper-2: #F2ECE1;
  --line: #E3DACB;
  --muted: #6B6459;
  --brass: #A5763B;
  --brass-dark: #8A6230;
  --white: #FFFFFF;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--navy);
}
nav.primary { display: flex; align-items: center; gap: 36px; }
nav.primary a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
nav.primary a.current { color: var(--brass-dark); border-bottom: 2px solid var(--brass); padding-bottom: 4px; }
nav.primary a.cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 3px;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.primary { position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 32px; gap: 24px; transform: translateX(100%); transition: transform .25s ease; }
  nav.primary.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 0 0 0.4em; }
h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
@media (max-width: 640px) { h1 { font-size: 34px; } h2 { font-size: 26px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 96px; background:
  radial-gradient(1200px 500px at 85% -10%, #EFE6D2 0%, transparent 60%), var(--paper); }
.hero h1 { max-width: 780px; }
.hero .lede { margin-top: 18px; font-size: 20px; }

/* Stat grid */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 12px; }
.stat { background: var(--paper); padding: 26px 22px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 26px; color: var(--navy); font-weight: 700; }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Achievement blocks */
.achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.achieve { border-left: 3px solid var(--brass); padding-left: 20px; }
.achieve h4 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.achieve .when { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: block; }
.achieve p { font-size: 15px; color: var(--ink); margin: 0; }
@media (max-width: 760px) { .achieve-grid { grid-template-columns: 1fr; } }

/* Chain */
.chain { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.chain span {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); background: var(--paper-2); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.chain span::after { content: "→"; margin-left: 10px; color: var(--brass); font-weight: 400; }
.chain span:last-child::after { content: ""; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .shot { border-bottom: 1px solid var(--line); aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tag-row { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.tag.category { background: var(--paper-2); color: var(--navy); }
.tag.status-live { background: #E8F0E6; color: #3C6B3F; }
.tag.status-pilot { background: #F3E9D9; color: var(--brass-dark); }
.card h3 { margin-bottom: 8px; }
.card .hook { color: var(--muted); font-size: 15px; flex: 1; }
.card .links { margin-top: 16px; display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.card .links a { color: var(--brass-dark); text-decoration: none; }
.card .links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* Capabilities tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tag-cloud span {
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); background: var(--white);
  padding: 10px 16px; border-radius: 4px;
}

/* Golf strip */
.golf-strip { background: var(--navy); color: var(--white); border-radius: 6px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.golf-strip h3 { color: var(--white); }
.golf-strip p { color: #C9D2DE; margin: 0; max-width: 520px; }
.golf-strip a { color: var(--white); text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* Footer */
footer.site { background: var(--navy); color: #B9C2CF; padding: 48px 0 32px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
footer.site a { color: var(--white); text-decoration: none; font-weight: 600; }
footer.site a:hover { text-decoration: underline; }
footer.site .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site .fine { font-size: 13px; color: #8896A6; margin-top: 24px; width: 100%; }

/* Contact / opportunities */
.opp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; margin: 28px 0 8px; padding: 0; list-style: none; }
.opp-list li { font-size: 15.5px; padding-left: 22px; position: relative; }
.opp-list li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
@media (max-width: 640px) { .opp-list { grid-template-columns: 1fr; } }

/* Career timeline */
.timeline { margin-top: 40px; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item .when { color: var(--muted); font-size: 14px; padding-top: 3px; }
.tl-item h4 { margin-bottom: 4px; }
.tl-item .role { font-size: 14px; color: var(--brass-dark); font-weight: 700; margin-bottom: 8px; }
.tl-item p { font-size: 15px; color: var(--ink); margin: 0; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* Case study page */
.cs-intro { max-width: 700px; }
.cs-block { border: 1px solid var(--line); border-radius: 6px; background: var(--white); margin-top: 36px; overflow: hidden; }
.cs-block .shot { aspect-ratio: 21/9; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.cs-block .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-block .body { padding: 32px; }
.cs-block .head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.cs-block h3 { font-size: 26px; margin-bottom: 0; }
.cs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-top: 22px; }
.cs-field h5 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-dark); margin: 0 0 6px; font-weight: 700; }
.cs-field p { font-size: 15px; margin: 0; color: var(--ink); }
.cs-field.full { grid-column: 1 / -1; }
@media (max-width: 700px) { .cs-fields { grid-template-columns: 1fr; } }
.cs-visit { margin-top: 22px; }

/* Contact page */
.contact-hero { text-align: left; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.contact-card { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 28px; text-align: left; }
.contact-card h4 { margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

.anchor-offset { scroll-margin-top: 96px; }
