/* benevents agency — the pages of the services, the projects, the agency and the cities (written by tools/site/build.mjs).
   They sit on the look of the site (style.css) and need no script. */
.page .nav { background: rgba(14, 14, 17, .68); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
/* no menu button on these pages: the language switch stays in the header at every width */
.page .nav .lang { display: flex; }
.lang a { padding: 5px 11px; border-radius: 99px; color: var(--mute); transition: color .3s, background .3s; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { color: #0a0a0a; background: var(--text); }

.pg { padding: clamp(124px, 17vh, 190px) 0 clamp(50px, 7vw, 100px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: clamp(26px, 3.4vw, 48px); font-size: 13.5px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { transition: color .3s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--text); }
.crumbs [aria-current] { color: rgba(246, 245, 241, .86); }

/* the top of a page: its words beside its picture */
.pg__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.pg__head--tall { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.pg__top { max-width: 900px; }
.pg__title { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: 1; font-size: clamp(38px, 5.2vw, 86px); text-wrap: balance; }
.pg__title em { display: block; width: fit-content; max-width: 100%; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding: .05em .12em .1em 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg__lede { margin-top: clamp(18px, 2vw, 28px); max-width: 46ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: rgba(246, 245, 241, .88); }
.pg__head .btn { margin-top: clamp(24px, 3vw, 38px); }
.pg__cover { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--card-2); }
.pg__cover img { width: 100%; height: auto; max-height: min(78vh, 760px); object-fit: cover; }
.pg__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(20px, 2.4vw, 30px); font-size: 13.5px; }
.pg__tags span { margin-right: 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pg__tags a { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-weight: 500; transition: background .3s, color .3s; }
.pg__tags a:hover, .pg__tags a:focus-visible { background: var(--text); color: #0a0a0a; }

/* the facts of a project: who for, where, when */
.pg__facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: clamp(20px, 2.4vw, 30px) 0 0; padding-top: clamp(16px, 1.8vw, 22px); border-top: 1px solid var(--line); }
.pg__facts dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pg__facts dd { margin: 4px 0 0; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; line-height: 1.35; }
.pg__facts a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s; }
.pg__facts a:hover, .pg__facts a:focus-visible { color: var(--c1); }

/* text and list */
.pg__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(34px, 5vw, 90px); align-items: start; margin-top: clamp(50px, 7vw, 110px); }
.pg__text p { max-width: 60ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; color: rgba(246, 245, 241, .84); }
.pg__text p + p { margin-top: 18px; }
.pg__h { margin-bottom: clamp(16px, 2vw, 24px); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pg__does li { display: flex; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: clamp(16.5px, 1.25vw, 20px); line-height: 1.35; }
.pg__does li:last-child { border-bottom: 1px solid var(--line); }
.pg__does li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c1); transform: translateY(-2px); }
.pg__does li:nth-child(4n + 2)::before { background: var(--c2); } .pg__does li:nth-child(4n + 3)::before { background: var(--c3); } .pg__does li:nth-child(4n)::before { background: var(--c4); }
.pg__does a { transition: color .3s; }
.pg__does a:hover, .pg__does a:focus-visible { color: var(--c1); }
/* a list across the page, in two columns */
.pg__does--wide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 70px); border-top: 1px solid var(--line); }
.pg__does--wide li, .pg__does--wide li:last-child { border-top: 0; border-bottom: 1px solid var(--line); }
/* a list whose lines have a name and a sentence */
.pg__does--said li > span { display: block; font-size: 15.5px; line-height: 1.5; color: rgba(246, 245, 241, .78); }
.pg__does--said b { display: block; margin-bottom: 3px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.pg__result { padding-top: 18px; border-top: 1px solid var(--line); }
.pg__result b { font-weight: 600; color: var(--text); }
.pg__more { margin-top: clamp(18px, 2vw, 26px); }
.pg__text .pg__more { margin-top: 22px; }
.pg__lede--wide { max-width: 62ch; margin: 0 0 clamp(22px, 2.6vw, 34px); }
.pg__sec { margin-top: clamp(50px, 7vw, 110px); }
/* things worth knowing about a city */
.pg__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pg__notes li { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.55; color: rgba(246, 245, 241, .84); }
.pg__notes li::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 16px; border-radius: 50%; background: var(--c1); }
.pg__notes li:nth-child(3n + 2)::before { background: var(--c2); } .pg__notes li:nth-child(3n)::before { background: var(--c3); }
/* the same cards, each with a name above its sentence, as many to a row as fit */
.pg__notes--named { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
@media (min-width: 1200px) { .pg__notes--n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }      /* five on one row where there is room */
.pg__notes--named b { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
/* questions and answers: each opens on a tap, without any script. The plus sign is drawn, not typed. */
.pg__faq { max-width: 980px; border-top: 1px solid var(--line); }
.pg__faq details { border-bottom: 1px solid var(--line); }
.pg__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -.02em; line-height: 1.25; transition: color .3s; }
.pg__faq summary::-webkit-details-marker { display: none; }
.pg__faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat; transition: transform .45s var(--ease); }
.pg__faq details[open] summary::after { transform: rotate(45deg); }
.pg__faq summary:hover, .pg__faq summary:focus-visible { color: var(--c1); }
.pg__faq p { max-width: 68ch; padding: 0 0 22px; font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.65; color: rgba(246, 245, 241, .82); }
/* the logos of clients, key figures, what clients said, the team */
.pg__logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pg__logos li { height: clamp(84px, 8.4vw, 110px); padding: 18px 26px; border-radius: 20px; background: #fff; }
.pg__logos img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; }
.pg__figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pg__figures li { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.pg__figures b { display: block; width: fit-content; padding-right: .06em; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5.4vw, 88px); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg__figures span { display: block; margin-top: 14px; font-size: 15.5px; line-height: 1.4; color: var(--mute); }
.pg__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.pg__quote { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; max-width: 900px; padding: clamp(24px, 3vw, 42px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.pg__quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.26; letter-spacing: -.01em; }
.pg__quote blockquote::before { content: "\201C"; display: block; height: .46em; font-size: 2.6em; line-height: 1; color: var(--c1); }
.pg__quote figcaption b { display: block; font-size: 16px; font-weight: 600; }
.pg__quote figcaption span { display: block; margin-top: 3px; font-size: 14px; color: var(--mute); }
.pg__quote figcaption span:empty { display: none; }
.pg__team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.pg__team img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; border-radius: var(--r); background: var(--card-2); }
.pg__team-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 44px; letter-spacing: -.03em; color: var(--mute); }
.pg__team b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.pg__team span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--mute); }
.pg__h2 { margin-bottom: clamp(22px, 2.6vw, 38px); font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(26px, 3vw, 46px); text-wrap: balance; }

/* cards that lead to a project */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.pcards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcards--few { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 400px)); }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, .42); }
.pcard__ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.pcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover img { transform: scale(1.05); }
.pcard__in { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: clamp(18px, 1.7vw, 24px); }
.pcard__in b { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.025em; line-height: 1.15; }
.pcard__in span { font-size: 15px; line-height: 1.5; color: rgba(246, 245, 241, .78); }
.pcard__in small { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 500; color: var(--mute); }

/* the photos of a project: rows that keep each picture whole */
.pg__photos { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); margin-top: clamp(40px, 6vw, 90px); }
.pg__photos figure { flex: calc(var(--r, 1) * 10) 1 calc(var(--r, 1) * 300px); margin: 0; overflow: hidden; aspect-ratio: var(--r, 1); max-height: 86vh; border-radius: clamp(14px, 1.6vw, 24px); background: var(--card-2); }
.pg__photos img { width: 100%; height: 100%; object-fit: cover; }

.pg__cta { margin-top: clamp(56px, 8vw, 120px); padding: 0; }
.pg__others { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(40px, 5vw, 70px); }
.pg__others .pg__h { width: 100%; margin-bottom: 6px; }
.pg__others a { padding: 12px 22px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 15.5px; font-weight: 500; transition: background .3s, color .3s; }
.pg__others a:hover, .pg__others a:focus-visible { background: var(--text); color: #0a0a0a; }
.pg__pn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: clamp(40px, 5vw, 70px); }
.pg__pn a[rel] { display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, transform .6s var(--ease); }
.pg__pn a[rel="next"] { text-align: right; align-items: flex-end; }
.pg__pn a[rel]:hover, .pg__pn a[rel]:focus-visible { border-color: rgba(255, 255, 255, .42); transform: translateY(-3px); }
.pg__pn small { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pg__pn b { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.025em; line-height: 1.15; }
.pg__all { padding: 12px 20px; border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--mute); white-space: nowrap; transition: color .3s; }
.pg__all:hover, .pg__all:focus-visible { color: var(--text); }

/* the page shown when an address does not exist */
.lost { min-height: 100svh; display: grid; align-items: center; }
.lost .eyebrow { margin-bottom: clamp(18px, 2vw, 28px); }
.lost__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: clamp(28px, 3.4vw, 44px); }

/* the foot of these pages */
.pfoot { border-top: 1px solid var(--line); background: var(--bg-2); }
.pfoot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px clamp(22px, 3.4vw, 60px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(30px, 4vw, 54px); }
.pfoot__lead p { margin: 18px 0 14px; max-width: 30ch; color: var(--mute); }
.pfoot__col { display: flex; flex-direction: column; align-items: flex-start; }
.pfoot__col h2 { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pfoot__col > a { padding: 5px 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; transition: color .3s; }
.pfoot__col > a:hover, .pfoot__col > a:focus-visible { color: var(--c1); }
.pfoot__col > button { padding: 5px 0; font-size: 16px; font-weight: 500; text-align: left; transition: color .3s; }
.pfoot__col > button:hover, .pfoot__col > button:focus-visible { color: var(--c1); }
.pfoot__col > button.is-waiting { opacity: .6; }
.pfoot__tel { white-space: nowrap; }
.pfoot .footer__social { display: flex; gap: 10px; margin-top: 14px; }
.pfoot .footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); transition: background .3s, color .3s; }
.pfoot .footer__social a:hover, .pfoot .footer__social a:focus-visible { background: var(--text); color: #0a0a0a; }
.pfoot .footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pfoot .footer__social .is-dot { fill: currentColor; stroke: none; }
.pfoot__base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 30px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.pfoot__base nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.pfoot__base a:hover, .pfoot__base a:focus-visible { color: var(--text); }

@media (max-width: 1100px) {
  .pfoot__in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pfoot__lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pg__head, .pg__head--tall, .pg__cols { grid-template-columns: 1fr; }
  .pg__notes, .pcards--three, .pg__does--wide ul { grid-template-columns: 1fr; }
  .pg__cover img { max-height: 70vh; }
  .pcards--two { grid-template-columns: 1fr; }
  .pfoot__in { grid-template-columns: 1fr 1fr; }
  .pfoot__lead { grid-column: 1 / -1; }
  .pg__pn { grid-template-columns: 1fr 1fr; }
  .pg__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 700px) {
  .pfoot__base { padding-bottom: 96px; }      /* the bar of the phones never covers the last line */
}
@media (max-width: 560px) {
  .pfoot__in { grid-template-columns: 1fr; }
  .pg__pn { grid-template-columns: 1fr; }
  .pg__pn a[rel="next"] { text-align: left; align-items: flex-start; }
  .pg__all { grid-row: auto; }
  .page .nav { padding-right: 16px; }
}
