/* Mood board template. Board values arrive as CSS custom properties set by board.js. */
:root {
  --brand: #1f3a5f; --brand-deep: #13263f; --accent: #c8102e; --accent-ink: #fff;
  --ink: #16181d; --muted: #4a4f5a; --bg: #fff; --wash: #eef2f6; --line: #dfe3e8;
  --radius: 6px; --font-h: Georgia, serif; --font-b: system-ui, sans-serif;
  --h-weight: 700; --h-track: -0.01em; --h-case: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-b); }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, .h { font-family: var(--font-h); font-weight: var(--h-weight); letter-spacing: var(--h-track); text-transform: var(--h-case); line-height: 1.12; margin: 0; text-wrap: balance; }

/* Review bar: always says this is a draft and lets the client switch boards */
.bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px clamp(16px, 4vw, 40px); background: #111418; color: #e9ecf1; font: 500 14px/1.4 system-ui, sans-serif; }
.bar p { margin: 0; }
.switch { display: flex; gap: 4px; background: #23272e; padding: 3px; border-radius: 999px; }
.switch a { color: #c9ced6; text-decoration: none; padding: 6px 14px; border-radius: 999px; }
.switch a[aria-current="page"] { background: #fff; color: #111418; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section.part { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.part-head { display: grid; gap: 6px; margin-bottom: 32px; max-width: 62ch; }
.part-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.part-head p { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; }

/* Cover */
.cover { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr minmax(240px, 360px); gap: 40px 64px; align-items: center; }
.cover-art { display: grid; gap: 14px; }
.cover-art .aa { font-family: var(--font-h); font-weight: var(--h-weight); font-size: clamp(110px, 13vw, 168px); line-height: .9; color: var(--brand); letter-spacing: -0.02em; }
.cover-art .bars { display: flex; height: 64px; border-radius: var(--radius); overflow: hidden; }
.cover-art .bars span { flex: 1; }
.cover-art .bars span.acc { flex: .55; }
.cover-art .btn { justify-self: start; }
.cover .firm { font: 600 15px/1.4 var(--font-b); color: var(--muted); margin: 0 0 18px; }
.cover h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; }
.cover .summary { font-size: clamp(18px, 1.6vw, 21px); max-width: 58ch; margin: 22px 0 0; }
.tone { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.tone li { font-family: var(--font-h); font-size: 22px; color: var(--brand); }
.tone li + li::before { content: "/"; color: var(--line); margin-right: 10px; }

/* Logo */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.logo-tile { min-height: 200px; display: grid; place-items: center; padding: 32px; border-radius: var(--radius); }
.logo-tile.light { background: #fff; border: 1px solid var(--line); }
.logo-tile.dark { background: var(--brand-deep); }
.logo-tile img { max-height: 96px; width: auto; }
.logo-tile .wordmark { font-family: var(--font-h); font-size: 34px; color: var(--brand); text-align: center; }
.logo-tile.dark .wordmark { color: #fff; }

/* Colour */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.swatch .chip { height: 120px; display: flex; align-items: flex-end; padding: 12px; font-weight: 600; }
.swatch .meta { padding: 12px 14px 14px; font-size: 14px; line-height: 1.5; }
.swatch .meta b { display: block; font-size: 15px; }
.swatch .meta code { font: 500 13px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); }
.ratio { display: inline-block; margin-top: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ratio.pass::before { content: "Passes "; color: #1d6b3a; font-weight: 600; }
.ratio.fail::before { content: "Low contrast "; color: #a1261b; font-weight: 600; }
.compare { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; align-items: center; margin-top: 32px; font-size: 15px; }
.strip { display: flex; height: 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.strip span { flex: 1; }

/* Type */
.type-grid { display: grid; gap: 28px; }
.spec { display: grid; grid-template-columns: 160px 1fr; gap: 8px 24px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.spec .lbl { font-size: 13px; color: var(--muted); line-height: 1.4; }
.spec .s-h1 { font-size: clamp(38px, 5vw, 60px); }
.spec .s-h2 { font-size: clamp(28px, 3.4vw, 40px); }
.spec .s-h3 { font-size: 24px; }
.spec .s-body { max-width: 62ch; margin: 0; }
.spec .s-quote { font-family: var(--font-h); font-size: 26px; line-height: 1.35; max-width: 30ch; margin: 0; color: var(--brand); }
.spec .s-num { font-family: var(--font-h); font-weight: var(--h-weight); font-size: clamp(44px, 6vw, 72px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--brand); }
.spec .s-num small { display: block; font: 500 16px/1.4 var(--font-b); color: var(--muted); margin-top: 8px; }
.font-names { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 8px; }
.font-names div { font-size: 15px; }
.font-names b { display: block; font-size: 26px; line-height: 1.2; }
.font-names .fh b { font-family: var(--font-h); font-weight: var(--h-weight); }

/* Buttons and calls to action */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font: 600 17px/1 var(--font-b); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-hover, var(--accent)); filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .16); }
.btn-secondary { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--wash); }
.btn-phone { background: var(--brand); color: #fff; }
.btn-phone:hover, .btn-phone.is-hover { background: var(--brand-deep); }
.btn.is-focus { outline: 3px solid var(--brand); outline-offset: 3px; }
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.states figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.states figcaption { font-size: 13px; color: var(--muted); }
.micro { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.field { display: grid; gap: 6px; max-width: 360px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { font: 400 17px/1.4 var(--font-b); padding: 13px 14px; border: 1.5px solid #8a929e; border-radius: var(--radius); color: var(--ink); background: #fff; }
.field input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.cta-band { margin-top: 36px; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); background: var(--brand-deep); color: #fff; display: grid; gap: 18px; position: relative; overflow: hidden; }
.cta-band h3 { font-size: clamp(26px, 3vw, 36px); max-width: 22ch; position: relative; }
.cta-band p { margin: 0; max-width: 52ch; color: color-mix(in srgb, #fff 82%, var(--brand)); position: relative; }
.cta-band .btn-row { position: relative; }
.cta-band .tel { color: #fff; font: 600 22px/1 var(--font-b); text-decoration: none; font-variant-numeric: tabular-nums; }

/* Finishing touches */
.touches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.touch { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; background: #fff; }
.touch h3 { font-size: 21px; margin-bottom: 14px; position: relative; }
.touch .note { position: relative; margin: 14px 0 0; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.bullets li::before { content: ""; width: 14px; height: 14px; margin-top: 7px; background: var(--accent-mark, var(--brand)); -webkit-mask: var(--bullet) center / contain no-repeat; mask: var(--bullet) center / contain no-repeat; }
.mark-bg { position: absolute; right: -40px; bottom: -50px; width: 260px; height: 260px; background: var(--brand); opacity: .07; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; pointer-events: none; }
.texture-bg { position: absolute; inset: 0; background: var(--texture, none) center / cover; opacity: .12; mix-blend-mode: multiply; pointer-events: none; }
.wash-bg { position: absolute; inset: 0; background: var(--wash); }
.framed { position: relative; width: min(100%, 300px); margin: 8px 0 0 14px; }
.framed::before { content: ""; position: absolute; left: -14px; top: 18px; width: 70%; height: 82%; background: var(--accent); border-radius: var(--radius); }
.framed .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.cutout-demo { position: relative; height: 300px; border-radius: var(--radius); background: var(--brand); margin-top: 60px; overflow: visible; }
.cutout-demo .person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 118%; width: auto; max-width: none; }
.icons { display: flex; gap: 22px; position: relative; }
.icons svg { width: 40px; height: 40px; stroke: var(--brand); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Photo placeholders: labelled until the firm's own photos arrive */
.ph { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 55%, #9aa4b1), color-mix(in srgb, var(--brand-deep) 80%, #000)); display: grid; place-items: end start; color: #fff; }
.ph > span { font-size: 12px; padding: 8px 10px; background: rgb(0 0 0 / .35); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Sample hero */
.hero { position: relative; min-height: 560px; display: grid; align-items: center; color: #fff; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.hero .bgimg { position: absolute; inset: 0; background: var(--hero-image, linear-gradient(120deg, #56606e, #2a3240)) center / cover; }
.hero .tint { position: absolute; inset: 0; }
.hero[data-treatment="overlay"] .tint { background: color-mix(in srgb, var(--brand-deep) 72%, transparent); }
.hero[data-treatment="gradient"] .tint { background: linear-gradient(90deg, var(--brand-deep) 0%, color-mix(in srgb, var(--brand-deep) 85%, transparent) 42%, color-mix(in srgb, var(--brand-deep) 10%, transparent) 100%); }
.hero[data-treatment="duotone"] .bgimg { filter: grayscale(1) contrast(1.1); }
.hero[data-treatment="duotone"] .tint { background: var(--brand); mix-blend-mode: multiply; opacity: .9; }
.hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to bottom, transparent, var(--hero-next, var(--bg))); }
.hero .mark-bg { opacity: .1; background: #fff; width: 520px; height: 520px; right: -120px; bottom: -160px; }
.hero .inner { position: relative; padding: 64px clamp(22px, 5vw, 64px) 120px; max-width: 700px; }
.hero h3 { font-size: clamp(36px, 5vw, 58px); }
.hero p { font-size: 19px; margin: 18px 0 28px; max-width: 46ch; color: color-mix(in srgb, #fff 88%, var(--brand)); }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 15px; color: color-mix(in srgb, #fff 85%, var(--brand)); }
.hero .person { position: absolute; right: clamp(0px, 4vw, 60px); bottom: 0; height: 92%; width: auto; max-width: none; }
.after-hero { height: 80px; background: var(--hero-next, var(--bg)); border-radius: 0 0 var(--radius) var(--radius); }

/* Photos and references */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.photos .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.refs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.refs li { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
footer.end { padding: 40px 0 64px; color: var(--muted); font-size: 14px; }

@media (max-width: 820px) { .cover { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; }
  .refs li { grid-template-columns: 1fr; }
  .hero .person { opacity: .35; }
  .compare { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
