/* Layout: a statement of account. Wide Archivo echoes the letter-spaced wordmark; Martian Mono
   sets every figure and label like a ledger. Dark bands carry the motion, light bands carry reading. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap;
  src: url(/fonts/martian-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #F4F7FA;
  --surface: #FFFFFF;
  --ink: #0B1A26;
  --muted: #4E6374;
  --faint: #B8C6D3;
  --line: #DBE3EC;
  --brand: #1C67A6;
  --logo: #165774;
  --brand-soft: #E3EDF8;
  --btn: #1E6EAD;
  --btn-hover: #185A8F;
  --spot: rgba(30, 110, 173, .07);
  --nav-bg: rgba(255, 255, 255, .9); /* solid enough that nav links keep contrast over the dark headers */
  --nav-line: rgba(11, 26, 38, .09);
  --shadow: rgba(6, 17, 28, .16);
  --ok: #1A7F4B;
  --bad: #B42318;

  /* Dark bands keep one look in both themes */
  --hero: #06111C;
  --hero-2: #0B1C2A;
  --hero-ink: #EEF4F8;
  --hero-muted: #93A9BC;
  --hero-line: rgba(237, 244, 246, .11);
  --cyan: #5FB0F0;
  --brass: #D2AA6B;
  --spot-dark: rgba(95, 176, 240, .09);
  --vz-0: #5FB0F0;
  --vz-1: #D2AA6B;
  --vz-2: #3B7FC2;
  --vz-3: rgba(237, 244, 246, .45);

  /* CharFlo keeps its own graphite and blue */
  --cf-bg: #0F1012;
  --cf-sunken: #0C0D0F;
  --cf-surface: #15161A;
  --cf-raised: #1B1C21;
  --cf-line: #24262B;
  --cf-line-strong: #32343B;
  --cf-ink: #ECECEF;
  --cf-muted: #A4A6AE;
  --cf-blue: #006EDF;
  --cf-blue-hover: #1A80EA;
  --cf-link: #3FB6F2;
  --cf-ok: #4FC48E;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1824; --surface: #0F2130; --ink: #E8F0F6; --muted: #94AABD; --faint: #2E485C; --line: #1B3346;
    --brand: #6CB2EE; --logo: #6CB8D6; --brand-soft: #122E46; --btn: #2874B5; --btn-hover: #2268A2; --spot: rgba(108, 178, 238, .09);
    --nav-bg: rgba(12, 30, 44, .76); --nav-line: rgba(237, 244, 246, .09); --shadow: rgba(0, 0, 0, .45);
    --ok: #4FC48E; --bad: #F07373;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1824; --surface: #0F2130; --ink: #E8F0F6; --muted: #94AABD; --faint: #2E485C; --line: #1B3346;
  --brand: #6CB2EE; --logo: #6CB8D6; --brand-soft: #122E46; --btn: #2874B5; --btn-hover: #2268A2; --spot: rgba(108, 178, 238, .09);
  --nav-bg: rgba(12, 30, 44, .76); --nav-line: rgba(237, 244, 246, .09); --shadow: rgba(0, 0, 0, .45);
    --ok: #4FC48E; --bad: #F07373;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--hero); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--f-sans); font-weight: 600; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.2rem); }
h3 { font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
[id] { scroll-margin-top: 92px; }

.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(80px, 10vw, 140px); }
.eyebrow { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(44px, 5vw, 68px); }
.head .eyebrow { margin-bottom: 0; }

/* Dark bands */
.dark { background: var(--hero); color: var(--hero-ink); position: relative; isolation: isolate; }
.dark .eyebrow { color: var(--brass); }
.dark .lede { color: var(--hero-muted); }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .07;
  background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap;
  background: var(--btn); color: #FFFFFF; font: 600 .98rem/1 var(--f-sans);
  padding: 16px 22px; border: 0; border-radius: 10px; transition: background .25s, box-shadow .25s;
}
.btn:hover { background: var(--btn-hover); }
.btn svg { transition: translate .25s var(--ease); }
.btn:hover svg { translate: 4px 0; }
.btn-light { background: var(--hero-ink); color: var(--hero); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 30px -10px rgba(95, 176, 240, .45); }
.btn-light:hover { background: #FFFFFF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 40px -10px rgba(95, 176, 240, .6); }
.btn-ghost { background: transparent; color: var(--hero-ink); box-shadow: inset 0 0 0 1px var(--hero-line); }
.btn-ghost:hover { background: rgba(237, 244, 246, .06); }
/* Booking and Get started buttons are the raised, lit controls on a page: a top highlight and a bottom edge make
   them look pressable, and a light sweep (::before, under the label) crosses them. */
.btn:is([href^="https://cal.com/"], [href^="/get-started/"]) { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; transition: background .25s, box-shadow .35s var(--ease), transform .3s var(--ease); }
.btn:is([href^="https://cal.com/"], [href^="/get-started/"])::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -130% 0;
  background: linear-gradient(105deg, transparent 30%, var(--sheen) 50%, transparent 70%); }
.btn:is([href^="https://cal.com/"], [href^="/get-started/"]):not(.btn-light) { --sheen: rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, var(--btn), color-mix(in srgb, var(--btn) 82%, #000000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .35), 0 10px 24px -10px color-mix(in srgb, var(--btn) 90%, transparent); }
.btn:is([href^="https://cal.com/"], [href^="/get-started/"]):not(.btn-light):hover { background: linear-gradient(180deg, var(--btn), color-mix(in srgb, var(--btn) 92%, #000000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 4px 8px rgba(0, 0, 0, .3), 0 18px 36px -12px var(--btn); }
.btn-light:is([href^="https://cal.com/"], [href^="/get-started/"]) { --sheen: rgba(95, 176, 240, .38); padding: 17px 24px; background: linear-gradient(180deg, #FFFFFF, #DCE9F3);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 0 rgba(6, 17, 28, .14), 0 1px 2px rgba(0, 0, 0, .45), 0 14px 32px -12px rgba(95, 176, 240, .7); }
.btn-light:is([href^="https://cal.com/"], [href^="/get-started/"]):hover { background: linear-gradient(180deg, #FFFFFF, #E6F0F8);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 0 rgba(6, 17, 28, .14), 0 4px 8px rgba(0, 0, 0, .35), 0 24px 46px -14px rgba(95, 176, 240, .85); }
.btn:is([href^="https://cal.com/"], [href^="/get-started/"]):active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 1px 1px rgba(0, 0, 0, .35); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.link:hover { border-color: currentColor; }
.link svg { transition: translate .25s var(--ease); }
.link:hover svg { translate: 3px 0; }
.head .link { justify-self: start; }

/* Logo as a mask, so it takes each theme's brand color */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--logo); text-decoration: none; }
.logo .mk { width: 34px; height: 22px; background: currentColor; -webkit-mask: url(/mark.png) center / contain no-repeat; mask: url(/mark.png) center / contain no-repeat; }
.logo .wm { width: 131px; height: 10px; background: currentColor; -webkit-mask: url(/wordmark.png) left center / contain no-repeat; mask: url(/wordmark.png) left center / contain no-repeat; }

/* Floating nav */
.nav { position: fixed; z-index: 30; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); pointer-events: none; }
.nav-in {
  pointer-events: auto; max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
  padding: 7px 7px 7px 20px; border-radius: 14px; background: var(--nav-bg); border: 1px solid var(--nav-line);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: box-shadow .35s;
}
.nav.scrolled .nav-in { box-shadow: 0 16px 40px -18px var(--shadow); }
.nav { transition: translate .45s var(--ease); }
.nav.away { translate: 0 calc(-100% - 24px - env(safe-area-inset-top, 0px)); }
.nav:focus-within { translate: 0 0; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: block; white-space: nowrap; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--ink); background: var(--spot); }
/* Industries dropdown: opens on hover or keyboard focus; a tap on the link itself goes to /industries/. */
.chev { width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s var(--ease); }
.nav .has-sub { position: relative; }
.sub-panel { position: absolute; top: calc(100% + 13px); left: -10px; width: 300px; display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px var(--shadow); opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity .2s, translate .25s var(--ease), visibility 0s .25s; }
.sub-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; }
.has-sub:is(:hover, :focus-within) .sub-panel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s, translate .25s var(--ease); }
.has-sub:is(:hover, :focus-within) .chev { rotate: 180deg; }
.nav .sub-panel a { padding: 10px 12px; color: var(--ink); font-size: .9rem; white-space: normal; line-height: 1.35; }
/* The last two dropdowns open leftward so they stay on screen. */
.nav .has-sub:nth-last-child(-n+2) .sub-panel { left: auto; right: -10px; }
.nav .sub-panel .sub-all, .menu-sub .sub-all { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--brand); }
.nav .btn { flex: none; padding: 12px 16px; font-size: .9rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--nav-line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: rotate .3s var(--ease), translate .3s var(--ease), top .3s var(--ease); }
.menu summary span { position: relative; translate: 0 -3px; }
.menu summary span::before { content: ""; position: absolute; left: 0; top: 6px; }
.menu[open] summary span { translate: 0 0; rotate: 45deg; }
.menu[open] summary span::before { top: 0; rotate: -90deg; }
.menu-panel {
  position: absolute; right: -8px; top: calc(100% + 14px); width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 2px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px var(--shadow);
}
.menu-panel a { padding: 13px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.menu-panel a:hover { background: var(--spot); }
.menu .menu-sub summary { width: auto; height: auto; border: 0; display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 10px; list-style: none; cursor: pointer; font-weight: 500; font-size: 1.05rem; }
.menu-sub summary::-webkit-details-marker { display: none; }
.menu-sub summary:hover { background: var(--spot); }
.menu-sub[open] .chev { rotate: 180deg; }
.menu-panel .menu-sub a { display: block; padding: 11px 14px 11px 26px; font-size: .95rem; color: var(--muted); }
.menu-panel .menu-sub a:hover { color: var(--ink); }
.menu-panel .menu-sub .sub-all { margin: 2px 0 6px; padding-left: 26px; color: var(--brand); }
/* Phone menu's "Dark mode" switch, shown where the bar's theme button gives up its room to the wordmark. */
.menu-theme { display: none; align-items: center; justify-content: space-between; margin-top: 6px; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: none; color: inherit; font: 500 1.05rem/1.2 var(--f-sans); cursor: pointer; text-align: left; }
.menu-theme i { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--line); transition: background .2s; }
.menu-theme i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; transition: translate .2s var(--ease); }
.menu-theme[aria-pressed="true"] i { background: var(--btn); }
.menu-theme[aria-pressed="true"] i::after { translate: 16px 0; }
.menu-theme:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Light/dark button: the icon shows the theme a click switches to. */
.theme-btn { flex: none; width: 40px; height: 40px; margin-right: -14px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.theme-btn:hover { color: var(--ink); background: var(--spot); }
.theme-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (max-width: 1180px) { .nav ul { display: none; } .theme-btn { margin: 0 0 0 auto; } .menu { display: block; } .nav-in { gap: 10px; } }
/* Phones: the theme toggle moves into the menu so the wordmark fits beside Book a call. */
@media (max-width: 480px) {
  .nav-in > .theme-btn { display: none; }
  .menu-theme { display: flex; }
  .nav-in > .btn { margin-left: auto; flex: none; padding-inline: 13px; }
  .nav-in { gap: 8px; padding-left: 14px; }
  .nav .logo { gap: 8px; min-width: 0; }
  /* Full size from about 400px; below that it narrows (keeping its proportions) so Book a call never shrinks. */
  .nav .logo .wm { width: min(131px, calc(100vw - 266px)); }
}

/* Hero */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(128px, 14vw, 176px)); overflow: hidden;
  background: radial-gradient(60% 70% at 85% 25%, rgba(30, 110, 173, .5), transparent 70%), var(--hero); }
.hero canvas, .phero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.hero canvas.on, .phero canvas.on { opacity: 1; }
.hero::before, .phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 17, 28, .88) 0%, rgba(6, 17, 28, .55) 42%, rgba(6, 17, 28, 0) 68%),
              linear-gradient(0deg, var(--hero) 0%, rgba(6, 17, 28, 0) 30%); }
/* Charlotte's skyline at night, screened onto the ledger lines so only its lights show. */
.hero-sky { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; pointer-events: none;
  mix-blend-mode: screen; opacity: .75; -webkit-mask-image: radial-gradient(75% 70% at 65% 38%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 70% at 65% 38%, #000 35%, transparent 100%); }
@media (max-width: 900px) {
  .hero-sky { top: auto; bottom: 0; width: 100%; height: 62%; object-position: 50% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 80px); align-items: end; }
.hero-grid > div:first-child { container-type: inline-size; }
/* Sized to its column (cqi) so "Increase financial clarity." stays on one line wherever the column allows it. */
.hero h1 { font-size: clamp(2.5rem, 1rem + 4.4vw, 3.9rem); font-size: clamp(2.5rem, 8.8cqi, 3.9rem); font-stretch: 108%; font-weight: 600; line-height: 1; letter-spacing: -.045em; margin-bottom: 28px; }
.hero h1 .soft { color: #8FCBF5; }
.hero .lede { margin-bottom: 38px; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .actions > .btn { flex: 1 1 100%; justify-content: center; } }
.fine { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 .75rem/1.4 var(--f-mono); color: var(--hero-muted); letter-spacing: .02em; }
.fine span { display: inline-flex; align-items: center; gap: 8px; }
.fine svg { color: var(--cyan); }

.portrait { position: relative; margin: 0; width: 100%; max-width: 420px; justify-self: end; }
.portrait::before { content: ""; position: absolute; inset: -14% -20%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(95, 176, 240, .24), transparent); }
.portrait .photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--hero-2); box-shadow: 0 0 0 1px var(--hero-line), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 17, 28, 0) 55%, rgba(6, 17, 28, .75)); }
.portrait figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.portrait figcaption b { font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.portrait figcaption span { font: 400 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.glass { background: rgba(11, 31, 39, .62); border: 1px solid var(--hero-line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-radius: 12px; }
.quote-card { position: absolute; left: -64px; bottom: 76px; width: 270px; padding: 16px 18px; display: grid; gap: 10px; }
.quote-card q { quotes: "\201C" "\201D"; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.quote-card small { font: 400 .75rem/1.4 var(--f-mono); color: var(--hero-muted); letter-spacing: .03em; }
.ticket { position: absolute; right: -28px; top: 34px; padding: 14px 16px; display: grid; gap: 4px; min-width: 176px; max-width: 230px; }
.ticket small { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.ticket b { font-size: 1.5rem; font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1; }
.ticket span { font-size: .8rem; color: var(--hero-muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero::before, .phero::before { background: linear-gradient(180deg, rgba(6, 17, 28, .85) 0%, rgba(6, 17, 28, .4) 45%, var(--hero) 100%); }
  /* Tablets: the desktop head-and-shoulders photo, smaller, with the name and review beside it */
  .portrait { justify-self: stretch; max-width: 640px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 12px 24px; }
  .portrait .photo { grid-column: 1; grid-row: 2 / 4; }
  .portrait .photo::after { display: none; }
  .portrait figcaption { position: static; grid-column: 2; grid-row: 2; align-self: end; display: grid; gap: 6px; }
  .portrait .quote-card { position: static; grid-column: 2; grid-row: 3; width: auto; animation: none; }
  /* Above the photo as one slim line, so it never covers the face */
  .portrait .ticket { grid-column: 1 / -1; grid-row: 1; position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; max-width: none; padding: 12px 16px; animation: none; }
  .portrait .ticket b { font-size: 1.05rem; }
}
/* Phones: a compact founder strip (small photo beside the name, the review below) instead of a
   photo that fills the first screen */
@media (max-width: 560px) {
  .portrait { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 12px 16px; max-width: none; }
  .portrait .photo { grid-row: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 0 0 1px var(--hero-line); }
  .portrait .photo img { object-position: 50% 12%; }
  .portrait figcaption { grid-row: auto; align-self: center; }
  .portrait .quote-card { grid-column: 1 / -1; grid-row: auto; }
}

.figures { margin: clamp(64px, 8vw, 104px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hero-line); }
.figures div { display: flex; flex-direction: column-reverse; gap: 10px; padding: 28px 24px 30px; border-left: 1px solid var(--hero-line); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures dd { margin: 0; font: 300 clamp(2rem, 1.4rem + 1.8vw, 2.9rem)/1 var(--f-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures dt { font-size: .88rem; color: var(--hero-muted); }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div { padding: 22px 0 22px 18px; }
  .figures div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures div:nth-child(-n+2) { border-bottom: 1px solid var(--hero-line); }
}

/* Marquees */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: slide var(--dur, 48s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { translate: -50% 0; } }
.ticker { border-top: 1px solid var(--hero-line); padding-block: 22px 26px; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; white-space: nowrap; font-size: 1.05rem; font-stretch: 112%; font-weight: 500; letter-spacing: -.01em; color: var(--hero-muted); }
.ticker li::after { content: "/"; margin: 0 28px; font-family: var(--f-mono); color: var(--brass); opacity: .7; }

/* Mission */
.statement { font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.035em; line-height: 1.14; max-width: 24em; text-wrap: pretty; }
.statement.lit span { color: color-mix(in srgb, var(--muted) 75%, var(--paper)); transition: color .4s ease; }
.statement.lit span.on { color: var(--ink); }
.pillars { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; border-radius: 16px; border: 1px solid var(--line); padding: 26px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), var(--spot), transparent 70%), var(--surface);
  transition: border-color .3s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.pillar { display: grid; gap: 12px; align-content: start; }
.pillar p { color: var(--muted); font-size: .98rem; }
.viz { height: 132px; margin: -4px -4px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.viz svg { width: 100%; height: 100%; }
.viz .gl { stroke: var(--line); stroke-width: 1; }
.viz .bar { fill: var(--brand); opacity: .9; transform-box: fill-box; transform-origin: 50% 100%; }
.viz .trend { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-dasharray: 3 5; }
.viz .area { fill: var(--brand); opacity: .12; }
.viz .ln { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.viz .end { fill: var(--brand); }
.viz .ring { fill: none; stroke: var(--brand); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.months { list-style: none; margin: 0; padding: 0 14px; width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.months li { display: grid; place-items: center; gap: 4px; padding: 8px 0 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font: 500 .7rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.months svg { width: 12px; height: 12px; color: var(--brand); }
@media (max-width: 900px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 561px) and (max-width: 900px) {
  .pillar { grid-template-columns: 240px minmax(0, 1fr); column-gap: 26px; align-items: center; }
  .pillar .viz { grid-row: 1 / span 2; margin: 0; }
  .pillar h3 { align-self: end; }
  .pillar p { align-self: start; }
}

/* Year-round calendar */
.cal { position: relative; height: 330px; margin-top: 8px; }
.cal-strip { position: absolute; left: 0; right: 0; top: 50%; height: 36px; translate: 0 -50%; border: 1px solid var(--hero-line); border-radius: 8px; background: var(--hero-2); overflow: hidden; }
.cal-strip span { position: absolute; top: 0; bottom: 0; left: calc(var(--m) / 365 * 100%); width: calc(var(--n) / 365 * 100%); display: grid; place-items: center; border-left: 1px solid var(--hero-line); font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.cal-strip span:first-child { border-left: 0; }
.cal-strip i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: linear-gradient(90deg, rgba(95, 176, 240, 0), rgba(95, 176, 240, .22)); border-right: 1px solid var(--cyan); box-shadow: 8px 0 24px rgba(95, 176, 240, .35); opacity: 0; }
.ev { position: absolute; left: calc(var(--d) / 365 * 100%); width: 150px; padding-left: 12px; border-left: 1px solid var(--hero-line); display: grid; gap: 4px; }
.ev.up { bottom: calc(50% + 18px); padding-bottom: 24px; }
.ev.down { top: calc(50% + 18px); padding-top: 24px; }
.ev::after { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--hero); }
.ev.up::after { bottom: -4px; }
.ev.down::after { top: -4px; }
.ev time { font: 500 .75rem/1 var(--f-mono); color: var(--brass); letter-spacing: .02em; }
.ev b { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.ev span { font-size: .8rem; line-height: 1.35; color: var(--hero-muted); }
.cal-note { margin-top: 28px; font: 400 .75rem/1.6 var(--f-mono); color: var(--hero-muted); }
.cal-note a { color: var(--hero-ink); text-underline-offset: 3px; }
.cal.play .cal-strip i { animation: sweep 2.8s cubic-bezier(.45, 0, .2, 1) both; }
.cal.play .ev { animation: evOn .6s ease-out both; animation-delay: calc(.1s + var(--d) / 365 * 2.6s); }
.cal.play .ev::after { animation: ping 1.1s ease-out both; animation-delay: calc(.1s + var(--d) / 365 * 2.6s); }
@keyframes sweep { 0% { width: 0; opacity: 1; } 88% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes evOn { from { opacity: .3; } }
@keyframes ping { from { box-shadow: 0 0 0 4px var(--hero), 0 0 0 4px rgba(210, 170, 107, .7); } to { box-shadow: 0 0 0 4px var(--hero), 0 0 0 18px rgba(210, 170, 107, 0); } }
@media (max-width: 1000px) {
  .cal { height: auto; display: grid; border-top: 1px solid var(--hero-line); }
  .cal-strip { display: none; }
  .ev, .ev.up, .ev.down { position: static; width: auto; border: 0; border-bottom: 1px solid var(--hero-line); padding: 16px 0; grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; }
  .ev::after { display: none; }
  .ev time { grid-row: span 2; padding-top: 4px; }
}

/* Services + industries */
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 26px 4px; text-decoration: none; }
.svc a::before { content: ""; position: absolute; inset: 6px -14px; z-index: -1; border-radius: 12px; background: var(--spot); opacity: 0; scale: .98 .8; transition: opacity .3s, scale .4s var(--ease); }
.svc a:hover::before { opacity: 1; scale: 1; }
.svc h3 { font-size: 1.45rem; }
.svc p { color: var(--muted); max-width: 34em; grid-column: 1; }
.svc .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--brand); transition: background .3s, color .3s, border-color .3s; }
.svc a:hover .go { background: var(--btn); color: #FFFFFF; border-color: var(--btn); }
.also { display: grid; gap: 18px; margin-top: 30px; }
.also p { font-size: .95rem; color: var(--muted); }
.also b { display: block; font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 9px; }
.also a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; }
.also a:hover { text-decoration-color: var(--ink); }
.ind { align-self: start; padding: 30px; }
.ind h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ind > p:not(.eyebrow) { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.ind ul { list-style: none; margin: 0; padding: 0; }
.ind li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.ind li a span { display: grid; gap: 3px; }
.ind li a b { font-weight: 600; }
.ind li a small { font-size: .82rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.ind li a svg { flex: none; color: var(--muted); transition: translate .25s var(--ease), color .25s; }
.ind li a:hover svg { color: var(--brand); translate: 3px 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 561px) and (max-width: 900px) { .ind ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }

/* CharFlo, in its own graphite and blue */
.cf { background: var(--cf-bg); color: var(--cf-ink); position: relative; isolation: isolate; overflow: hidden; }
.cf::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; right: -220px; top: 12%; background: radial-gradient(closest-side, rgba(0, 110, 223, .3), transparent); }
.cf .eyebrow { color: var(--cf-link); }
.cf .lede { color: var(--cf-muted); }
.cf-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.cf-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.cf-brand img { width: 36px; height: 36px; }
.cf h2 { margin-bottom: 18px; }
/* The Product page opens on the CharFlo section, so it takes the page header's room under the bar. */
.cf-hero { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(124px, 13vw, 164px)); }
.cf-hero h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.2rem); margin-bottom: 18px; }
.cf-steps { list-style: none; margin: 34px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--cf-line); border: 1px solid var(--cf-line); border-radius: 12px; overflow: hidden; }
.cf-steps li { background: var(--cf-surface); padding: 18px; display: grid; gap: 6px; align-content: start; }
.cf-steps small { font: 500 .7rem/1 var(--f-mono); color: var(--cf-link); letter-spacing: .06em; text-transform: uppercase; }
.cf-steps b { font-weight: 600; }
.cf-steps span { font-size: .88rem; color: var(--cf-muted); line-height: 1.45; }
.cf .btn { background: var(--cf-blue); }
.cf .btn:hover { background: var(--cf-blue-hover); }
.cf .btn-ghost { background: transparent; color: var(--cf-ink); box-shadow: inset 0 0 0 1px var(--cf-line-strong); }
.cf .btn-ghost:hover { background: rgba(236, 236, 239, .05); }
.cf-trust { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 26px 0 0; border-top: 1px solid var(--cf-line); display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: .92rem; color: var(--cf-muted); }
.cf-trust li { display: flex; align-items: center; gap: 10px; }
.cf-trust svg { color: var(--cf-ok); }

.cf-stage { position: relative; }
.app { border-radius: 14px; background: var(--cf-surface); border: 1px solid var(--cf-line); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85); overflow: hidden; font-size: .85rem; }
.app-bar { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--cf-line); background: var(--cf-sunken); }
.app-bar b { font-weight: 600; white-space: nowrap; }
.app-bar nav { display: flex; gap: 4px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.app-bar nav span { padding: 6px 10px; border-radius: 7px; color: var(--cf-muted); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.app-bar nav .on { background: var(--cf-raised); color: var(--cf-ink); }
.app-bar nav i { font: 500 .7rem/1 var(--f-mono); background: var(--cf-blue); color: #FFFFFF; border-radius: 99px; padding: 3px 6px; }
.app-body { padding: 20px; display: grid; gap: 16px; }
.app-hi { display: flex; justify-content: space-between; align-items: start; gap: 12px 16px; flex-wrap: wrap; }
.app-hi h3 { font-size: 1.15rem; font-stretch: 100%; letter-spacing: -.01em; }
.app-hi p { color: var(--cf-muted); font-size: .82rem; margin-top: 4px; max-width: 30em; }
.chip { font: 500 .7rem/1 var(--f-mono); color: var(--cf-muted); border: 1px solid var(--cf-line); border-radius: 7px; padding: 8px 10px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis div { background: var(--cf-raised); border: 1px solid var(--cf-line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; min-width: 0; }
.kpis span { color: var(--cf-muted); font-size: .74rem; }
.kpis b { font: 600 clamp(.92rem, .8rem + .3vw, 1.08rem)/1.1 var(--f-sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis em { font: 500 .7rem/1 var(--f-mono); font-style: normal; color: var(--cf-muted); }
.kpis em.up { color: var(--cf-ok); }
.chart { background: var(--cf-raised); border: 1px solid var(--cf-line); border-radius: 10px; padding: 14px; }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.chart-head small { font: 400 .7rem/1.4 var(--f-mono); color: var(--cf-muted); }
.bars { height: 96px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; align-items: end; border-bottom: 1px solid var(--cf-line-strong); }
.bars i { height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #0090E9, rgba(0, 110, 223, .45)); transform-origin: bottom; }
.bars i:last-child { background: linear-gradient(180deg, #00D5F3, #0090E9); }
.bar-x { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 6px; font: 400 .7rem/1 var(--f-mono); color: var(--cf-muted); text-align: center; }
.todo { position: absolute; left: -40px; bottom: -72px; width: 300px; padding: 16px; border-radius: 12px; display: grid; gap: 8px; font-size: .82rem;
  background: rgba(27, 28, 33, .86); border: 1px solid var(--cf-line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85); }
.todo small { font: 500 .7rem/1 var(--f-mono); color: var(--cf-link); letter-spacing: .06em; text-transform: uppercase; }
.todo-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; }
.todo-row span { font: 500 .85rem/1.4 var(--f-mono); }
.todo .meta { color: var(--cf-muted); font: 400 .7rem/1 var(--f-mono); margin-top: -4px; }
.todo p { line-height: 1.45; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts span { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--cf-line-strong); color: var(--cf-muted); font-size: .76rem; }
.sent { display: flex; align-items: center; gap: 6px; color: var(--cf-ok); font-size: .76rem; opacity: 0; }
.cf-note { margin-top: 18px; text-align: right; font: 400 .7rem/1.5 var(--f-mono); color: var(--cf-muted); }
@media (max-width: 1100px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } .todo { left: 16px; } }
@media (max-width: 560px) {
  .cf-steps { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-bar nav span:nth-child(n+3) { display: none; }
  .todo { position: relative; left: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
  .cf-note { margin-top: 18px; }
}

.call-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: c; }
.call-steps li { counter-increment: c; display: flex; gap: 14px; align-items: baseline; }
.call-steps-page { font-size: 1.15rem; gap: 16px; margin: 0; }
.call-steps li::before { content: counter(c, decimal-leading-zero); font: 500 .75rem/1 var(--f-mono); color: var(--brass); }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { display: grid; gap: 16px; align-content: start; padding: clamp(26px, 3vw, 40px); }
.case .tag { justify-self: start; font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); padding: 7px 10px; border-radius: 6px; background: var(--brand-soft); }
.case h3 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.03em; }
.case p { color: var(--muted); }
.case .link { justify-self: start; margin-top: 10px; }
@media (max-width: 760px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* Process: three steps on one track. The track runs from the first node's centre to the last's. */
.steps { --gap: clamp(24px, 4vw, 64px); --node: 52px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.steps::before, .steps::after { content: ""; position: absolute; top: calc(var(--node) / 2 - 1px); left: calc(var(--node) / 2); right: calc((100% - 2 * var(--gap)) / 3 - var(--node) / 2); height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--brand); transform-origin: left center; }
.step { display: grid; gap: 10px; align-content: start; }
.node { position: relative; z-index: 1; width: var(--node); height: var(--node); margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #FFFFFF; font: 500 .82rem/1 var(--f-mono); box-shadow: 0 0 0 1px var(--btn), 0 0 0 8px var(--paper); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); max-width: 26em; }
@media (max-width: 760px) {
  /* Stacked: a short connector under each node instead of one track, so the line stops at the last node. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .steps::before, .steps::after { display: none; }
  .step { position: relative; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: -30px; width: 2px; background: var(--brand); opacity: .45; }
  .node { grid-row: span 2; margin-bottom: 0; }
  .step h3 { padding-top: 12px; }
}

/* Team */
/* Six people: one row on wide screens, two rows of three on tablets, three rows of two on phones (below). */
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } }
.person { display: grid; gap: 4px; align-content: start; }
.person .ph { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--brand-soft); margin-bottom: 16px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: filter .6s ease, transform .8s var(--ease); }
@media (hover: hover) {
  .person .ph img { filter: grayscale(1) contrast(1.05); }
  .person:hover .ph img { filter: none; transform: scale(1.04); }
}
.person h3 { font-size: 1.12rem; }
.person .cred { font: 400 .75rem/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.person p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

/* Reviews */
.review { margin: 0; display: grid; gap: 22px; align-content: space-between; }
.review blockquote { margin: 0; }
.review figcaption { display: grid; gap: 3px; }
.review figcaption b { font-weight: 600; }
.review figcaption span { font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .03em; color: var(--hero-muted); }
.lead-review { max-width: 60rem; }
.lead-review blockquote { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.35rem); font-weight: 500; font-stretch: 106%; letter-spacing: -.03em; line-height: 1.22; text-wrap: pretty; }
.lead-review blockquote::before { content: "\201C"; color: var(--brass); }
.lead-review blockquote::after { content: "\201D"; color: var(--brass); }
.wall { margin-top: clamp(48px, 6vw, 72px); --dur: 60s; }
.wall .row { display: flex; gap: 16px; padding-right: 16px; }
.dcard { width: min(380px, 78vw); padding: 24px; border-radius: 14px; border: 1px solid var(--hero-line);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), var(--spot-dark), transparent 70%), rgba(237, 244, 246, .03); }
.dcard blockquote { font-size: .98rem; line-height: 1.55; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: rotate .35s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--brand); translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i { rotate: 45deg; background: var(--brand-soft); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 36em; }
@media (max-width: 880px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Closing call, with the logo's two C's drawn large */
.close { overflow: hidden; }
.close .arcs { position: absolute; z-index: -1; right: -150px; top: 30px; width: 680px; color: rgba(95, 176, 240, .22); pointer-events: none; }
.close .arcs path { fill: none; stroke: currentColor; stroke-width: 1.3; }
.close::before { content: ""; position: absolute; z-index: -2; width: 720px; height: 720px; right: -200px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 110, 173, .55), transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 50%); mask-image: linear-gradient(180deg, transparent 22%, #000 50%); filter: blur(20px); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { translate: -120px 80px; scale: 1.15; } }
.close .wrap { display: grid; gap: clamp(56px, 7vw, 88px); }
.close-top { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 32px; }
.close h2 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem); letter-spacing: -.045em; }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office { display: grid; gap: 6px; align-content: start; padding: 24px; }
.office small { font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.office b { font-size: 1.3rem; font-weight: 600; font-stretch: 110%; letter-spacing: -.02em; }
.office address { font-style: normal; color: var(--hero-muted); font-size: .95rem; }
.office a { color: var(--hero-ink); text-decoration: none; font: 400 .8rem/1.6 var(--f-mono); }
.office a:hover { color: var(--cyan); }
@media (max-width: 760px) { .close-top, .offices { grid-template-columns: minmax(0, 1fr); } .close .arcs { width: 420px; right: -190px; } }

/* Footer */
footer { padding-block: 64px 40px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h2 { margin: 0 0 16px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--brand); }
.foot .about p { color: var(--muted); margin-top: 18px; max-width: 26em; }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font: 400 .75rem/1.6 var(--f-mono); }
.legal a { color: var(--muted); }
@media (max-width: 880px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }

/* Skip link, current page, office links */
.skip { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: -80px; z-index: 60; padding: 12px 16px; border-radius: 10px; background: var(--btn); color: #FFFFFF; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 14px); }
.nav ul a[aria-current="page"] { color: var(--ink); background: var(--spot); }
.office .office-more { margin-top: 4px; font: 600 .82rem/1.4 var(--f-sans); color: var(--cyan); }

/* Inner-page hero */
.phero { padding-top: calc(env(safe-area-inset-top, 0px) + clamp(124px, 13vw, 164px)); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden;
  background: radial-gradient(60% 80% at 90% 15%, rgba(30, 110, 173, .45), transparent 70%), var(--hero); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.phero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.phero h1 { font-size: clamp(2.3rem, 1.1rem + 3.8vw, 3.9rem); font-stretch: 108%; letter-spacing: -.045em; line-height: 1.02; max-width: 15em; margin-bottom: 22px; }
.phero .lede { max-width: 40em; }
.phero .actions { margin-top: 34px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 22px; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.crumbs a { color: var(--brass); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.office-card { padding: 24px; display: grid; gap: 8px; align-content: start; }
.office-card small { font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.office-card b { font-size: 1.4rem; font-weight: 600; font-stretch: 110%; letter-spacing: -.02em; }
.office-card address { font-style: normal; color: var(--hero-muted); }
.office-card a { color: var(--hero-ink); text-decoration: none; font: 400 .85rem/1.6 var(--f-mono); }
.office-card .dir { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cyan); font: 600 .9rem/1.4 var(--f-sans); }
/* City pages: the city behind the header, under the same shading that keeps the text readable. */
.phero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero:has(> .phero-photo)::before { background: linear-gradient(90deg, rgba(6, 17, 28, .93) 0%, rgba(6, 17, 28, .74) 48%, rgba(6, 17, 28, .12) 80%), linear-gradient(0deg, var(--hero) 0%, rgba(6, 17, 28, 0) 30%); }
@media (max-width: 900px) { .phero:has(> .phero-photo)::before { background: linear-gradient(180deg, rgba(6, 17, 28, .82) 0%, rgba(6, 17, 28, .66) 50%, var(--hero) 100%); } }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.review-grid .dcard { width: auto; }
.deadline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; color: inherit; text-decoration: none; }
.deadline-cta h3 { font-size: 1.3rem; }
.deadline-cta p { color: var(--muted); max-width: 44em; margin-top: 6px; }
/* Tax deadline page */
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dl-row time { font: 500 1.05rem/1.2 var(--f-mono); color: var(--brand); font-variant-numeric: tabular-nums; }
.dl-row b { display: block; font-size: 1.08rem; font-weight: 600; }
.dl-row span { color: var(--muted); }
.dl-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
/* Homepage starting prices: rows with the figure in its own aligned column. */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; align-items: baseline; padding: 18px 6px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: background .25s; }
.price-list a:hover { background: var(--spot); }
.price-list b, .price-list span { transition: translate .35s var(--ease); }
.price-list a:hover b, .price-list a:hover span { translate: 10px 0; }
.price-list b { font-size: 1.08rem; font-weight: 600; }
.price-list span { grid-column: 1; color: var(--muted); font-size: .92rem; }
.price-list strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font: 500 1.45rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.price-list small, .price-list i { display: block; font: 400 .75rem/1.4 var(--f-mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.price-note { margin-top: 16px; color: var(--muted); font-size: .88rem; }
/* Industry pages: numbered issues and the numbers we track. */
.watch { list-style: none; margin: 0; padding: 0; counter-reset: w; display: grid; }
.watch li { counter-increment: w; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 22px 0; border-top: 1px solid var(--hero-line); }
.watch li::before { content: counter(w, decimal-leading-zero); grid-row: 1 / span 2; font: 500 .8rem/1.6 var(--f-mono); color: var(--brass); }
.watch h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.watch p { color: var(--hero-muted); line-height: 1.65; }
.kpi-band { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.kpi-band h3 { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hero-muted); }
.kpi-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.kpi-list li { padding: 18px; border-radius: 14px; border: 1px solid var(--hero-line); background: rgba(237, 244, 246, .03); display: grid; gap: 6px; align-content: start; }
.kpi-list b { font-weight: 600; }
.kpi-list span { color: var(--hero-muted); font-size: .9rem; line-height: 1.5; }
.deep-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 8px; }
.deep-links .link { border-color: var(--hero-line); }
/* Two wide cards side by side (Resources, calculators hub). */
.calc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .calc-cards { grid-template-columns: minmax(0, 1fr); } }
/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.post-card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.post-card:hover img { transform: scale(1.03); }
.post-card > div { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.post-card h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.post-card p:last-child { color: var(--muted); font-size: .93rem; }
.post-meta { font: 400 .75rem/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.phero .post-meta { margin-top: 18px; color: var(--hero-muted); }
/* Blog page: the newest article as a wide card, photo left, above the grid. */
.post-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: none; margin-bottom: clamp(64px, 8vw, 110px); }
.post-feature img { height: 100%; min-height: 340px; aspect-ratio: auto; }
.post-feature > div { padding: clamp(26px, 3.6vw, 48px); align-content: center; gap: 16px; }
.post-feature h2 { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem); letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.post-feature p:not(.post-meta) { color: var(--muted); }
@media (max-width: 900px) { .post-feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .post-feature img { min-height: 0; aspect-ratio: 16 / 9; } }
.post .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.phero + .section.post { padding-top: clamp(40px, 5vw, 72px); }
.prose.article { max-width: 42rem; width: 100%; justify-self: center; font-size: 1.08rem; line-height: 1.75; }
.prose.article h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); margin: 1.9em 0 .6em; letter-spacing: -.03em; line-height: 1.15; }
.prose.article h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose.article p, .prose.article ul, .prose.article ol, .prose.article table { margin: 0 0 1.15em; }
.prose.article li { margin-bottom: .45em; }
.prose.article table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose.article th, .prose.article td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose.article thead th { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose.article td.n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose.article .example { margin: 0 0 1.15em; padding: 18px 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.prose.article .example p:last-child { margin-bottom: 0; }
.prose.article .sources { font-size: .85rem; color: var(--muted); }
.post-end { max-width: 42rem; width: 100%; justify-self: center; display: grid; gap: 22px; }
.post-note { color: var(--muted); font-size: .88rem; padding-top: 22px; border-top: 1px solid var(--line); }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.post-cta h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.post-cta p { color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) { .dl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media (max-width: 900px) { .phero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* Illustrative visuals in service and industry heroes (always on the dark hero) */
.viz-card { width: 100%; max-width: 430px; justify-self: end; padding: 20px 20px 16px; display: grid; gap: 14px; align-content: start; }
.viz-top { display: grid; gap: 5px; }
.viz-top small { font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.viz-top b { font-size: 1.05rem; font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.viz-note { font: 400 .7rem/1 var(--f-mono); letter-spacing: .04em; color: var(--hero-muted); }
.vz-rows, .vz-hbars, .vz-legend, .vz-flow, .vz-dates { list-style: none; margin: 0; padding: 0; }
.vz-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hero-line); font-size: .86rem; }
.vz-rows li:first-child { border-top: 0; padding-top: 2px; }
.vz-rows b { font: 400 .76rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.vz-rows em { font: 500 .7rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; font-style: normal; padding: 5px 7px; border-radius: 6px; }
.vz-rows em:empty { padding: 0; }
.vz-rows em.ok { color: #7EDDB0; background: rgba(79, 196, 142, .14); }
.vz-rows em.warn { color: var(--brass); background: rgba(210, 170, 107, .14); }
.vz-rows em.mute { color: var(--hero-muted); background: rgba(237, 244, 246, .06); }
.vz-hbars { display: grid; gap: 14px; }
.vz-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; font-size: .86rem; }
.vz-hbars b { font: 400 .78rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.vz-hbars i { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: rgba(237, 244, 246, .07); overflow: hidden; }
.vz-hbars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); border-radius: 4px; background: linear-gradient(90deg, #2874B5, var(--cyan)); transform-origin: left center; }
.vz-hbars i.neg::before { background: var(--brass); }
.vz-split { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.vz-split i { flex: var(--w) 1 0; background: var(--c); transform-origin: left center; }
.vz-legend { display: grid; gap: 8px; }
.vz-legend li { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.vz-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.vz-legend b { margin-left: auto; font: 400 .76rem/1 var(--f-mono); }
.vz-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; align-items: end; }
.vz-bars > div { display: grid; gap: 7px; }
.vz-bars .stack { height: 120px; display: flex; flex-direction: column-reverse; gap: 2px; }
.vz-bars .stack i { height: calc(var(--h) * 100%); border-radius: 3px; background: var(--c); transform-origin: center bottom; }
.vz-bars span { font: 400 .7rem/1 var(--f-mono); text-align: center; color: var(--hero-muted); }
.vz-line { position: relative; }
.vz-line svg { display: block; width: 100%; height: 130px; overflow: visible; }
.vz-line .area { fill: rgba(95, 176, 240, .12); }
.vz-line .ln { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.vz-line .floor { stroke: var(--brass); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.vz-line .floor-label { position: absolute; left: 0; translate: 0 -130%; font: 400 .7rem/1 var(--f-mono); color: var(--brass); }
.vz-line .axis { display: flex; justify-content: space-between; margin-top: 8px; font: 400 .7rem/1 var(--f-mono); color: var(--hero-muted); }
.vz-flow { display: grid; gap: 14px; counter-reset: f; }
.vz-flow li { counter-increment: f; position: relative; padding: 11px 12px 11px 44px; border: 1px solid var(--hero-line); border-radius: 10px; font-size: .86rem; background: rgba(237, 244, 246, .03); }
.vz-flow li::before { content: counter(f); position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1E6EAD; font: 500 .7rem/1 var(--f-mono); }
.vz-flow li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 100%; width: 2px; height: 14px; background: var(--hero-line); }
.vz-dates li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--hero-line); font-size: .86rem; }
.vz-dates li:first-child { border-top: 0; padding-top: 2px; }
.vz-dates time { font: 500 .7rem/1.6 var(--f-mono); color: var(--brass); }
@media (max-width: 900px) { .viz-card { justify-self: start; } }

/* Heading beside content */
.lead-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.lead-split > .head { position: sticky; top: 110px; margin-bottom: 0; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.item { display: grid; gap: 10px; align-content: start; }
.item h3 { font-size: 1.15rem; }
.item p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .lead-split { grid-template-columns: minmax(0, 1fr); } .lead-split > .head { position: static; } }
@media (max-width: 560px) { .items { grid-template-columns: minmax(0, 1fr); } }

/* Tiles and value cards */
.tiles, .values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiles-wide { grid-template-columns: minmax(0, 1fr); }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 190px; color: inherit; text-decoration: none; }
.tile h3 { font-size: 1.22rem; }
.tile p { color: var(--muted); font-size: .95rem; }
.go-row { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: .92rem; text-decoration: none; }
.go-row svg { transition: translate .25s var(--ease); }
.tile:hover .go-row svg, a.go-row:hover svg { translate: 3px 0; }
.office-tile small { font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.office-tile address { font-style: normal; color: var(--muted); font-size: .95rem; }
.office-tile > a[href^="tel"] { color: var(--ink); text-decoration: none; font: 400 .85rem/1.6 var(--f-mono); }
.office-tile .row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.values .card { display: grid; gap: 10px; align-content: start; }
.values p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .tiles, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles, .values { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; } }

/* Link chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: .93rem; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }

/* Team bios (About) */
.bios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bio { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); align-items: start; }
.bio .ph { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--brand-soft); }
.bio .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bio h3 { font-size: 1.2rem; }
.bio .cred { display: block; margin: 4px 0 12px; font: 400 .75rem/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.bio p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1000px) { .bios { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .bio { grid-template-columns: minmax(0, 1fr); } .bio .ph { max-width: 220px; } }

/* Prose (location copy, legal pages) */
.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); margin: 2.2em 0 .7em; }
.prose h3 { font-size: 1.12rem; margin: 1.8em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 1em 0; padding-left: 1.2em; display: grid; gap: .5em; color: var(--muted); }
.prose a { color: var(--brand); }
.prose .ticks { list-style: none; padding: 0; margin-top: 1.6em; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.ticks svg { flex: none; color: var(--brand); }

/* Forms */
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: clamp(22px, 4vw, 36px); }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.full, .form-foot, .form-status { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-note a { color: var(--brand); }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-status.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn:disabled { opacity: .6; cursor: progress; }
.next-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; }
.next-steps li::before { content: counter(n, decimal-leading-zero); grid-row: span 2; font: 500 .75rem/1.7 var(--f-mono); color: var(--brand); }
.next-steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Booking panel (site.js): cal.com's booking page, loaded hidden and shown on click. The loading note
   shows until the frame has loaded. */
.booking { width: min(1040px, calc(100vw - 16px)); height: min(780px, calc(100dvh - 24px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: 8px; overflow: visible; }
.booking:not([open]) { position: fixed; inset: 0; visibility: hidden; pointer-events: none; }
.booking::backdrop { background: rgba(3, 9, 15, .62); }
.booking-bar { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.booking-bar a { color: #DCE6EE; font-size: .85rem; text-underline-offset: 3px; }
.booking-x { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #FFFFFF; cursor: pointer; transition: background .2s; }
.booking-x:hover { background: rgba(255, 255, 255, .24); }
.booking-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.booking-frame { flex: 1; min-height: 0; overflow: hidden; border-radius: 16px; background: #111111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64'%3E%3Cg fill='%238A9BA8'%3E%3Ccircle cx='104' cy='14' r='4'%3E%3Canimate attributeName='opacity' values='.2;1;.2' dur='1.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='120' cy='14' r='4'%3E%3Canimate attributeName='opacity' values='.2;1;.2' dur='1.2s' begin='.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='136' cy='14' r='4'%3E%3Canimate attributeName='opacity' values='.2;1;.2' dur='1.2s' begin='.4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ctext x='120' y='50' text-anchor='middle' font-family='Arial, sans-serif' font-size='14'%3ELoading the calendar%E2%80%A6%3C/text%3E%3C/g%3E%3C/svg%3E") center / 240px 64px no-repeat; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.booking-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.booking.ready .booking-frame iframe { opacity: 1; }
html:has(.booking[open]) { overflow: hidden; }

/* Motion */
.nav { view-transition-name: site-nav; }
.ask-fab { view-transition-name: ask-fab; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s ease both vt-out; }
  ::view-transition-new(root) { animation: .38s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 10px; } }
  .hero h1 .w { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(.12s + var(--i) * .07s); }
  .hero .eyebrow, .hero .lede, .hero .actions, .hero .fine { animation: rise .9s var(--ease) both; }
  .hero .lede { animation-delay: .45s; }
  .hero .actions { animation-delay: .55s; }
  .hero .fine { animation-delay: .65s; }
  .portrait { animation: settle 1.4s var(--ease) .15s both; }
  .quote-card { animation: float 7s ease-in-out 1.6s infinite alternate; }
  .ticket { animation: float 8s ease-in-out 1s infinite alternate-reverse; }
  .viz .bar { animation: breathe 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
  .viz .trend { animation: march 1.4s linear infinite; }
  .viz .ring { animation: pulse 2.4s ease-out infinite; }
  .months li { animation: lit 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
  @keyframes rise { from { opacity: 0; translate: 0 .5em; } }
  @keyframes settle { from { opacity: 0; scale: .97; } }
  @keyframes float { to { translate: 0 -8px; } }
  @keyframes breathe { 50% { scale: 1 .86; } }
  @keyframes march { to { stroke-dashoffset: -16; } }
  @keyframes pulse { from { scale: 1; opacity: .8; } to { scale: 4; opacity: 0; } }
  @keyframes lit { 0%, 16%, 100% { background: var(--surface); border-color: var(--line); color: var(--muted); } 6% { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); } }
  .menu[open] .menu-panel { animation: drop .3s var(--ease) both; }
  .booking[open] { animation: settle .4s var(--ease) both; }
  .booking[open]::backdrop { animation: fade .3s ease both; }
  @keyframes fade { from { opacity: 0; } }
  .process.play .steps::after { animation: fill-x 1.8s cubic-bezier(.45, 0, .2, 1) .1s both; }
  .process.play .node { animation: node-on .45s ease both; animation-delay: calc(.1s + var(--i) * .85s); }
  @keyframes fill-x { from { scale: 0 1; } }
  .viz-card { animation: settle 1.2s var(--ease) .25s both; }
  .vz-hbars i::before { animation: grow-x .9s var(--ease) both; animation-delay: calc(.6s + var(--i) * .12s); }
  .vz-split i { animation: grow-x .9s var(--ease) .6s both; }
  .vz-bars .stack i { animation: grow-y .8s var(--ease) both; animation-delay: calc(.6s + var(--i) * .07s); }
  .vz-rows li, .vz-flow li, .vz-dates li { animation: rise .7s var(--ease) both; animation-delay: calc(.5s + var(--i) * .1s); }
  @keyframes grow-x { from { scale: 0 1; } }
  @keyframes grow-y { from { scale: 1 0; } }
  @keyframes node-on { from { background: var(--paper); color: var(--brand); } }
  .cf-stage.play .bars i { animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i) * .06s); }
  .cf-stage.play .todo { animation: rise-in .8s var(--ease) .5s both; }
  .cf-stage.play .opts .pick { animation: pick .4s ease 2s both; }
  .cf-stage.play .sent { animation: show .4s ease 2.5s both; }
  @keyframes drop { from { opacity: 0; translate: 0 -6px; } }
  @keyframes grow { from { scale: 1 .08; } }
  @keyframes rise-in { from { opacity: 0; translate: 0 24px; } }
  @keyframes pick { to { background: var(--cf-blue); border-color: var(--cf-blue); color: #FFFFFF; } }
  @keyframes show { to { opacity: 1; } }

  /* Booking buttons lift on hover and sink when pressed. The sweep crosses the top ones three times on
     the first page of a visit (site.js marks later pages .swept), and once on every hover. */
  .btn:is([href^="https://cal.com/"], [href^="/get-started/"]):hover { transform: translateY(-2px); }
  .btn:is([href^="https://cal.com/"], [href^="/get-started/"]):active { transform: translateY(1px) scale(.985); transition-duration: .08s; }
  :root:not(.swept) :is(.nav, .hero, .phero) .btn[href^="https://cal.com/"]::before { animation: sheen 7s var(--ease) 1.4s 3; }
  .btn:is([href^="https://cal.com/"], [href^="/get-started/"]):hover::before { animation: sheen-hover 1s var(--ease); }
  @keyframes sheen { 0% { translate: -130% 0; } 14%, 100% { translate: 130% 0; } }
  @keyframes sheen-hover { from { translate: -130% 0; } to { translate: 130% 0; } }
  /* Header photos fade in, then drift: a slow zoom and pan that reverses every 32 s. */
  .phero-photo { animation: photo-in 1.8s var(--ease) both, drift 32s ease-in-out 1.8s infinite alternate; }
  .hero-sky { animation: photo-in 2.4s var(--ease) .3s both, drift 40s ease-in-out 2.7s infinite alternate; }
  @keyframes photo-in { from { opacity: 0; scale: 1.06; } }
  @keyframes drift { to { scale: 1.09; translate: -2% -1.5%; } }

  @supports (animation-timeline: view()) {
    .rv { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .close .arcs { stroke-dasharray: 700; animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
    @keyframes up { from { translate: 0 64px; } }
    @keyframes draw { from { stroke-dashoffset: 700; } }
    /* CharFlo's screen tilts up from the table and settles flat as it scrolls into view. */
    .cf-stage .app { transform-origin: 50% 100%; animation: rise-3d linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes rise-3d { from { opacity: .35; transform: perspective(1400px) rotateX(18deg) translateY(40px) scale(.95); } }
  }
}
/* With a mouse, cards and the hero portrait lean toward the pointer (site.js sets --rx/--ry). The
   portrait's deadline and review cards sit in front of the photo, so they shift against it. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card[data-spot]:not(.ind) { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .6s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
  .card[data-spot]:not(.ind):hover { --lift: -4px; box-shadow: 0 26px 50px -24px var(--shadow); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .portrait { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .9s var(--ease); }
  .portrait .ticket { transform: translateZ(60px); }
  .portrait .quote-card { transform: translateZ(90px); }
  .portrait .photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; mix-blend-mode: soft-light;
    background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .22), transparent 60%); }
  .portrait.live .photo::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .track > [aria-hidden="true"] { display: none; }
  /* Still rows wrap onto more lines, so the edge fade would only clip words. */
  .marquee { -webkit-mask: none; mask: none; }
  .ticker ul, .wall .row { flex-wrap: wrap; row-gap: 12px; }
  .close::before { animation: none; }
  .sent { opacity: 1; }
  .opts .pick { background: var(--cf-blue); border-color: var(--cf-blue); color: #FFFFFF; }
}
