/* OVAL Co. — inner pages: About, Projects, Services, News, Contact and the project / news detail pages. */

.sub-label { margin: 0 0 18px; font-family: var(--font-text); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-aqua); }
[dir="rtl"] .sub-label { letter-spacing: 0; font-size: .95rem; }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .sub-label { color: var(--c-meadow); }
.rt__tick { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c-meadow) 16%, transparent); color: var(--c-aqua); }
.rt__tick .icon { width: 15px; height: 15px; }

/* Breadcrumbs */
.crumbs { margin-bottom: clamp(24px, 4vw, 40px); font-size: .88rem; font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }
.crumbs a { opacity: .72; transition: opacity .3s; }
.crumbs a:hover { opacity: 1; }

/* ── Page opening ───────────────────────────────────────────────────────── */
.phero { overflow: hidden; }
.phero__inner { position: relative; z-index: 1; display: grid; align-items: end; min-height: min(80vh, 780px); padding-block: calc(var(--header-h) + clamp(56px, 9vw, 120px)) clamp(56px, 8vw, 110px); }
.phero__copy { max-width: 940px; }
.phero__title { margin-bottom: .4em; }
.phero__title:last-child { margin-bottom: 0; }
.phero__text { max-width: 54ch; }
.phero--first .phero__inner { padding-bottom: clamp(40px, 5vw, 72px); }
.phero__foot { position: relative; z-index: 1; padding-bottom: 32px; }
.phero__bg { position: absolute; inset: 0; pointer-events: none; }
.phero__pattern { --pattern-color: var(--c-aqua); --pattern-opacity: .1; --pattern-size: 64px; inset: -12% 0 0; }
.phero__mark { position: absolute; inset-inline-end: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: 54%; height: min(72%, 600px); width: auto; translate: 0 -50%; overflow: visible; }
.phero__mark path { fill: color-mix(in srgb, var(--c-meadow) 7%, transparent); stroke: var(--c-meadow); stroke-width: .7; }
.js:not(.motion-off) .phero:not([data-mode="static"]) .phero__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .phero__pattern { --pattern-color: var(--c-meadow); }
.phero--media { color: #fff; background: var(--c-navy); }
.phero--media .phero__inner { min-height: 100vh; min-height: 100svh; }
.phero__media { position: absolute; inset: 0; overflow: hidden; }
.phero__media-inner { position: absolute; inset: 0; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c-navy) 60%, transparent) 0%, color-mix(in srgb, var(--c-navy) 15%, transparent) 42%, color-mix(in srgb, var(--c-navy) 82%, transparent) 100%); }
.phero--media .phero__text { color: rgba(255, 255, 255, .86); }
.phero--media .eyebrow { color: var(--c-meadow); }
.phero--split .phero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 110px); align-items: center; min-height: 0; }
.phero__figure { position: relative; }
.phero__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 48% 48% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); background: var(--c-mist); }
.phero__frame-inner { position: absolute; inset: -6% 0; }
@media (max-width: 991px) {
  .phero__inner { min-height: 0; }
  .phero--media .phero__inner { min-height: 88svh; }
  .phero--split .phero__inner { grid-template-columns: minmax(0, 1fr); }
  .phero__frame { aspect-ratio: 4 / 3; border-radius: 40% 40% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
  .phero__mark { height: 46%; top: auto; bottom: -6%; translate: 0 0; opacity: .35; }
  .phero__foot { display: none; }
}

/* ── Text and image ─────────────────────────────────────────────────────── */
.rt__lead { max-width: 1120px; margin-bottom: clamp(56px, 8vw, 120px); }
.rt__lead:last-child { margin-bottom: 0; }
.rt__statement { margin: 0; font-family: var(--font-display); font-size: calc(clamp(1.9rem, 3.8vw, 3.6rem) * var(--scale-display, 1)); font-weight: 700; line-height: 1.16; letter-spacing: -0.025em; }
[dir="rtl"] .rt__statement { letter-spacing: 0; line-height: 1.6; }
.rt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.rt--media-end .rt__media { order: 2; }
.rt--media-end .rt__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.rt--text .rt__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline-start: auto; }
.rt__media { position: sticky; top: calc(var(--header-h) + 32px); }
.rt__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); }
.rt__media-inner { position: absolute; inset: 0; }
.rt__title { margin-bottom: .8em; }
.rt__points { display: grid; gap: 14px; margin-top: 32px; }
.rt__points li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
@media (max-width: 991px) {
  .rt__grid, .rt--media-end .rt__grid { grid-template-columns: minmax(0, 1fr); }
  .rt--media-end .rt__media { order: 0; }
  .rt__media { position: static; }
  .rt__frame { aspect-ratio: 4 / 3; }
}

/* ── Values ─────────────────────────────────────────────────────────────── */
.values { overflow: hidden; }
.values__pattern { --pattern-color: var(--c-aqua); --pattern-opacity: .06; --pattern-size: 96px; }
.values__inner { position: relative; }
.values__grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.values__grid--1 { --cols: 1; max-width: 520px; }
.values__grid--2 { --cols: 2; }
.values__grid--3 { --cols: 3; }
.values__card { position: relative; height: 100%; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 36px) clamp(32px, 3.4vw, 48px); border-radius: var(--radius); background: var(--c-paper); box-shadow: 0 30px 60px -42px rgba(14, 31, 67, .4); }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .values__card { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--surface-line); }
.values__icon { width: 66px; height: 54px; display: grid; place-items: center; margin-bottom: clamp(32px, 4vw, 56px); color: #fff; background: var(--grad-brand); -webkit-mask: url("../brand/pebble-mask.svg") center / 100% 100% no-repeat; mask: url("../brand/pebble-mask.svg") center / 100% 100% no-repeat; }
.values__icon .icon { width: 22px; height: 22px; }
.values__num { position: absolute; top: clamp(28px, 3vw, 44px); inset-inline-end: clamp(24px, 2.6vw, 36px); font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--fg-muted); }
.values__title { margin-bottom: .5em; }
.values__text { color: var(--fg-muted); }
@media (max-width: 991px) { .values__grid--3, .values__grid--4 { --cols: 2; } }
@media (max-width: 575px) { .values__grid--2, .values__grid--3, .values__grid--4 { --cols: 1; } }

/* ── Scroll film ────────────────────────────────────────────────────────── */
.fstory { background: var(--c-navy); color: #fff; }
.fstory__stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.fstory__media { position: absolute; inset: 0; background: var(--c-navy); }
.fstory__canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--c-navy); opacity: 0; transition: opacity .6s; }
.fstory__canvas.is-ready { opacity: 1; }
.fstory__shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-navy) 72%, transparent), transparent 62%); }
[dir="rtl"] .fstory__shade { background: linear-gradient(270deg, color-mix(in srgb, var(--c-navy) 72%, transparent), transparent 62%); }
.fstory__captions { position: relative; z-index: 1; height: 100%; display: grid; align-items: center; }
.fstory__caption { grid-area: 1 / 1; max-width: 560px; }
.js:not(.motion-off) .fstory:not([data-mode="static"]) .fstory__caption { opacity: 0; visibility: hidden; }
.fstory__title { margin-bottom: .4em; }
.fstory__text { color: rgba(255, 255, 255, .86); }
.fstory__foot { position: absolute; inset-inline: 0; bottom: 32px; z-index: 1; }
.fstory__bar { position: relative; display: block; max-width: 240px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.fstory__bar i { position: absolute; inset: 0; background: var(--c-meadow); transform: scaleX(0); transform-origin: var(--origin-start); }
:is(.no-js, .motion-off) .fstory__stage, .fstory[data-mode="static"] .fstory__stage { height: auto; min-height: 0; }
:is(.no-js, .motion-off) .fstory__media, .fstory[data-mode="static"] .fstory__media { position: relative; aspect-ratio: 16 / 9; }
:is(.no-js, .motion-off) .fstory__captions, .fstory[data-mode="static"] .fstory__captions { height: auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; padding-block: clamp(56px, 8vw, 100px); align-items: start; }
:is(.no-js, .motion-off) .fstory__caption, .fstory[data-mode="static"] .fstory__caption { grid-area: auto; }
:is(.no-js, .motion-off) :is(.fstory__shade, .fstory__foot), .fstory[data-mode="static"] :is(.fstory__shade, .fstory__foot) { display: none; }
@media (max-width: 991px) {
  .fstory__shade, [dir="rtl"] .fstory__shade { background: linear-gradient(0deg, color-mix(in srgb, var(--c-navy) 80%, transparent), transparent 70%); }
  .fstory__captions { align-items: end; padding-bottom: 88px; }
}

/* ── Filter chips ───────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 64px); }
.chip { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .55em 1.2em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--surface-line); font-size: .92rem; font-weight: 600; transition: background-color .3s, color .3s, box-shadow .3s; }
.chip sup { top: -.4em; font-size: .7em; opacity: .6; }
.chip:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.is-active { background: var(--c-navy); color: #fff; box-shadow: none; }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .chip.is-active { background: #fff; color: var(--c-navy); }

/* ── Projects list ──────────────────────────────────────────────────────── */
.pgrid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); row-gap: clamp(56px, 7vw, 110px); align-items: start; }
.pgrid__item.is-shift { margin-top: clamp(80px, 12vw, 200px); }
.pgrid__item[hidden] { display: none; }
.pcard { display: block; }
.pcard__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); box-shadow: 0 34px 70px -40px rgba(14, 31, 67, .45); }
.pcard__img { position: absolute; inset: -6% 0; }
.pcard__img img { transition: transform 1.4s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__logo { position: absolute; z-index: 1; inset-inline-start: 20px; bottom: 20px; width: 88px; height: 88px; display: grid; place-items: center; padding: 15px; border-radius: 50%; background: #fff; box-shadow: 0 16px 36px -18px rgba(14, 31, 67, .5); }
.pcard__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pcard__body { padding-top: 28px; }
.pcard__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pcard__year { font-family: var(--font-display); font-weight: 700; color: var(--fg-muted); }
.pcard__title { margin-bottom: .35em; transition: color .3s; }
.pcard:hover .pcard__title { color: var(--c-aqua); }
.pcard__location { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--fg-muted); }
.pcard__location .icon { color: var(--c-meadow); }
.pcard__summary { max-width: 52ch; color: var(--fg-muted); }
.pcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.pcard__fact { padding: .45em .95em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--surface-line); font-size: .88rem; font-weight: 600; }
@media (max-width: 760px) {
  .pgrid__list { grid-template-columns: minmax(0, 1fr); }
  .pgrid__item.is-shift { margin-top: 0; }
  .pcard__logo { width: 70px; height: 70px; padding: 12px; }
}

/* ── Services list ──────────────────────────────────────────────────────── */
.slist__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.slist__visual { position: relative; align-self: stretch; }
.slist__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.slist__stack { position: relative; aspect-ratio: 1.12; background: var(--c-mist); }
.slist__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .8s, transform 1.4s var(--ease-out); }
.slist__img.is-active { opacity: 1; transform: none; }
.slist__count { margin-top: 24px; font-size: .9rem; font-weight: 600; letter-spacing: .1em; color: var(--fg-muted); }
.slist__count b { color: var(--c-ink); }
.slist__list { display: grid; gap: clamp(72px, 10vw, 160px); padding-block: clamp(0px, 6vw, 80px); }
.slist__item { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 992px) { .slist__item { min-height: 40vh; } }
.slist__item-media { display: none; }
.slist__num { display: block; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--c-aqua); }
.slist__title { margin-bottom: .45em; }
.slist__summary { max-width: 52ch; }
.slist__prose { margin-top: 24px; color: var(--fg-muted); }
.slist__features { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--surface-line); }
.slist__sub { margin: 0 0 18px; font-family: var(--font-text); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-aqua); }
[dir="rtl"] .slist__sub { letter-spacing: 0; font-size: .95rem; }
.slist__features ul { display: grid; gap: 12px; }
.slist__features li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
@media (max-width: 991px) {
  .slist__grid { grid-template-columns: minmax(0, 1fr); }
  .slist__visual { display: none; }
  .slist__list { padding-block: 0; }
  .slist__item-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 28px; border-radius: var(--radius); background: var(--c-mist); }
}

/* ── News list ──────────────────────────────────────────────────────────── */
.posts__featured { margin-bottom: clamp(56px, 7vw, 96px); }
.post-card--featured .post-card__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.post-card--featured .post-card__media { margin-bottom: 0; }
.post-card--featured .post-card__excerpt { font-size: 1.08rem; }
.post-card--featured .link-arrow { margin-top: 12px; }
.post-card__play { position: absolute; z-index: 1; inset-inline-end: 18px; bottom: 18px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--c-navy); transition: transform .5s var(--ease-out); }
.post-card__play .icon { width: 18px; height: 18px; margin-inline-start: 3px; }
.post-card__link:hover .post-card__play { transform: scale(1.1); }
.posts__grid { row-gap: clamp(48px, 6vw, 80px); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: clamp(64px, 8vw, 110px); }
.pager__list { display: flex; gap: 6px; }
.pager__num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; box-shadow: inset 0 0 0 1px var(--surface-line); transition: background-color .3s, color .3s, box-shadow .3s; }
.pager__num:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.pager__num.is-active { background: var(--c-navy); color: #fff; box-shadow: none; }
.pager__step { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; }
.pager__step--prev .icon { transform: scaleX(-1); }
[dir="rtl"] .pager__step--prev .icon { transform: none; }
@media (max-width: 860px) {
  .post-card--featured .post-card__link { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-card--featured .post-card__media { margin-bottom: 22px; }
  .post-card--featured .post-card__title { font-size: calc(clamp(1.5rem, 6vw, 2rem) * var(--scale-display, 1)); }
}

/* ── Contact details, form and map ──────────────────────────────────────── */
.cblock__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.cblock__grid--solo { grid-template-columns: minmax(0, 1fr); }
.cblock__list { display: grid; gap: 26px; }
.cblock__row { display: flex; align-items: flex-start; gap: 18px; }
.cblock__icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c-meadow) 14%, transparent); color: var(--c-aqua); }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .cblock__icon { color: var(--c-meadow); }
.cblock__label { margin: 0 0 4px; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
[dir="rtl"] .cblock__label { letter-spacing: 0; font-size: .92rem; }
.cblock__value { display: block; margin: 0; font-size: 1.12rem; font-weight: 600; }
a.cblock__value { transition: color .3s; }
a.cblock__value:hover { color: var(--c-aqua); }
[dir="rtl"] .cblock__value[dir="ltr"] { text-align: right; }
.cblock__social { margin-top: 40px; }
.cblock__social .cblock__label { margin-bottom: 14px; }
.cblock__panel { padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--c-paper); box-shadow: 0 40px 80px -50px rgba(14, 31, 67, .45), inset 0 0 0 1px var(--c-line); }
[data-theme="mist"] .cblock__panel { background: #fff; }
:is([data-theme="dark"], [data-theme="teal"], [data-theme="gradient"]) .cblock__panel { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--surface-line); }
.cblock__map { margin-top: clamp(64px, 8vw, 120px); }
.cblock__map-frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); }
.cblock__map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(.85) contrast(1.05); transition: filter .6s; }
.cblock__map-frame:hover iframe, .cblock__map-frame:focus-within iframe { filter: none; }
.cblock__map figcaption { margin-top: 18px; }
@media (max-width: 991px) {
  .cblock__grid { grid-template-columns: minmax(0, 1fr); }
  .cblock__map-frame { aspect-ratio: 4 / 3; }
}

/* ── Questions ──────────────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--surface-line); }
.faq__item { border-bottom: 1px solid var(--surface-line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .h4 { font-family: var(--font-display); font-weight: 600; transition: color .3s; }
.faq__q:hover .h4 { color: var(--c-aqua); }
.faq__icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--surface-line); transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s; }
.faq__item[open]:not(.is-closing) .faq__icon { transform: rotate(45deg); background: var(--c-navy); color: #fff; box-shadow: none; }
.faq__a { overflow: hidden; }
.faq__a-inner { max-width: 64ch; padding-bottom: 28px; color: var(--fg-muted); }
@media (max-width: 991px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq__aside { position: static; }
}

/* ── Partners ───────────────────────────────────────────────────────────── */
.partners__marquee { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners__track { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); padding-inline-end: clamp(40px, 6vw, 96px); animation: oval-marquee var(--marquee-time, 40s) linear infinite; }
.partners__marquee:hover .partners__track { animation-play-state: paused; }
[dir="rtl"] .partners__track { animation-name: oval-marquee-rtl; }
.partners__item img { width: auto; height: clamp(40px, 5vw, 64px); max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.partners__item a:hover img, .partners__item a:focus-visible img { filter: none; opacity: 1; }
@keyframes oval-marquee { to { transform: translateX(-100%); } }
@keyframes oval-marquee-rtl { to { transform: translateX(100%); } }
.motion-off .partners__marquee { justify-content: center; -webkit-mask: none; mask: none; }
.motion-off .partners__track { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); animation: none; }
.motion-off .partners__track[aria-hidden] { display: none; }

/* ── Team ───────────────────────────────────────────────────────────────── */
.team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.team__photo { position: relative; aspect-ratio: 1.08; margin-bottom: 22px; background: var(--c-mist); }
.team__name { margin-bottom: .25em; }
.team__role { margin-bottom: .6em; color: var(--c-aqua); font-size: .95rem; font-weight: 600; }
.team__bio { color: var(--fg-muted); font-size: .95rem; }
@media (max-width: 991px) { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Project page ───────────────────────────────────────────────────────── */
.proj-hero { background: var(--c-navy); color: #fff; }
.proj-hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.proj-hero__media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0% 0% 0% 0% round 0px); background: var(--c-navy); }
.proj-hero__media-inner { position: absolute; inset: 0; }
.proj-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c-navy) 62%, transparent) 0%, color-mix(in srgb, var(--c-navy) 12%, transparent) 36%, color-mix(in srgb, var(--c-navy) 88%, transparent) 100%); }
.proj-hero__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: calc(var(--header-h) + 20px) clamp(64px, 11vh, 120px); }
.proj-hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.proj-hero__copy { max-width: 1040px; }
.proj-hero__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.proj-hero__year { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.proj-hero__title { margin-bottom: .3em; }
.proj-hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 0; font-size: clamp(1.02rem, 1.3vw, 1.25rem); color: rgba(255, 255, 255, .86); }
.proj-hero__loc { display: inline-flex; align-items: center; gap: 8px; }
.proj-hero__loc .icon { color: var(--c-meadow); }
.proj-hero__logo { flex: 0 0 auto; width: clamp(104px, 10vw, 148px); aspect-ratio: 1; display: grid; place-items: center; padding: 22px; border-radius: 50%; background: #fff; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5); }
.proj-hero__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.proj-hero__hint { position: absolute; z-index: 1; bottom: 26px; inset-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); color: rgba(255, 255, 255, .86); }
.proj-hero__hint .scroll-hint__line { height: 30px; }
.proj-overview__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.proj-overview__statement { margin-bottom: clamp(32px, 4vw, 56px); }
.proj-overview__prose { max-width: 68ch; color: var(--fg-muted); }
.proj-overview__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.facts { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--c-mist); }
.facts__list { margin: 0; }
.facts__row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.facts__row:first-child { padding-top: 0; }
.facts__row dt { color: var(--fg-muted); font-size: .95rem; }
.facts__row dd { margin: 0; font-weight: 600; text-align: end; }
.facts__actions { display: grid; gap: 12px; margin-top: 26px; }
.facts__actions .btn { width: 100%; }
.proj-features { margin-top: clamp(40px, 5vw, 64px); }
.proj-features__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.proj-features__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
@media (max-width: 991px) {
  .proj-hero__inner { padding-bottom: 88px; }
  .proj-hero__logo { width: 92px; padding: 15px; order: -1; }
  .proj-overview__grid { grid-template-columns: minmax(0, 1fr); }
  .proj-overview__aside { position: static; }
}
@media (max-width: 575px) { .proj-features__list { grid-template-columns: minmax(0, 1fr); } }

/* Gallery and plans */
.gallery__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.gallery__item { grid-column: span 6; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__link { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); cursor: zoom-in; }
.gallery__item--wide .gallery__link { aspect-ratio: 21 / 9; }
.gallery__img { position: absolute; inset: -6% 0; }
.gallery__img img { transition: transform 1.4s var(--ease-out); }
.gallery__link:hover .gallery__img img { transform: scale(1.04); }
.gallery__zoom { position: absolute; z-index: 1; inset-inline-end: 18px; bottom: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--c-navy); opacity: 0; transform: scale(.8); transition: opacity .35s, transform .5s var(--ease-out); }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom, .plans__link:hover .gallery__zoom, .plans__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__caption, .plans__caption { margin-top: 12px; font-size: .92rem; color: var(--fg-muted); }
.plans__caption { font-weight: 600; color: inherit; }
.plans__master { margin-bottom: clamp(48px, 6vw, 80px); }
.plans__link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); cursor: zoom-in; }
.plans__link img { width: 100%; height: 100%; object-fit: contain; }
.plans__link--master { aspect-ratio: 16 / 9; padding: clamp(16px, 2vw, 32px); border-radius: var(--radius); }
.plans__sub { margin-bottom: 24px; }
.plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
@media (max-width: 760px) {
  .gallery__item { grid-column: 1 / -1; }
  .gallery__item--wide .gallery__link, .gallery__link { aspect-ratio: 4 / 3; }
  .plans__link--master { aspect-ratio: 4 / 3; }
}

/* Click-to-play film */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.yt__play { position: absolute; inset: 0; display: block; }
.yt__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.4s var(--ease-out), opacity .4s; }
.yt__play:hover img { opacity: 1; transform: scale(1.03); }
.yt__btn { position: absolute; left: 50%; top: 50%; width: clamp(72px, 8vw, 104px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--c-navy); translate: -50% -50%; animation: oval-pulse 2.4s ease-out infinite; }
.yt__btn .icon { width: 30%; height: 30%; margin-inline-start: 5%; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes oval-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 30px rgba(255, 255, 255, 0); } }

/* Next project */
.next-proj { position: relative; display: block; overflow: hidden; color: #fff; background: var(--c-navy); }
.next-proj__media { position: absolute; inset: 0; overflow: hidden; }
.next-proj__img { position: absolute; inset: -10% 0; }
.next-proj__img img { transition: transform 1.6s var(--ease-out); }
.next-proj:hover .next-proj__img img { transform: scale(1.05); }
.next-proj__shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--c-navy) 66%, transparent); transition: background-color .6s; }
.next-proj:hover .next-proj__shade { background: color-mix(in srgb, var(--c-navy) 48%, transparent); }
.next-proj__inner { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; min-height: clamp(380px, 62vh, 660px); padding-block: 96px; }
.next-proj .eyebrow { color: var(--c-meadow); }
.next-proj__title { display: inline-flex; align-items: center; gap: .3em; }
.next-proj__title .icon { width: .7em; height: .7em; transition: transform .6s var(--ease-out); }
.next-proj:hover .next-proj__title .icon { transform: translateX(.15em); }
[dir="rtl"] .next-proj:hover .next-proj__title .icon { transform: scaleX(-1) translateX(.15em); }
.next-proj__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: rgba(255, 255, 255, .82); }
.next-proj__meta .icon { color: var(--c-meadow); }

/* ── News post ──────────────────────────────────────────────────────────── */
.article-head { overflow: hidden; }
.article-head__pattern { --pattern-color: var(--c-aqua); --pattern-opacity: .08; --pattern-size: 64px; }
.article-head__inner { position: relative; padding-block: calc(var(--header-h) + clamp(40px, 6vw, 88px)) clamp(40px, 5vw, 64px); }
.article-head__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-aqua); }
[dir="rtl"] .article-head__meta { letter-spacing: 0; font-size: .95rem; }
.article-head__title { max-width: 18em; margin-bottom: .4em; font-size: calc(clamp(2.2rem, 5vw, 4.6rem) * var(--scale-display, 1)); }
.article-head__lead { max-width: 60ch; }
.article-cover__frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); background: var(--c-mist); }
.article-cover__img { position: absolute; inset: -6% 0; }
.article-body { padding-block: clamp(56px, 7vw, 104px); }
.article-body__prose { max-width: 720px; margin-inline: auto; }
.article-video { max-width: 980px; margin: clamp(48px, 6vw, 80px) auto 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; max-width: 720px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 28px; border-top: 1px solid var(--c-line); }
.share__label { margin: 0; font-weight: 600; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__list a, .share__list button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-line); transition: background-color .3s, color .3s, box-shadow .3s; }
.share__list a:hover, .share__list button:hover { background: var(--c-navy); color: #fff; box-shadow: none; }
.share__list .icon { width: 1.1em; height: 1.1em; }
.share__copied { margin: 0; font-size: .9rem; font-weight: 600; color: var(--c-aqua); overflow-wrap: anywhere; user-select: all; }
.share__back { margin-inline-start: auto; }
@media (max-width: 760px) {
  .article-cover__frame { aspect-ratio: 4 / 3; }
  .share__back { margin-inline-start: 0; flex-basis: 100%; }
}

/* ── Image viewer ───────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 20, 44, .96); color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.lightbox__count { font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
.lightbox__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .3s, color .3s; }
.lightbox__btn:hover { background: #fff; color: var(--c-navy); }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(16px, 8vw, 128px); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; transition: opacity .3s; }
.lightbox__img.is-loading { opacity: 0; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { inset-inline-start: var(--gutter); }
.lightbox__nav--next { inset-inline-end: var(--gutter); }
.lightbox__nav--prev .icon { transform: scaleX(-1); }
[dir="rtl"] .lightbox__nav--prev .icon { transform: none; }
.lightbox__caption { min-height: 64px; margin: 0; padding: 16px var(--gutter) 24px; text-align: center; color: rgba(255, 255, 255, .82); }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { top: auto; bottom: -58px; translate: none; }
  .lightbox__caption { padding-inline: 80px; }
}

/* Signed-in editors */
.editor-bar { position: fixed; z-index: 70; bottom: 20px; left: 50%; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--c-navy); color: #fff; font-size: .86rem; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .22); translate: -50% 0; }
.editor-bar__note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #a86200; }
.editor-bar__link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; transition: background-color .3s; }
.editor-bar__link:hover { background: rgba(255, 255, 255, .12); }
.editor-bar .icon { width: 1.1em; height: 1.1em; }
