/* Consulting. White, ink, one cobalt accent. Big type, real photos, a little motion. */
body.consulting {
  --white: #ffffff; --ink: #0e0e10; --muted: #5f6068; --line: #e6e6ea; --soft: #f3f4fb;
  --cobalt: #2b3cff; --cobalt-deep: #1b27c4; --cobalt-soft: #e9ebff; --night: #0d0e16;
  --focus: #2b3cff; --on-focus: #fff;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem;
}
.consulting h1, .consulting h2, .consulting h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
.consulting a { color: var(--cobalt-deep); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: calc(70ch + 3rem); }
.section { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.consulting h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; margin-bottom: 2rem; max-width: 20ch; }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.kicker::before, .eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cobalt); }
.eyebrow a { color: var(--muted); display: inline-block; padding: .6rem 0; margin: -.6rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.mark { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.mark a { color: var(--ink); text-decoration: none; }
.mark .mark-sub { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); margin-left: .4rem; vertical-align: middle; }
.header-inner { row-gap: .25rem; padding-top: .5rem; padding-bottom: .5rem; }
.site-header nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header ul { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 1.25rem; margin: 0; padding: 0; font-size: .95rem; white-space: nowrap; }
.mark a { display: inline-block; padding: .4rem 0; }
@media (min-width: 900px) {
  .header-inner { padding-top: .9rem; padding-bottom: .9rem; }
  .site-header nav { width: auto; overflow: visible; }
  .site-header ul { flex-wrap: wrap; gap: .25rem 1.4rem; }
}
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--cobalt); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; right: -18vw; top: -22vw; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, var(--cobalt-soft) 0%, rgba(233,235,255,0) 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(4.2rem, 12vw, 9.5rem); line-height: .88; letter-spacing: -.055em; margin: 0 0 1.25rem; }
.lede { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 1.5rem; }
.hero-text p:not(.lede):not(.kicker):not(.hero-cta) { max-width: 54ch; color: #33343b; }
.hero-cta { margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: .6rem; background: var(--cobalt); color: #fff !important; text-decoration: none; padding: 1em 1.5em; border-radius: 999px; font-weight: 700; transition: background .2s, transform .2s; }
.button::after { content: "\2192"; transition: transform .2s; }
.button:hover { background: var(--cobalt-deep); }
.button:hover::after { transform: translateX(4px); }

/* Lifecycle loop. Stage buttons sit over the SVG nodes. */
.loop { margin: 0; }
.loop-dial { position: relative; width: 100%; max-width: min(340px, 100%); margin: 0 auto; }
.loop svg { width: 100%; display: block; overflow: visible; }
.loop .ring { fill: none; stroke: var(--line); stroke-width: 2; }
.loop .mine { fill: none; stroke: var(--cobalt); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 943; stroke-dashoffset: 943; animation: draw 1.8s .3s ease-out forwards; }
.loop .orbit { transform-origin: 210px 210px; animation: spin 9s linear infinite; }
.loop .orbit circle { fill: var(--cobalt); }
.loop .node { fill: #fff; stroke: var(--cobalt); stroke-width: 2.5; }
.loop .center { font: 700 20px var(--display); text-anchor: middle; fill: var(--ink); letter-spacing: -.02em; }
.stage-btn { position: absolute; transform: translate(-50%, -50%); width: 18.5%; aspect-ratio: 1; min-width: 48px; min-height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font: 700 clamp(.66rem, 2.9vw, .82rem)/1.05 var(--display); letter-spacing: -.01em; padding: .2rem; cursor: pointer; display: grid; place-items: center; text-align: center; transition: background .2s, color .2s, box-shadow .2s; }
.stage-btn:hover { box-shadow: 0 0 0 4px var(--cobalt-soft); }
.stage-btn[aria-expanded="true"] { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 5px var(--cobalt-soft); }
.stage-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.loop figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .75rem; }
.stage-panels { max-width: 440px; margin: 1.25rem auto 0; }
.stage-panel { background: var(--soft); border-left: 4px solid var(--cobalt); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-top: .75rem; }
.stage-panel .stage-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.stage-panel ul { margin: 0; padding-left: 1.1rem; }
.stage-panel li { margin: .35rem 0; color: #33343b; font-size: .98rem; line-height: 1.45; }
.stage-panel li::marker { color: var(--cobalt); }
.js-loop .stage-panel[hidden] { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Proof band */
.proof-band { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.proof-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.proof-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,22,.92) 0%, rgba(13,14,22,.55) 60%, rgba(13,14,22,.75) 100%); }
.proof { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.proof b { display: block; text-wrap: balance; font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 6vw, 2.7rem); letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem; }
.proof span { color: #c9cbe0; font-size: .95rem; }

/* Brand strip */

/* Services */
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.75rem 1.75rem; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: #cfd3ff; box-shadow: 0 18px 40px -18px rgba(43,60,255,.35); }
.card svg { width: 48px; height: 48px; fill: none; stroke: var(--cobalt); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.card p { color: #3a3b42; }
.card .related { font-size: .92rem; margin: 0; }

/* Client highlight */
.work-dark { background: var(--night); color: #fff; padding: clamp(4rem, 9vw, 7rem) 0; }
.work-dark .kicker { color: #a9acc8; }
.work-dark h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.case { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.case-text p { color: #d6d8ea; max-width: 60ch; }
.role { font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--cobalt) !important; }
.work-dark .role { color: #8f9bff !important; }
.agents { margin: 0; background: #151728; border: 1px solid #262a45; border-radius: 18px; padding: 1.75rem; }
.agents-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; }
.agents-grid i { aspect-ratio: 1; border-radius: 4px; animation: pulse 3.9s ease-in-out infinite; animation-delay: calc(var(--i) * .1s); }
.g0 { background: #2b3cff; } .g1 { background: #6f7bff; } .g2 { background: #a7aeff; } .g3 { background: #e4e6ff; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.86); } 45% { opacity: 1; transform: scale(1); } }
.agents-key { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 1.25rem 0 1.25rem; font-size: .85rem; color: #c9cbe0; }
.agents-key .sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.agents-flow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.agents-flow span { background: #23264a; border-radius: 999px; padding: .45em .9em; }
.agents-flow span:last-child { background: var(--cobalt); }
.agents-flow b { flex: 1; min-width: 1.5rem; height: 2px; background: linear-gradient(90deg, #3a3f7a, #8f9bff); position: relative; }
.agents-flow b::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: #8f9bff; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 1fr; gap: 0; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.years { font-family: var(--display); font-weight: 700; color: var(--muted); margin: .35rem 0 0; }
.job h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .25rem; }
.job p:not(.years):not(.role) { max-width: 62ch; color: #33343b; }
.job-feature .big-stat { order: -1; margin-bottom: 1rem; }
.big-stat { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -.06em; line-height: .85; color: var(--cobalt); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.about-grid p { max-width: 54ch; }
.offclock { margin: 0; }
.offclock-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 1rem 0; }
.offclock-strip a { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); transition: transform .3s; }
.offclock-strip a:nth-child(1) { transform: rotate(-4deg) translateY(8px); }
.offclock-strip a:nth-child(2) { transform: rotate(2deg); z-index: 1; }
.offclock-strip a:nth-child(3) { transform: rotate(-1.5deg) translateY(12px); }
.offclock:hover .offclock-strip a { transform: none; }
.offclock-strip img { width: 100%; height: 100%; object-fit: cover; }
.offclock figcaption { color: var(--muted); margin-top: 1rem; }

/* FAQ */
.faq-band { background: var(--soft); padding: clamp(4rem, 9vw, 7rem) 0; }
.faq-item { display: grid; grid-template-columns: 1fr; gap: .5rem 3rem; padding: 1.4rem 0; border-top: 1px solid #dcdeee; }
.faq-item h2, .faq-item h3 { font-size: 1.2rem; margin: 0; letter-spacing: -.01em; }
.faq-item p { margin: 0; color: #33343b; }
.faq-links { margin-top: 2rem; }
.narrow .faq-item { grid-template-columns: 1fr !important; }

/* Contact */
.contact { background: var(--cobalt); color: #fff; padding: clamp(4rem, 10vw, 8rem) 0; }
.contact h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.contact p { color: #dfe2ff; font-size: 1.2rem; margin: 0; }
.contact-email { display: inline-block; margin-top: .5rem; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 5.5rem); letter-spacing: -.045em; color: #fff !important; text-decoration: none; border-bottom: 4px solid rgba(255,255,255,.35); transition: border-color .2s; word-break: break-word; }
.contact-email:hover { border-bottom-color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* Blog and FAQ pages */
.lede-sm { font-size: 1.2rem; color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 2rem 0; }
.post-list li { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.post-list h2 { font-size: 1.6rem; margin-bottom: .4rem; max-width: none; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--cobalt); }
.meta, .byline { font-size: .9rem; color: var(--muted); }
.draft-flag { background: #fff2c2; color: #4a3b06; padding: .15em .5em; border-radius: 4px; }
.planned { margin: 2.5rem 0; }
.planned h2 { font-size: 1.3rem; }
.planned ul { list-style: none; padding: 0; color: var(--muted); }
.planned li { padding: .4rem 0; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--soft); padding: .2em .55em; border-radius: 999px; margin-left: .4rem; }
.post h1, .narrow > h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.post-body { font-size: 1.14rem; line-height: 1.75; margin-top: 2.5rem; color: #23242a; }
.post-body h2 { font-size: 1.7rem; margin: 2.6rem 0 .8rem; max-width: none; }
.post-body h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.post-body blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--cobalt); }
.post-cta { margin-top: 3rem; padding: 1.5rem 1.6rem; background: var(--soft); border-radius: 14px; }
.post-more ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--ink); }

/* Reveal on scroll. js/motion.js hides only what starts below the fold, so nothing is ever stuck invisible. */
.will-reveal { opacity: 0; transform: translateY(28px); }
.will-reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .loop .orbit, .agents-grid i { animation: none; } .loop .mine { stroke-dashoffset: 0; animation: none; } }

/* Tablet and up (base styles above are for phones) */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .proof { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .case { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .job { grid-template-columns: 9.5rem 1fr; gap: 0 2.5rem; padding: 2rem 0; }
  .job-feature { grid-template-columns: 9.5rem 1fr auto; }
  .job-feature .big-stat { order: 0; margin: 0; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .faq-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
}

.loop-dial { max-width: 440px; }
@media (max-width: 899px) { .loop-dial { max-width: 340px; } }
.you-get { font-size: .95rem; color: #24252b !important; background: var(--soft); border-radius: 10px; padding: .8rem 1rem; }
.you-get b { color: var(--cobalt-deep); }
.fit { margin-top: 1.25rem; font-size: .95rem; color: var(--muted) !important; max-width: 52ch; }
.pov { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.portrait { margin: 0 0 1.5rem; width: 9rem; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--cobalt); }
.site-footer a { display: inline-block; padding: .65rem 0; }
.hero-text p.lead-proof { font-weight: 600; color: var(--ink); }

/* Phones: the nav scrolls sideways. Fade the right edge so it reads as scrollable. */
@media (max-width: 899px) {
  .site-header nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .site-header ul { padding-right: 2.5rem; }
}

/* Header layout. Phones: name and Text me on top, nav scrolls underneath. Wide: one row. */
.header-inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark cta" "nav nav"; align-items: center; column-gap: 1rem; row-gap: .25rem; }
.header-inner .mark { grid-area: mark; }
.site-header nav { grid-area: nav; min-width: 0; }
.header-text { grid-area: cta; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.header-text:hover { background: var(--cobalt); }
@media (min-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "mark nav cta"; column-gap: 1.5rem; }
  .site-header nav { justify-self: end; }
}

/* Text and email buttons */
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.button-alt { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.button-alt:hover { background: var(--ink); color: #fff !important; }
.button-light { background: #fff; color: var(--cobalt-deep) !important; }
.button-light:hover { background: var(--cobalt-soft); }
.cta-note { font-size: .95rem; color: var(--muted) !important; margin-top: .75rem; }
.hero-text p.cta-note { color: var(--muted); }
.contact-actions { margin: 1.5rem 0 .5rem !important; }
.contact-phone { margin-top: 1rem !important; }
.contact-phone a { color: #fff; }
