/* keironmoore.au — shared tokens follow DESIGN-SYSTEM-BLUEPRINT.md (CKS live site):
   navy #002842, white, gold accents, Urbanist headings, Poppins body, 10px radius. */

:root {
  --navy: #002842;
  --navy-deep: #001c2f;
  --white: #ffffff;
  --stone: #f5f1ea;
  --line: #e2dccf;
  --ink: #002842;
  --ink-soft: #3d5566;
  --gold: #b8965a;          /* rules, borders, button fill only — not text on white */
  --gold-light: #e2c079;    /* text and icons on navy */
  --gold-ink: #7a5c2a;      /* gold-toned text on white/stone (AA) */
  --error: #b3261e;
  --error-light: #ffb4ab;

  --font-head: "Urbanist", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --radius: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- utilities ---------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.section { padding-block: var(--section); }
.section-stone { background: var(--stone); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { text-align: center; margin: 0 auto clamp(40px, 6vw, 64px); max-width: 44rem; }
.section-head p { margin-inline: auto; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head-left p { margin-inline: 0; }
.section-sub { color: var(--ink-soft); font-size: 1.125rem; margin-top: 16px; }
.eyebrow { font: 500 0.8125rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.eyebrow-light { color: var(--gold-light); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.grid { display: grid; gap: 24px; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: currentColor; }
.credit { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font: 500 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { min-height: 44px; padding: 10px 18px; }
.btn-lg { width: 100%; min-height: 58px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }

/* ---------- header ---------- */
.site-header { position: absolute; left: 0; right: 0; /* top: auto — sits directly under the sticky expertise bar */ z-index: 20; color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; }
.wordmark-name { font: 800 1.375rem/1 var(--font-head); letter-spacing: -0.02em; }
.wordmark-role { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin-top: 6px; }
.nav-toggle { width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.site-nav { display: none; }
.expertise-bar { position: sticky; top: 0; z-index: 30; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.expertise-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 6px; }
.expertise-label { display: none; color: rgba(255,255,255,.65); }
.expertise-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 16px; white-space: nowrap; }
.expertise-bar a { display: inline-block; padding: 6px 0; color: var(--gold-light); text-decoration: none; }
.expertise-bar a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-nav.is-open { display: block; position: absolute; inset: 100% 0 auto; background: var(--navy-deep); padding: 16px var(--gutter) 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.site-nav .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 111px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 24px; color: rgba(255,255,255,.88); }
.hero-proof { font-size: 0.875rem; color: rgba(255,255,255,.72); margin: 0; }
.hero-portrait { border-radius: var(--radius); overflow: hidden; max-width: 440px; justify-self: center; border-bottom: 4px solid var(--gold); }

.hero-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-intro .eyebrow { margin: 0; }
.hero-avatar { flex: none; width: 96px; height: 120px; border-radius: var(--radius); overflow: hidden; border-bottom: 3px solid var(--gold); background: #c9c9c7; position: relative; }
.hero-avatar img { position: absolute; width: 192px; max-width: none; height: auto; left: -52px; top: -8px; }
.hero-featured { margin-top: 28px; }
.hero-featured-label { font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.featured-list { display: flex; flex-wrap: wrap; gap: 16px; }
.featured-item { display: grid; gap: 8px; justify-items: center; text-decoration: none; color: rgba(255,255,255,.88); }
.featured-logo { display: flex; align-items: center; justify-content: center; height: 132px; padding: 12px 20px; background: var(--white); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.featured-logo img { height: 66px; width: auto; max-width: 100%; }
.featured-logo .logo-wide { height: 45px; }
.featured-logo .logo-round { height: 108px; }
.featured-name { contain: inline-size; width: 100%; font-size: 1.21875rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.25; text-align: center; }
a.featured-item:hover .featured-logo { box-shadow: 0 0 0 2px var(--gold); transform: translateY(-2px); }
a.featured-item:hover .featured-name { color: var(--gold-light); }

/* ---------- recognition: podcast + award ---------- */
.recognition { background: var(--stone); border-bottom: 1px solid var(--line); padding-block: 48px; }
.recognition-grid { display: grid; gap: 20px; }
.rec-card { display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 28px 24px; }
.rec-kicker { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.rec-logo { display: inline-flex; align-items: center; justify-content: center; height: 108px; transition: opacity .2s; }
.rec-logo:hover { opacity: .8; }
.rec-logo img { height: 66px; width: auto; max-width: 100%; }
.rec-logo .rec-badge { height: 108px; }
.rec-title { font-size: 1.25rem; line-height: 1.3; margin: 0; }
.rec-text { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 auto; max-width: 42ch; }

/* ---------- podcast listen links ---------- */
.listen-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.press-card .listen-links { justify-content: flex-start; margin-top: 16px; }
.listen-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.listen-link:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(0,40,66,.08); }
.listen-link svg { flex: none; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-icon { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pull-quote { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 46rem; text-align: center; border-top: 2px solid var(--gold); padding-top: 32px; }
.pull-quote p { font: 700 clamp(1.3rem, 2.6vw, 1.75rem)/1.35 var(--font-head); letter-spacing: -0.01em; margin-inline: auto; }
.pull-quote footer { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border-top: 3px solid var(--gold); }
.step-num { font: 800 2.25rem/1 var(--font-head); color: var(--gold-ink); }
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- project ---------- */
.feature-image { border-radius: var(--radius); overflow: hidden; }
.project-grid { display: grid; gap: 40px; margin-top: 48px; }
.project-copy h3 { margin-bottom: 14px; }
.project-copy p { color: var(--ink-soft); }
.project-images { display: grid; grid-template-columns: 1fr; gap: 16px; }
.project-images img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin: 0; }

/* ---------- story ---------- */
.story-grid { display: grid; gap: 48px; align-items: start; }
.story-image { border-radius: var(--radius); overflow: hidden; max-width: 334px; border-bottom: 4px solid var(--gold); }
.story-copy h2 { margin-bottom: 32px; }
.story-copy h3 { color: var(--gold-light); font-size: 0.875rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin: 28px 0 10px; }
.story-copy p { color: rgba(255,255,255,.88); }
.inline-quote { border-left: 3px solid var(--gold); padding-left: 20px; margin: 0 0 16px; }
.inline-quote p { font: 700 1.25rem/1.4 var(--font-head); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 64px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--navy); padding: 28px 20px; display: grid; gap: 6px; }
.stat-num { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-head); color: var(--gold-light); }
.stat-label { font-size: 0.9375rem; color: rgba(255,255,255,.8); }

/* ---------- credentials ---------- */
.cred-grid { display: grid; gap: 48px; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 28px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); }
.tl-date { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.cred-panel { background: var(--stone); border-radius: var(--radius); padding: 32px 28px; align-self: start; }
.facts-tight { margin-top: 0; }
.link-list { display: grid; gap: 12px; }
.link-list a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- press ---------- */
.press-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.press-card h3 { margin-bottom: 12px; }
.press-card p { color: var(--ink-soft); }
.press-card .text-link { margin-top: auto; }
.press-card .press-meta { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.press-photo { margin-top: 48px; }
.press-photo img { border-radius: var(--radius); }
.press-photo figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- testimonials ---------- */
.quote-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.quote-head { font: 700 1.25rem/1.3 var(--font-head); letter-spacing: -0.01em; }
.quote-card blockquote p { color: var(--ink-soft); }
.quote-card figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; }

/* ---------- contact form ---------- */
.cta-inner { max-width: 760px; text-align: center; }
.cta-inner .lede { margin: 20px auto 40px; color: rgba(255,255,255,.88); }
.form { text-align: left; }
.form-grid { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 1rem; }
.optional { font-weight: 400; color: rgba(255,255,255,.7); }
.field input, .field select {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.35); background: var(--white); color: var(--navy);
  font: 400 1.0625rem/1.3 var(--font-body);
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; border-color: var(--gold-light); }
.field input[aria-invalid="true"] { border-color: var(--error-light); box-shadow: 0 0 0 1px var(--error-light); }
.field-error { color: var(--error-light); font-size: 0.9375rem; margin: 0; }
.field-error::before { content: "⚠ "; }
.field-hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 20px 0 12px; font-weight: 500; }
.form-status.is-error { color: var(--error-light); }
.form-status.is-ok { color: var(--gold-light); }
.form-note { font-size: 0.9375rem; color: rgba(255,255,255,.8); margin: 16px 0 0; }
.form-note a { color: var(--gold-light); }

/* ---------- footer (DAN colophon) ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 56px 0 48px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 6px; align-content: start; color: var(--white); }
.footer-sub { font-size: 0.8125rem; color: rgba(255,255,255,.7); }
.footer-label { font: 500 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer-colophon a { color: var(--gold-light); }
.footer-meta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }
.footer-meta p { margin-bottom: 4px; }

/* ---------- < 640px: keep Featured in on one row, above the fold ---------- */
@media (max-width: 639px) {
  .hero-featured { margin-top: 20px; }
  .hero-featured-label { margin-bottom: 10px; }
  .featured-list { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; }
  .featured-item { min-width: 0; gap: 6px; }
  .featured-logo { width: 100%; height: 84px; padding: 10px 8px; }
  .featured-logo img, .featured-logo .logo-wide, .featured-logo .logo-round { height: auto; max-width: 100%; }
  .featured-logo img { max-height: 44px; }
  .featured-logo .logo-wide { max-height: 30px; }
  .featured-logo .logo-round { max-height: 64px; }
  .featured-name { font-size: 0.9375rem; }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .hero { padding-top: 139px; }
  html { scroll-padding-top: 56px; }
  .expertise-bar { font-size: 0.75rem; letter-spacing: 0.08em; }
  .expertise-label { display: inline; }
  .expertise-bar ul { flex-wrap: nowrap; column-gap: 0; }
  .expertise-bar li + li::before { content: "·"; color: var(--gold); padding: 0 10px; }
  .recognition-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .project-images { grid-template-columns: 1.6fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav .btn { margin-top: 0; }
  .expertise-inner { justify-content: flex-end; }
  .hero { padding: 119px 0 0; }
  .hero-avatar { display: none; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-copy { padding-bottom: 96px; }
  .hero-portrait { justify-self: end; border-radius: var(--radius) var(--radius) 0 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .story-grid { grid-template-columns: 334px 1fr; gap: 72px; }
  .cred-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .footer-grid { grid-template-columns: 1fr 2fr 1fr; }
  .footer-meta { text-align: right; }
}

/* FAQ + byline (DAN extraction surface; text must match the FAQPage JSON-LD) */
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font: 700 1.0625rem/1.4 var(--font-head); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-ink); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.faq-item p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }
.byline { margin: 32px 0 0; font-size: 0.875rem; color: var(--ink-soft); max-width: none; }
