/* Edgewater homepage. Layout a module needs is reserved from first paint under html.js:not(.no-home) (no shift on
   deep links); .no-home restores the static fallback. Hidden motion states sit under html.motion or a module class. */

/* == COVER == */
.hero { --t-hero: clamp(40px, min(5.3vw, 8vh), 88px); --sky-w: min(100%, calc(20vh * 6.618));
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--navy); color: #fff; overflow: hidden; --focus: #fff; }
.hero-light { position: absolute; top: -6%; right: 0; bottom: -6%; width: 72%; z-index: -1; background: url("../Images/v2/light-panel.webp") right top / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 62%); mask-image: linear-gradient(90deg, transparent, #000 62%); opacity: .92; contain: paint; }
html.motion .hero-light { will-change: transform; }
.hero-copy { position: relative; z-index: 2; padding-top: calc(var(--mast-h) + clamp(22px, 4vh, 56px)); }
.hero-kicker { color: var(--on-navy-3); }
.hero-title { margin-top: clamp(14px, 2.1vh, 26px); max-width: 11.6em; font: 400 var(--t-hero)/1.04 var(--serif); letter-spacing: -.018em; color: #fff; }
.hero-title em { display: block; font-style: italic; white-space: nowrap; }
.hero-title .w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .08em .16em; margin: 0 -.08em -.16em; }
.hero-title .w > span { display: inline-block; }
.hero-lede { margin-top: clamp(16px, 2.5vh, 30px); max-width: 35em; font-size: var(--t-lead); line-height: 1.6; color: var(--on-navy-2); }
/* only the low Brooklyn end of the skyline sits under the actions, 28 px clear */
.hero-actions { margin-top: clamp(22px, 3.3vh, 40px); margin-bottom: calc(28px - var(--sky-w) * .1511 * .36); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }

.horizon { position: relative; margin-top: auto; }
.horizon .sky-wrap { position: relative; }
.sky { width: var(--sky-w); margin-inline: auto; overflow: hidden; }
.sky-img { width: 100%; opacity: .8; }
/* the pen spans the skyline exactly (same width and offset rules as .sky) and draws it; the horizon beyond the
   skyline is a static line either side that fades in with the water */
.pen { position: absolute; left: calc(50% - var(--sky-w) / 2); bottom: 0; width: var(--sky-w); height: 1px; z-index: 1; }
.pen::before, .pen::after { content: ""; position: absolute; top: 0; width: 100vw; height: 1px; background: rgba(255,255,255,.5); }
.pen::before { right: 100%; }
.pen::after { left: 100%; }
.pen-line { position: absolute; inset: 0; background: rgba(255,255,255,.5); transform-origin: left; }
.pen-run { position: absolute; inset: 0; opacity: 0; }
.pen-tip { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 2.5px, rgba(255,255,255,.35) 3px, rgba(255,255,255,0) 4.5px); }
.water { position: relative; background: var(--navy-deep); padding-block: clamp(18px, 2.9vh, 36px) clamp(18px, 3vh, 40px); }
.water-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: paint; }
.reflection { width: var(--sky-w); margin-inline: auto; opacity: .1; transform: scaleY(.5); transform-origin: top; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.reflection img { width: 100%; transform: scaleY(-1); }
.waterlines { position: absolute; inset: 0; }
.wl { position: absolute; left: 0; width: 200%; height: 12px; overflow: visible; }
.wl path { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.water .wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 2px clamp(14px, 1.7vw, 26px); border-left: 1px solid var(--on-navy-rule); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { display: flex; align-items: baseline; white-space: nowrap; font: 300 clamp(36px, min(3.3vw, 5.6vh), 58px)/1 var(--sans); letter-spacing: -.02em; color: #fff; }
.stat-num .plus { margin-left: .04em; color: var(--gold-n); }
.stat-label { display: block; margin-top: 10px; max-width: 16em; font-size: 13.5px; line-height: 1.45; color: var(--on-navy-2); }

/* cover sequence: CSS only, from first paint */
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes penDraw { from { transform: scaleX(0); } }
@keyframes penTip { 0% { opacity: 1; transform: translateX(0); } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
/* skyline wipe just behind the pen tip: window and drawing counter-slide (transform only) */
@keyframes skyWin { from { transform: translateX(-100%); } }
@keyframes skyIn { from { transform: translate(100%, 12px); } }
@keyframes drift { to { transform: translateX(-50%); } }
html.motion .hero-kicker { animation: fadeUp .6s var(--ease) .04s both; }
html.motion .hero-title .w > span { animation: rise .8s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * .055s); }
html.motion .hero-lede { animation: fadeUp .7s var(--ease) .38s both; }
html.motion .hero-actions { animation: fadeUp .7s var(--ease) .48s both; }
/* the pen draws the city: pen and skyline share one curve and span, the wipe 20 ms behind the tip (about 100 px at
   1440, R3-D3); then the water and the outer horizon; stats count as they fade in */
html.motion .pen-line { animation: penDraw .75s var(--ease-io) .08s both; }
html.motion .pen-run { animation: penTip .75s var(--ease-io) .08s both; }
html.motion .sky { animation: skyWin .75s var(--ease-io) .1s both; }
html.motion .sky-img { animation: skyIn .75s var(--ease-io) .1s both; }
html.motion .water-fx, html.motion .pen::before, html.motion .pen::after { animation: fadeIn .5s var(--ease) .55s both; }
html.motion .stat { animation: fadeUp .7s var(--ease) calc(.36s + var(--i, 0) * .04s) both; }
html.motion .wl { animation: drift var(--t, 90s) linear infinite; }
html.motion .wl.rev { animation-direction: reverse; }
.hero.is-still .wl, .hero.is-away .wl { animation-play-state: paused; }

/* == CLIENTS: the static 32-logo wall == */
.wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); --stg: 55ms; }
.wall li { overflow: hidden; background: #fff; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.wall img { width: 100%; aspect-ratio: 336 / 275; object-fit: cover; transition: opacity .35s var(--ease-ui), transform .6s var(--ease); }
/* a single-logo spotlight on hover; the others dim slightly */
@media (hover: hover) { .wall:hover li:not(:hover) img { opacity: .68; } .wall li:hover img { transform: scale(1.04); } }
/* the grid rules draw in with the tiles */
.wall { transition: border-color .8s var(--ease); }
html.motion .wall[data-r]:not(.in) { border-color: transparent; }

/* the four kinds of client under the wall, as the deck's Who We Serve row: one row of four with a rule between, the
   icon beside the name; each item spans three rows of the list (subgrid, through its button), so the lines under
   the names start level when a name takes two lines. 2 x 2 below 1200 px (four across there needs a name in three
   lines), one column on phones. Each is a button that opens its timeline (home.js); the four timelines follow the
   items in the list and open under the row, or under their own item on phones */
.serve-list { --sv: clamp(20px, 1.62vw, 24px); --si: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 4.4vw, 64px); }
.serve-item { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: var(--si) minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding: 2px clamp(16px, 1.8vw, 28px) 0; border-left: 1px solid var(--rule); }
.serve-item:first-child { padding-left: 0; border-left: 0; }
.serve-item:nth-child(4) { padding-right: 0; }
.serve-tab { position: relative; grid-area: 1 / 1 / 4 / 3; display: grid; grid-template-rows: subgrid; grid-template-columns: subgrid; row-gap: inherit; column-gap: inherit;
  padding: 0 0 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.serve-tab img { grid-area: 1 / 1 / 3 / 2; width: var(--si); height: var(--si); margin-top: calc((var(--sv) * 1.2 - var(--si)) / 2); }
.serve-name { grid-area: 1 / 2; font: 400 var(--sv)/1.2 var(--serif); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.serve-desc { grid-area: 2 / 2; font-size: 15.5px; line-height: 1.55; color: var(--slate); }
/* the disclosure mark: a small square + (the site's square controls, as the testimonial arrows) that fills navy on
   hover and turns to a cross while its timeline is open (William, 29 October 2026: four "See where we fit" labels
   were a lot; the button's name is the client type itself, and aria-expanded says it opens) */
.serve-more { grid-area: 3 / 2; align-self: end; justify-self: start; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 8px; border: 1px solid var(--rule); color: var(--navy); transition: background-color .25s var(--ease-ui), border-color .25s var(--ease-ui), color .25s var(--ease-ui); }
.serve-more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s var(--ease-ui); }
.serve-tab:hover .serve-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.serve-tab:hover .serve-more, .serve-tab[aria-expanded="true"] .serve-more { background: var(--navy); border-color: var(--navy); color: #fff; }
/* the open one: a navy rule under it, the arrow turned down */
.serve-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.serve-tab[aria-expanded="true"]::after { transform: none; }
.serve-tab[aria-expanded="true"] .serve-more svg { transform: rotate(45deg); }

/* a timeline: stone card under the row, a notch up to its item (home.js sets --notch), navy chevron steps */
.serve-panel { --notch: 50%; position: relative; grid-column: 1 / -1; order: 1; margin-top: 26px; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(26px, 2.6vw, 34px); background: var(--stone); }
.serve-panel[hidden], .js:not(.no-home) .serve-list:not(.is-ready) .serve-panel { display: none; }
.serve-panel::before { content: ""; position: absolute; top: -8px; left: calc(var(--notch) - 8px); width: 16px; height: 16px; background: var(--stone); transform: rotate(45deg); }
html.motion .serve-panel:not([hidden]) { animation: fadeUp .45s var(--ease) both; }
.serve-close { position: absolute; top: 12px; right: 12px; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--label); cursor: pointer; transition: color .2s; }
.js .serve-close { display: inline-flex; }
.serve-close:hover { color: var(--navy); }
.serve-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tl-for { padding-right: 48px; }
.tl-head { margin-top: 10px; max-width: 30em; padding-right: 48px; font: 400 clamp(22px, 2vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.tl-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 6px; margin-top: clamp(30px, 3vw, 40px); }
/* a panel with two timelines (Investors & Portfolio Companies): air above the second heading */
.tl-steps + .tl-head { margin-top: clamp(36px, 3.8vw, 56px); }
.tl-step { position: relative; }
.tl-arrow { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 30px 10px 34px; background: var(--navy); color: #fff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.tl-step:first-child .tl-arrow { padding-left: 20px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.tl-num { flex: none; font-size: 15px; font-weight: 300; opacity: .75; }
.tl-name { font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.tl-desc { margin-top: 14px; padding: 0 18px 0 6px; font-size: 14px; line-height: 1.6; color: var(--slate); }
/* the deal closes after this stage */
.tl-step.is-close::after { content: "Close"; position: absolute; top: -22px; right: -14px; font: 600 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
@media (forced-colors: active) { .tl-arrow { forced-color-adjust: none; } }

/* four across, balanced lines: no "family- / owned" split and no word alone on a last line (1200 to 1300 px) */
@media (min-width: 1200px) { .serve-desc { text-wrap: balance; } }
/* four across: every name on two lines and every description on three (William, 10 November 2026). The two short
   descriptions are capped so they balance over three lines, and "Banks & Lenders" breaks after the ampersand */
.br-4up { display: none; }
@media (min-width: 1200px) { .br-4up { display: inline; } .serve-desc.is-short { max-width: 12.5em; } }
/* narrower desktops: the first column gets a little more room, so its longer description also holds at three lines */
@media (min-width: 1200px) and (max-width: 1359px) { .serve-list { grid-template-columns: 1.1fr 1fr 1fr 1fr; } .serve-item:first-child { padding-right: 12px; } }
@media (max-width: 1199px) {
  .serve-list { --sv: clamp(20px, 2.6vw, 23px); grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .serve-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .serve-item:nth-child(even) { padding-right: 0; }
  .serve-panel { margin-top: -10px; }
  .tl-arrow { padding: 10px 24px 10px 30px; }
  .tl-name { font-size: 10.5px; letter-spacing: .08em; }
}
/* tablets: a smaller icon, so every name holds one line from 768 px (R3-D8) */
@media (max-width: 1023px) { .serve-list { --si: 28px; } .serve-item { column-gap: 14px; } }

/* == WHAT WE DO: the decks' five-service slide (its title, then the five columns: navy bar, thin border, icon beside
   the name, hairline, every bullet), then the model's four points as a quieter closing row (core.css .model) == */
.wd { --wn: 23px; --stg: 70ms; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wd-col { position: relative; padding: 26px 16px; border: 1px solid var(--rule); border-top: 0; background: #fff; transition: border-color .25s var(--ease-ui); }
/* the bar is a border, so it prints and takes the contrast theme's colour */
.wd-col::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; border-top: 6px solid var(--navy); }
@media (hover: hover) { .wd-col:hover { border-color: #A9B2BC; } }
.wd-head { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 8px; min-height: calc(var(--wn) * 2.4 + 18px); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.wd-head img { width: 28px; height: 28px; }
.wd-name { font: 400 var(--wn)/1.2 var(--serif); letter-spacing: -.005em; color: var(--navy); text-wrap: balance; overflow-wrap: break-word; }
/* the bullets at the body size, the names at the client types' size; balanced, so no bullet leaves a word alone */
.wd .dash { margin-top: 18px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.wd .dash li { padding-left: 16px; text-wrap: balance; }
.wd .dash li + li { margin-top: 10px; }
/* five across from 1440 px, where the content reaches its 1,312 px cap (narrower, "Structuring / considerations"
   and "Comprehensive" stand alone); then 3 + 2, 2 + 2 + 1 and one column. No bullet line runs past about 45
   characters: a wider box caps its list, or sets it in two columns where each still holds about 27 */
@media (max-width: 1439px) {
  .wd { --wn: 23px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .wd-col { grid-column: span 2; padding-inline: 20px; }
  .wd-col:nth-child(n+4) { grid-column: span 3; }
  .wd-head { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .wd-head img { width: 32px; height: 32px; }
  .wd .dash { max-width: 22rem; }
  .wd .dash li { padding-left: 18px; break-inside: avoid; }
}
@media (min-width: 1100px) and (max-width: 1439px) { .wd-col:nth-child(n+4) .dash { max-width: none; columns: 2; column-gap: 28px; } }
/* the last box's two bullet columns sit on the two boxes above it */
@media (max-width: 899px) {
  .wd { --wn: clamp(19px, 3.2vw, 22px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-col, .wd-col:nth-child(n+4) { grid-column: auto; }
  .wd-col:last-child { grid-column: 1 / -1; }
  .wd-col:last-child .dash { max-width: none; columns: 2; column-gap: 58px; }
}
@media (max-width: 599px) {
  .wd { --wn: 22px; grid-template-columns: minmax(0, 1fr); }
  .wd-head { min-height: 0; }
  .wd .dash, .wd-col:last-child .dash { max-width: 21rem; columns: auto; }
}
/* the closing row, no label, its names a step under the boxes': three numbered points from 768 px, one column on
   phones. Each spans three rows of the list (subgrid: number, name, line), so the lines start level when a name
   takes two lines */
.wwd .model { margin-top: clamp(56px, 5.6vw, 80px); }
.wwd .model-item h3 { font-size: clamp(21px, 1.62vw, 23px); }
@media (min-width: 768px) { .wwd .model { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wwd .model-item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } }
@media (min-width: 1024px) { .wwd .model { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wwd .model-item { padding-right: clamp(16px, 2.4vw, 40px); } }

/* == PRESS: recent announcements (on white: a row's hover and focus field is stone, as on the Press page) == */
.deals .ch-head { margin-bottom: clamp(32px, 3.4vw, 48px); }
.deals-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.deals-all { padding-bottom: 4px; }
/* paint containment (chapters without sticky children) */
.clients, .wwd, .deals, .voices, .contact { contain: paint; }

/* == TESTIMONIALS & CASE STUDIES == */
.voices { padding-block: calc(var(--section) * .95); }
/* desktop: the reserved case-study cell already sits under the controls, so the chapter ends a little sooner (at
   least 44 px under a shown box) */
@media (min-width: 1024px) { .voices { padding-bottom: max(44px, calc(var(--section) * .95 - 28px)); } }
.voices-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; }
.voices-side { grid-column: 1 / span 4; }
.voices-title { color: #fff; }
.voices-sub { margin-top: 16px; max-width: 22em; font-size: 17px; line-height: 1.5; color: var(--on-navy-2); }
.vt-win { margin-top: 40px; }
.vt-list { border-top: 1px solid var(--on-navy-rule); }
/* tabs and controls exist once home.js wires them; space kept */
html:not(.js) .vt-win, .no-home .vt-win, html:not(.js) .q-controls, .no-home .q-controls { display: none; }
.voices:not(.is-ready) .vt-win, .voices:not(.is-ready) .q-controls { visibility: hidden; }
/* ten names, one line each: the client, and its place in the count on the right (the speaker's title is under the quote) */
.vt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; width: 100%; padding: 10px 0 11px; background: none; border: 0; border-bottom: 1px solid var(--on-navy-rule); color: #fff; text-align: left; cursor: pointer; }
.vt-org { font: 400 18px/1.3 var(--serif); opacity: .66; transition: opacity .25s var(--ease-ui), transform .5s var(--ease); }
.vt-n { font: 500 12px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .06em; color: var(--on-navy-3); opacity: .7; transition: opacity .25s var(--ease-ui), color .25s var(--ease-ui); }
.vt:hover .vt-org, .vt[aria-selected="true"] .vt-org { opacity: 1; }
.vt[aria-selected="true"] .vt-org { transform: translateX(10px); }
.vt[aria-selected="true"] .vt-n { opacity: 1; color: var(--gold-n); }
/* five names at a time from 1024 px (William, 2 and 3 November 2026): a window five rows tall that moves one row at
   a time (--vt-off, set by home.js): with the chosen quote as it moves on, or by the arrows under it; a rule tops the
   window wherever it sits */
@media (min-width: 1024px) {
  .voices { --vt-h: 46px; }
  .vt-win { overflow: hidden; height: calc(var(--vt-h) * 5 + 1px); }
  .vt-list { transform: translateY(calc(var(--vt-off, 0) * var(--vt-h) * -1)); transition: transform .55s var(--ease); }
  .vt { height: var(--vt-h); padding: 0; align-content: center; }
  .vt-org { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .vt:focus-visible { outline-offset: -3px; }
}
html:not(.motion) .vt-list { transition: none; }
/* under the names, at the start of the row: up and down, the quote controls' buttons turned upright. They move the
   window only; the quotes keep advancing */
.vt-foot { display: flex; justify-content: flex-start; gap: 10px; margin-top: 16px; }
.vt-up:hover svg { transform: translateY(-3px); }
.vt-down:hover svg { transform: translateY(3px); }
.vt-foot .q-btn[aria-disabled="true"] { opacity: .32; cursor: default; }
.vt-foot .q-btn[aria-disabled="true"]:hover { border-color: rgba(255,255,255,.34); background: none; }
.vt-foot .q-btn[aria-disabled="true"]:hover svg { transform: none; }
/* the chosen name carries a gold line on its top edge (over the rule above it). While the quotes advance it fills from
   left to right over the quote's reading time (--dwell, set by home.js) and pauses with them; once the visitor has
   chosen, or with reduced motion, it is simply full */
.vt-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; transform-origin: left; }
.vt[aria-selected="true"] .vt-bar { background: var(--gold-n); }
.voices.is-auto .vt-bar.is-timing { animation: vtFill var(--dwell, 10s) linear both; }
.voices.is-held .vt-bar.is-timing { animation-play-state: paused; }
@keyframes vtFill { from { transform: scaleX(0); } }
.voices-stage { grid-column: 6 / span 7; position: relative; padding-top: clamp(64px, 6vw, 92px); }
.q-mark { position: absolute; top: 0; left: -.06em; height: .5em; font: 400 clamp(130px, 11vw, 180px)/1 var(--serif); color: var(--gold-n); pointer-events: none; transform-origin: 30% 55%; transition: translate .6s var(--ease); }
html.motion .q-mark.kick { animation: kick .9s var(--ease) both; }
@keyframes kick { 0% { opacity: 0; transform: translate(-.05em, .08em) rotate(-16deg) scale(.72); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.q-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.q:focus-visible { outline-offset: 8px; }
.q-text p { font: 400 clamp(22px, 2.15vw, 32px)/1.4 var(--serif); letter-spacing: -.006em; color: #fff; text-wrap: pretty; }
/* the longest quotes a step smaller, so the stage (as tall as its longest quote) stays a laptop screen */
.q--long .q-text p { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.42; }
.q-by { position: relative; text-wrap: balance; margin-top: 28px; padding-left: 48px; font: 600 11.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-3); }
.q-by::before { content: ""; position: absolute; left: 0; top: .72em; width: 32px; height: 1px; background: var(--gold-n); }
/* static fallback: the quotes stack */
html:not(.js) .q + .q, .no-home .q + .q { margin-top: 56px; }
/* stage: one cell sized by the longest quote, from first paint */
.js:not(.no-home) .q { grid-area: 1 / 1; }
/* the active quote sits in the middle of the reserved cell, so a short quote splits its spare height above and
   below instead of leaving it all over the controls (R3-D6) */
.js:not(.no-home) .q { align-self: center; }
.js:not(.no-home) .voices:not(.is-ready) .q + .q { visibility: hidden; }
.voices.is-ready .q { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-ui), visibility 0s .45s; }
.voices.is-ready .q.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease) .18s, visibility 0s; }
html.motion .voices.is-ready .q.is-active .q-text p { animation: fadeUp .9s var(--ease) .14s both; }
html.motion .voices.is-ready .q.is-active .q-by { animation: fadeUp .9s var(--ease) .3s both; }
.q-controls { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--on-navy-rule); }
.q-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; background: none; border: 1px solid rgba(255,255,255,.34); color: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.q-btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.q-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease-ui); }
.q-next:hover svg { transform: translateX(3px); }
.q-prev:hover svg { transform: translateX(-3px); }
.q-count { min-width: 76px; text-align: center; font: 500 14px/1 var(--sans); color: var(--on-navy-2); }
.q-of { color: var(--on-navy-3); }
/* a quote's case study: one cell under the controls, reserved from first paint and sized by the larger box; the
   active quote's box crossfades with it (home.js); without the script each box follows its own quote */
.q-cases { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
.q-case { grid-area: 1 / 1; position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) 22px; align-items: center; column-gap: clamp(18px, 2vw, 28px); padding: 11px 24px 11px 11px; border: 1px solid rgba(255,255,255,.26); color: #fff; text-decoration: none; transition: border-color .3s var(--ease-ui); }
.q-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-deep); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.q-case:hover, .q-case:focus-visible { border-color: rgba(255,255,255,.7); }
.q-case:hover::before, .q-case:focus-visible::before { transform: none; }
.q-case:focus-visible { outline-offset: 3px; }
.q-case-plate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 128px; height: 66px; padding: 8px 14px; background: #fff; outline: 1px solid rgba(255,255,255,.42); outline-offset: 4px; }
.q-case-plate .lg-rule { flex: none; width: 22px; height: 1px; background: #BFC6CF; }
/* each logo carries its height (--qh, px), set by its ink; a wide wordmark is shorter */
.q-case-plate img { width: auto; height: calc(var(--qh, 44) * 1px); max-width: 100%; object-fit: contain; }
.q-case-plate--pair img { height: calc(var(--qh, 19) * 1px); }
.q-case-txt { display: grid; gap: 6px; }
.q-case-kicker { font: 600 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-3); }
.q-case-title { font: 400 clamp(19px, 1.5vw, 22px)/1.25 var(--serif); letter-spacing: -.006em; text-wrap: balance; }
.q-case-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s var(--ease-ui); }
.q-case:hover .q-case-arrow, .q-case:focus-visible .q-case-arrow { transform: translateX(6px); }
.js:not(.no-home) .voices:not(.is-ready) .q-case { visibility: hidden; }
.voices.is-ready .q-case { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-ui), visibility 0s .45s, border-color .3s var(--ease-ui); }
.voices.is-ready .q-case.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease) .18s, visibility 0s, border-color .3s var(--ease-ui); }
/* static fallback: the stage is one column, each case study after its quote */
html:not(.js) .voices-stage, .no-home .voices-stage { display: flex; flex-direction: column; }
html:not(.js) :is(.q-panels, .q-cases), .no-home :is(.q-panels, .q-cases) { display: contents; }
/* each case study after its own quote (--o: the quote 2n, its case 2n + 1) */
html:not(.js) :is(.q, .q-case), .no-home :is(.q, .q-case) { order: var(--o, 0); }
html:not(.js) .q-case, .no-home .q-case { margin-top: 28px; }
/* contrast themes: the logo plate stays white, the sweep gives way to an underlined title */
@media (forced-colors: active) { .q-case-plate { forced-color-adjust: none; } .q-case::before { display: none; } .q-case:hover .q-case-title { text-decoration: underline; } }

/* == CONTACT == */
.contact { padding-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.contact-info { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.contact-title { line-height: 1.08; }
.contact-sub { margin: 20px 0 36px; max-width: 26em; }
/* the offices close the column over a hairline: on desktop level with Submit beside them (the hairline on its top
   edge, the line on its label), on phones under the line */
.contact-form { grid-column: 7 / span 6; }
.form-submit { margin-top: 8px; }
.coda { margin-top: clamp(56px, 5.4vw, 88px); overflow: hidden; }
.coda img { width: min(100%, 1040px); margin-inline: auto; }
html.motion .coda img { transition: transform 1s var(--ease); }
html.motion .coda:not(.in) img { transform: translateY(101%); }

/* == RESPONSIVE == */
/* laptops 821-940 px tall keep the approved composition's lower skyline (18vh); with the deck's drawing only the low
   Brooklyn end stands under the CTA, so clearance no longer needs it (BUILD-NOTES 16) */
@media (min-width: 1024px) and (min-height: 821px) and (max-height: 940px) { .hero { --sky-w: min(100%, calc(18vh * 6.618)); } }
/* small laptops: towers clear of the whole actions row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero { --t-hero: clamp(40px, 6vh, 60px); }
  .hero-lede { max-width: 40em; }
  .hero-actions { margin-bottom: 20px; }
}
@media (max-width: 1023px) {
  .hero { --t-hero: clamp(40px, 7.2vw, 64px); --sky-w: 100%; }
  .sky, .reflection { width: 106vw; max-width: none; margin-left: calc(50% - 53vw); }
  .pen { left: calc(50% - 53vw); width: 106vw; }
  .hero-actions { margin-bottom: 28px; }
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 22px; }
  .stat:nth-child(-n+3) { grid-column: span 2; }
  .stat:nth-child(n+4) { grid-column: span 3; }
  .stat:nth-child(4) { grid-column: 1 / 3; padding-left: 0; border-left: 0; }
  .stat:nth-child(5) { grid-column: 3 / 5; }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* tabs first as a compact row of names (DOM = visual = focus order) */
  .voices-grid { row-gap: 26px; }
  .voices-side { display: contents; }
  .voices-head, .voices-stage, .vt-win { grid-column: 1 / -1; }
  .voices-stage { padding-top: 56px; }
  .vt-list { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 0; border-top: 0; }
  .vt { display: block; width: auto; padding: 10px 0 9px; border-bottom: 0; }
  .vt-n { display: none; }
  /* the chosen name is underlined (a bar over a wrapped name would read as the line above's underline) */
  .vt-bar { top: auto; bottom: 3px; }
  /* the link to every case study, under the names */
  /* every name shows here, so no arrows */
  .vt-foot { display: none; }
  .vt-org { font-size: 16px; }
  .vt[aria-selected="true"] .vt-org { transform: none; }
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .contact-form { padding-top: 0; }
}
/* tablets: shorter logo tiles */
@media (min-width: 768px) and (max-width: 1023px) { .wall img { aspect-ratio: 336 / 210; } }
@media (max-width: 767px) {
  .hero { --t-hero: clamp(36px, 10.2vw, 46px); }
  .hero-copy { padding-top: calc(var(--mast-h) + 26px); }
  .hero-title { line-height: 1.05; }
  .hero-lede { font-size: 16.5px; }
  .hero-actions { gap: 12px 24px; margin-bottom: 0; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  /* the full-width button stands over One World Trade: the spire keeps 40 px or more clear */
  .horizon { padding-top: 56px; }
  /* the window is 12.5%-92.5% of the drawing: from the Brooklyn Bridge's approach to St Paul's, whole (the coda too) */
  .sky-wrap { width: 100%; }
  .sky, .reflection { width: 125vw; max-width: none; margin-left: -15.6vw; }
  .pen { left: -15.6vw; width: 125vw; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .stat, .stat:nth-child(-n+3), .stat:nth-child(n+4) { grid-column: auto; padding: 16px 0 18px; border-left: 0; border-top: 1px solid var(--on-navy-rule); }
  .stat:first-child { grid-column: 1 / -1; border-top: 0; padding-top: 2px; }
  .stat:nth-child(even) { padding-right: 14px; }
  .stat:nth-child(odd):not(:first-child) { padding-left: 16px; border-left: 1px solid var(--on-navy-rule); }
  .stat-num { font-size: 40px; }
  .stat:first-child .stat-num { font-size: 48px; }
  .stat-label { font-size: 13px; }
  /* phones: shorter tiles, larger marks */
  .wall img { aspect-ratio: 336 / 230; transform: scale(1.22); }
  /* phones: the four kinds of client in one column, a hairline between */
  .serve-list { --sv: 22px; --si: 28px; grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 36px; }
  .serve-item, .serve-item:first-child, .serve-item:nth-child(odd) { column-gap: 14px; row-gap: 8px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .serve-item:first-child { border-top: 0; padding-top: 0; }
  .serve-tab { padding-bottom: 18px; }
  /* "Portfolio / Companies" breaks like its neighbours above phones; one line here */
  .serve-name br { display: none; }
  /* each timeline straight under its item */
  .serve-item:nth-child(1) { order: 1; } .serve-panel:nth-child(5) { order: 2; }
  .serve-item:nth-child(2) { order: 3; } .serve-panel:nth-child(6) { order: 4; }
  .serve-item:nth-child(3) { order: 5; } .serve-panel:nth-child(7) { order: 6; }
  .serve-item:nth-child(4) { order: 7; } .serve-panel:nth-child(8) { order: 8; }
  .serve-panel { margin: 0 0 18px; padding: 26px 20px 22px; }
  .serve-panel::before { left: 26px; }
  .serve-close { top: 6px; right: 6px; }
  /* the stages stack as full-width arrows */
  .tl-steps { grid-auto-flow: row; gap: 0; margin-top: 24px; }
  .tl-step + .tl-step { margin-top: 16px; }
  .tl-arrow, .tl-step:first-child .tl-arrow { min-height: 50px; padding: 10px 34px 10px 18px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .tl-name { font-size: 11px; letter-spacing: .12em; }
  .tl-desc { margin-top: 10px; padding: 0 4px; font-size: 14.5px; }
  .tl-step.is-close::after { position: static; display: block; margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--gold); }
  .q-mark { font-size: 110px; }
  /* the longest quotes a step smaller, so a short one leaves little room over the controls (R3-D6) */
  .q--long .q-text p { font-size: 19px; }
  /* the names, tighter: ten of them before the first quote */
  .vt-list { gap: 0 16px; }
  .vt { padding: 7px 0 6px; }
  .vt-org { font-size: 15px; }
  .vt-bar { bottom: 1px; }
  .q-controls { flex-wrap: wrap; gap: 10px; }
  /* the coda bleeds to the screen edges and shows the hero's window */
  .coda.wrap { width: 100%; }
  .coda img { width: 125vw; max-width: none; margin-left: -15.6vw; }
  /* phones: a smaller plate leaves the case title two lines */
  .q-case { column-gap: 14px; padding: 10px 16px 10px 10px; }
  .q-case-plate { width: 88px; height: 50px; padding: 6px 10px; gap: 4px; outline-offset: 3px; }
  .q-case-plate .lg-rule { width: 16px; }
  .q-case-plate img { height: calc(var(--qh, 44) * .77px); }
  .q-case-plate--pair img { height: calc(var(--qh, 19) * .74px); }
  .q-case-title { font-size: 17px; }
}
/* phones: both plates a size up, so the Renovus and SolomonEdwards marks read (18 px tall) */
@media (max-width: 599px) {
  .q-case-plate { width: 104px; height: 60px; padding: 6px 8px; }
  .q-case-plate img { height: calc(var(--qh, 44) * .9px); }
  .q-case-plate--pair img { height: calc(var(--qh, 19) * .95px); }
}
/* phones: a long attribution may wrap inside its parenthesis */
@media (max-width: 479px) { .q-by .nw { white-space: normal; } }
/* narrow phones: the title runs under the plate and its label */
@media (max-width: 374px) {
  .q-case { grid-template-columns: auto minmax(0, 1fr) 22px; grid-template-areas: "plate kicker arrow" "title title arrow"; row-gap: 10px; }
  .q-case-txt { display: contents; }
  .q-case-plate { grid-area: plate; }
  .q-case-kicker { grid-area: kicker; }
  .q-case-title { grid-area: title; }
  .q-case-arrow { grid-area: arrow; }
}
/* short laptops (to 820 px tall): skyline at 75% of the width or more; the lede sits beside the H1, which frees
   the height that keeps New York's towers clear of the CTA row and 20 px under the stat labels (R3-D1) */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { --sky-w: max(min(100%, calc(17vh * 6.618)), 75%); }
  .hero-copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero-kicker, .hero-title { grid-column: 1 / span 7; }
  .hero-lede { grid-column: 8 / span 5; grid-row: 2; align-self: end; max-width: none; margin: 0 0 .3em; font-size: 17px; }
  .hero-actions { grid-column: 1 / -1; }
  .water { padding-bottom: 22px; }
}
/* contrast themes: no light panel; on a light canvas the white skyline is drawn dark */
@media (forced-colors: active) { .hero-light { display: none; } }
@media (forced-colors: active) and (prefers-color-scheme: light) { .sky-img, .reflection img { filter: invert(1); } }
/* short phones (360 x 740): the first figure clears the fold (R3-D9) and the spire keeps 40 px under the CTA */
@media (max-width: 767px) and (max-height: 760px) {
  .hero-copy { padding-top: calc(var(--mast-h) + 18px); }
  .horizon { padding-top: 40px; }
  .hero-lede { margin-top: 14px; }
}

/* == PRINT == */
@media print {
  .hero { min-height: 0; background: #fff; color: var(--ink); }
  .hero-light, .horizon, .water-fx, .hero-actions, .coda, .vt-win, .vt-foot, .q-controls, .q-mark { display: none !important; }
  .hero-title, .stat-num { color: var(--navy); }
  .hero-kicker, .hero-lede, .stat-label { color: var(--slate); }
  .stat-num .plus { color: var(--gold-deep); }
  .water { background: none; }
  .stat { border-color: var(--rule); }
  .q, .q-case { opacity: 1 !important; visibility: visible !important; grid-area: auto !important; }
  .q + .q { margin-top: 28px; }
  /* each case study after its quote, as without the script */
  .voices-stage { display: flex; flex-direction: column; }
  .q-panels, .q-cases { display: contents; }
  .q, .q-case { order: var(--o, 0); }
  .q-case { margin-top: 18px; border-color: var(--rule) !important; }
  .q-text p { font-size: 18px; }
}
