/* Homepage service map and progressive disclosures. */
:root { --space: clamp(48px, 6vw, 88px); --surface-charcoal: #23272E; }

/* Alternate section surfaces without changing the light dialog surfaces. */
#intelligence-brief { background: var(--surface-charcoal); color: #F5F6F8; }
#intelligence-brief > .intelligence-brief__inner { --ib-blue: #82B8FF; --ib-purple: #C7ACFF; }
#intelligence-brief > .intelligence-brief__inner h2 { color: #F5F6F8; }
#intelligence-brief > .intelligence-brief__inner .intelligence-brief__free { color: #E3C76A; }
#intelligence-brief > .intelligence-brief__inner .intelligence-brief__market { color: #D0D6DF; }
#intelligence-brief > .intelligence-brief__inner :is(.intelligence-brief__prism-label, .intelligence-brief__prism-echo) {
  background-image: linear-gradient(100deg, #82B8FF, #C7ACFF 66%, #E3C76A);
}
#intelligence-brief > .intelligence-brief__inner .intelligence-brief__cta {
  background: transparent;
  color: #F5F6F8;
  border-color: #D0D6DF;
}
#intelligence-brief > .intelligence-brief__inner .intelligence-brief__cta:hover { background: #FFFFFF0D; }
#intelligence-brief > .intelligence-brief__inner .intelligence-brief__cta:focus-visible { outline-color: #E3C76A; }
#answers, #method {
  --ink: #F5F6F8;
  --body-text: #D0D6DF;
  --muted: #B9C2CF;
  --accent: #E3C76A;
  --line: #FFFFFF26;
  color: var(--body-text);
  background: var(--surface-charcoal);
}
#answers::selection, #answers ::selection, #method::selection, #method ::selection { color: #23272E; background: #E3C76A; }
body, body.is-ring-target { cursor: default; }
a, button, summary, [role="button"] { cursor: pointer; }
input, textarea, [contenteditable="true"] { cursor: text; }
.nav-logo img { height: 42px; width: auto; transition: height 220ms var(--ease); }
.site-header.is-compact .nav-logo img { height: 34px; }
.loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-multiply { cursor: default; }
.service-intro { padding-top: clamp(32px, 4vw, 56px); scroll-margin-top: 0; }
.section-services { background: var(--surface); }
.section-services .service-intro { padding-top: 0; }
.service-intro h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.service-map { position: relative; height: 580px; margin: 28px 0 44px; isolation: isolate; }
.service-connectors { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -1; overflow: visible; }
.service-connectors path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .6; }
.service-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; border: 1px solid var(--gold); border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; box-shadow: 0 0 0 12px var(--surface), 0 0 0 13px var(--line-soft); }
.service-centre img { width: 68px; height: auto; }
.service-centre strong { font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.service-centre span { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.service-node { position: absolute; display: flex; flex-direction: column; justify-content: center; width: 250px; min-height: 112px; padding: 18px 34px 18px 22px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--surface); transition: border-color 180ms, box-shadow 180ms, background 180ms; }
.service-node:hover, .service-node:focus-visible { border-color: var(--gold); background: #FFFCF5; box-shadow: 0 8px 28px #0F12180A; }
.service-node strong { font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.service-node > span:not(.node-number):not(.node-open) { font-size: .8rem; line-height: 1.4; margin-top: 6px; color: var(--muted); }
.node-number { color: var(--accent); font-size: .65rem; letter-spacing: .12em; margin-bottom: 5px; }
.node-open { position: absolute; right: 16px; top: 17px; color: var(--accent); font-size: 1.2rem; }
.service-detail { border-top: 1px solid var(--line); padding: 20px 0; scroll-margin-top: 100px; }
.service-detail > summary { cursor: pointer; font-family: var(--display); }
.service-detail .service-content { padding-top: 24px; }
.services-enhanced .service-details { display: none; }
.service-dialog { --dialog-padding: clamp(28px, 5vw, 48px); width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: var(--dialog-padding); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 100px #0F121830; overscroll-behavior: contain; scroll-behavior: auto; }
.service-dialog::backdrop { background: #0F12185C; backdrop-filter: blur(5px); }
.service-dialog[data-active-service="octo-hq"] .dialog-content { position: relative; isolation: isolate; }
.dialog-close { position: sticky; float: right; top: 12px; margin: calc(12px - var(--dialog-padding)) calc(12px - var(--dialog-padding)) 0 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.7rem; cursor: pointer; z-index: 1; }
.dialog-close:hover { border-color: var(--gold); }
.service-dialog h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); padding-right: 18px; }
.service-dialog h3 { font-size: 1.1rem; margin-top: 24px; }
.service-dialog p, .service-dialog li { font-size: .95rem; }
.service-dialog .eyebrow { padding-right: 22px; font-size: .65rem; }
.service-dialog .btn { margin-top: 12px; }
.service-products { list-style: none; padding: 0; margin: 24px 0; }
.service-products li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.service-products strong, .service-products span { display: block; }
.service-products span { margin-top: 5px; }
.capability-status { color: var(--accent); font-size: .75rem !important; margin-bottom: 8px; }
.service-boundary { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
body.service-dialog-open { overflow: hidden; }
.bio-content { display: flow-root; }
.team-bio.is-animating { overflow: hidden; }
#contact { scroll-margin-top: 0; }
.section-contact { padding-block: var(--space); padding-bottom: clamp(32px, 3vw, 48px); overflow: clip; }
.section-contact::after { top: calc(100% - 40px); bottom: auto; }
.contact-inner .index { margin-bottom: 14px; }
.contact-title { font-size: clamp(2.1rem, 5vw, 4.2rem); max-width: 18ch; }
.answers .answer dt { font-size: 1.1rem; }
@media (max-width: 1000px) {
  .service-node { width: 220px; }
  .service-centre { width: 164px; height: 164px; }
}
@media (max-width: 760px) {
  .nav-logo img { height: 38px; }
  .loop { grid-template-columns: 1fr; }
  .loop-step + .loop-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .service-map { height: auto; display: flex; flex-direction: column; gap: 16px; padding-left: 32px; margin-top: 24px; }
  .service-map::before { content: ''; position: absolute; left: 10px; top: 80px; bottom: 56px; width: 1px; background: var(--gold); opacity: .6; }
  .service-connectors { display: none; }
  .service-centre { position: relative; left: auto; top: auto; transform: none; width: 144px; height: 144px; margin: 0 auto 16px; }
  .service-centre::before { content: ''; position: absolute; right: 100%; top: 50%; width: calc((100vw - 2 * var(--gutter) - 144px) / 2 - 10px); height: 1px; background: var(--gold); opacity: .6; }
  .service-node { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; width: 100%; min-height: 100px; }
  .service-node::before { content: ''; position: absolute; right: 100%; top: 50%; width: 23px; height: 1px; background: var(--gold); opacity: .6; }
}
@media (max-width: 240px) {
  .nav-logo img, .site-header.is-compact .nav-logo img { height: 26px; }
  .service-map { padding-left: 20px; }
  .service-map::before { left: 0; }
  .service-node::before { width: 20px; }
  .service-centre { width: 120px; height: 120px; }
  .service-centre::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo img, .service-node { transition: none; }
}

/* Native dialogs retain focus, Escape, and backdrop behaviour while opening softly. */
.service-dialog[open],
.intelligence-brief__dialog[open] {
  animation: octo-dialog-enter 440ms cubic-bezier(.16, 1, .3, 1);
}
.service-dialog[open]::backdrop,
.intelligence-brief__dialog[open]::backdrop {
  animation: octo-backdrop-enter 360ms ease-out;
}
@keyframes octo-dialog-enter {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes octo-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.service-dialog[open].is-closing::backdrop,
.intelligence-brief__dialog[open].is-closing::backdrop {
  animation: octo-backdrop-exit 360ms ease-in forwards;
}
@keyframes octo-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .service-dialog[open], .intelligence-brief__dialog[open],
  .service-dialog[open]::backdrop, .intelligence-brief__dialog[open]::backdrop,
  .service-dialog[open].is-closing::backdrop, .intelligence-brief__dialog[open].is-closing::backdrop { animation: none; }
}

/* A quiet, static flywheel: the arrows show the cycle without adding motion. */
.service-map { height: 620px; }
.service-node { width: 270px; min-height: 140px; }
.node-policy { left: 50%; top: 0; transform: translateX(-50%); }
.node-plan { right: 0; top: 50%; transform: translateY(-50%); }
.node-implement { left: 50%; bottom: 0; transform: translateX(-50%); }
.node-support { left: 0; top: 50%; transform: translateY(-50%); }
.service-centre { width: 216px; height: 216px; text-decoration: none; }
.service-centre:hover { background: #FFFCF5; }
.service-centre .centre-open { font-size: .7rem; color: var(--accent); }
.service-connectors marker path { stroke: var(--gold); opacity: 1; }
.service-connectors .flywheel-spokes { opacity: .3; stroke-dasharray: 3 6; }
.flywheel-caption { text-align: center; font-size: .85rem; color: var(--muted); margin: -16px auto 28px; max-width: 56ch; }
.method-action { margin: 24px 0 0; }
/* Match the Brief button's restrained outline and generous rounding. */
.problem-cta { color: var(--ink); background: transparent; border-color: var(--ink); font-family: var(--font-stack); text-align: center; text-decoration: none; max-width: 100%; white-space: normal; }
.problem-cta:hover { color: var(--ink); background: #0F121808; }
.nav-links .problem-cta { font-size: .75rem; line-height: 1.4; padding: 10px 16px; max-width: 232px; flex-shrink: 0; }
.faq-banner { --ink: #F5F6F8; --body-text: #D0D6DF; --muted: #B9C2CF; --accent: #E3C76A; --line: #FFFFFF26; color: var(--ink); background: var(--surface-charcoal); padding: 26px 0; }
.faq-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.faq-banner .eyebrow { font-size: .65rem; margin-bottom: 8px; }
.faq-banner h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0; }
.faq-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; color: #F5F6F8; text-decoration: none; border: 1px solid #D0D6DF; padding: 12px 22px; border-radius: 999px; font-size: .85rem; flex-shrink: 0; }
.faq-button:hover { background: #FFFFFF0D; }
.faq-banner :focus-visible { outline-color: #E3C76A; }
.services-enhanced .faq-fallback { display: none; }
.service-dialog[data-active-service="client-faqs"] { color-scheme: dark; --ink: #F5F6F8; --body-text: #D0D6DF; --muted: #B9C2CF; --accent: #E3C76A; --surface: #23272E; --line: #FFFFFF26; width: min(860px, calc(100% - 32px)); }
.service-dialog[data-active-service="client-faqs"] :focus-visible { outline-color: #E3C76A; }
.service-dialog .answers { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.service-dialog .answer { padding: 20px 0; border-top: 1px solid var(--line); }
.service-dialog .answer dt { font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.service-dialog .answer dd { font-size: .9rem; margin: 0; line-height: 1.65; }
/* The fictional HQ workspace remains uncropped and can be opened at full size. */
.hq-demo { margin: 24px 0; }
.hq-demo__image-link { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F6F7F9; }
.hq-demo img { display: block; width: 100%; height: auto; }
.hq-demo figcaption { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
@media (max-width: 1100px) and (min-width: 761px) {
  .service-node { width: 220px; }
  .service-centre { width: 180px; height: 180px; }
  .service-centre strong { font-size: 1.35rem; }
}
@media (max-width: 760px) {
  .service-map { height: auto; }
  .service-node { width: 100%; min-height: 120px; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
  .service-centre { width: 188px; height: 188px; }
  .service-centre::before { width: calc((100vw - 2 * var(--gutter) - 188px) / 2 - 10px); }
  .service-node::after { content: '↓'; position: absolute; top: calc(100% - 2px); left: -30px; color: var(--accent); }
  .node-support::after { content: '↺'; }
  .flywheel-caption { margin-top: 0; }
  .faq-banner__inner { flex-wrap: wrap; gap: 16px; }
  .faq-button { padding: 10px 18px; }
  .service-dialog .answers { grid-template-columns: 1fr; }
  .nav-links .problem-cta { max-width: 100%; }
}
.problem-cta { --ib-ink: #0F1218; --ib-white: #FFFFFF; --ib-glow: transparent; border: 1px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; justify-content: center; }
.nav-links .problem-cta:hover { background: #0F121808; color: var(--ink); }
@media (max-width: 1200px) { .nav-links .problem-cta { max-width: none; } }
/* FAQ rows keep the original question-and-answer reading order. */
.service-dialog .answers { display: block; }
.service-dialog .answer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px; }
.service-dialog .answer dt { margin: 0; }
@media (max-width: 760px) { .service-dialog .answer { grid-template-columns: 1fr; gap: 10px; } }

/* Owner review: calm invitation states and balanced, readable button labels. */
.page-home .problem-cta { align-items: center; font-family: var(--font-stack); line-height: 1.45; letter-spacing: .01em; padding: 14px 24px; }
.problem-cta__label { display: block; text-wrap: balance; text-align: center; }
.nav-links .problem-cta { font-size: .8rem; line-height: 1.45; padding: 11px 20px; max-width: 244px; }
.method-action .problem-cta { max-width: 420px; font-size: .95rem; }
@media (max-width: 1200px) { .nav-links .problem-cta { max-width: none; } }
/* Restore the supplied HQ watermark under Tom's explicit presentation direction. */
.service-dialog[data-active-service="octo-hq"] .dialog-content::before {
  --hq-watermark-size: clamp(360px, 70vw, 600px);
  content: ''; position: absolute; inset: calc(-1 * var(--dialog-padding)); z-index: -1; pointer-events: none;
  background-image: url('./assets/octo-hq-agent-watermark.png');
  background-repeat: no-repeat;
  background-size: var(--hq-watermark-size) var(--hq-watermark-size);
  background-position: left calc(var(--hq-watermark-size) / -20) top calc(var(--hq-watermark-size) / -20);
  clip-path: inset(0); opacity: .14;
}
/* Anchor commercial scope to the services as a centred closing note. */
.service-scope { margin: 32px auto 0; padding-top: 22px; border-top: 1px solid var(--line-soft); max-width: 820px; }
.service-scope .tier-note { margin: 0 auto; max-width: 78ch; text-align: center; font-size: .82rem; line-height: 1.8; }
.service-scope strong { font-weight: 500; color: var(--ink-soft); }
/* Both profiles share a single disclosure control, below their LinkedIn links. */
.team-backgrounds-action { display: flex; justify-content: center; margin-top: 32px; }
.team-backgrounds-toggle { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 24px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; line-height: 1.5; text-align: center; }
.team-backgrounds-toggle:hover { background: #0F121805; border-color: var(--gold); }
.team-backgrounds-toggle[hidden], .team-backgrounds[hidden] { display: none; }
.team-backgrounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); padding-top: 32px; }
.team-enhanced .team-bio { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.team-enhanced .team-bio > summary { display: none; }
.team-backgrounds .bio-content h3 { font-size: 1.5rem; margin-bottom: 18px; }
.team-backgrounds .bio-content p { font-size: .98rem; }
@media (max-width: 860px) { .team-backgrounds { grid-template-columns: 1fr; } }

/* General Updates is an email-only audience, independent of Brief intake. */
.general-updates { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 36px; border-bottom: 1px solid var(--line); text-align: left; }
.general-updates h2 { font-size: 1.5rem; margin: 0 0 10px; }
.general-updates p { max-width: 52ch; }
.general-updates__form > label { display: block; margin-bottom: 8px; font-weight: 600; }
.general-updates__controls { display: flex; gap: 10px; }
.general-updates__controls input { min-width: 0; width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 12px; font: inherit; }
.general-updates__controls button { flex: 0 0 auto; width: auto; min-width: 0; padding-inline: 20px; }
.general-updates__consent, .general-updates details, #generalUpdatesStatus { font-size: .85rem; line-height: 1.55; }
.general-updates__resubscribe { display: flex; align-items: flex-start; gap: 8px; padding-top: 10px; }
.general-updates__resubscribe input { margin-top: 4px; }
.general-updates summary { cursor: pointer; }
.general-updates input:focus-visible, .general-updates summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) { .general-updates { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 360px) { .general-updates__controls { flex-direction: column; } }

.general-updates--contact { display: block; max-width: 600px; padding-block: 20px; border: 0; margin-inline: 0; }
.general-updates--contact .general-updates__form { text-align: left; }

/* Reverse the process invitation on the charcoal surface. */
#method { --ink-soft: #D0D6DF; }
#method .problem-cta { --ib-blue: #82B8FF; --ib-purple: #C7ACFF; --ib-ink: #F5F6F8; --ib-white: #23272E; color: #F5F6F8; background: transparent; border: 1px solid #D0D6DF; }
