:root {
  --ink: #1F2D4D;
  --ivory: #F7F5EF;
  --sand: #F3EAD6;
  --blue: #2D5A88;
  --blue-light: #7FA8D1;
  --ochre: #E8B65A;
  --muted: #4B566B;
  --rule: #D8D2C2;
  --radius: 4px;
  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 52px; line-height: 1.08; font-weight: 700; }
h2 { font-size: 34px; line-height: 1.15; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 16px; max-width: 66ch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ivory); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.btn-primary { color: var(--ivory); padding: 12px 18px; }
.nav a.btn-primary:hover { text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius); padding: 15px 24px; font: 600 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; min-height: 52px; }
.btn-primary { background: var(--blue); color: var(--ivory); }
.btn-primary:hover { background: #3A6DA3; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-nav { min-height: 44px; padding: 12px 18px; }

/* hero */
.hero { background: var(--ink); color: var(--ivory); }
.hero-bg { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 600px; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.on { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(31, 45, 77, 0.66); }
.hero-copy { position: relative; z-index: 1; width: 100%; padding-block: 88px; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy p { max-width: 54ch; }
.hero-pause { position: absolute; right: 20px; bottom: 16px; z-index: 2; background: rgba(31, 45, 77, 0.85); color: var(--ivory); border: 1px solid rgba(247, 245, 239, 0.6); border-radius: var(--radius); padding: 8px 14px; font: 500 14px var(--body); cursor: pointer; }
.hero-pause[hidden] { display: none; }
.hero h1 { color: var(--ivory); }
.hero p { color: #E4E8F0; font-size: 20px; margin-top: 20px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-secondary { color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ivory); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }
.page-hero { background: var(--sand); }
.page-hero .wrap { padding-block: 56px; }
.page-hero h1 { font-size: 44px; }
.page-hero p { font-size: 20px; margin-top: 16px; color: var(--muted); }

/* sections */
.section { padding-block: 72px; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--ink); color: var(--ivory); }
.section.dark p { color: #E4E8F0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 20px; margin-top: 12px; }
.section.dark .section-head p { color: #E4E8F0; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.section.alt .card { border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
.card.sand { background: var(--sand); border-color: transparent; }
.tag { display: inline-block; align-self: flex-start; background: var(--ochre); color: var(--ink); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius); }

/* photos and placeholders */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ph { background: var(--sand); border: 1px dashed var(--muted); border-radius: var(--radius); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.top { align-items: start; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { padding-left: 28px; position: relative; max-width: 62ch; }
.list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: var(--radius); background: var(--ink); color: var(--ivory); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 17px; vertical-align: top; }
th { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* team */
.person { display: flex; flex-direction: column; gap: 12px; }
.person img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.person .role { color: var(--muted); font-size: 16px; margin: 0; }

/* cta band */
.cta { background: var(--ink); color: var(--ivory); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 52px; }
.cta h2 { color: var(--ivory); font-size: 30px; max-width: 24ch; }
.cta p { color: #E4E8F0; margin: 8px 0 0; }

/* footer */
.site-footer { background: var(--ink); color: #E4E8F0; font-size: 16px; border-top: 1px solid #34456B; }
.site-footer .wrap { padding-block: 52px; display: grid; gap: 36px; grid-template-columns: 1.2fr repeat(3, 1fr); }
.site-footer img { height: 50px; width: auto; margin-bottom: 14px; }
.site-footer h3 { font-size: 15px; color: var(--ivory); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E4E8F0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #34456B; padding-block: 20px; font-size: 14px; color: #B8C2D6; }

/* blog */
.post { border-top: 1px solid var(--rule); padding-block: 22px; display: grid; gap: 6px; }
.post:last-child { border-bottom: 1px solid var(--rule); }
.post a { font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; color: var(--ink); }
.post a:hover { text-decoration: underline; }
.post p { margin: 0; color: var(--muted); font-size: 16px; }

.note { font-size: 15px; color: var(--muted); }
.badge-note { display: inline-block; background: var(--sand); color: var(--ink); border-radius: var(--radius); padding: 6px 12px; font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .page-hero h1 { font-size: 34px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-bg { min-height: 0; }
  .hero-copy { padding-block: 56px; }
  .section { padding-block: 52px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 4px 16px; font-size: 15px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* articles */
.article { padding-block: 56px 72px; }
.article h1 { font-size: 42px; max-width: 24ch; margin-bottom: 28px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { max-width: none; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); height: auto; margin: 22px 0; }
.prose figure { margin: 0; }
.prose table { margin: 24px 0; font-size: 16px; }
.prose a { word-break: break-word; }
@media (max-width: 900px) { .article h1 { font-size: 32px; } .prose h2 { font-size: 24px; } }

/* product pages */
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 60ch; margin: -12px 0 22px; }
.lede-actions { margin: 0 0 36px; }
.prose h3 { margin-top: 30px; }
.prose ul li strong { font-weight: 600; }

/* portfolio client logos */
.prose.logos { max-width: 900px; }
.prose.logos img { display: inline-block; max-height: 64px; width: auto; max-width: 180px; margin: 10px 28px 10px 0; vertical-align: middle; object-fit: contain; }
.prose.logos a { text-decoration: none; }

.shot { margin: 32px 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--muted, #55607a); margin-top: 8px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shots .shot { margin: 0; }
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; } }

.enquiry { display: grid; gap: 16px; margin-top: 20px; }
.enquiry .field { display: grid; gap: 6px; }
.enquiry label { font-weight: 600; font-size: 16px; }
.enquiry .opt { font-weight: 400; color: var(--muted); }
.enquiry input, .enquiry textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--muted); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.enquiry input:focus, .enquiry textarea:focus { outline: 3px solid var(--blue-light); outline-offset: 1px; }
.enquiry .field.err input, .enquiry .field.err textarea { border-color: #A3361F; }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry button { justify-self: start; cursor: pointer; border: 0; }
.enquiry button[disabled] { opacity: .6; cursor: default; }
.form-status { min-height: 1.4em; margin: 0; }
.form-status.ok { color: #1E6B3A; font-weight: 600; }
.form-status.bad { color: #A3361F; font-weight: 600; }
