/* www.ghog.ai
   Tokens follow website/design/build-spec.md (direction 1a, Sky & Earth), which takes its
   colours and type from brand/tokens/ghog.css. Only the seven brand colours plus white;
   --cobalt-hover and --line come from the website design. Amber is for shapes only. */

:root {
  --cobalt: #1F55D0; --cobalt-hover: #1846B0;
  --amber: #F0AE3C; --terracotta: #A3392E;
  --brown: #2A2522; --clay: #5C4B44;
  --paper: #FBFAF6; --mist: #E2E5F0; --line: #E6DDD3;
  --white: #FFFFFF;
  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 6px; --radius-pill: 999px;
  --container: 1280px; --gutter: clamp(24px, 5vw, 64px);
  --section: clamp(48px, 8vw, 96px);

  /* Type scale: mobile (390px) to desktop (1280px) sizes from the build spec */
  --fs-display: clamp(3.5rem, 2.404rem + 4.494vw, 6rem);
  --fs-h1: clamp(2.75rem, 1.983rem + 3.146vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.562rem + 1.798vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.14rem + .449vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, .953rem + .449vw, 1.3125rem);
  --fs-body: clamp(1rem, .945rem + .225vw, 1.125rem);
  --fs-quote: clamp(1.5rem, 1.117rem + 1.573vw, 2.375rem);
  --fs-eyebrow: clamp(.75rem, .695rem + .225vw, .875rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 88px;
}
@media (max-width: 719px) { :root { --nav-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .menu :focus-visible,
.cta-band :focus-visible, .testimonial :focus-visible, .facts :focus-visible { outline-color: var(--paper); }
::selection { background: var(--mist); color: var(--brown); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--paper); color: var(--brown); padding: 12px 18px; border-radius: var(--radius-pill);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */
.display { font-size: var(--fs-display); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.muted { color: var(--clay); }
.mono { font-family: var(--font-mono); font-size: .9375rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.num { font-family: var(--font-mono); font-size: .875rem; color: var(--cobalt); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cobalt); --btn-fg: var(--white); --btn-border: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 14px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  font: 600 1.0625rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { --btn-bg: var(--cobalt-hover); --btn-border: var(--cobalt-hover); color: var(--btn-fg); }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--brown); --btn-border: var(--brown); font-weight: 500; }
.btn--secondary:hover { --btn-bg: var(--brown); --btn-fg: var(--paper); --btn-border: var(--brown); }
.btn--on-dark { --btn-bg: var(--paper); --btn-fg: var(--brown); --btn-border: var(--paper); }
.btn--on-dark:hover { --btn-bg: var(--mist); --btn-border: var(--mist); --btn-fg: var(--brown); }
.btn--on-dark:focus-visible { outline-color: var(--paper); }
.btn--lg { padding: 18px 30px; font-size: 1.125rem; }
.btn--xl { padding: 20px 34px; font-size: 1.25rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--cobalt); font-weight: 500; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--cobalt); text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cobalt); color: var(--paper);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.site-nav__brand { display: block; position: relative; flex: none; }
.site-nav__brand .logo { height: 36px; width: auto; }
.logo--light { position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); }
.logo--reversed { transition: opacity .3s var(--ease); }
.site-nav__links { display: flex; align-items: center; gap: 36px; }
.site-nav__links ul { display: flex; gap: 36px; list-style: none; padding: 0; }
.site-nav__links ul a {
  display: inline-block; padding: 6px 0; color: inherit; text-decoration: none; font-size: 1rem;
  border-bottom: 2px solid transparent; transition: border-color .2s var(--ease);
}
.site-nav__links ul a:hover { border-bottom-color: currentColor; color: inherit; }
.site-nav__links ul a[aria-current="page"] { border-bottom-color: var(--amber); }
.btn--nav { --btn-bg: var(--paper); --btn-fg: var(--brown); --btn-border: var(--paper); padding: 11px 20px; font-weight: 500; font-size: 1rem; }
.btn--nav:hover { --btn-bg: var(--mist); --btn-border: var(--mist); }
.site-nav :focus-visible { outline-color: var(--paper); }

/* After the hero: paper background, brown text */
.site-nav.is-stuck { background: var(--paper); color: var(--brown); box-shadow: 0 1px 0 var(--line); }
.site-nav.is-stuck .logo--reversed { opacity: 0; }
.site-nav.is-stuck .logo--light { opacity: 1; }
.site-nav.is-stuck .btn--nav { --btn-bg: var(--cobalt); --btn-fg: var(--white); --btn-border: var(--cobalt); }
.site-nav.is-stuck .btn--nav:hover { --btn-bg: var(--cobalt-hover); --btn-border: var(--cobalt-hover); }
.site-nav.is-stuck :focus-visible { outline-color: var(--cobalt); }

.site-nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--radius);
}
.site-nav__toggle-bars, .site-nav__toggle-bars::before, .site-nav__toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto;
}
.site-nav__toggle-bars { position: relative; }
.site-nav__toggle-bars::before, .site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bars::before { top: -7px; }
.site-nav__toggle-bars::after { top: 7px; }

@media (max-width: 899px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: block; }
  .site-nav__brand .logo { height: 30px; }
}

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: var(--cobalt); color: var(--paper);
  display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.menu__top img { height: 30px; width: auto; }
.menu__close {
  width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit;
  font-size: 2.25rem; line-height: 1; cursor: pointer;
}
.menu__links ul { list-style: none; padding: 32px 0 0; display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: center; min-height: 56px;
  color: var(--paper); text-decoration: none;
  font-size: 2.25rem; font-weight: 600; letter-spacing: -.035em;
}
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.menu__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 40px; padding-bottom: 48px; }
.menu__cta .mono { color: var(--mist); }
.band--menu { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Hero: sky, sun, horizon, earth ---------- */
.hero { background: var(--cobalt); color: var(--paper); position: relative; }
.hero__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 720px; padding-bottom: 48px; }
.hero .eyebrow { color: var(--mist); }
.hero .lead { color: var(--paper); max-width: 640px; }
.hero__sun { flex: none; width: 240px; margin-bottom: -1px; fill: var(--amber); }
.band__horizon { height: 10px; background: var(--amber); }
.band__earth { height: 36px; background: var(--brown); }

.hero--home .hero__grid { padding-top: clamp(32px, 6vw, 80px); }
.hero--home .hero__copy { gap: 28px; max-width: 660px; padding-bottom: clamp(48px, 6vw, 72px); }
.hero--home .hero__sun { width: clamp(180px, 30vw, 380px); }
.hero--home .band__horizon { height: 14px; }
.hero--home .band__earth { height: 56px; }

.hero--inner .hero__grid { padding-top: clamp(24px, 4vw, 56px); }
.hero--inner .hero__copy { gap: 20px; }

.hero--contact .hero__grid { padding-top: clamp(32px, 5vw, 72px); }
.hero--contact .hero__copy { gap: 28px; padding-bottom: clamp(48px, 6vw, 72px); }
.hero--contact .hero__sun { width: clamp(180px, 28vw, 360px); }
.hero--contact .band__horizon { height: 12px; }
.hero--contact .band__earth { height: 48px; }

.hero--story .hero__copy { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 56px); max-width: 960px; }
.hero--story .band__earth { display: none; }
.hero--article .hero__copy { margin-inline: auto; max-width: 900px; }
.hero__byline { color: var(--mist); font-size: 1.0625rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .cta-row .mono, .cta-band .mono { color: var(--mist); }
.copy-email {
  background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .25em;
}
.copy-email:hover { text-decoration-style: solid; }
.copy-email[data-copied]::after { content: " · copied"; }

/* Sunrise on the home page (once, on load) */
@media (prefers-reduced-motion: no-preference) {
  .hero--home .hero__sun circle { animation: sunrise 1.1s var(--ease) both; transform-origin: 50% 100%; }
  @keyframes sunrise { from { transform: translateY(38%); } to { transform: none; } }
}

@media (max-width: 719px) {
  .hero__grid { flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { padding-bottom: 32px; }
  .hero--home .hero__sun, .hero--contact .hero__sun { width: 62%; align-self: flex-end; margin-right: -4px; }
  .hero--inner .hero__sun { display: none; }
  .hero--inner .hero__copy { padding-bottom: 40px; }
  .band__earth, .hero--home .band__earth, .hero--contact .band__earth { height: 24px; }
  .hero--inner .band__earth { height: 20px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .hero--inner .hero__sun { width: 180px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head__title { display: flex; flex-direction: column; gap: 14px; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Trusted-by strip */
.logos { border-bottom: 1px solid var(--line); }
.logos__inner { display: flex; align-items: center; gap: 24px 48px; padding-block: 32px; }
.logos__label { flex: none; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--clay); }
.logos__list { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.logos__list li {
  height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 4px; font-size: .8125rem; color: var(--clay);
}
.logos__list img { max-height: 40px; width: auto; filter: grayscale(1); opacity: .8; }
.logos--6 .logos__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 899px) {
  .logos__inner { flex-direction: column; align-items: flex-start; }
  .logos__list, .logos--6 .logos__list { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Service card: whole card is the link */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--cobalt); }
.card p { color: var(--clay); line-height: 1.55; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:focus-within { border-color: var(--cobalt); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* Numbered list rows (how we work, what to include) */
.steps { border-top: 2px solid var(--brown); list-style: none; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 60px 180px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.steps strong { font-size: 1.25rem; font-weight: 600; }
.steps span:last-child { color: var(--clay); }
.steps--simple li { grid-template-columns: 60px 1fr; }
.steps--simple span:last-child { color: var(--brown); font-size: 1.1875rem; }
@media (max-width: 719px) {
  .steps li { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .steps li > span:last-child { grid-column: 2; }
}

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 899px) { .split, .split--even { grid-template-columns: 1fr; gap: 32px; } }

/* Testimonial band */
.testimonial { background: var(--brown); color: var(--paper); }
.testimonial__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; padding-block: var(--section); }
.testimonial__quote { display: flex; flex-direction: column; gap: 28px; }
.testimonial__bar { width: 96px; height: 10px; background: var(--amber); border-radius: 5px; }
.testimonial blockquote p { font-size: var(--fs-quote); font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 1.0625rem; }
.testimonial figcaption span { color: var(--mist); font-size: 1rem; }
@media (max-width: 899px) { .testimonial__inner { grid-template-columns: 1fr; gap: 48px; } }

/* Story / article cards */
.story { position: relative; display: flex; flex-direction: column; gap: 14px; }
.story__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.story__media > * { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.story:hover .story__media > * { transform: scale(1.03); }
.story__title { font-size: 1.3125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; transition: color .25s var(--ease); }
.story__title a { color: inherit; text-decoration: none; }
.story__title a::before { content: ""; position: absolute; inset: 0; }
.story:hover .story__title { color: var(--cobalt); }
.story__meta { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; color: var(--clay); text-transform: uppercase; }
.story__summary { color: var(--clay); }
.story--lg .story__media { aspect-ratio: 16 / 10; }
.story--lg .story__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -.02em; line-height: 1.2; }
.story--soon .story__title { color: var(--clay); }
.story--soon:hover .story__media > * { transform: none; }
.story:has(a:focus-visible) .story__media { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.story a:focus-visible { outline: none; }

.case-card { background: var(--paper); color: var(--brown); border-radius: var(--radius); overflow: hidden; }
.case-card .story__media { border-radius: 0; aspect-ratio: 16 / 9; }
.case-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-block: 40px; border-bottom: 1px solid var(--line); }
.feature .story__title { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.025em; line-height: 1.15; }
.feature .story__media { aspect-ratio: 16 / 10; }
@media (max-width: 899px) { .feature { grid-template-columns: 1fr; gap: 24px; } }

/* Topic filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--brown); text-decoration: none; font-size: .9375rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chips a:hover { border-color: var(--brown); color: var(--brown); }
.chips a[aria-current="true"] { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.is-filtered-out { display: none !important; }

/* CTA band (brown) and closing CTA (cobalt) */
.cta-band { background: var(--brown); color: var(--paper); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.cta-band p { color: var(--mist); margin-top: 12px; font-size: 1.125rem; }
.cta-band__action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.closing { background: var(--cobalt); color: var(--paper); }
.closing__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 40px; flex-wrap: wrap; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 64px); }
.closing h2 { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.closing p { color: var(--mist); font-size: 1.25rem; margin-top: 20px; }
.closing__action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.closing__action .mono { color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: var(--paper); }
.site-footer__horizon { height: 10px; background: var(--amber); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 28px 32px; padding-block: 40px; flex-wrap: wrap; }
.site-footer__brand img { height: 32px; width: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; padding: 0; }
.site-footer a { color: var(--mist); text-decoration: none; font-size: .9375rem; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--mist); }
.site-footer__meta .mono { font-size: .8125rem; }
@media (max-width: 899px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { align-items: flex-start; }
}

/* ---------- Image placeholders ----------
   A small sky-and-earth drawing in brand colours, standing in for a photo until a real one
   (real people and places, natural light) is added. Every one is marked data-placeholder. */
.ph {
  position: relative; display: block; width: 100%; height: 100%; min-height: 160px;
  background: var(--mist); overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; left: 50%; bottom: 30%;
  width: 34%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: var(--amber); border-radius: 999px 999px 0 0;
}
.ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: var(--cobalt); }
.ph--earth::after { background: var(--brown); }
.ph--round::before { width: 46%; bottom: 0; }
.ph--round::after { height: 0; }
.ph__label {
  position: absolute; left: 14px; top: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--clay);
}

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service .num { font-size: 1rem; padding-top: .6em; }
.service h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.service p { color: var(--clay); line-height: 1.6; }
.service p + p { margin-top: 14px; }
.service ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.service li { display: flex; gap: 12px; }
.service li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .65em; border-radius: 50%; background: var(--cobalt); }
@media (max-width: 899px) {
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service .num { padding-top: 0; }
}

/* ---------- About ---------- */
.about-intro p:first-child { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.45; letter-spacing: -.01em; }
.about-intro p + p { margin-top: 20px; color: var(--clay); }
.media-tall { aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; }
.pillars li { border-top: 2px solid var(--brown); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pillars strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.pillars span { color: var(--clay); }
@media (max-width: 719px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }
.person { display: flex; flex-direction: column; gap: 8px; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 6px; }
.person strong { font-size: 1.25rem; font-weight: 600; }
.person span { color: var(--clay); }

/* ---------- Case study & article ---------- */
.story-hero-media { height: clamp(260px, 40vw, 520px); }
.facts { background: var(--brown); color: var(--paper); }
.facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-block: 40px; margin: 0; }
.facts dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.facts dd { margin: 6px 0 0; font-size: 1.125rem; }
@media (max-width: 719px) { .facts dl { grid-template-columns: 1fr; } }

.with-toc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 12px; font-size: .9375rem; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc a { color: var(--clay); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--brown); font-weight: 500; }
@media (max-width: 899px) { .with-toc { grid-template-columns: 1fr; gap: 32px; } .toc { position: static; } }

.prose { display: flex; flex-direction: column; gap: 24px; font-size: 1.1875rem; line-height: 1.7; }
.prose > p, .prose li { color: var(--brown); }
.prose .intro { font-size: clamp(1.1875rem, 1rem + .7vw, 1.375rem); line-height: 1.6; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 16px; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--cobalt); }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose section h2 { margin-top: 0; }
.prose section p { color: var(--clay); }
.callout { background: var(--mist); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.callout .eyebrow { font-size: .75rem; }
.callout p { font-size: 1.1875rem; line-height: 1.55; }
.pull-quote { border-left: 4px solid var(--amber); padding: 8px 0 8px 28px; display: flex; flex-direction: column; gap: 14px; }
.pull-quote p { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.pull-quote figcaption { font-size: 1rem; color: var(--clay); }
.pull-quote figcaption strong { color: var(--brown); }
.article-media { max-width: 1000px; margin-inline: auto; aspect-ratio: 1000 / 460; border-radius: var(--radius); overflow: hidden; }
.article-end { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.article-end strong { display: block; font-size: 1.25rem; font-weight: 600; }
.article-end span { color: var(--clay); font-size: 1rem; }

/* ---------- News roundups (/news, home page strip) ---------- */
.news-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }
.news-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 32px); }
.news-aside__link { color: inherit; text-decoration: none; }
.news-aside__link:hover { color: var(--cobalt); }
.news-aside__intro { color: var(--clay); }
.news-aside__count { color: var(--brown); padding-top: 16px; border-top: 1px solid var(--line); }
.news-aside__note { font-size: .9375rem; color: var(--clay); line-height: 1.55; }
.news-list { list-style: none; padding: 0; border-top: 2px solid var(--brown); }
.news-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.news-row .num { padding-top: 3px; }
.news-row__body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.news-row__meta { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase; color: var(--clay); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.news-row__topic { color: var(--terracotta); }
.news-row__topic::before { content: "·"; color: var(--clay); margin-right: 12px; }
.news-row__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.news-row__title a { color: var(--brown); text-decoration: none; transition: color .25s var(--ease); }
.news-row__title a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.news-row__why { border-left: 3px solid var(--amber); padding: 2px 0 2px 16px; color: var(--brown); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.news-row__label { display: block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.news-row__read { font-size: .9375rem; }
.news-teaser { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-teaser .card { gap: 12px; }
.news-teaser .h3 a { color: var(--brown); text-decoration: none; }
.news-teaser .card:hover .h3 a { color: var(--cobalt); }
.news-archive .card h3 { color: var(--brown); }
@media (max-width: 899px) {
  .news-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .news-aside { position: static; }
  .news-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .news-row { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 24px 0; }
}

/* ---------- Plain pages (privacy, 404) ---------- */
.plain h2 { font-size: 1.5rem; }
.not-found { min-height: 50vh; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Text links on cobalt */
.hero .link-arrow, .hero .link-arrow:hover { color: var(--paper); }

/* Avoid one-word last lines in headings and paragraphs (where supported) */
h1, h2, h3, .lead, p { text-wrap: pretty; }

/* Client logos: shown as one-colour silhouettes in clay so any client's colours sit
   quietly in the brand palette; brown on hover. Files in assets/img/clients/. */
.logos__list li.client { border: 0; }
.client__logo {
  display: block; width: 100%; height: 34px;
  background: var(--clay);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: background-color .25s var(--ease);
}
.client__logo--tall { height: 44px; }
.client:hover .client__logo { background: var(--brown); }
.client__logo--small { height: 26px; }

/* ---------- Chuck, the chat assistant (assets/js/chuck.js) ----------
   Chuck with a headset sits on white or paper only (brand/mascot/README.md).
   Visitor messages cobalt, Chuck's mist; amber is never used here. */
.chuck-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 4px 18px 4px 6px;
  background: var(--white); color: var(--brown);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(42, 37, 34, .16);
  font: 500 1rem/1 var(--font-sans); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chuck-launcher img { width: 48px; height: 44px; }
.chuck-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(42, 37, 34, .2); }
.chuck-launcher[hidden] { display: none; }

.chuck-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--brown);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(42, 37, 34, .22);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.5;
}
.chuck-panel[hidden] { display: none; }
.chuck-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.chuck-head__img { width: 44px; height: 40px; flex: none; }
.chuck-head__title { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chuck-head__title strong { font-weight: 600; font-size: 1.0625rem; }
.chuck-head__title span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--clay); }
.chuck-close {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: transparent; color: var(--brown); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.chuck-close:hover { background: var(--mist); }

.chuck-log {
  list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain;
}
.chuck-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chuck-msg--chuck { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
.chuck-msg--you { align-self: flex-end; background: var(--cobalt); color: var(--white); border-bottom-right-radius: 4px; }
.chuck-msg a { color: var(--cobalt); }
.chuck-msg a:hover { color: var(--brown); }

.chuck-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chuck-starters[hidden] { display: none; }
.chuck-starter {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--cobalt); border-radius: var(--radius-pill);
  background: var(--white); color: var(--cobalt); font: 500 .9375rem/1.3 var(--font-sans); cursor: pointer; text-align: left;
}
.chuck-starter:hover { background: var(--cobalt); color: var(--white); }

.chuck-typing { display: flex; gap: 5px; padding: 0 16px 10px 30px; }
.chuck-typing[hidden] { display: none; }
.chuck-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .chuck-typing i { animation: chuck-dot 1.2s infinite ease-in-out; }
  .chuck-typing i:nth-of-type(2) { animation-delay: .15s; }
  .chuck-typing i:nth-of-type(3) { animation-delay: .3s; }
}
@keyframes chuck-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.chuck-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; background: var(--white); border-top: 1px solid var(--line); }
.chuck-input {
  flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--brown);
  font: 400 1rem/1.4 var(--font-sans);
}
.chuck-input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.chuck-send {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: var(--cobalt); color: var(--white); font: 500 1rem/1 var(--font-sans); cursor: pointer;
}
.chuck-send:hover { background: var(--cobalt-hover); }
.chuck-send:disabled { opacity: .6; cursor: default; }
.chuck-note { margin: 0; padding: 0 16px 12px; background: var(--white); font-size: .75rem; line-height: 1.4; color: var(--clay); }

@media (max-width: 719px) {
  .chuck-launcher { right: 16px; bottom: 16px; }
  .chuck-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .chuck-is-open, .chuck-is-open body { overflow: hidden; }
}
@media print { .chuck-launcher, .chuck-panel { display: none !important; } }
