/* NorthView Growth Ads — design system "Corporate black"
   Black canvas, white type, one violet accent, sharp corners, oversized uppercase headlines,
   pale-grey content cards with small uppercase labels. Inter Tight for display, Inter for text. */

:root {
  --black: #000;
  --ink: #0b0b0d;
  --white: #fff;
  --grey-1: #f1f1f2;
  --grey-2: #e2e2e5;
  --grey-3: #c9c9ce;
  --text: #17171a;
  --muted: #5d5d66;
  --dark-1: #0e0e10;
  --dark-2: #19191d;
  --dark-3: #2a2a30;
  --muted-d: rgba(255, 255, 255, .68);

  --purple: #8b22f5;
  --purple-d: #6b11cf;
  --purple-l: #c58cff;
  --purple-bg: rgba(139, 34, 245, .1);

  --danger: #c0392b;
  --danger-bg: #fdecea;
  --ok: #107a5b;
  --ok-bg: #e4f7f0;
  --info-bg: #f1e8fd;

  --wrap: 1240px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 34px -18px rgba(0, 0, 0, .35);
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--black);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: .98; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
h1 em, h2 em { font-style: normal; color: var(--purple-d); }
.dark h1 em, .dark h2 em, .hero h1 em, .page-hero h1 em, .signin h1 em, .cta-band h2 em { color: var(--purple-l); }

p { margin: 0 0 16px; }
a { color: inherit; }
img, svg { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--grey-1); color: var(--purple-d); padding: .12em .4em; border-radius: 3px; word-break: break-word; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 600px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--purple-l); outline-offset: 3px; }

/* Small uppercase label with the violet bar (used above headings and on cards) */
.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-d); margin-bottom: 20px; }
.eyebrow::before { content: ""; display: block; width: 44px; height: 3px; background: var(--purple); margin-bottom: 16px; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .signin .eyebrow { color: #fff; }

/* ----------Buttons ----------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1 var(--font-body);
  padding: 17px 28px; border: 2px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-sm { padding: 12px 20px; font-size: .9rem; }
.btn-primary, .btn-aurora { background: var(--purple); color: #fff; }
.btn-primary:hover, .btn-aurora:hover { background: var(--purple-d); }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: var(--purple); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: #fff; color: #000; border-color: #fff; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: 12px; font-family: "Roboto", var(--font-body); font-weight: 500; font-size: 1rem; margin-top: 22px; padding: 15px 20px; }
.btn-google:hover { background: #f8f8f8; border-color: #000; }
.inline-form { display: inline; margin: 0; }

/* "Explore >" link: text plus a small violet square with an arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: gap .18s ease; }
.link-arrow svg { flex: none; box-sizing: content-box; padding: 4px; width: 16px; height: 16px; background: var(--purple); color: #fff; }
.link-arrow:hover { gap: 14px; }
.link-plain { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ----------Header ----------*/
header.site { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid rgba(255, 255, 255, .12); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { font-family: var(--font-body); font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 5px; color: var(--purple-l); }
nav.main { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: space-between; margin-left: 48px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 2px; }
.nav-actions { gap: 14px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 500; font-size: .95rem; padding: 10px 16px; }
.nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-login { border: 1px solid rgba(255, 255, 255, .3); }
.nav-login::after { display: none; }
.nav-login:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .3); width: 46px; height: 46px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* ----------Dark surfaces ----------*/
.dark, .hero, .page-hero, .signin, footer.site { background: #000; color: #fff; position: relative; }
.hero h1, .page-hero h1, .signin h1, .dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .muted { color: var(--muted-d); }

/* ----------Hero (photo replaces the video) ----------*/
.hero { isolation: isolate; overflow: hidden; padding: 112px 0 88px; min-height: 640px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #000 url("/assets/img/hero-night.jpg") center 35% / cover no-repeat; filter: saturate(.8); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 55%, rgba(0, 0, 0, .35) 100%), linear-gradient(180deg, rgba(0, 0, 0, .1) 60%, #000 100%), radial-gradient(60% 80% at 85% 20%, rgba(139, 34, 245, .35), transparent 70%); }
.hero .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); margin-bottom: 0; }
.hero-aside { border-top: 4px solid var(--purple); padding-top: 22px; }
.hero-aside h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; color: #fff; }
.hero-aside p { color: var(--muted-d); font-size: .98rem; }
.hero-aside .link-arrow { color: #fff; margin-top: 6px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .6); font-size: .9rem; margin: 26px 0 0; max-width: 520px; }
.hero-note svg { flex: none; color: var(--purple-l); margin-top: 3px; }

/* ----------Trust strip ----------*/
.trust { background: #000; color: #fff; border-top: 1px solid rgba(255, 255, 255, .14); }
.trust .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust .item { display: flex; gap: 16px; align-items: flex-start; padding: 32px 28px 32px 0; }
.trust .item + .item { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust .item svg { flex: none; color: var(--purple-l); }
.trust .item b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.trust .item span { display: block; font-size: .86rem; color: var(--muted-d); line-height: 1.45; margin-top: 3px; }

/* ----------Sections ----------*/
section { padding: 112px 0; background: #fff; }
section.dark { background: #000; }
section.tight { padding: 72px 0 104px; }
section.alt { background: var(--grey-1); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.dark .section-head p { color: var(--muted-d); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { margin-left: auto; margin-right: auto; }

/* Content tiles: pale-grey cards, small uppercase label, title, image at the bottom */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tiles + .tiles { margin-top: 24px; }
.tile { display: flex; flex-direction: column; min-width: 0; background: var(--grey-1); color: var(--black); text-decoration: none; min-height: 470px; transition: transform .22s ease, box-shadow .22s ease; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(139, 34, 245, .7); }
.tile-body { padding: 24px 24px 22px; }
.tile-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.tile h3 { font-size: 1.35rem; line-height: 1.2; margin: 0; letter-spacing: -.015em; font-weight: 600; }
.tile p { font-size: .94rem; color: var(--muted); margin: 12px 0 0; }
.tile:has(.tile-icon) { min-height: 340px; }
.tile-img { margin-top: auto; aspect-ratio: 4 / 3; background-size: cover; background-position: center; filter: grayscale(.15); }
.tile-icon { margin-top: auto; padding: 0 24px 30px; color: var(--purple); }
.tile-icon svg { width: 96px; height: 96px; stroke-width: 1.2; }
.dark .tile h3 { color: var(--black); }
.dark .tile p { color: var(--muted); }
.tile-cta { background: var(--purple); color: #fff; }
.dark .tile-cta h3 { color: #fff; }
.dark .tile-cta p { color: rgba(255, 255, 255, .85); }
.tile-cta .tile-body p { color: rgba(255, 255, 255, .85); }
.tile-cta .tile-label { color: #fff; }
.tile-cta .tile-icon { color: #fff; }
.tile-cta:hover { box-shadow: 0 24px 40px -24px rgba(139, 34, 245, .9); }

/* Statement with a photo (portrait slot of the reference) */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.statement-img { aspect-ratio: 3 / 2; background: #111 url("/assets/img/hands-meeting.jpg") center / cover; }
.statement blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.22; letter-spacing: -.02em; color: #fff; }
.statement blockquote::before { content: ""; display: block; width: 56px; height: 4px; background: var(--purple); margin-bottom: 28px; }
.statement cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .86rem; color: var(--muted-d); margin-top: 28px; letter-spacing: .02em; }

/* How we work: large photo on the left (replaces the video), steps list on the right */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.spot-media { position: relative; aspect-ratio: 4 / 3; background: #111 url("/assets/img/team-whiteboard.jpg") center / cover; }
.spot-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); }
.spot-caption { position: absolute; z-index: 1; left: 28px; bottom: 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.spot-caption::before { content: ""; display: block; width: 56px; height: 3px; background: var(--purple); margin-bottom: 12px; }
.spot-text h3 { margin: 28px 0 10px; font-size: 1.25rem; color: #fff; }
.spot-text p { color: var(--muted-d); max-width: 700px; }
.spot-list { display: grid; gap: 0; }
.spot-list .row { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.spot-list .row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.spot-list .n { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .1em; color: var(--purple-l); margin-bottom: 8px; }
.spot-list h3 { margin: 0 0 6px; font-size: 1.2rem; color: #fff; }
.spot-list p { margin: 0; color: var(--muted-d); font-size: .95rem; }

/* Client dashboard block */
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; background: var(--purple); }
.dark .checklist li, .signin .checklist li { color: var(--muted-d); }
.checklist a, .form-note a, .signin-card a, .legal a, .ideal a { text-decoration: underline; text-underline-offset: 3px; }
.signin .checklist a, .dark .checklist a { color: #fff; }

.scope-list { display: grid; gap: 14px; }
.scope { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; background: var(--grey-1); color: var(--black); padding: 24px; }
.scope .icon-chip { margin: 0; }
.scope b { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.scope p { margin: 0 0 8px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.scope p:last-child { margin-bottom: 0; }
.dark .scope { background: var(--dark-2); color: #fff; }
.dark .scope p { color: var(--muted-d); }
.dark .scope code { background: rgba(255, 255, 255, .1); color: var(--purple-l); }
.scope-list.is-compact { gap: 0; margin-top: 6px; }
.scope-list.is-compact .scope { grid-template-columns: minmax(0, 1fr) auto; background: transparent; border-bottom: 1px solid var(--grey-2); padding: 16px 0; }
.scope-list.is-compact .scope:last-child { border-bottom: 0; }
.scope-list.is-compact .scope p { font-size: .88rem; margin: 0; }
.icon-chip { flex: none; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; color: var(--purple); background: var(--purple-bg); }
.tag { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; white-space: nowrap; }
.tag-id { background: var(--grey-2); color: var(--muted); }
.tag-read { background: var(--purple); color: #fff; }
.tag-write { background: #000; color: #fff; }
.dark .tag-id { background: var(--dark-3); color: var(--muted-d); }
.dark .tag-write { background: #fff; color: #000; }

/* CTA band */
.cta-band { background: var(--purple); color: #fff; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 760px; }
.cta-band p { margin: 0; font-size: 1.1rem; opacity: .88; }
.cta-band .btn-primary { background: #000; flex: none; }
.cta-band .btn-primary:hover { background: #fff; color: #000; }

/* ----------Page hero ----------*/
.page-hero { padding: 96px 0 88px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, rgba(139, 34, 245, .45), transparent 70%); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 1000px; }
.page-hero p { color: var(--muted-d); font-size: 1.18rem; max-width: 640px; margin: 28px 0 0; }

/* Services detail */
.service-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; padding: 56px 0; border-top: 1px solid var(--grey-2); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail > div:first-child { position: sticky; top: 110px; align-self: start; }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; color: #fff; background: #000; margin-bottom: 20px; }
.service-detail ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; }
.service-detail li { position: relative; padding: 18px 20px 18px 50px; background: var(--grey-1); }
.service-detail li::before { content: ""; position: absolute; left: 22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--purple); }
.ideal { padding: 20px 22px; background: #000; color: #fff; font-size: .96rem; border-left: 4px solid var(--purple); }

/* Cases */
.notice { background: var(--info-bg); border-left: 4px solid var(--purple); color: #3b1a6b; padding: 16px 20px; margin-bottom: 40px; font-size: .96rem; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { display: flex; flex-direction: column; background: var(--grey-1); padding: 36px; min-width: 0; }
.case h3 { font-size: 1.35rem; }
.metric { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 5.4vw, 4.4rem); letter-spacing: -.05em; line-height: 1; color: var(--purple-d); }
.metric-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 18px; }
.case dl { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--grey-3); display: grid; gap: 8px; }
.case dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: .92rem; }
.case dt { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.case dd { margin: 0; font-weight: 600; }

/* About */
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; padding: 32px; min-width: 0; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); flex: 1; margin: 0; }
section.alt .card { background: #fff; }
.timeline { display: grid; gap: 0; }
.timeline .row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 0 0 34px; position: relative; }
.timeline .row:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 58px; bottom: 4px; width: 2px; background: var(--grey-2); }
.timeline .n { width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; background: var(--purple); }
.timeline h3 { margin: 6px 0 6px; font-size: 1.2rem; }
.timeline p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: start; }
.contact-form { background: var(--grey-1); padding: 40px; }
.field { margin-bottom: 22px; min-width: 0; }
.field label, .selector label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--black); }
input[type=text], input[type=email], select, textarea, input[type=file] { width: 100%; font: 500 1rem var(--font-body); color: var(--black); background: #fff; border: 1px solid var(--grey-3); border-bottom: 2px solid #000; border-radius: 0; padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease; }
input[type=file] { padding: 12px; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 .88rem var(--font-body); background: #000; color: #fff; border: 0; padding: 9px 16px; margin-right: 14px; cursor: pointer; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); border-bottom-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 34, 245, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.contact-info { display: grid; gap: 2px; }
.contact-info .row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--grey-1); padding: 22px; }
.contact-info .icon { width: 48px; height: 48px; padding: 12px; stroke: var(--purple); background: var(--purple-bg); }
.contact-info a { word-break: break-word; }

/* Alerts */
.alert { padding: 16px 20px; margin: 0 0 22px; border-left: 4px solid; font-size: .96rem; }
.alert strong { display: block; }
.alert p { margin: 6px 0 0; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: #0b5a43; }
.alert-err { background: var(--danger-bg); border-color: var(--danger); color: #8e2a1f; }
.alert-info { background: var(--info-bg); border-color: var(--purple); color: #3b1a6b; }
.alert code { background: rgba(255, 255, 255, .7); }

/* Legal */
.legal { max-width: 840px; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.55rem; margin: 46px 0 14px; font-weight: 600; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal .meta { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.legal p, .legal li { color: #2c2c33; }
.legal ul { padding-left: 22px; display: grid; gap: 10px; }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; }
.legal th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: #000; color: #fff; padding: 13px 16px; font-weight: 600; }
.legal td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--grey-2); }
.legal td:first-child { width: 28%; }
.callout { background: var(--grey-1); border-left: 4px solid var(--purple); padding: 22px 26px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ----------Sign in ----------*/
.signin { padding: 88px 0 104px; min-height: calc(100vh -78px); overflow: hidden; isolation: isolate; }
.signin::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #000 url("/assets/img/hero-night.jpg") center / cover; filter: saturate(.7); }
.signin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .7)), radial-gradient(50% 80% at 90% 10%, rgba(139, 34, 245, .35), transparent 70%); }
.signin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 80px; align-items: center; }
.signin-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.signin-copy .lede { color: var(--muted-d); margin-top: 28px; }
.signin-card { background: #fff; color: var(--text); padding: 40px; min-width: 0; border-top: 4px solid var(--purple); }
.signin-card h2 { font-size: 1.7rem; margin-bottom: 18px; color: #000; font-weight: 600; }
.card-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }

/* ----------Client app (light) ----------*/
body.is-app { background: var(--grey-1); }
.app { padding: 56px 0 104px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.app-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.app-head h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-bottom: 14px; overflow-wrap: anywhere; }
.app-head p { color: var(--muted); margin: 0; max-width: 660px; }
.chip-user { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; background: #fff; border: 1px solid var(--grey-3); padding: 6px 12px; word-break: break-all; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--grey-3); margin-bottom: 32px; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 14px 22px; color: var(--muted); white-space: nowrap; border-bottom: 4px solid transparent; margin-bottom: -2px; transition: color .15s ease; }
.tabs a:hover { color: #000; }
.tabs a.active { color: #000; border-bottom-color: var(--purple); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { background: #fff; border-top: 4px solid #000; padding: 22px 22px 20px; min-width: 0; }
.kpi span { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.03em; color: #000; margin: 12px 0 6px; overflow-wrap: anywhere; line-height: 1.05; }
.kpi i { font-style: normal; font-size: .8rem; color: var(--muted); }
.kpi-lead { background: #000; border-top-color: var(--purple); }
.kpi-lead span, .kpi-lead i { color: rgba(255, 255, 255, .65); }
.kpi-lead b { color: #fff; }
.panel { background: #fff; }
.panel-pad { padding: 36px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--grey-2); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.3rem; margin: 0; font-weight: 600; }
.panel-head .muted { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 780px; }
table.data th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 14px 28px; background: var(--grey-1); white-space: nowrap; }
table.data td { padding: 20px 28px; border-top: 1px solid var(--grey-2); vertical-align: middle; }
table.data tbody tr:hover { background: #faf7fe; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
td.name { font-weight: 600; color: #000; }
td.name .sub { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.share-col { width: 190px; }
.share { display: inline-block; vertical-align: middle; width: 110px; height: 6px; background: var(--grey-2); margin-right: 10px; }
.share span { display: block; height: 100%; background: var(--purple); }
td.share-col em { font-style: normal; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
table.data .link-arrow { white-space: nowrap; color: #000; }
.row-error { color: var(--danger); font-size: .88rem; }
.empty { text-align: center; padding: 64px 32px; }
.empty-ico { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--purple); background: var(--purple-bg); }
.selector { display: grid; gap: 6px; }
.flow { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.flow li { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); padding: 7px 14px 7px 7px; background: var(--grey-1); }
.flow b { display: grid; place-items: center; width: 24px; height: 24px; background: var(--purple); color: #fff; font-size: .76rem; }
.code { font-family: var(--font-mono); font-size: .84rem; background: #000; color: var(--purple-l); padding: 16px 18px; overflow-x: auto; white-space: nowrap; }
.panel h3 { margin-bottom: 8px; }

/* ----------Footer ----------*/
footer.site { padding: 80px 0 40px; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .12); }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 56px; }
footer.site .cols > div { min-width: 0; }
footer.site .blurb { margin: 20px 0 0; max-width: 340px; font-size: .96rem; color: var(--muted-d); }
footer.site h4 { color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
footer.site a { text-decoration: none; color: rgba(255, 255, 255, .7); transition: color .15s ease; word-break: break-word; }
footer.site a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
footer.site .bottom { display: flex; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: rgba(255, 255, 255, .55); }
footer.site .gdisclosure { max-width: 640px; text-align: right; line-height: 1.55; }
footer.site .gdisclosure a { text-decoration: underline; text-underline-offset: 3px; }

/* ----------Reveal on scroll (only when JS is on) ----------*/
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ----------Responsive ----------*/
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 420px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-aside { max-width: 520px; }
}
@media (max-width: 1020px) {
  .access-grid, .signin-grid, .two-col, .contact-grid, .service-detail, .statement, .spotlight { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .service-detail > div:first-child { position: static; }
  .trust .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust .item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust .item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  nav.main { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 40px 28px; margin: 0; background: #000; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  nav.main.open { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-actions { gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .nav-link { padding: 14px 4px; }
  .nav-link::after { left: 4px; right: auto; width: 40px; }
  .nav-login { padding: 14px; }
  .nav-actions .btn { width: 100%; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .values, .cases { grid-template-columns: minmax(0, 1fr); }
  footer.site .bottom { flex-direction: column; }
  footer.site .gdisclosure { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  nav.main { padding: 18px 20px 28px; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; min-height: 0; }
  .page-hero { padding: 64px 0 60px; }
  .signin { padding: 48px 0 72px; }
  .signin-card, .contact-form, .panel-pad, .case { padding: 24px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .trust .grid { grid-template-columns: minmax(0, 1fr); }
  .trust .item, .trust .item:nth-child(n) { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .trust .item:first-child { border-top: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi-lead, .kpi:last-child { grid-column: span 2; }
  .kpi { padding: 18px; }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .scope .tag { justify-self: start; order: -1; }
  .scope-list.is-compact .scope { grid-template-columns: minmax(0, 1fr); }
  footer.site .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .case dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal td:first-child { width: auto; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-bottom: 0; padding: 6px 16px; }
  .legal tr { border-bottom: 1px solid var(--grey-3); padding: 10px 0; }
  .app { padding: 36px 0 72px; }
  .spot-caption { left: 18px; bottom: 16px; }
}
