/* City page alternatives (scripts/website-city-variants.py): A Skyline (SF), B Map first (Houston), C Portfolio (NY).
   Built on theme.css tokens; the map, services and inquiry form keep the template's own styles. */
.city-variant main { padding-top: 0; }
.cv-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cv-ctas .button { gap: 18px; }
.cv-lede { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.cv-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.cv-stats div { padding: 22px 0 6px; }
.cv-stats div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cv-stats dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cv-stats dd { margin: 8px 0 0; font-size: clamp(36px, 4vw, 60px); font-weight: 400; letter-spacing: -.03em; }

/* skyline drawing (paper version of the market-page sketch) */
.cv-sky { margin: 0; line-height: 0; }
.cv-sky svg { display: block; width: 100%; height: auto; }
.cv-sky .bm-sketch path:not(.f) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cv-draw .9s ease-out forwards; }
.cv-sky .bm-sketch .f { opacity: 0; animation: cv-fade 1.4s ease-out forwards; }
@keyframes cv-draw { to { stroke-dashoffset: 0; } }
@keyframes cv-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cv-sky .bm-sketch path:not(.f) { animation: none; stroke-dashoffset: 0; } .cv-sky .bm-sketch .f { animation: none; opacity: 1; } }
.cv-sky-band { padding: 40px 0 0; }

/* A: centered skyline hero */
.cv-hero-a { text-align: center; padding-top: 72px; }
.cv-hero-a h1 { font-size: clamp(56px, 8.5vw, 136px); font-weight: 500; line-height: .95; letter-spacing: -.045em; margin: 22px 0 26px; }
.cv-hero-a .cv-lede { margin: 0 auto; }
.cv-hero-a .cv-ctas { justify-content: center; }
.cv-hero-a .cv-sky { margin-top: 10px; }
.cv-hero-a .cv-stats { text-align: left; margin-bottom: 20px; }

/* B: map first */
.cv-hero-b { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: end; padding-top: 72px; padding-bottom: 10px; }
.cv-hero-b h1 { font-size: clamp(46px, 6vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin-top: 20px; }
.cv-feature-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-top: 40px; }
.cv-feature .picture { aspect-ratio: 4 / 5; overflow: hidden; }
.cv-feature:first-child .picture { aspect-ratio: auto; height: 100%; max-height: 640px; }

/* C: portfolio hero */
.cv-hero-c { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.cv-hero-c > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-hero-c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(20 26 21 / .72)); }
.cv-hero-c-copy { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.cv-hero-c h1 { font-size: clamp(44px, 6vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.04em; max-width: 1000px; margin-top: 18px; }
.cv-hero-c .button { background: var(--paper); color: var(--ink); }
.cv-hero-c .button.outline { background: transparent; color: #fff; border-color: #fff; }
.cv-hero-c-cap { position: absolute; right: var(--gutter); bottom: 24px; font-size: 13px; opacity: .85; }
.cv-band { background: var(--dark); color: var(--paper); padding: 10px 0 34px; }
.cv-band .cv-stats { border-top-color: #ffffff2b; }
.cv-band .cv-stats div + div { border-left-color: #ffffff2b; }
.cv-band .cv-stats dt { color: #b9c2b2; }

/* gallery grid and captions */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cv-tile .picture { aspect-ratio: 4 / 3; overflow: hidden; }
.cv-tile:nth-child(5n + 1) { grid-column: span 2; }
.cv-tile:nth-child(5n + 1) .picture { aspect-ratio: auto; height: 100%; max-height: 520px; }
.cv-tile .picture img, .cv-feature .picture img { width: 100%; height: 100%; object-fit: cover; }
.cv-cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 13px; }
.cv-cap span { color: var(--muted); }

/* firms as type, not logos */
.cv-firms { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; }
.cv-firms h2 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 400; }
.cv-firms-head p { margin-top: 16px; color: var(--muted); }
.cv-firm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cv-firm-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.cv-firm-col li { font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -.01em; padding: 11px 0; border-top: 1px solid var(--line); }

/* closing: copy + the template's inquiry card */
.cv-close { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; border-top: 1px solid var(--line); }
.cv-close h2 { font-size: clamp(36px, 4vw, 64px); font-weight: 400; margin: 16px 0 18px; }
.cv-close-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 520px; }

@media (max-width: 900px) {
  .cv-hero-b, .cv-firms, .cv-close { grid-template-columns: 1fr; gap: 30px; }
  .cv-stats { grid-template-columns: 1fr; }
  .cv-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cv-grid, .cv-feature-row { grid-template-columns: 1fr; }
  .cv-tile:nth-child(5n + 1) { grid-column: auto; }
  .cv-firm-cols { grid-template-columns: 1fr; }
  .cv-sky svg { width: 220%; margin-left: -60%; }
  .cv-hero-c { min-height: 78vh; }
  .cv-hero-c-cap { display: none; }
}

/* ---- New York (variant C) revision ---- */
/* Transparent header over the hero; solid paper once the page scrolls. */

/* Stats: four numbers, no rules. */
.cv-stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 0; padding: 54px 0 46px; }
.cv-stats4 dd { margin: 0; font-size: clamp(44px, 5vw, 76px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.cv-stats4 dt { margin-top: 12px; font-size: 14px; color: #c2cabb; }
.cv-band { padding: 0; }

/* Portfolio: rows of equal height, captions over the image, so tiles never leave gaps. */
.cv-rows { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 24vw, 380px); gap: 16px; margin-top: 40px; }
.cv-row-tile { position: relative; overflow: hidden; display: block; }
/* every 7 tiles: [wide, single] [single, wide] [single, single, single] */
.cv-row-tile:nth-child(7n + 1), .cv-row-tile:nth-child(7n + 4) { grid-column: span 2; }
.cv-row-tile .picture { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; max-height: none; }
.cv-row-tile .picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.cv-row-tile:hover .picture img { transform: scale(1.04); }
.cv-row-tile .cv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; background: linear-gradient(transparent, rgb(20 26 21 / .7)); opacity: 0; transition: opacity .3s; }
.cv-row-tile .cv-cap span { color: #e3e7dd; }
.cv-row-tile:hover .cv-cap, .cv-row-tile:focus-visible .cv-cap { opacity: 1; }

/* Closing: one line and two buttons, centered. */
.cv-end { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.cv-end h2 { font-size: clamp(40px, 5vw, 80px); font-weight: 400; letter-spacing: -.035em; margin: 18px 0 8px; }
.cv-end .cv-ctas { justify-content: center; }

@media (max-width: 900px) {
  .cv-stats4 { grid-template-columns: 1fr 1fr; gap: 30px; padding: 40px 0; }
  .cv-rows { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .cv-row-tile:nth-child(7n + 1), .cv-row-tile:nth-child(7n + 4) { grid-column: auto; }
  .cv-row-tile .cv-cap { opacity: 1; }
}

/* New York (variant C, Tim 2026-10-22): normal header; intro like every page; the film sits like the homepage hero;
   local stats reuse the Services pricing band; the city sketch sits over a short call to action between two rules. */
.cv-film { margin-top: 0; }
/* map straight into the projects */
.variant-c .studio-map-section { padding-bottom: 40px; }
.variant-c .cv-work { padding-top: 32px; }
/* projects: the Work page's tile shapes (large 2x2 and regular, no wide tiles), 3 columns, blocks of 6 that end clean */
.variant-c .cv-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(205px, calc(20vw + 15px), 345px); grid-auto-flow: dense; gap: 18px; }
.variant-c .cv-row-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
.variant-c .cv-row-tile:nth-child(6n + 1) { grid-column: 1 / span 2; grid-row: span 2; }
.variant-c .cv-row-tile:nth-child(6n + 5) { grid-column: 2 / span 2; grid-row: span 2; }
/* teams: every name links to the firm's site; an arrow shows on hover */
.cv-firm-col li { padding: 0; }
.cv-firm-col li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; color: inherit; text-decoration: none; transition: color .2s; }
.cv-firm-go { width: 18px; height: 18px; flex: none; opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s, transform .2s; }
.cv-firm-go svg { width: 100%; height: 100%; display: block; }
.cv-firm-col li a:is(:hover, :focus-visible) { color: var(--brand-green, var(--ink)); }
.cv-firm-col li a:is(:hover, :focus-visible) .cv-firm-go { opacity: 1; transform: none; }
/* closing: sketch, the question with equal space above and below, then one full-width line straight into the footer */
.cv-close-c { padding-top: 96px; border-bottom: 1px solid var(--line); }
.cv-close-c .cv-sky { margin: 0; }
.cv-close-c .cv-sky svg { width: 100%; height: auto; display: block; }
.cv-close-c-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 56px 0; }
.cv-close-c-row h2 { font-size: 42px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.cv-close-c-row .cv-ctas { margin: 0; flex: none; }
@media (max-width: 900px) { .cv-close-c-row { flex-direction: column; align-items: flex-start; } .cv-close-c-row h2 { font-size: 32px; } }
/* city headline: never more than three lines (Tim); between 1001 and 1200 px the right column leaves it less room */
@media (min-width: 1001px) and (max-width: 1200px) { main .page-intro.cv-intro h1 { font-size: 6.2vw; } }
/* "…shaping New York's skyline" is longer: city headlines sized to stay within three lines at every width (Tim) */
main .page-intro.cv-intro h1 { font-size: clamp(34px, 5.9vw, 104px); }
@media (min-width: 1001px) and (max-width: 1300px) { main .page-intro.cv-intro h1 { font-size: 5.4vw; } }
@media (max-width: 1000px) { main .page-intro.cv-intro h1 { font-size: 7.2vw; } }
@media (max-width: 600px) { main .page-intro.cv-intro h1 { font-size: 8.6vw; } }

/* Live showcase (city-feed.js): hold the tiles while the city's set loads from the platform. */
.cv-rows.is-loading-feed { opacity: 0; }
.cv-rows { transition: opacity .25s ease; }

/* Phones (Tim, 2026-10-27, iPhone 17): the city gallery one tile wide, each picture at its own shape so towers stand tall
   and captions aren't squeezed; the closing skyline drawing whole and centred (the hero's wide-crop rule shifted it left). */
@media (max-width: 760px) {
  .cv-rows, .variant-c .cv-rows { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; grid-auto-flow: row; gap: 14px; }
  .cv-row-tile, .variant-c .cv-row-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .cv-row-tile .picture { position: relative; inset: auto; height: auto; }
  .cv-row-tile .picture img { height: auto; max-height: 82vh; object-fit: cover; }
  .cv-row-tile .cv-cap { padding: 32px 16px 12px; }
  .cv-close-c .cv-sky svg { width: 100%; margin-left: 0; }
}
