/* SmartBuzz AI — shared styles. Built on the Consulta template's section components:
   split-label rows, airy hero, hairline grids, numbered blocks with INCLUDES,
   case-study panels, dark left-ruled principles, dark footer.
   Geist throughout, sharp 0-radius, monochrome with one green status accent. */
:root {
  --ink: #0A0A0A; --bg: #FFFFFF; --surface: #F2F2F2;
  --muted: #737373; --line: #E4E4E4;
  --accent: #0047FF; --accent-ink: #FFFFFF; --on-ink: #FFFFFF;
  color-scheme: light;
}
/* White-first: the page stays light regardless of the visitor's OS theme
   (so white is always the focus, like the template). Dark is opt-in only,
   via the Switch theme toggle below. */
:root[data-theme="dark"] {
  --ink: #FAFAFA; --bg: #0A0A0A; --surface: #161616;
  --muted: #8A8A8A; --line: #262626;
  --accent: #4A75FF; --accent-ink: #06122E; --on-ink: #0A0A0A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* accessibility: skip link + visible keyboard focus */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; font-size: 13px; font-weight: 500; transition: top .18s ease; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: none; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5; letter-spacing: -0.01em;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 560px) { .wrap { padding-inline: 20px; } }

/* recurring split-label row */
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.splitlabel { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* display type */
.display { font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; text-wrap: balance; margin: 0; }
.d-hero { font-size: clamp(40px, 8vw, 84px); letter-spacing: -0.045em; }
.d-sec  { font-size: clamp(30px, 5.2vw, 58px); }

/* nav */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.logo .sq { width: 9px; height: 9px; background: var(--accent); flex: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; padding: 11px 18px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); opacity: 1; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-inner { padding: 14px 20px; } }

/* hero */
.hero { padding-top: clamp(40px, 9vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(130% 110% at 70% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(130% 110% at 70% 30%, #000 30%, transparent 85%); }
.hero > .splitlabel, .hero > .d-hero, .hero > .hero-lower { position: relative; z-index: 1; }
.hero .d-hero { margin-top: clamp(80px, 16vw, 180px); max-width: 16ch; }
.hero.compact .d-hero { margin-top: clamp(40px, 8vw, 88px); }
.hero-lower { margin-top: clamp(64px, 12vw, 130px); border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.hero.compact .hero-lower { margin-top: clamp(40px, 8vw, 72px); }
.hero-lower .body { font-size: clamp(15px, 2vw, 18px); color: var(--muted); max-width: 54ch; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin-top: 22px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 640px) { .hero-lower { grid-template-columns: 1fr; gap: 14px; } }

/* section + stat grid */
.section { padding-block: clamp(48px, 8vw, 90px); }
.stripe-top { border-top: 1px solid var(--line); padding-top: 18px; }
.statgrid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.statcell { padding: 32px 26px; border-right: 1px solid var(--line); }
.statcell:last-child { border-right: none; }
.statcell .fig { font-size: clamp(38px, 6vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.statcell p { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.stat-src { font-size: 12px; color: var(--muted); margin-top: 16px; }
@media (max-width: 680px) { .statgrid { grid-template-columns: 1fr; } .statcell { border-right: none; border-bottom: 1px solid var(--line); } .statcell:last-child { border-bottom: none; } }

/* section intro */
.sec-intro-block { margin-top: 30px; margin-bottom: 8px; }
.sec-intro-block .d-sec { margin-top: 16px; max-width: 18ch; }
.sec-intro-block .body { font-size: 16px; color: var(--muted); max-width: 54ch; margin: 24px 0 0; }

/* numbered service / list blocks */
.svc-list { margin-top: 48px; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.svc-main { min-width: 0; }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.svc-num { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.svc-arrow { font-size: 18px; color: var(--accent); transition: transform .2s ease; }
.svc:hover .svc-arrow, .role:hover .svc-arrow { transform: translate(4px, -4px); }
.svc h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 500; letter-spacing: -0.025em; margin: 0 0 14px; }
.svc .plain { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.svc p.body { font-size: 15px; color: var(--muted); margin: 0; max-width: 46ch; }
.svc-includes .label { display: block; margin-bottom: 16px; }
.svc-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-includes li { font-size: 15px; font-weight: 500; }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; } }

/* role case-study panels */
.roles { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.role { display: flex; flex-direction: column; }
.role-panel { background: var(--surface); border: 1px solid var(--line); padding: 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.role-name { margin-top: auto; }
.role-name h3 { font-size: clamp(26px, 4vw, 36px); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.role-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }
.role-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 18px; }
.role-foot .kind { font-size: 13px; font-weight: 500; }
.role-desc { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.role.wide { grid-column: 1 / -1; }
.role.wide .role-panel { min-height: 0; flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.role.wide .role-name { margin-top: 0; }
@media (max-width: 680px) { .roles { grid-template-columns: 1fr; } }

/* subtle grain on the dark sections */
.approach, footer.foot { position: relative; overflow: hidden; }
.approach::before, footer.foot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px; opacity: 0.13; mix-blend-mode: screen;
}
.approach-inner, .foot-inner { position: relative; z-index: 1; }

/* dark approach section (principles) */
.approach { background: var(--ink); color: var(--on-ink); margin-top: clamp(40px, 7vw, 80px); }
.approach-inner { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 10vw, 110px) 32px; }
.approach .splitlabel .label { color: color-mix(in srgb, var(--on-ink) 55%, transparent); }
.approach .d-sec { color: var(--on-ink); margin-top: 20px; max-width: 16ch; }
.approach .lead { font-size: 16px; color: color-mix(in srgb, var(--on-ink) 65%, transparent); max-width: 56ch; margin: 24px 0 0; }
.principles { margin-top: 56px; }
.principle { border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); padding: 30px 0 30px 28px; border-left: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); }
.principle:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); }
.principle h4 { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; color: var(--on-ink); }
.principle p { font-size: 15px; color: color-mix(in srgb, var(--on-ink) 62%, transparent); margin: 0; max-width: 60ch; }
@media (max-width: 560px) { .approach-inner { padding-inline: 20px; } .principle { padding-left: 18px; } }

/* talent pool rows */
.pool { margin-top: 36px; display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.pool-rows { border-top: 1px solid var(--line); }
.pool-row { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: baseline; }
.pool-row .job { font-size: 15px; font-weight: 500; }
.pool-row .use { font-size: 14px; color: var(--muted); }
.pool-row .use b { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .pool { grid-template-columns: 1fr; gap: 14px; } .pool-row { grid-template-columns: 1fr; gap: 4px; } }

/* team grid */
.team { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member { border: 1px solid var(--line); display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.member-photo span { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.member-body { padding: 22px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.member-body h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.member-body .role-title { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 680px) { .team { grid-template-columns: 1fr; } }

/* faq list */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 34px 0; display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.faq-item .q-num { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.faq-item h3 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 14px; }
.faq-item p { font-size: 15px; color: var(--muted); margin: 0; max-width: 62ch; }
@media (max-width: 560px) { .faq-item { grid-template-columns: 1fr; gap: 10px; } }

/* contact */
.contact { padding-block: clamp(56px, 9vw, 100px); }
.contact .d-sec { margin-top: 20px; max-width: 14ch; }
.contact .lead { font-size: 16px; color: var(--muted); max-width: 46ch; margin: 22px 0 0; }
.contact-details { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-item { border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; }
.contact-item .big { font-size: clamp(20px, 3vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.contact-item .big.sel { -webkit-user-select: all; user-select: all; }
.contact-item .med { font-size: 16px; color: var(--muted); }
.contact-cta { margin-top: 32px; }
.contact-cta a { display: flex; justify-content: center; align-items: center; width: 100%; padding: 20px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; transition: opacity .15s; }
.contact-cta a:hover { opacity: .85; }
@media (max-width: 560px) { .contact-item { grid-template-columns: 1fr; gap: 6px; } }

/* footer */
footer.foot { background: var(--ink); color: var(--on-ink); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 32px 40px; }
.foot-top { padding-bottom: 48px; }
.foot-wordmark { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-loc { font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--on-ink) 55%, transparent); margin-top: 8px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); padding-top: 40px; }
.foot-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--on-ink) 50%, transparent); margin: 0 0 16px; }
.foot-col a, .foot-col span.item { display: block; font-size: 14px; color: color-mix(in srgb, var(--on-ink) 82%, transparent); margin-bottom: 10px; }
.foot-col a { width: fit-content; position: relative; }
.foot-col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.foot-col a:hover::after { transform: scaleX(1); }
.foot-col a:hover { color: var(--accent); }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: color-mix(in srgb, var(--on-ink) 50%, transparent); }
.toggle { background: transparent; border: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); color: color-mix(in srgb, var(--on-ink) 70%, transparent); font-family: inherit; font-size: 12px; font-weight: 500; padding: 8px 12px; cursor: pointer; }
.toggle:hover { color: var(--on-ink); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .foot-inner { padding-inline: 20px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
