/* TX206 Agency Business Directory
   Visual language and motion adapted from Cadence by Ruben Stom (cadence.rubenstom.com):
   base tokens, Hairline Loader, Clip-Path Reveals, Project Wipe, Stacking Cards and
   Scroll Text Reveal. Shape rule: 6px corners on surfaces, full pills on buttons. */

@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --color-bg: #ffffff;
  --color-grey: #f6f6f6;
  --color-surface: #efefef;
  --color-text: #000000;
  --color-body: rgb(0 0 0 / 0.62);
  --color-muted: #8e8e8e;
  --color-line: rgb(0 0 0 / 0.08);
  --color-divider: rgb(0 0 0 / 0.12);
  --green: #007853;

  --glass-bg: rgb(255 255 255 / 0.62);
  --glass-bg-hover: rgb(255 255 255 / 0.9);
  --glass-blur: blur(18px) saturate(1.6);
  --glass-edge: inset 0 0 0 1px rgb(255 255 255 / 0.7);
  --glass-line: 0 0 0 1px rgb(0 0 0 / 0.06);
  --glass-line-hover: 0 0 0 1px rgb(0 0 0 / 0.12);

  --caps-size: 12px;
  --caps-size-nav: 10px;
  --caps-weight: 500;
  --caps-tracking: 0.25em;

  --radius: 6px;
  --max-width: 1440px;
  --gutter: clamp(16px, 2.5vw, 32px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-elegant: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--color-text); outline-offset: 2px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: #000; color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* Small caps: eyebrows, metadata, nav and pill labels */
.eyebrow, .meta, .nav-link, .pill, .pw-label { font-size: var(--caps-size); font-weight: var(--caps-weight); letter-spacing: var(--caps-tracking); text-transform: uppercase; line-height: 1.6; }
.eyebrow, .meta { color: var(--color-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.nav-link { font-size: var(--caps-size-nav); }

/* Pills: white frosted glass */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px calc(22px - var(--caps-tracking)) 13px 22px; font-size: var(--caps-size-nav); font-family: var(--font); line-height: 1; white-space: nowrap; color: var(--color-text); border: 0; border-radius: 999px; cursor: pointer; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), var(--glass-line); transition: background-color .25s ease, box-shadow .25s ease, color .25s ease, transform .25s var(--out); }
.pill:hover { background: var(--glass-bg-hover); box-shadow: var(--glass-edge), var(--glass-line-hover); }
.pill:active { transform: scale(.98); }
.pill--sm { padding: 10px calc(16px - var(--caps-tracking)) 10px 16px; font-size: 9px; }
.pill--white { background: #fff; box-shadow: none; }
.pill--white:hover { background: #000; color: #fff; }
.pill--ink { background: #000; color: #fff; box-shadow: none; }
.pill--ink:hover { background: #222; }
.pill--green { background: var(--green); color: #fff; box-shadow: none; }
.pill--green:hover { background: #00664a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px calc(16px - var(--caps-tracking)) 10px 16px; border-radius: 999px; background: var(--color-grey); font-size: 9px; font-weight: 500; letter-spacing: var(--caps-tracking); text-transform: uppercase; transition: background-color .25s; }
.chip b { font-weight: 500; color: var(--color-muted); }
.chip:hover { background: var(--color-surface); }

.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.mt { margin-top: 56px; margin-bottom: 20px; }

/* ---------- Page veil (Hairline Loader + Clip-Path intro veil) ---------- */
.veil { display: none; }
html.veil-on .veil, html.veil-leaving .veil { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: #fff; clip-path: inset(0 0 0 0); }
.veil__mark { text-align: center; }
.veil__word { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.5; letter-spacing: 0.25em; text-indent: 0.25em; text-transform: uppercase; opacity: 0; transform: translateY(8px); }
.veil__line { width: 160px; height: 1px; margin: 1.1rem auto 0; background: rgb(0 0 0 / 0.4); transform: scaleX(0); transform-origin: center; }
.veil__sub { margin-top: 1rem; font-size: 10px; font-weight: 500; letter-spacing: 0.25em; text-indent: 0.25em; text-transform: uppercase; color: var(--color-muted); opacity: 0; }
html.veil-quick .veil__word, html.veil-quick .veil__sub, html.veil-leaving .veil__word, html.veil-leaving .veil__sub { opacity: 1; transform: none; }
html.veil-quick .veil__line, html.veil-leaving .veil__line { transform: scaleX(1); }
html.veil-leaving .veil { clip-path: inset(100% 0 0 0); }

/* ---------- Top sponsor bar (kept green) ---------- */
.ad-top { position: relative; z-index: 30; background: var(--green); color: #fff; font-size: 13px; }
.ad-top__in { display: flex; align-items: center; gap: 16px; min-height: 42px; }
.ad-top__tag { font-size: 9px; font-weight: 500; letter-spacing: var(--caps-tracking); text-transform: uppercase; padding: 5px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); }
.ad-top__msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-top__msg strong { font-weight: 500; }
.ad-top__tel { display: inline-flex; align-items: center; gap: 6px; }
.ad-top__cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--green); font-weight: 500; white-space: nowrap; transition: transform .25s var(--out); }
.ad-top__cta:hover { transform: translateY(-1px); }
@media (max-width: 640px) { .ad-top__tag { display: none; } .ad-top__in { gap: 10px; } }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 25; background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--color-line); }
.nav__in { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 6px; }
.brand__word { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.brand__sub { font-size: 9px; font-weight: 500; letter-spacing: var(--caps-tracking); text-transform: uppercase; color: var(--color-muted); }
.nav__links { display: flex; gap: clamp(20px, 3vw, 40px); margin-left: auto; }
.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: var(--caps-tracking); bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__search .i { width: 13px; height: 13px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--color-grey); cursor: pointer; place-items: center; }
.nav__bars { display: grid; gap: 5px; width: 16px; }
.nav__bars span { display: block; height: 1.5px; background: #000; transition: transform .4s var(--out); }
.nav.is-open .nav__bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 860px) {
  .nav__links, .nav__search { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open .mnav { display: grid; padding: 4px var(--gutter) 20px; }
  .mnav a { padding: 14px 0; font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid var(--color-line); }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 10px; font-weight: 500; letter-spacing: var(--caps-tracking); text-transform: uppercase; color: var(--color-muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: #000; }

/* ---------- Generic reveal (Clip-Path Reveals) ---------- */
html.js .reveal, html.js [data-hero], html.js [data-reveal], html.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--out), transform .9s var(--out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.is-in, html.js [data-hero].is-in, html.js [data-reveal].is-in, html.js [data-reveal-group] > .is-in { opacity: 1; transform: none; }
html.js .eyebrow.reveal { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--inout); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .eyebrow.reveal.is-in { clip-path: inset(0 0 0 0); }
html.js .settled, html.js .settled * { transition-delay: 0s !important; }

/* Split headline: words masked, characters rise */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.12em; margin-bottom: -0.12em; }
[data-split] .ch { display: inline-block; }
html.js [data-split].is-split .ch { transform: translateY(110%); }
html.js [data-split].is-in .ch { transform: none; transition: transform 1.3s var(--out); transition-delay: calc(0.15s + var(--c) * 0.025s); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__h { font-size: clamp(44px, 6.2vw, 96px); line-height: 1; letter-spacing: -0.045em; max-width: 11ch; margin: 18px 0 0; }
.hero__p { max-width: 46ch; margin: 28px 0 32px; font-size: 16px; color: var(--color-body); }
.hero__art { position: relative; aspect-ratio: 5 / 5.4; border-radius: var(--radius); background: var(--color-surface); overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame { position: absolute; left: 24px; bottom: 24px; width: 34%; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 6px #fff; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__note { position: absolute; right: 20px; top: 20px; padding: 8px 14px; border-radius: 999px; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: #000; font-size: 9px; }
html.js .hero__media { clip-path: inset(100% 0 0 0); }
html.js .hero__media img { transform: scale(1.2); }
html.js .hero__frame { clip-path: inset(50% 50% 50% 50%); }
html.js .hero__frame img { transform: scale(1.35); }
html.js .hero__art.is-loaded .hero__media { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--inout); }
html.js .hero__art.is-loaded .hero__media img { transform: none; transition: transform 3.4s var(--out); }
html.js .hero__art.is-loaded .hero__frame { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--inout) .75s; }
html.js .hero__art.is-loaded .hero__frame img { transform: none; transition: transform 2.8s var(--out) .75s; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__art { aspect-ratio: 4 / 3; } }

/* Search */
.search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; margin-bottom: 18px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--color-grey); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s, background-color .25s; }
.search:focus-within { background: #fff; box-shadow: inset 0 0 0 1px #000; }
.search > .i { color: var(--color-muted); }
.search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: #000; outline: none; }
.search input::placeholder { color: var(--color-muted); }
.search--page { max-width: 760px; margin-top: 28px; padding-right: 20px; }
.search--page input { font-size: 18px; padding: 14px 0; }
.search__status { min-height: 1.6em; margin-top: 4px; }

/* Stats */
.stats { padding-block: 8px 0; }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-line); }
.stats__row > div { padding: 28px 24px 0 0; }
.stats__row > div + div { padding-left: 24px; border-left: 1px solid var(--color-line); }
.stats dd { margin-top: 10px; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats__row { grid-template-columns: 1fr 1fr; row-gap: 28px; } .stats__row > div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Scroll Text Reveal */
.str { padding: clamp(96px, 16vh, 180px) var(--gutter); }
.str-text { max-width: 900px; margin: 0 auto; font-size: clamp(22px, 2vw + 2px, 32px); line-height: 1.6; letter-spacing: -0.01em; }
.str-text p + p { margin-top: 1.1em; }
.str-char { color: rgb(0 0 0 / 0.16); transition: color 120ms linear; }
.str-char.is-lit { color: #000; }

/* Sections */
.sec { padding-block: clamp(64px, 7vw, 120px); }
.sec--tight { padding-block: 24px 48px; }
.sec--grey { background: var(--color-grey); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec--tight .sec__head { margin-bottom: 16px; }
.sec__sub { max-width: 46ch; margin-top: 16px; color: var(--color-body); }
.split { display: grid; grid-template-columns: minmax(240px, 1fr) 1.6fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.split__side { position: sticky; top: 104px; }
.split__side .pill { margin-top: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__side { position: static; } }

/* Category list */
.catlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--color-line); }
.catlist a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--color-line); transition: padding .6s var(--out); }
.catlist__ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius); background: var(--color-grey); }
.catlist__ic .i { width: 18px; height: 18px; }
.catlist__n { font-size: 17px; letter-spacing: -0.015em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--out); width: fit-content; }
.catlist__go { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .6s var(--out); }
.catlist a:hover { padding-left: 8px; }
.catlist a:hover .catlist__n { background-size: 100% 1px; }
.catlist a:hover .catlist__go { opacity: 1; transform: none; }
@media (max-width: 760px) { .catlist { grid-template-columns: 1fr; } }

/* Category index grid */
.catgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.catgrid li { grid-column: span 4; }
.catgrid li:nth-child(-n+2) { grid-column: span 6; }
.catgrid a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; border-radius: var(--radius); background: var(--color-grey); transition: background-color .4s; }
.catgrid a:hover { background: var(--color-surface); }
.catgrid__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.catgrid__top .catlist__ic { background: #fff; }
.catgrid__c { font-size: 12px; font-weight: 500; letter-spacing: var(--caps-tracking); color: var(--color-muted); }
.catgrid__n { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.catgrid li:nth-child(-n+2) .catgrid__n { font-size: 32px; }
.catgrid__p { color: var(--color-body); font-size: 14px; }
@media (max-width: 900px) { .catgrid li, .catgrid li:nth-child(-n+2) { grid-column: span 6; } }
@media (max-width: 560px) { .catgrid li, .catgrid li:nth-child(-n+2) { grid-column: span 12; } }

/* ---------- Clip-Path Reveal cards ---------- */
.cr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.cr-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); }
.cr-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.cr-card__mono { font-size: clamp(48px, 5vw, 80px); letter-spacing: -0.05em; line-height: 1; transition: transform 1.6s var(--out); }
.cr-card__ic { position: absolute; left: 18px; top: 16px; color: var(--color-muted); }
.cr-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; background: var(--color-surface); }
.cr-card__title { display: inline-block; width: fit-content; padding-bottom: 2px; font-size: 18px; line-height: 1.3; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--out); }
.cr-card:hover .cr-card__title { background-size: 100% 1px; }
.cr-card:hover .cr-card__mono { transform: scale(1.06); }
.cr-card__body .eyebrow { margin-top: 6px; font-size: 9px; }
.cr-card__text { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--color-body); }
html.js .cr-card .cr-card__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--inout) calc(var(--i, 0) * 120ms); }
html.js .cr-card .cr-card__mono { transform: scale(1.25); transition: transform 1.9s var(--out) calc(var(--i, 0) * 120ms); }
html.js .cr-card .cr-card__body { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--inout) calc(var(--i, 0) * 120ms + .5s); }
html.js .cr-card .cr-card__body > * { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--out), transform .9s var(--out), background-size .8s var(--out); transition-delay: calc(var(--i, 0) * 120ms + .85s + var(--k, 0) * 90ms); }
.cr-card__body > :nth-child(2) { --k: 1; }
.cr-card__body > :nth-child(3) { --k: 2; }
html.js .cr-card.is-in .cr-card__media, html.js .cr-card.is-in .cr-card__body { clip-path: inset(0 0 0 0); }
html.js .cr-card.is-in .cr-card__mono { transform: none; }
html.js .cr-card.is-in .cr-card__body > * { opacity: 1; transform: none; }
html.js .cr-card.is-in:hover .cr-card__mono { transform: scale(1.06); transition-duration: 1.6s; }
@media (max-width: 1100px) { .cr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cr-cards { grid-template-columns: 1fr; } }

/* Reveal media: image rises like a blind */
html.js .reveal-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--inout); }
html.js .reveal-media img { transform: scale(1.2); transition: transform 1.9s var(--out); }
html.js .reveal-media.is-in { clip-path: inset(0 0 0 0); }
html.js .reveal-media.is-in img { transform: none; }

/* ---------- Stacking Cards ---------- */
.stack { padding-top: 8px; }
.stack-card { position: sticky; top: var(--stack-top, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; height: min(78vh, 640px); margin-bottom: 12vh; padding: 32px; overflow: hidden; border-radius: var(--radius); background: var(--color-grey); outline: 1px solid var(--color-surface); outline-offset: -1px; transform-origin: 50% 0%; }
.stack-card:last-child { margin-bottom: 0; }
.stack-card__copy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; }
.stack-card__index { font-size: 14px; font-weight: 500; color: var(--color-muted); }
.stack-card__title { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; text-wrap: balance; margin-bottom: 14px; }
.stack-card__text { max-width: 40ch; margin-top: 18px; color: var(--color-body); }
.stack-card__art { position: relative; display: grid; place-items: center; border-radius: var(--radius); background: #fff; overflow: hidden; }
.stack-card__mono { font-size: clamp(80px, 12vw, 200px); letter-spacing: -0.06em; line-height: 1; transition: transform 1.6s var(--out); }
.stack-card__art:hover .stack-card__mono { transform: scale(1.05); }
.stack-card__ic { position: absolute; left: 24px; top: 22px; color: var(--color-muted); }
.stack-card__ic .i { width: 22px; height: 22px; }
.stack-card__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .stack-card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 74vh; padding: 24px; } }

/* City bars */
.cities { border-top: 1px solid var(--color-line); }
.cities a { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 48px; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.cities__n { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; }
.cities__bar { position: relative; height: 2px; background: var(--color-surface); }
.cities__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #000; transform: scaleX(var(--s, 1)); transform-origin: left; transition: transform 1.4s var(--inout); }
.cities a:hover .cities__bar::after { background: var(--green); }
.cities__c { text-align: right; }
@media (max-width: 560px) { .cities a { grid-template-columns: 1fr 44px; } .cities__bar { grid-column: 1 / -1; grid-row: 2; } }

/* Page header */
.phead { padding-block: clamp(32px, 5vw, 64px) 8px; }
.phead__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: var(--radius); background: var(--color-grey); }
.phead__ic .i { width: 26px; height: 26px; }
.phead__h { max-width: 16ch; font-size: clamp(40px, 5.6vw, 88px); line-height: 1; letter-spacing: -0.045em; }
.phead__p { max-width: 62ch; margin: 24px 0 28px; font-size: 16px; color: var(--color-body); }

/* Listing rows */
.lrows { border-top: 1px solid var(--color-line); }
.lrow a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--color-line); transition: padding .6s var(--out); }
.lrow__mono { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--radius); background: var(--color-grey); font-size: 15px; letter-spacing: -0.02em; }
.lrow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lrow__name { width: fit-content; font-size: 19px; letter-spacing: -0.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--out); }
.lrow__desc { max-width: 80ch; font-size: 13px; color: var(--color-body); }
.lrow__city { white-space: nowrap; font-size: 10px; }
.lrow__go { transition: transform .6s var(--out); }
.lrow a:hover { padding-left: 10px; }
.lrow a:hover .lrow__name { background-size: 100% 1px; }
.lrow a:hover .lrow__go { transform: translateX(4px); }
@media (max-width: 640px) { .lrow a { grid-template-columns: auto 1fr; gap: 14px; } .lrow__city { grid-column: 2; } .lrow__go { display: none; } .lrow__mono { grid-row: span 2; align-self: start; } }
.more { margin-top: 32px; color: var(--color-body); }
.more a, .phead__p a, .sec__sub a, .steps a, .panel a:not(.pill), .empty a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(0 0 0 / 0.3); }

/* ---------- Profile: Project Wipe ---------- */
.pw { --pad-x: clamp(32px, 5vw, 88px); --pad-y: clamp(40px, 5vw, 84px); --cta-bottom: 48px; --pw-h: max(640px, calc(100svh - 114px)); --img-m: 32px;
  position: relative; height: var(--pw-h); overflow: hidden; background: #fff; }
.pw-card { position: absolute; left: 0; bottom: 0; z-index: 2; height: 100%; width: calc(100% - (var(--pw-h) - 2 * var(--img-m)) * 0.75 - 2 * var(--img-m)); display: flex; flex-direction: column; padding: var(--pad-y) var(--pad-x) var(--cta-bottom); overflow: hidden; background: var(--color-surface); color: #000; border-radius: 0 var(--radius) var(--radius) 0; }
.pw-badge { margin-bottom: 22px; font-size: 10px; color: var(--green); }
.pw-badge .i { width: 14px; height: 14px; }
.pw-title { max-width: 14ch; margin: 0 0 48px; font-size: clamp(44px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -0.03em; }
.pw-section { max-width: 460px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--color-divider); }
.pw-label { margin-bottom: 10px; font-size: 11px; }
.pw-body, .pw-contact { font-size: 14px; line-height: 1.6; color: var(--color-body); }
.pw-body a, .pw-contact a { color: #000; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.pw-src { display: block; margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: var(--caps-tracking); text-transform: uppercase; color: var(--color-muted); }
.pw-contact { display: grid; gap: 4px; overflow-wrap: anywhere; }
.pw-ctas { margin-top: auto; padding-top: 24px; padding-right: 110px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pw-social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: #fff; transition: background-color .2s, color .2s; }
.pw-social:hover { background: #000; color: #fff; }
.pw-image { position: absolute; z-index: 1; right: var(--img-m); top: var(--img-m); height: calc(100% - 2 * var(--img-m)); aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--color-grey); }
.pw-image__mono { font-size: clamp(120px, 14vw, 240px); letter-spacing: -0.06em; line-height: 1; }
.pw-image__ic { position: absolute; left: 24px; top: 22px; color: var(--color-muted); }
.pw-image__ic .i { width: 24px; height: 24px; }
.pw-image__meta { position: absolute; left: 24px; right: 24px; bottom: 20px; font-size: 9px; }
.pw-nav { position: absolute; z-index: 3; bottom: var(--cta-bottom); right: calc((var(--pw-h) - 2 * var(--img-m)) * 0.75 + 2 * var(--img-m) + var(--pad-x)); display: inline-flex; gap: 10px; }
.pw-nav-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; color: #000; transition: background-color .2s, color .2s; }
.pw-nav-btn svg { width: 14px; height: 14px; }
.pw-nav-btn:hover { background: #000; color: #fff; }

/* Motion: text staggers in on top of the card (original delays) */
html.js .pw-card { opacity: 0; transition: opacity 360ms ease; }
html.js .pw-image { opacity: 0; transition: opacity 600ms ease; }
html.js .pw-image.is-ready { opacity: 1; }
html.js .pw-badge, html.js .pw-title, html.js .pw-section, html.js .pw-ctas, html.js .pw-nav { opacity: 0; transform: translateY(10px); transition: opacity 520ms ease, transform 600ms var(--ease-elegant); }
html.js .pw.text-in .pw-card { opacity: 1; }
html.js .pw.text-in .pw-badge, html.js .pw.text-in .pw-title, html.js .pw.text-in .pw-section, html.js .pw.text-in .pw-ctas, html.js .pw.text-in .pw-nav { opacity: 1; transform: none; }
.pw.text-in .pw-badge { transition-delay: 60ms; }
.pw.text-in .pw-title { transition-delay: 120ms; }
.pw.text-in .pw-section:nth-of-type(1) { transition-delay: 260ms; }
.pw.text-in .pw-section:nth-of-type(2) { transition-delay: 380ms; }
.pw.text-in .pw-section:nth-of-type(3) { transition-delay: 500ms; }
.pw.text-in .pw-ctas { transition-delay: 640ms; }
.pw.text-in .pw-nav { transition-delay: 760ms; }
html.js .pw.switching .pw-card { opacity: 1 !important; }
html.js .pw.switching .pw-nav, html.js .pw.switching .pw-ctas { opacity: 1 !important; transform: none !important; transition: none !important; }
html.js .pw.switch-out .pw-badge, html.js .pw.switch-out .pw-title, html.js .pw.switch-out .pw-section { transition: opacity 240ms ease, transform 280ms var(--ease-elegant) !important; transition-delay: 0ms !important; }
html.pw-arrive .pw-card { opacity: 1; }

/* Shorter screens keep fewer sections, so the copy never runs into the buttons */
@media (min-width: 901px) and (max-height: 980px) { .pw-section--words { display: none; } .pw-title { margin-bottom: 32px; } }
@media (min-width: 901px) and (max-height: 760px) { .pw-section--cat { display: none; } }

/* Stacked layout for narrow screens: tile on top, card below, in normal flow */
@media (max-width: 900px) {
  .pw { --pad-x: 20px; --pad-y: 28px; height: auto; display: flex; flex-direction: column; padding-top: 16px; }
  .pw-image { position: relative; right: auto; top: auto; order: -1; width: calc(100% - 32px); height: auto; aspect-ratio: 4 / 3; margin: 0 16px; }
  .pw-image__mono { font-size: 34vw; }
  .pw-card { position: relative; width: 100%; height: auto; margin-top: 16px; padding-bottom: 32px; border-radius: 0; }
  .pw-title { font-size: clamp(38px, 10.5vw, 72px); margin-bottom: 28px; }
  .pw-ctas { margin-top: 8px; padding: 0; }
  .pw-nav { position: absolute; right: 28px; top: 28px; bottom: auto; }
}

.claim { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--color-grey); }
.claim p:not(.eyebrow) { margin: 10px 0 0; color: var(--color-body); font-size: 14px; }
.claim .pill { margin-top: 20px; background: #fff; }

/* FAQ */
.faq { border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; letter-spacing: -0.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { position: relative; flex: none; width: 14px; height: 14px; }
.faq__ic::before, .faq__ic::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: #000; transition: transform .5s var(--out); }
.faq__ic::after { transform: rotate(90deg); }
.faq details[open] .faq__ic::after { transform: rotate(0deg); }
.faq details p { max-width: 64ch; padding-bottom: 20px; color: var(--color-body); }

/* Steps, panels */
.steps { border-top: 1px solid var(--color-line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--color-line); }
.steps span { font-size: 12px; font-weight: 500; letter-spacing: var(--caps-tracking); color: var(--color-muted); line-height: 2.2; }
.steps p { margin-top: 8px; color: var(--color-body); }
.panel { padding: 28px; border-radius: var(--radius); background: var(--color-grey); }
.panel__h { margin-bottom: 12px; font-size: 18px; }
.panel p:not(.panel__h) { color: var(--color-body); margin-bottom: 20px; }
.empty { padding: 48px 0; color: var(--color-body); }

/* ---------- Bottom sponsor block ---------- */
.ad-bottom { padding-block: clamp(64px, 8vw, 120px); background: var(--color-grey); }
.ad-bottom__grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.ad-bottom__art { display: block; overflow: hidden; border-radius: var(--radius); }
.ad-bottom__art img { width: 100%; transition: transform 1.6s var(--out); }
.ad-bottom__art:hover img { transform: scale(1.03); }
.ad-bottom__h { max-width: 14ch; margin-top: 20px; font-size: clamp(36px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.ad-bottom__p { max-width: 50ch; margin: 22px 0 32px; color: var(--color-body); font-size: 16px; }
.ad-bottom__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-bottom: 32px; }
.ad-bottom__facts dd { margin-top: 4px; font-size: 14px; }
.ad-bottom__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-bottom__ctas .pill:not(.pill--green) { background: #fff; }
.ad-bottom__logo { width: 180px; margin-top: 44px; }
@media (max-width: 860px) { .ad-bottom__grid { grid-template-columns: 1fr; } .ad-bottom__art { max-width: 340px; } .ad-bottom__facts { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 72px 0 32px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.foot__p { max-width: 36ch; margin-top: 12px; color: var(--color-body); font-size: 14px; }
.foot .eyebrow { margin-bottom: 14px; font-size: 10px; }
.foot ul { display: grid; gap: 8px; font-size: 14px; }
.foot ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .8s var(--out); }
.foot ul a:hover { background-size: 100% 1px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--color-line); }
.foot__base .meta { font-size: 9px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

html.js .is-resetting, html.js .is-resetting * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.js *, html.js *::before, html.js *::after { transition: none !important; animation: none !important; }
  .veil { display: none !important; }
}
