@font-face { font-family: "Heros"; src: url("../fonts/heros-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url("../fonts/heros-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0e1116;
  --grey: #6a707c;
  --soft: #9aa0ab;
  --line: #e6e8ec;
  --panel: #f4f5f7;
  --blue: #0b6bcb;      /* Haaris's original brand blue */
  --blue-hover: #0958a8;
  --sans: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 22px;
  --section: clamp(4.5rem, 9vw, 7.5rem);   /* gap between sections */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad); }

/* headings: big, regular weight, tight; second sentence in grey */
.h { font-weight: 400; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.h .dim { color: var(--soft); }

.btn { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.4rem; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; transition: background .15s, color .15s; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-hover); }
.btn.grey { background: var(--panel); color: var(--ink); }
.btn.grey:hover { background: #e9ebef; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.link { color: var(--blue); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* nav */

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; min-height: calc(100svh - 11.5rem); padding-top: clamp(1rem, 3vh, 2.5rem); padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero h1 { font-size: clamp(2.4rem, min(1.2rem + 3.4vw, 7.6vh), 4.4rem); max-width: 15em; }
.hero .sub { margin-top: 1.25rem; max-width: 34rem; text-wrap: pretty; color: var(--grey); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.hero .row { margin-top: 1.75rem; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 4.4; max-height: calc(100svh - 14rem); justify-self: end; width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 18%; }

/* the two companies, each in its own brand colours */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; margin-top: clamp(1.75rem, 4vh, 2.5rem); max-width: 40rem; }
.brand { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.35rem 1.15rem; border-radius: 18px; text-decoration: none; color: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.brand:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(14, 17, 22, .55); }
.brand .mark { font-size: 1.25rem; line-height: 1.2; }
.brand .what { font-size: .9375rem; line-height: 1.45; flex: 1; }
.brand .go { margin-top: .6rem; font-weight: 700; font-size: .9375rem; }
.brand.bf { background: #0a0a0f; }
.brand.bf .mark { font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; letter-spacing: -.025em; }
.brand.bf .what { color: #a3a8b5; }
.brand.bf .go { color: #a5e9f8; }
.brand.pt { background: #1e3d3b; }
.brand.pt .mark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.375rem; }
.brand.pt .what { color: #b9cdca; }
.brand.pt .go { color: #f0d656; }
@media (prefers-reduced-motion: reduce) { .brand, .brand:hover { transition: none; transform: none; } }

/* logos */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.5rem, 4vw, 3.5rem); min-height: 6rem; padding-top: 1rem; padding-bottom: 1rem; border-top: 1px solid var(--line); }
.trust p { color: var(--grey); font-size: .9375rem; }
.trust ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.75rem, 4vw, 3.25rem); }
.trust img { width: auto; height: 32px; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.trust li:hover img { opacity: 1; filter: none; }
.trust img[alt="CPA Ontario"] { height: 38px; }
.trust img[alt="Government of Canada"] { height: 23px; }

section { scroll-margin-top: 1rem; }
.space { padding-top: var(--section); }

/* shared: small blue label above a section headline */
.tag { color: var(--blue); font-weight: 700; font-size: .9375rem; letter-spacing: -.005em; }
.tag + .h { margin-top: .75rem; }
.h2 { font-size: clamp(2.1rem, 1.25rem + 2.5vw, 3.4rem); }
.sub { color: var(--grey); font-size: 1.125rem; line-height: 1.6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); margin-top: 1.25rem; align-items: start; }
.split > :last-child { padding-top: .5rem; }
.chips + .row, .sub + .row { margin-top: 2rem; }

/* three things */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(2.25rem, 4vw, 3rem); }
.three li { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.three h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.three p { margin-top: .5rem; color: var(--grey); }
.three .link { display: inline-block; margin-top: 1rem; }


/* blackframe panel */
.panel { background: var(--panel); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.panel .sub { margin-top: 1.25rem; max-width: 27rem; }
.panel .btn.grey { background: #fff; }
.panel .btn.grey:hover { background: #fafbfc; box-shadow: inset 0 0 0 1px var(--line); }
.panel .row { margin-top: 2rem; }
.panel .steps { margin: 0; }
.steps { counter-reset: s; align-self: center; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 0; padding: 1.1rem 0; border-top: 1px solid #dfe2e7; }
.steps li:last-child { border-bottom: 1px solid #dfe2e7; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; font-weight: 700; font-size: .875rem; color: var(--ink); }
.steps strong { font-size: 1.0625rem; }
.steps span { color: var(--grey); font-size: .9875rem; }

/* blackframe outcomes + proof */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.outcomes li { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.outcomes h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.outcomes p { margin-top: .5rem; color: var(--grey); }
.proof { margin-top: clamp(3rem, 6vw, 4rem); }
.proof .sub { font-size: 1.0625rem; }

/* blackframe results */
.results { margin-top: clamp(3rem, 6vw, 4.5rem); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.results-head h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); max-width: 22em; }
.results-head .link { white-space: nowrap; }
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem clamp(2rem, 5vw, 3.75rem); margin-top: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients img { width: auto; height: 40px; filter: grayscale(1); opacity: .6; transition: opacity .2s, filter .2s; }
.clients img[alt="Take 5 Oil Change"] { height: 46px; }
.clients img[alt="FlowFi"] { height: 30px; }
.clients li:hover img { filter: none; opacity: 1; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.cases li { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cases .logo { width: auto; height: 32px; align-self: flex-start; }
.cases .where { margin-top: 1.25rem; color: var(--grey); font-size: .875rem; }
.cases h4 { margin: .25rem 0 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.015em; }
.cases li > p:not(.where):not(.num) { margin-top: .6rem; color: var(--grey); font-size: .9875rem; line-height: 1.55; flex: 1; }
.cases .num { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 2.1rem; line-height: 1; letter-spacing: -.035em; }
.cases .num span { display: block; margin-top: .45rem; font-size: .875rem; letter-spacing: 0; color: var(--grey); }
.fine { margin-top: 1.25rem; max-width: 48rem; color: var(--soft); font-size: .8125rem; line-height: 1.55; }

/* quote */
.quote { max-width: 48rem; padding-top: var(--section); }
.quote::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1.75rem; background: var(--blue); border-radius: 2px; }
.quote p { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.35rem); line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.quote footer { margin-top: 1.25rem; color: var(--grey); }
.quote footer strong { color: var(--ink); }

/* professor town */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li { white-space: nowrap; }
.chips li { padding: .45rem .85rem; border-radius: 999px; background: var(--panel); font-size: .9375rem; }

/* writing */
.tag + .head { margin-top: .75rem; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.head .link { white-space: nowrap; }
.posts { margin-top: 2rem; }
.posts a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 2rem; align-items: baseline; padding: 1.25rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.posts li:last-child a { border-bottom: 1px solid var(--line); }
.posts strong { font-size: 1.1875rem; letter-spacing: -.015em; font-weight: 700; }
.posts span { color: var(--grey); font-size: .9375rem; }
.posts a:hover strong { color: var(--blue); }

/* contact */
.contact { text-align: center; padding-bottom: var(--section); }
.contact h2 { font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4.2rem); }
.contact p { margin-top: 1rem; color: var(--grey); font-size: 1.125rem; }
.contact .row { justify-content: center; margin-top: 2rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--grey); font-size: .875rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* booking pop-up */
.book { width: min(62rem, calc(100vw - 2rem)); height: min(48rem, calc(100vh - 3rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 40px 100px -30px rgba(14, 17, 22, .45); overflow: hidden; }
.book[open] { display: flex; flex-direction: column; }
.book::backdrop { background: rgba(14, 17, 22, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.book header { display: flex; align-items: center; justify-content: space-between; padding: .75rem .75rem .75rem 1.5rem; border-bottom: 1px solid var(--line); }
.book header strong { font-weight: 700; }
.book .close { font: 700 .9375rem/1 var(--sans); color: var(--ink); background: var(--panel); border: 0; border-radius: 999px; height: 2.25rem; padding: 0 1rem; cursor: pointer; }
.book .close:hover { background: #e9ebef; }
.book iframe { flex: 1; width: 100%; border: 0; }
body.locked { overflow: hidden; }

@media (max-width: 920px) {
  .hero, .panel, .split { grid-template-columns: 1fr; }
  .brands { max-width: none; }
  .hero { min-height: 0; }
    .split > :last-child { padding-top: 0; }
  .photo { order: -1; max-height: none; aspect-ratio: 4 / 3.4; justify-self: stretch; }
  .three, .cases, .outcomes { grid-template-columns: 1fr; }
  .book { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (max-width: 520px) {
  .posts a { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .clients img { height: 30px; }
  .clients img[alt="Take 5 Oil Change"] { height: 36px; }
  .clients img[alt="FlowFi"] { height: 24px; }
  .row .btn { width: 100%; justify-content: center; }
  .panel { padding: 1.75rem 1.25rem; border-radius: var(--radius); }
  }

/* ---------- case studies page ---------- */
.cs-hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.cs-hero h1 { font-size: clamp(2.4rem, 1.3rem + 3.3vw, 4.2rem); max-width: 16em; }
.cs-hero .sub { margin-top: 1.25rem; max-width: 38rem; }
.cs-hero .row { margin-top: 1.75rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.stats div { padding-top: 1rem; border-top: 1px solid var(--ink); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; }
.stats dd { margin: 0; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.stats dt { color: var(--grey); font-size: .9375rem; }
.cs-hero .clients { margin-top: 2.5rem; }
.space > .cases { margin-top: 2rem; }

.group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem 2rem; align-items: baseline; padding-bottom: 1rem; }
.group-head h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.group-head p { color: var(--grey); }
.projects { width: 100%; border-collapse: collapse; font-size: 1rem; }
.projects thead th { text-align: left; font-weight: 400; font-size: .875rem; color: var(--grey); padding: .6rem 1rem .6rem 0; border-bottom: 1px solid var(--ink); }
.projects td, .projects tbody th { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.projects tbody th { font-weight: 700; width: 26%; }
.projects .ind { color: var(--grey); width: 20%; }
.projects .money { white-space: nowrap; text-align: right; padding-right: 0; font-size: 1.125rem; letter-spacing: -.01em; }
.projects thead th:last-child { text-align: right; padding-right: 0; }
.projects .money span { display: block; color: var(--grey); font-size: .8125rem; letter-spacing: 0; }
.space > .fine { margin-top: 2rem; }

@media (max-width: 920px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .group-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .projects thead { display: none; }
  .projects, .projects tbody, .projects tr { display: block; }
  .projects tr { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .projects td, .projects tbody th, .projects .ind, .projects tbody th { padding: 0; border: 0; width: auto; }
  .projects tbody th { grid-column: 1; }
  .projects .money { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .projects .ind { grid-column: 1; font-size: .9375rem; }
  .projects td:not(.ind):not(.money) { grid-column: 1; color: var(--text); }
}

/* ---------- nav with dropdowns ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }
.top { position: relative; z-index: 30; }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 5.5rem; }
.nav .name { font-weight: 700; text-decoration: none; font-size: 1.0625rem; letter-spacing: -.01em; margin-right: auto; }
.menu { display: flex; align-items: center; gap: .25rem; }
.menu > li { position: relative; }
.menu > li > a, .dd-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.5rem; padding: 0 .9rem; border: 0; border-radius: 999px; background: none; color: var(--grey); font: 400 .9875rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.menu > li > a:hover, .dd-btn:hover, .dd.open .dd-btn { color: var(--ink); background: rgba(14, 17, 22, .05); }
.menu [aria-current="page"] { color: var(--ink); font-weight: 700; }
.dd-btn svg { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.nav .btn { height: 2.5rem; padding: 0 1.1rem; font-size: .9375rem; }

.dd-panel { position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; padding: .5rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px -24px rgba(14, 17, 22, .3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
@media (prefers-reduced-motion: reduce) { .dd-panel, .dd.open .dd-panel { transition: none; transform: none; } }
.dd-work { width: 26rem; }
.dd-work a { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .9rem 1rem; border-radius: 12px; text-decoration: none; }
.dd-work a:hover { background: var(--panel); }
.dd-work strong { font-size: 1.0625rem; letter-spacing: -.01em; }
.dd-work span:not(.arr) { grid-column: 1; color: var(--grey); font-size: .9375rem; line-height: 1.45; }
.dd-work .arr { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--soft); }
.dd-work a:hover .arr { color: var(--blue); }
.dd-cases { width: 42rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
.dd-cases a { display: flex; flex-direction: column; padding: 1rem; border-radius: 12px; text-decoration: none; }
.dd-cases a:hover { background: var(--panel); }
.dd-cases img { width: auto; height: 26px; align-self: flex-start; }
.dd-cases .where { margin-top: 1rem; color: var(--soft); font-size: .8125rem; }
.dd-cases strong { margin-top: .2rem; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.dd-cases .num { margin-top: auto; padding-top: .9rem; font-size: .8125rem; color: var(--grey); }
.dd-cases .num b { display: block; color: var(--ink); font-weight: 400; font-size: 1.375rem; letter-spacing: -.03em; }
.dd-cases .all { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: .85rem 1rem; font-weight: 700; font-size: .9375rem; }
.dd-cases .all:hover { color: var(--blue); }

/* arrow that steps forward on hover */
.arr { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arr { transform: translateX(4px); }
.btn .arr { margin-left: .5rem; }
@media (prefers-reduced-motion: reduce) { .arr { transition: none; } }

@media (max-width: 920px) {
  .menu { display: none; }
  .nav { height: 4.5rem; }
}

/* ---------- hero background (pick one: data-bg on <body>) ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -5.5rem; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none; }
@media (max-width: 920px) { .hero::before { top: -4.5rem; } }

/* A: soft light in the two brand colours */
[data-bg="glow"] .hero::before {
  background:
    radial-gradient(42rem 30rem at 82% 28%, rgba(11, 107, 203, .16), transparent 70%),
    radial-gradient(36rem 26rem at 8% 92%, rgba(30, 61, 59, .12), transparent 70%),
    radial-gradient(30rem 22rem at 55% 0%, rgba(165, 233, 248, .28), transparent 70%),
    #fff;
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
}
/* B: faint graph paper that fades out */
[data-bg="grid"] .hero::before {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 75% at 60% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 75% at 60% 40%, #000 30%, transparent 85%);
}
/* C: Haaris's own photo, blurred into a soft backdrop */
[data-bg="photo"] .hero::before {
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,.35) 100%), url("../hero-bg.webp") center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
}
/* D: dark band, brand cards sit on it */
[data-bg="dark"] .hero::before { background: radial-gradient(50rem 34rem at 85% 20%, rgba(11, 107, 203, .35), transparent 70%), linear-gradient(180deg, #0b1424, #0e1116); }
:is([data-bg="dark"], [data-bg="toronto"]) .top .name, :is([data-bg="dark"], [data-bg="toronto"]) .hero h1 { color: #fff; }
:is([data-bg="dark"], [data-bg="toronto"]) .hero h1 .dim { color: #9fb0c8; }
:is([data-bg="dark"], [data-bg="toronto"]) .menu > li > a, :is([data-bg="dark"], [data-bg="toronto"]) .dd-btn { color: #b7bdc9; }
:is([data-bg="dark"], [data-bg="toronto"]) .menu > li > a:hover, :is([data-bg="dark"], [data-bg="toronto"]) .dd-btn:hover, :is([data-bg="dark"], [data-bg="toronto"]) .dd.open .dd-btn { color: #fff; background: rgba(255,255,255,.08); }
:is([data-bg="dark"], [data-bg="toronto"]) .hero { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
:is([data-bg="dark"], [data-bg="toronto"]) .brand.bf { background: #fff; color: var(--ink); }
:is([data-bg="dark"], [data-bg="toronto"]) .brand.bf .what { color: var(--grey); }
:is([data-bg="dark"], [data-bg="toronto"]) .brand.bf .go { color: var(--blue); }
:is([data-bg="dark"], [data-bg="toronto"]) .trust { border-top: 0; margin-top: 1rem; }
/* E: Toronto at night (Unsplash), darkened on the left so the headline stays readable */
[data-bg="toronto"] .hero::before {
  background:
    linear-gradient(90deg, rgba(7, 13, 25, .9) 0%, rgba(7, 13, 25, .72) 45%, rgba(7, 13, 25, .25) 100%),
    linear-gradient(180deg, rgba(7, 13, 25, .55) 0%, rgba(7, 13, 25, 0) 30%, rgba(7, 13, 25, 0) 70%, rgba(7, 13, 25, .7) 100%),
    url("../toronto-night.webp") 50% 72% / cover no-repeat #0b1424;
}
@media (max-width: 920px) {
  [data-bg="toronto"] .hero::before { background: linear-gradient(180deg, rgba(7, 13, 25, .35), rgba(7, 13, 25, .85) 55%), url("../toronto-night.webp") 50% 40% / cover no-repeat #0b1424; }
}

/* ---------- Toronto hero: editorial, square, grounded ---------- */
/* height comes from the content, not the window; the photo stretches to match the text */
[data-bg="toronto"] .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; min-height: 0; max-height: none; padding-top: clamp(1.5rem, 5vh, 3.5rem); padding-bottom: 0; }
[data-bg="toronto"] .hero > div:first-child { align-self: end; padding: 0 0 clamp(2rem, 5vh, 3rem); }
[data-bg="toronto"] .hero h1 { font-size: clamp(2.4rem, min(1.1rem + 3.3vw, 8.2vh), 4.4rem); }
[data-bg="toronto"] .photo { align-self: stretch; border-radius: 0; aspect-ratio: auto; height: auto; min-height: 22rem; max-height: none; box-shadow: none; }
[data-bg="toronto"] .photo picture { position: absolute; inset: 0; }
[data-bg="toronto"] .photo img { object-position: 50% 22%; }

/* the two companies: open columns on the skyline, not boxes */
[data-bg="toronto"] .brands { gap: 0; margin-top: clamp(1.75rem, 4vh, 2.75rem); border-top: 1px solid rgba(255, 255, 255, .2); }
[data-bg="toronto"] .brand.bf, [data-bg="toronto"] .brand.pt { position: relative; padding: 1.25rem 1.75rem 0 0; border-radius: 0; background: none; color: #fff; transition: none; }
[data-bg="toronto"] .brand:hover { transform: none; box-shadow: none; }
[data-bg="toronto"] .brand.pt { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, .2); }
[data-bg="toronto"] .brand::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; transition: width .35s var(--ease); }
[data-bg="toronto"] .brand.pt::before { left: 1.75rem; }
[data-bg="toronto"] .brand:hover::before { width: calc(100% - 1.75rem); }
[data-bg="toronto"] .brand.bf::before { background: #a5e9f8; }
[data-bg="toronto"] .brand.pt::before { background: #f0d656; }
[data-bg="toronto"] .brand .mark { color: #fff; }
[data-bg="toronto"] .brand.bf .what, [data-bg="toronto"] .brand.pt .what { color: #aeb8c8; }
[data-bg="toronto"] .brand.bf .go { color: #a5e9f8; }
[data-bg="toronto"] .brand.pt .go { color: #f0d656; }
@media (prefers-reduced-motion: reduce) { [data-bg="toronto"] .brand::before { transition: none; } }

/* logos sit on the dark band, directly under the hero, so they show on first load */
[data-bg="toronto"] .trust { position: relative; isolation: isolate; margin-top: 0; min-height: 0; padding-top: 1.4rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
[data-bg="toronto"] .trust::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; translate: -50% 0; background: #070d19; }
[data-bg="toronto"] .trust p { color: #8e99ab; }
[data-bg="toronto"] .trust img { filter: brightness(0) invert(1); opacity: .7; }
[data-bg="toronto"] .trust li:hover img { filter: brightness(0) invert(1); opacity: 1; }

@media (max-width: 920px) {
  [data-bg="toronto"] .hero { grid-template-columns: 1fr; padding-top: 0; }
  [data-bg="toronto"] .hero > div:first-child { padding: 0 0 2.5rem; }
  [data-bg="toronto"] .photo { aspect-ratio: 4 / 3.6; min-height: 0; margin-top: .5rem; }
}
@media (max-width: 520px) {
  [data-bg="toronto"] .brand.bf, [data-bg="toronto"] .brand.pt { padding-right: 0; padding-bottom: 1.25rem; }
  [data-bg="toronto"] .brand.pt { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  [data-bg="toronto"] .brand.pt::before { left: 0; }
}

/* photo treatments (preview): cut-out standing in the skyline, optional black and white */
[data-photo="bw"] .photo img, [data-photo="cut-bw"] .photo img { filter: grayscale(1) contrast(1.06); }
[data-photo^="cut"] .photo { background: none; overflow: visible; }
[data-photo^="cut"] .photo img { object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
[data-photo^="cut"] .photo img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* =================================================================
   Site-wide design language (matches the Toronto hero):
   square corners · thin rules · short coloured accent ticks · dark bands
   ================================================================= */
[data-bg="toronto"] { --radius: 0px; --night: #0b1424; --night-2: #070d19; --mist: #aeb8c8; --rule-dark: rgba(255, 255, 255, .16); --cyan: #a5e9f8; --gold: #f0d656; }

/* accent tick on top of every ruled column */
[data-bg="toronto"] :is(.three li, .outcomes li, .steps li, .cases li, .stats div) { position: relative; }
[data-bg="toronto"] :is(.three li, .outcomes li, .steps li, .cases li, .stats div)::after { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--blue); }

/* square tags instead of pills */
[data-bg="toronto"] .chips li { border-radius: 0; background: none; border: 1px solid var(--line); color: var(--ink); }
[data-bg="toronto"] .quote::before { border-radius: 0; }
[data-bg="toronto"] .btn.grey { background: none; box-shadow: inset 0 0 0 1px #c9cdd4; }
[data-bg="toronto"] .btn.grey:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- dark bands ---------- */
[data-bg="toronto"] .band { position: relative; isolation: isolate; margin-top: var(--section); padding-bottom: var(--section); color: #fff; }
[data-bg="toronto"] .band::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; translate: -50% 0; background: var(--night); }
[data-bg="toronto"] .band.top-band { margin-top: 0; }
[data-bg="toronto"] .band.top-band::before { top: -5.5rem; }
@media (max-width: 920px) { [data-bg="toronto"] .band.top-band::before { top: -4.5rem; } }
[data-bg="toronto"] .band.skyline::before {
  background:
    linear-gradient(180deg, rgba(7, 13, 25, .82) 0%, rgba(7, 13, 25, .55) 45%, rgba(7, 13, 25, .9) 100%),
    url("../toronto-night.webp") 50% 62% / cover no-repeat var(--night);
}
[data-bg="toronto"] .band :is(.h, h3, h4, strong, .mark) { color: #fff; }
[data-bg="toronto"] .band .h .dim { color: #9fb0c8; }
[data-bg="toronto"] .band :is(.sub, p, .steps span, dt) { color: var(--mist); }
[data-bg="toronto"] .band .tag { color: var(--cyan); }
[data-bg="toronto"] .band .link { color: var(--cyan); }
[data-bg="toronto"] .band .btn.grey { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
[data-bg="toronto"] .band .btn.grey:hover { box-shadow: inset 0 0 0 1px #fff; }
[data-bg="toronto"] .band :is(.clients, .three li, .outcomes li, .steps li, .steps li:last-child, .stats div, .cases li, .cases .num) { border-color: var(--rule-dark); }
[data-bg="toronto"] .band :is(.clients img, .trust img) { filter: brightness(0) invert(1); opacity: .72; }
[data-bg="toronto"] .band .clients li:hover img { filter: brightness(0) invert(1); opacity: 1; }
[data-bg="toronto"] .band :is(.outcomes li, .steps li, .stats div)::after { background: var(--cyan); }

/* BlackFrame AI band: the grey rounded panel opens up into the band */
[data-bg="toronto"] .band .panel { background: none; border-radius: 0; padding: 0; }
[data-bg="toronto"] .band .panel .btn.grey { background: none; }
[data-bg="toronto"] .band .steps li { border-top-color: var(--rule-dark); }
[data-bg="toronto"] .band .steps li:last-child { border-bottom-color: var(--rule-dark); }
[data-bg="toronto"] .steps li::before { content: counter(s, decimal-leading-zero); width: auto; height: auto; place-items: start; border-radius: 0; background: none; color: var(--soft); font-weight: 400; font-size: .8125rem; padding-top: .2rem; }
[data-bg="toronto"] .band .steps li::before { color: var(--cyan); }
[data-bg="toronto"] .band .steps li::after { display: none; }
[data-bg="toronto"] .band .outcomes li { border-top-color: var(--rule-dark); }
[data-bg="toronto"] .band .proof .sub { color: var(--mist); }

/* contact: skyline bookend, then the footer continues the dark */
[data-bg="toronto"] .contact.band { padding-top: var(--section); }
[data-bg="toronto"] .contact.band p { color: var(--mist); }
[data-bg="toronto"] .foot { position: relative; isolation: isolate; border-top: 1px solid var(--rule-dark); color: #8e99ab; }
[data-bg="toronto"] .foot::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; translate: -50% 0; background: var(--night-2); }
[data-bg="toronto"] .foot a:hover { color: #fff; }
[data-bg="toronto"] .contact.band + * { margin-top: 0; }

/* ---------- case studies page ---------- */
[data-bg="toronto"] .cs-hero.band { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
[data-bg="toronto"] .cs-hero.band .stats div { border-top-color: var(--rule-dark); }
[data-bg="toronto"] .cs-hero.band .stats dd { color: #fff; }
[data-bg="toronto"] .cs-hero.band .clients { border-color: var(--rule-dark); }
[data-bg="toronto"] .cases { gap: 2rem clamp(1.5rem, 3.5vw, 3rem); }
[data-bg="toronto"] .cases li { padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--ink); border-radius: 0; }
[data-bg="toronto"] .projects thead th { border-bottom-color: var(--ink); }

/* client logos on dark bands: square white tiles, logos in their real colours */
[data-bg="toronto"] .band .clients { gap: .75rem; padding: 1.5rem 0; }
[data-bg="toronto"] .band .clients li { display: grid; place-items: center; height: 4.25rem; padding: 0 1.25rem; background: #fff; }
[data-bg="toronto"] .band .clients img, [data-bg="toronto"] .band .clients li:hover img { filter: none; opacity: 1; height: 32px; }
[data-bg="toronto"] .band .clients img[alt="Take 5 Oil Change"] { height: 40px; }
[data-bg="toronto"] .band .clients img[alt="FlowFi"] { height: 24px; }
@media (max-width: 520px) {
  [data-bg="toronto"] .band .clients li { height: 3.5rem; padding: 0 .9rem; }
  [data-bg="toronto"] .band .clients img, [data-bg="toronto"] .band .clients li:hover img { height: 24px; }
  [data-bg="toronto"] .band .clients img[alt="Take 5 Oil Change"] { height: 30px; }
  [data-bg="toronto"] .band .clients img[alt="FlowFi"] { height: 18px; }
}
[data-bg="toronto"] .band p.tag { color: var(--cyan); }
@media (max-width: 920px) {
  [data-photo^="cut"] .photo img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
}

/* ---------- solid dark hero (skyline kept for the closing call to action only) ---------- */
[data-bg="toronto"] { --night: #0e1013; --night-2: #0a0b0d; --rule-dark: rgba(255, 255, 255, .13); }
[data-bg="toronto"] .hero::before { background: var(--night); }
[data-bg="toronto"] .trust::before { background: var(--night); }
[data-bg="toronto"] .trust { border-top-color: var(--rule-dark); }
[data-bg="toronto"] .hero h1 .dim { color: #8f949c; }
[data-photo="cut-bw"] .photo img { filter: grayscale(1) contrast(1.05) brightness(1.02); }
@media (max-width: 920px) { [data-bg="toronto"] .hero::before { background: var(--night); } }
[data-bg="toronto"] :is(.trust, .foot)::before { top: -1px; }
[data-bg="toronto"] .band .h .dim { color: #8f949c; }

/* ---------- hero v3: whole first screen dark, original photo cropped ---------- */
/* hero + logo strip fill the window (nav 5.5rem + strip ~5.5rem) */
[data-bg="toronto"] .hero { min-height: max(30rem, calc(100svh - 11rem)); }
[data-bg="toronto"] .photo { overflow: hidden; background: #1a1c20; }
[data-bg="toronto"] .photo picture { position: absolute; inset: 0; }
[data-bg="toronto"] .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 20%; transform: scale(1.12); transform-origin: 58% 30%; }
[data-bg="toronto"] .trust img[alt="University of Waterloo"], [data-bg="toronto"] .trust li:hover img[alt="University of Waterloo"] { filter: none; opacity: .92; }
@media (max-width: 920px) {
  [data-bg="toronto"] .hero { min-height: 0; }
  [data-bg="toronto"] .photo { aspect-ratio: 4 / 3.4; }
}
[data-bg="toronto"] .hero > div:first-child { align-self: center; padding: clamp(1.5rem, 4vh, 3rem) 0; }
@media (max-width: 920px) { [data-bg="toronto"] .hero > div:first-child { padding: 0 0 2.5rem; } }

/* ---------- hero v4: smaller b/w photo, headline higher, more air ---------- */
[data-bg="toronto"] .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding-top: clamp(2.5rem, 8vh, 5rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
[data-bg="toronto"] .hero > div:first-child { align-self: start; padding: 0; }
[data-bg="toronto"] .hero h1 { line-height: 1.08; }
[data-bg="toronto"] .brands { margin-top: clamp(2.5rem, 6vh, 3.75rem); }
[data-bg="toronto"] .brand .what { margin-top: .2rem; }
[data-bg="toronto"] .brand .go { margin-top: 1rem; }
[data-bg="toronto"] .photo { align-self: start; aspect-ratio: 4 / 5; min-height: 0; max-height: calc(100svh - 14rem); width: 100%; margin-top: .4rem; }
[data-bg="toronto"] .photo img { filter: grayscale(1) contrast(1.05); transform: scale(1.08); object-position: 56% 22%; }
@media (max-width: 920px) {
  [data-bg="toronto"] .hero { grid-template-columns: 1fr; padding-top: 0; gap: 2rem; }
  [data-bg="toronto"] .photo { aspect-ratio: 4 / 3.4; max-height: none; margin-top: .5rem; }
}
[data-bg="toronto"] .hero { align-content: center; }
[data-bg="toronto"] .hero h1 .dim { display: block; }
[data-bg="toronto"] .photo { max-height: calc(100svh - 19rem); justify-self: end; width: auto; height: min(calc(100svh - 19rem), 30rem); }
@media (max-width: 920px) { [data-bg="toronto"] .photo { width: 100%; height: auto; justify-self: stretch; } }
[data-bg="toronto"] .hero { padding-top: clamp(1.25rem, 4.5vh, 5rem); padding-bottom: clamp(1.25rem, 4vh, 4rem); }
[data-bg="toronto"] .hero h1 { font-size: clamp(2.4rem, min(1.1rem + 3.3vw, 7.4vh), 4.4rem); }
[data-bg="toronto"] .brands { margin-top: clamp(1.75rem, 5vh, 3.75rem); }
[data-bg="toronto"] .brand .go { margin-top: clamp(.6rem, 1.6vh, 1rem); }
/* trust logos in their own colours (white-text versions for the dark strip) */
[data-bg="toronto"] .trust img, [data-bg="toronto"] .trust li:hover img { filter: none; opacity: .95; }

/* ---------- hero right side: proof instead of a photo ---------- */
[data-side="results"] .side-stats, [data-side="stats"] .side-results { display: none; }
.side { align-self: center; color: #fff; }
.side-head { color: #8e99ab; font-size: .875rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule-dark, rgba(255,255,255,.14)); }
.side-results li a { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1.5rem; align-items: end; padding: 1.15rem 0; border-bottom: 1px solid var(--rule-dark, rgba(255,255,255,.14)); text-decoration: none; }
.side-results img { grid-column: 1 / -1; width: auto; height: 22px; filter: brightness(0) invert(1); opacity: .85; }
.side-results .what { color: #c3cad6; font-size: .9375rem; line-height: 1.4; }
.side-results .fig { text-align: right; font-size: 1.625rem; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.side-results .fig small { display: block; margin-top: .3rem; color: #8e99ab; font-size: .75rem; letter-spacing: 0; }
.side-results li a:hover .what { color: #fff; }
.side-all { display: inline-flex; margin-top: 1.25rem; color: var(--cyan, #a5e9f8); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.side-stats dl { display: grid; gap: 0; }
.side-stats dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-dark, rgba(255,255,255,.14)); }
.side-stats dl div:first-child { border-top: 1px solid var(--rule-dark, rgba(255,255,255,.14)); }
.side-stats dd { margin: 0; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.side-stats dt { color: #8e99ab; font-size: .875rem; text-align: right; max-width: 11rem; }
.side-stats blockquote { margin: 1.75rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--gold, #f0d656); }
.side-stats blockquote p { font-size: 1.125rem; line-height: 1.45; color: #e6e9ee; }
.side-stats blockquote footer { margin-top: .6rem; color: #8e99ab; font-size: .8125rem; }
@media (max-width: 920px) { .side { order: 2; } }
.side-results img[alt="Factory Tire"] { filter: none; opacity: 1; }
.side-all .arr { margin-left: .4rem; }

/* ---------- BlackFrame AI band v2: short copy, benefits lead ---------- */
.bf-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.bf .h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.25rem); }
[data-bg="toronto"] .bf .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
[data-bg="toronto"] .bf .outcomes li { padding-top: 1.5rem; }
[data-bg="toronto"] .bf .outcomes h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.35rem); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; max-width: 9em; }
[data-bg="toronto"] .bf .outcomes p { margin-top: .9rem; font-size: 1.0625rem; color: var(--mist); }
.how { margin-top: clamp(3.5rem, 7vw, 5rem); }
.how-label { color: #8e99ab; font-size: .875rem; }
[data-bg="toronto"] .bf .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; }
[data-bg="toronto"] .bf .steps li, [data-bg="toronto"] .bf .steps li:last-child { display: block; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--rule-dark); }
[data-bg="toronto"] .bf .steps li::before { display: block; padding: 0 0 .5rem; }
[data-bg="toronto"] .bf .steps strong { display: block; font-size: 1.0625rem; }
[data-bg="toronto"] .bf .steps span { display: block; margin-top: .2rem; font-size: .9375rem; color: #8e99ab; }
[data-bg="toronto"] .bf .proof { margin-top: clamp(3rem, 6vw, 4.5rem); }
[data-bg="toronto"] .bf .results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
[data-bg="toronto"] .bf .clients { margin-top: 1rem; }
@media (max-width: 920px) {
  [data-bg="toronto"] .bf .outcomes { grid-template-columns: 1fr; }
  [data-bg="toronto"] .bf .steps { grid-template-columns: 1fr 1fr; }
}
/* bank / fund logos (white, from 0.5 Labs) */
[data-bg="toronto"] .trust img[alt="RBC Royal Bank"] { height: 32px; }
[data-bg="toronto"] .trust img[alt="Scotiabank"] { height: 21px; }
[data-bg="toronto"] .trust img[alt="Harvest ETFs"] { height: 19px; }
[data-bg="toronto"] .trust img.mono { opacity: .9; }
[data-bg="toronto"] .trust ul { row-gap: 1.25rem; }
/* one-line logo strip */
[data-bg="toronto"] .trust { flex-wrap: nowrap; gap: 1rem clamp(1.5rem, 3vw, 2.75rem); }
[data-bg="toronto"] .trust p { flex: none; margin-right: 0; }
[data-bg="toronto"] .trust ul { flex-wrap: wrap; gap: 1rem clamp(1.4rem, 2.6vw, 2.5rem); }
[data-bg="toronto"] .trust img[alt="University of Waterloo"] { height: 27px; }
[data-bg="toronto"] .trust img[alt="CPA Ontario"] { height: 31px; }
[data-bg="toronto"] .trust img[alt="Government of Canada"] { height: 19px; }
[data-bg="toronto"] .trust img[alt="RBC Royal Bank"] { height: 27px; }
[data-bg="toronto"] .trust img[alt="Scotiabank"] { height: 17px; }
[data-bg="toronto"] .trust img[alt="Harvest ETFs"] { height: 15px; }
[data-bg="toronto"] .side-stats dt { max-width: 9.5rem; }
@media (max-width: 920px) { [data-bg="toronto"] .trust { flex-wrap: wrap; } }
/* hero stats v2: bigger numbers, readable labels, no quote */
[data-bg="toronto"] .side-stats dl div { padding: 1.35rem 0; gap: 1.25rem; align-items: center; }
[data-bg="toronto"] .side-stats dd { font-size: clamp(2.6rem, 1.4rem + 3vw, 4.25rem); white-space: nowrap; }
[data-bg="toronto"] .side-stats dt { max-width: 10rem; color: #c3cad6; font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); line-height: 1.35; }
[data-bg="toronto"] .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
[data-bg="toronto"] .side-stats dt { max-width: 11.5rem; }
@media (max-width: 920px) { [data-bg="toronto"] .hero { grid-template-columns: 1fr; } }

/* ---------- featured work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.75rem clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.wk { grid-column: span 2; }
.wk-lg { grid-column: span 3; }
.wk-where { margin-top: 1.25rem; color: var(--grey); font-size: .875rem; }
.wk h3 { margin-top: .35rem; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; max-width: 26em; }
.wk-lg h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); }

/* the mock interfaces */
.viz { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: clamp(1rem, 2.4vw, 1.75rem); background: #0e1013; color: #e8ebf0; font-size: .8125rem; line-height: 1.4; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.viz::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.viz > * { position: relative; }
.viz::after { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2px; background: var(--cyan, #a5e9f8); }
.wk:nth-child(3) .viz::after { background: var(--gold, #f0d656); }
.bubble { max-width: 82%; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.14); background: #161a20; }
.bubble.me { align-self: flex-end; background: #0b6bcb; border-color: #0b6bcb; color: #fff; }
.bubble.ai { align-self: flex-start; display: flex; flex-wrap: wrap; gap: .35rem; }
.ln { display: block; flex-basis: 100%; height: 7px; background: rgba(255,255,255,.22); }
.ln.w90 { max-width: 90%; } .ln.w75 { max-width: 75%; } .ln.w70 { max-width: 70%; } .ln.w60 { max-width: 60%; }
.src { margin-top: .3rem; padding: .15rem .45rem; border: 1px solid rgba(165,233,248,.45); color: #a5e9f8; font-size: .6875rem; }
.typing { display: flex; gap: 4px; padding-left: .2rem; }
.typing i { width: 6px; height: 6px; background: rgba(255,255,255,.35); }
.viz-map { gap: .5rem; }
.map-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: .9rem; }
.map-row span { color: #aeb8c8; }
.map-row b { display: block; height: 10px; width: var(--w); background: linear-gradient(90deg, #a5e9f8 0 60%, rgba(165,233,248,.35) 60%); }
.map-key { display: flex; gap: 1.25rem; margin-top: .35rem; color: #8e99ab; font-size: .6875rem; }
.map-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .35rem; background: #a5e9f8; vertical-align: -1px; }
.map-key span + span::before { background: rgba(165,233,248,.35); }
.mod-title { color: #f0d656; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.mod { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #aeb8c8; }
.mod i { width: 12px; height: 12px; border: 1px solid rgba(255,255,255,.4); flex: none; }
.mod.done i { background: #f0d656; border-color: #f0d656; }
.mod.now { color: #fff; } .mod.now i { border-color: #f0d656; }
.chan { color: #8e99ab; font-weight: 700; }
.msg { display: flex; gap: .6rem; align-items: flex-start; }
.msg strong { display: block; color: #fff; font-size: .75rem; margin-bottom: .15rem; }
.msg > div { flex: 1; display: flex; flex-direction: column; gap: .3rem; color: #c3cad6; }
.av { width: 26px; height: 26px; flex: none; background: #3a4150; }
.av.bot { background: #a5e9f8; }
.call-top { display: flex; align-items: center; gap: .5rem; color: #8e99ab; font-size: .75rem; }
.call-top .dot { width: 8px; height: 8px; background: #3fd47a; }
@media (max-width: 920px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .wk, .wk-lg { grid-column: span 1; }
  .wk-lg:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .wk, .wk-lg, .wk-lg:first-child { grid-column: auto; }
  .map-row { grid-template-columns: 7.5rem 1fr; }
}
.msg .ln { flex: none; width: 100%; height: 7px; }
.wk-lg .viz { font-size: .9375rem; gap: .8rem; padding: clamp(1.25rem, 3.5vw, 2.75rem); }
.wk-lg .ln { height: 9px; }
.wk-lg .map-row { grid-template-columns: 11rem 1fr; }
.wk-lg .map-row b { height: 12px; }
@media (max-width: 600px) { .wk-lg .map-row { grid-template-columns: 8rem 1fr; } }
[data-bg="toronto"] .trust img[alt="RBC Royal Bank"] { height: 34px; }
[data-bg="toronto"] .trust img[alt="Scotiabank"] { height: 19px; }
[data-bg="toronto"] .trust img[alt="Harvest ETFs"] { height: 16px; }
/* featured work: real photography */
.photo-viz { padding: 0; display: block; background: #0e1013; }
.photo-viz::before { display: none; }
.photo-viz img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.wk:hover .photo-viz img { transform: scale(1.03); }
.photo-viz::after { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .photo-viz img { transition: none; } }
.wk .viz.photo-viz { padding: 0; }

/* featured work cards link to their case pages */
.wk-link { display: block; color: inherit; text-decoration: none; }
.wk-more { display: inline-flex; gap: .4rem; margin-top: .75rem; color: var(--blue); font-weight: 700; font-size: .9375rem; }
.wk-link:hover h3 { color: var(--blue); }

/* ---------- case study pages ---------- */
.case .cs-top { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.cs-back { display: inline-flex; gap: .5rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); color: #8e99ab; font-size: .9375rem; text-decoration: none; }
.cs-back:hover { color: #fff; }
.case .cs-top h1 { margin-top: 1rem; font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); max-width: 16em; color: #fff; }
.cs-lede { margin-top: 1.5rem; max-width: 40rem; color: #c3cad6 !important; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.55; }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cs-stats div { position: relative; display: flex; flex-direction: column; gap: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dark); }
.cs-stats div::after { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--cyan); }
.cs-stats dd { margin: 0; color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1; letter-spacing: -.03em; }
.cs-stats dt { color: #aeb8c8; font-size: 1rem; }
.cs-photo { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 16 / 7; overflow: hidden; background: #0e1013; }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 6rem); }
.cs-block h2 { position: relative; padding-top: 1.1rem; border-top: 1px solid var(--ink); font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); font-weight: 400; letter-spacing: -.025em; }
.cs-block h2::after { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--blue); }
.cs-block ul { margin-top: 1.25rem; display: grid; gap: .85rem; }
.cs-block li { position: relative; padding-left: 1.25rem; color: var(--grey); font-size: 1.0625rem; line-height: 1.6; }
.cs-block li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--ink); }
.cs-stack p { margin-top: 1.25rem; color: var(--grey); font-size: 1.0625rem; }
.cs-next { display: block; margin-top: var(--section); padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.cs-next-label { display: block; color: var(--grey); font-size: .875rem; }
.cs-next-title { display: block; margin-top: .4rem; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); letter-spacing: -.025em; color: var(--ink); }
.cs-next:hover .cs-next-title { color: var(--blue); }
@media (max-width: 760px) {
  .cs-stats, .cs-body { grid-template-columns: 1fr; }
  .cs-photo { aspect-ratio: 4 / 3; }
}
.cs-photo { width: 100vw; margin: 0 0 0 calc(50% - 50vw); max-height: 70vh; }

/* ---------- alternating photo + text sections (Speaking, Professor Town) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.feature-photo { position: relative; margin: 0; aspect-ratio: 6 / 5; overflow: hidden; background: #0e1013; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo::after { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2px; background: var(--blue); }
.feature-flip .feature-photo { order: 2; }
.feature-flip .feature-photo::after { background: var(--gold, #f0d656); }
.feature-copy .h2 { margin-top: 1rem; }
.feature-copy .sub { margin-top: 1.25rem; max-width: 34rem; }
.feature-copy .chips { margin-top: 1.5rem; }
.feature-copy .row { margin-top: 2rem; }
[data-bg="toronto"] .feature-copy .chips li { padding: .4rem .75rem; font-size: .9375rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-photo { order: 0; }
  .feature-photo { aspect-ratio: 16 / 10; }
}

/* ---------- de-template pass ---------- */
/* accent ticks: only the two brand columns in the hero keep them */
[data-bg="toronto"] :is(.three li, .outcomes li, .steps li, .cases li, .stats div)::after,
.viz::after, .photo-viz::after, .feature-photo::after,
.cs-stats div::after, .cs-block h2::after,
[data-bg="toronto"] .band :is(.outcomes li, .steps li, .stats div)::after { display: none !important; }
.quote::before, [data-bg="toronto"] .quote::before { display: none; }
.cs-block li::before { width: 5px; height: 5px; top: .75em; background: var(--soft); }

/* section heads: plain names, no eyebrow */
.bf-sub { margin-top: .9rem; color: var(--mist, #aeb8c8); font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); max-width: 34rem; }
.bf-head { align-items: flex-end; }
.feature-copy .h2 { margin-top: 0; }
.feature-copy .sub + .sub { margin-top: .9rem; }

/* links without arrows read as links */
.wk-more { color: var(--grey); font-weight: 400; font-size: .9375rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line); }
.wk-link:hover .wk-more { color: var(--ink); text-decoration-color: currentColor; }
.wk-link:hover h3 { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.feature-copy .link, .contact .link, .bf .link, .head .link { font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
.wk h3 { font-weight: 400; letter-spacing: -.02em; }

/* one continuous dark block from hero into BlackFrame AI */
[data-bg="toronto"] .band.bf { margin-top: 0; border-top: 1px solid var(--rule-dark); }
[data-bg="toronto"] .band.bf::before { top: -1px; }

/* tighter, less uniform rhythm */
:root { --section: clamp(4rem, 8vw, 6.5rem); }
.work-grid { row-gap: 2.25rem; }

/* ================== round 3: logos, about, ticker, reveals, footer ================== */

/* brand logos in the hero columns */
[data-bg="toronto"] .brand .mark { display: flex; align-items: flex-end; height: 3.5rem; }
.brand .mark img { width: auto; display: block; }
.brand.bf .mark img { height: 1.375rem; margin-bottom: .35rem; }
.brand.pt .mark img { height: 3.5rem; }
[data-bg="toronto"] .brand .what { margin-top: .7rem; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 25%; }
.about-lede { margin-top: 1.25rem; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.3; letter-spacing: -.02em; max-width: 24em; }
.about-copy .sub { margin-top: 1.1rem; max-width: 34rem; }
.about-copy .link { display: inline-block; margin-top: 1.75rem; font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 4 / 3.6; } }

/* moving text bar */
.ticker { margin-top: var(--section); padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); }
.ticker-track { display: flex; align-items: center; gap: .32em; width: max-content; font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1; letter-spacing: -.035em; white-space: nowrap; will-change: transform; }
.ticker-track span { padding-right: .05em; }
.ticker-track svg { width: .24em; height: .24em; margin: 0 .14em; flex: none; fill: var(--ink); }
[data-bg="toronto"] .band.bf { margin-top: 0; }
.ticker + .band.bf { border-top: 0; }

/* scroll reveals (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .work-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .work-grid [data-reveal]:nth-child(4) { transition-delay: .08s; }
  .js .work-grid [data-reveal]:nth-child(5) { transition-delay: .16s; }
}

/* big footer */
.big-foot { display: block; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.5rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot-top .name { color: #fff; font-weight: 700; text-decoration: none; }
.foot-top ul { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.foot-mark { margin: clamp(2rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem); color: #fff; font-size: clamp(3.5rem, 15.6vw, 15.5rem); line-height: .82; letter-spacing: -.055em; white-space: nowrap; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-dark, rgba(255,255,255,.13)); font-size: .875rem; }
.foot-mark { display: block; width: max-content; }

/* ================== round 4: wide layout, photo in hero, stat row ================== */
/* page width and side margins match the Vercel build: up to 1920px, 20px / 40px gutters */
:root { --pad: 1.25rem; }
@media (min-width: 48rem) { :root { --pad: 2.5rem; } }
.wrap { max-width: 120rem; padding: 0 var(--pad); }

/* hero: words left, photo right */
[data-bg="toronto"] .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; padding-top: clamp(2rem, 6vh, 4.5rem); padding-bottom: 0; min-height: 0; }
[data-bg="toronto"] .hero > div:first-child { align-self: end; padding: 0; }
[data-bg="toronto"] .hero h1 { font-size: clamp(2.6rem, min(1rem + 5vw, 10vh), 7.5rem); line-height: 1.02; max-width: 12em; }
[data-bg="toronto"] .brands { max-width: 46rem; }
.hero-photo { margin: 0; align-self: end; aspect-ratio: 4 / 4.6; max-height: calc(100svh - 9rem); width: 100%; overflow: hidden; background: #1a1c20; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 22%; filter: grayscale(1) contrast(1.05); }
@media (max-width: 920px) {
  [data-bg="toronto"] .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3.6; max-height: none; }
}

/* stats: one row under the hero */
.stat-row { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); margin: 0; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(1.5rem, 4vh, 2.5rem); color: #fff; }
.stat-row::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; translate: -50% 0; background: var(--night); }
.stat-row div { display: flex; flex-direction: column-reverse; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--rule-dark); }
.stat-row dd { margin: 0; font-size: clamp(2.4rem, 1.4rem + 3vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.stat-row dt { color: #aeb8c8; font-size: clamp(.9375rem, .85rem + .3vw, 1.125rem); }
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr; gap: 1.25rem; } }
.stat-row div { flex-direction: column; }
[data-bg="toronto"] .hero { align-items: stretch; }
[data-bg="toronto"] .hero > div:first-child { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2rem, 5vh, 3.5rem); align-self: stretch; }
[data-bg="toronto"] .brands { margin-top: 0; }
@media (max-width: 920px) { [data-bg="toronto"] .hero > div:first-child { display: block; } [data-bg="toronto"] .brands { margin-top: 2rem; } }

/* ================== round 5: curved sheets, stacked PT/BlackFrame, colour photo ================== */
.hero-photo img { filter: none; }

/* sheets: full-width panels with rounded top corners that slide over the section before */
.sheet { position: relative; isolation: isolate; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.sheet::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; border-radius: 1.5rem 1.5rem 0 0; background: #fff; }
@media (min-width: 48rem) { .sheet::before { border-radius: 2rem 2rem 0 0; } }
.sheet.on-dark::after { content: ""; position: absolute; z-index: -2; top: 0; height: 2.5rem; left: 50%; width: 100vw; translate: -50% 0; background: var(--night); }
.sheet-dark { color: #fff; }
.sheet-dark::before { background: var(--night); box-shadow: 0 -30px 60px -30px rgba(0,0,0,.35); }
.sheet-dark .sub, .sheet-dark .rows span { color: #aeb8c8; }
.sheet-dark .link { color: #fff; }
.sheet-dark .rows li { border-color: var(--rule-dark); }
.sheet-dark .site-card { border-color: rgba(255,255,255,.12); }
[data-bg="toronto"] .work.sheet { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* the stack: Professor Town sticks, BlackFrame slides over it */
.stack { position: relative; }
.pt-sec { position: sticky; top: 0; z-index: 1; transform-origin: 50% 0; }
.bf-sec { z-index: 2; }
.work.sheet { z-index: 3; }

/* ticker sits at the top of the first sheet, no white gap above it */
.pt-sec .ticker { margin-top: calc(-1 * clamp(3.5rem, 7vw, 6rem) + .5rem); margin-bottom: clamp(3rem, 6vw, 5rem); border-top: 0; }

/* two-column layout used by both sections */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.split2 .h2 { font-size: clamp(2.6rem, 1.3rem + 4vw, 5.5rem); line-height: 1; }
.split2-lede { margin-top: 1.25rem; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.25; letter-spacing: -.02em; max-width: 20em; }
.split2-left .sub { margin-top: 1.25rem; max-width: 34rem; }
.split2-left .row { margin-top: 2rem; }
.split2-left .link { font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
.site-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; aspect-ratio: 16 / 10; background: #f4f4f2; }
.site-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.site-card:hover img { transform: scale(1.02); }
.rows { margin-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: .35rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.rows strong { font-weight: 400; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); letter-spacing: -.02em; line-height: 1.2; }
.rows span { color: var(--grey); font-size: .9875rem; line-height: 1.5; }
@media (max-width: 920px) {
  .split2 { grid-template-columns: 1fr; }
  .pt-sec { position: relative; }
}
@media (max-width: 560px) { .rows li { grid-template-columns: 1fr; } }

/* quote on its own */
.quote-sec .quote { margin-top: 0; }

/* balance the two columns: list on the left, facts under the screenshot on the right */
.split2 { align-items: stretch; }
.split2 .h2 { font-size: clamp(2.6rem, 1.3rem + 3.4vw, 4.75rem); }
.rows-left { margin-top: clamp(2rem, 4vw, 3rem); }
.split2-right { display: flex; flex-direction: column; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.facts div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts dt { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; }
.facts dd { margin: .45rem 0 0; color: var(--grey); font-size: .9375rem; line-height: 1.45; max-width: 22em; }
.sheet-dark .facts div { border-color: var(--rule-dark); }
.sheet-dark .facts dd { color: #aeb8c8; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div:nth-last-child(2) { border-bottom: 0; } }

/* speaking: muted sheet, same two-column system, numbered talk list */
.sheet-muted::before { background: #f3f2ef; }
.sheet.flat::before { border-radius: 0; }
.sp-sec { z-index: 4; }
.quote-sec.sheet { padding-top: 0; z-index: 4; }
.talks { border-top: 1px solid var(--ink); }
.talks li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); padding: clamp(1.4rem, 2.5vw, 2rem) 0; border-bottom: 1px solid #dcd9d2; }
.talks .n { color: var(--soft); font-size: .875rem; padding-top: .55rem; font-variant-numeric: tabular-nums; }
.talks strong { display: block; font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; }
.talks p { margin-top: .6rem; color: var(--grey); max-width: 32rem; }
.talks .fmt { display: block; margin-top: .75rem; font-size: .8125rem; color: var(--ink); }
#writing { position: relative; z-index: 4; background: #fff; }
.sp-sec .split2-left { display: flex; flex-direction: column; }
.sp-quote { margin-top: auto; padding-top: clamp(2.5rem, 5vw, 4rem); max-width: 34rem; }
.sp-quote p { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.35; }
@media (max-width: 920px) { .sp-quote { margin-top: 2.5rem; padding-top: 0; } }

/* smaller hero photo */
[data-bg="toronto"] .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hero-photo { max-height: min(calc(100svh - 12rem), 40rem); aspect-ratio: 4 / 5; justify-self: end; }
@media (max-width: 920px) { .hero-photo { max-height: none; aspect-ratio: 4 / 3.2; } }

/* fit hero + stats in the first screen */
[data-bg="toronto"] .nav { height: 4.5rem; }
[data-bg="toronto"] .hero { padding-top: clamp(1rem, 3vh, 3rem); gap: clamp(2rem, 4vw, 5rem); }
[data-bg="toronto"] .hero h1 { font-size: clamp(2.4rem, min(1rem + 4vw, 7.2vh), 6.5rem); line-height: 1.02; }
[data-bg="toronto"] .hero > div:first-child { gap: clamp(1.25rem, 3.5vh, 3rem); }
[data-bg="toronto"] .brand.bf, [data-bg="toronto"] .brand.pt { padding-top: clamp(.75rem, 1.8vh, 1.25rem); }
[data-bg="toronto"] .brand .mark { height: clamp(2.25rem, 5vh, 3.5rem); }
.brand.pt .mark img { height: clamp(2.25rem, 5vh, 3.5rem); }
.brand.bf .mark img { height: clamp(1rem, 2.2vh, 1.375rem); }
[data-bg="toronto"] .brand .what { margin-top: .4rem; font-size: .875rem; }
[data-bg="toronto"] .brand .go { margin-top: clamp(.4rem, 1.2vh, 1rem); }
.hero-photo { max-height: calc(100svh - 17rem); }
.stat-row { padding: clamp(1.25rem, 3vh, 3rem) 0 clamp(1.25rem, 3vh, 2.5rem); }
.stat-row div { padding-top: .75rem; gap: .3rem; }
.stat-row dd { font-size: clamp(2rem, min(1rem + 3vw, 7vh), 4.5rem); }
@media (max-width: 920px) { .hero-photo { max-height: none; } }

/* bigger headline, sitting lower in the space above the brand columns */
[data-bg="toronto"] .hero h1 { font-size: clamp(2.6rem, min(1rem + 5vw, 9vh), 8rem); margin: auto 0; padding-top: clamp(.5rem, 3vh, 2.5rem); }
[data-bg="toronto"] .brands { margin-top: 0; }
@media (max-width: 920px) { [data-bg="toronto"] .hero h1 { margin: 0; padding-top: 0; } }

/* phones and tablets: one column hero (overrides the desktop sizing above) */
@media (max-width: 920px) {
  [data-bg="toronto"] .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-top: .5rem; }
  [data-bg="toronto"] .hero > div:first-child { display: block; }
  [data-bg="toronto"] .hero h1 { font-size: clamp(2.4rem, 10.5vw, 4rem); margin: 0; padding-top: 0; }
  [data-bg="toronto"] .brands { margin-top: 2rem; }
  .hero-photo { order: -1; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3.4; justify-self: stretch; }
}

/* ---------- booking pop-up: qualifying questions ----------
   Same language as the page: warm sheet, hairline rows, numbered like the Speaking list. */
.book { border-radius: 2rem; }
.book.q-mode { width: min(44rem, calc(100vw - 2rem)); height: fit-content; max-height: min(50rem, calc(100dvh - 2rem)); background: #f3f2ef; color: var(--ink); }
.book.q-mode header { padding: 1.25rem 1.25rem 0 clamp(1.5rem, 5vw, 3.25rem); border: 0; }
.book.q-mode header strong { font-size: .875rem; font-weight: 400; color: var(--grey); font-variant-numeric: tabular-nums; }
.book.q-mode .close { background: transparent; box-shadow: inset 0 0 0 1px #d9d6d0; font-weight: 400; }
.book.q-mode .close:hover { background: #fff; }
.book.q-mode iframe { display: none; }
.book.cal-mode .q { flex: none; }
.q { flex: 1; min-height: 0; overflow-y: auto; }
.q .sr, .q-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.q-bar { height: 2px; margin: 1.25rem clamp(1.5rem, 5vw, 3.25rem) 0; background: #e2dfd9; }
.q-bar i { display: block; height: 100%; background: var(--blue); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.q-body { padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.25rem) 0; }
.q-title { margin: 0; font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; outline: none; }
.q-help { margin: .875rem 0 0; color: var(--grey); font-size: 1.0625rem; line-height: 1.55; max-width: 32rem; }

/* answers: hairline rows, numbered */
.q-opts { margin-top: 2rem; border-top: 1px solid var(--ink); }
@media (min-width: 40rem) { .q-opts.two { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: 2rem; } .q-opts.two .q-opt:nth-child(-n+2) { border-top: 0; } }
.q-opt { display: grid; grid-template-columns: 2.25rem 1fr 1.375rem; align-items: center; gap: 0 .75rem; width: 100%; min-height: 4.25rem; padding: .875rem 0; text-align: left; font: 400 1.25rem/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid #dcd9d3; border-radius: 0; cursor: pointer; }
.q-opt .k { font-size: .8125rem; letter-spacing: 0; color: var(--soft); font-variant-numeric: tabular-nums; }
.q-opt small { display: block; margin-top: .25rem; font-size: .9375rem; letter-spacing: 0; color: var(--grey); }
.q-opt .t { transition: color .15s; }
.q-opt .dot { width: 1.375rem; height: 1.375rem; border-radius: 50%; box-shadow: inset 0 0 0 1px #c9c5be; transition: box-shadow .15s, background .15s; display: grid; place-items: center; }
.q-opts.many .dot { border-radius: 5px; }
.q-opt .dot svg { width: .75rem; height: .75rem; opacity: 0; transition: opacity .15s; }
.q-opt:hover .t { color: var(--blue); }
.q-opt:hover .dot { box-shadow: inset 0 0 0 1px var(--ink); }
.q-opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.q-opt[aria-pressed="true"] .t { color: var(--blue); }
.q-opt[aria-pressed="true"] .dot { background: var(--blue); box-shadow: none; }
.q-opt[aria-pressed="true"] .dot svg { opacity: 1; }

/* text answers: underlined fields, like writing on a form */
.q-form { margin-top: 1.75rem; display: grid; gap: 1.5rem 2rem; }
@media (min-width: 40rem) { .q-form { grid-template-columns: 1fr 1fr; } .q-form .wide { grid-column: 1 / -1; } }
.q-field { display: block; }
.q-body > .q-field { margin-top: 2rem; }
.q-field > span:not(.sr) { display: block; margin-bottom: .25rem; font-size: .875rem; color: var(--grey); }
.q-field input, .q-field textarea { width: 100%; padding: .55rem 0 .7rem; font: 400 1.25rem/1.35 var(--sans); letter-spacing: -.01em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid #c9c5be; border-radius: 0; transition: border-color .15s; }
.q-field textarea { min-height: 6.5rem; resize: vertical; }
.q-field input::placeholder, .q-field textarea::placeholder { color: #b3afa8; }
.q-field input:focus, .q-field textarea:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }

/* footer row */
.q-err { min-height: 1.25em; margin: .875rem 0 0; color: #b4321f; font-size: .9375rem; }
.q-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem calc(-1 * clamp(1.5rem, 5vw, 3.25rem)) 0; padding: 1rem clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.25rem); background: linear-gradient(to bottom, rgba(243, 242, 239, 0), #f3f2ef 1rem); }
.q-back { padding: .5rem 0; font: 400 1rem/1 var(--sans); color: var(--grey); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: #c9c5be; text-underline-offset: .25em; }
.q-back:hover { color: var(--ink); text-decoration-color: currentColor; }
.q-next { border: 0; cursor: pointer; }
.q-skip { display: inline-block; margin-left: auto; margin-right: 1.25rem; }
.q-done { padding-bottom: 0; }
.q-done .q-help { font-size: 1.1875rem; }
.q-done .q-nav { margin-top: 2rem; }
.q-calnote { margin: 0; padding: 1.25rem clamp(1.5rem, 5vw, 3.25rem) 1rem; font-size: 1rem; color: var(--grey); border-bottom: 1px solid var(--line); }
.book.cal-mode header { border: 0; padding-left: clamp(1.5rem, 5vw, 3.25rem); }
@media (prefers-reduced-motion: no-preference) {
  .q-body { animation: q-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  .q-opt { animation: q-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n, 0) * 35ms + 60ms); }
  @keyframes q-in { from { opacity: 0; transform: translateY(12px); } }
}
@media (max-width: 920px) {
  .book, .book.q-mode { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .q-opt { font-size: 1.125rem; min-height: 3.75rem; }
}
@media (hover: none) { .q-opt:hover .t { color: inherit; } .q-opt[aria-pressed="true"] .t { color: var(--blue); } .q-opt:not([aria-pressed="true"]):hover .dot { box-shadow: inset 0 0 0 1px #c9c5be; } }
.q-calnote a { color: var(--blue); white-space: nowrap; }
.book.cal-mode iframe { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='40'%3E%3Ctext x='110' y='24' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='15' fill='%236a707c'%3ELoading calendar…%3C/text%3E%3C/svg%3E") center 30% no-repeat; }
.q-calnote { line-height: 1.5; padding-right: clamp(1.5rem, 18vw, 14rem); }
.stat-row dd { font-variant-numeric: tabular-nums; }
[data-bg="toronto"] .trust img[alt="Deloitte"] { height: 21px; }
