.subpage-body {
  background: linear-gradient(180deg, #050606 0%, #0b0c0d 58%, #111315 100%);
}

.subpage-main {
  padding-top: 68px;
}

.page-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--muted-2);
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--text);
}

.detail-hero,
.article-hero,
.hub-hero {
  padding-top: clamp(72px, 8vw, 118px);
  padding-bottom: clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: end;
}

.detail-label,
.article-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-label::after,
.article-label::after {
  width: 44px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.detail-hero h1,
.article-hero h1,
.hub-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.98;
}

.detail-hero__lead,
.article-hero__lead,
.hub-hero__lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.detail-hero__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.detail-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts div {
  min-width: 0;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.project-facts div:first-child {
  border-left: 0;
}

.project-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.52;
}

.project-gallery {
  padding-top: clamp(76px, 9vw, 128px);
  padding-bottom: clamp(76px, 9vw, 128px);
  border-bottom: 1px solid var(--line);
}

.gallery-heading,
.content-heading {
  display: grid;
  grid-template-columns: 78px minmax(0, 760px);
  gap: 20px 34px;
  margin-bottom: 48px;
}

.gallery-heading h2,
.content-heading h2,
.related-section h2,
.hub-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 720;
  line-height: 1.02;
}

.gallery-heading > p:not(.section-index),
.content-heading > p:not(.section-index) {
  grid-column: 2;
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.gallery-shell {
  position: relative;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.gallery-stage__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.gallery-stage__counter {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  min-width: 66px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 6, 0.82);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.gallery-control,
.lightbox__control,
.lightbox__close {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 6, 0.82);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.gallery-control:hover,
.lightbox__control:hover,
.lightbox__close:hover {
  border-color: var(--accent-2);
  background: rgba(5, 6, 6, 0.96);
}

.gallery-control svg,
.lightbox__control svg,
.lightbox__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.gallery-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-control--prev {
  left: 18px;
}

.gallery-control--next {
  right: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-auto-columns: minmax(126px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  cursor: pointer;
}

.gallery-thumb::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  transition: border-color 160ms ease;
}

.gallery-thumb[aria-current="true"]::after {
  border-color: var(--accent-2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.72);
  transition: filter 180ms ease, transform 260ms ease;
}

.gallery-thumb:hover img,
.gallery-thumb[aria-current="true"] img {
  filter: saturate(0.95) brightness(0.96);
  transform: scale(1.02);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 4, 0.96);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox__inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 72px 80px;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
}

.lightbox__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__control--prev {
  left: 20px;
}

.lightbox__control--next {
  right: 20px;
}

.lightbox__caption {
  position: absolute;
  right: 80px;
  bottom: 26px;
  left: 80px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.project-description {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1fr);
  gap: clamp(56px, 9vw, 126px);
  padding-top: clamp(76px, 9vw, 128px);
  padding-bottom: clamp(76px, 9vw, 128px);
}

.project-description h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
}

.project-description__copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.project-description__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.project-description__copy strong {
  color: var(--text);
  font-weight: 650;
}

.related-section,
.hub-section {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.related-section__heading,
.hub-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.related-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.related-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card,
.hub-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(15, 17, 18, 0.9);
  transition: background 180ms ease;
}

.related-card:hover,
.hub-card:hover {
  background: rgba(246, 242, 235, 0.045);
}

.related-card__media,
.hub-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.hub-card__media {
  aspect-ratio: 1672 / 941;
  background: #eee9e2;
}

.related-card__media img,
.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04) brightness(0.82);
  transition: filter 260ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-card__media img {
  object-fit: contain;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
}

.related-card:hover img,
.hub-card:hover img {
  filter: saturate(0.95) contrast(1.03) brightness(0.96);
  transform: scale(1.02);
}

.hub-card:hover .hub-card__media img {
  filter: saturate(1) contrast(1) brightness(1);
}

.related-card__body,
.hub-card__body {
  display: grid;
  min-height: 250px;
  align-content: start;
  padding: 30px;
}

.related-card__body span,
.hub-card__body > span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card h3,
.hub-card h2,
.hub-card h3 {
  margin: 28px 0 0;
  font-size: 27px;
  line-height: 1.14;
}

.related-card p,
.hub-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

.hub-hero__lead {
  max-width: 760px;
}

.hub-section {
  border-top: 0;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(52px, 8vw, 116px);
  justify-content: center;
  padding-top: clamp(70px, 8vw, 112px);
  padding-bottom: clamp(78px, 9vw, 128px);
}

.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-top: 8px;
}

.article-toc strong {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.article-toc a:hover {
  color: var(--accent-2);
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin: 72px 0 22px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 42px 0 16px;
  font-size: 23px;
  line-height: 1.2;
}

.article-content p,
.article-content li {
  color: rgba(246, 242, 235, 0.78);
  font-size: 18px;
  line-height: 1.78;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 22px;
}

.article-content strong {
  color: var(--text);
  font-weight: 650;
}

.article-content figure {
  margin: 46px 0;
}

.article-content figure img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-content figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-note {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 2px solid var(--accent);
  background: rgba(201, 130, 92, 0.08);
}

.article-note p:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  margin: 36px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.article-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.article-table th,
.article-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th:first-child,
.article-table td:first-child {
  border-left: 0;
}

.article-table th {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-table td {
  color: var(--muted);
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 64px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 14, 0.84);
}

.article-cta h2,
.article-cta h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.article-cta p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 1600px) {
  .subpage-main {
    padding-top: 84px;
  }

  .detail-hero__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  }

  .related-card__body,
  .hub-card__body {
    min-height: 290px;
    padding: 36px;
  }

  .related-card h3,
  .hub-card h2,
  .hub-card h3 {
    font-size: 31px;
  }

  .article-layout {
    grid-template-columns: 250px minmax(0, 860px);
  }

  .article-content p,
  .article-content li {
    font-size: 19px;
  }
}

@media (max-width: 1180px) {
  .subpage-main {
    padding-top: 72px;
  }

  .detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .detail-hero__media {
    max-height: 680px;
  }

  .article-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .detail-hero h1,
  .article-hero h1,
  .hub-hero h1 {
    font-size: clamp(40px, 8vw, 62px);
  }

  .project-facts,
  .related-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .related-grid--two {
    grid-template-columns: 1fr;
  }

  .project-facts div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-facts div:first-child {
    border-top: 0;
  }

  .gallery-heading,
  .content-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-heading > p:not(.section-index),
  .content-heading > p:not(.section-index) {
    grid-column: auto;
  }

  .project-description {
    grid-template-columns: 1fr;
  }

  .related-card,
  .hub-card {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .related-card__media,
  .hub-card__media {
    min-height: 250px;
    aspect-ratio: auto;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .detail-hero,
  .article-hero,
  .hub-hero {
    padding-top: 56px;
    padding-bottom: 66px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
    font-size: 10px;
  }

  .detail-hero h1,
  .article-hero h1,
  .hub-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.02;
  }

  .detail-hero__lead,
  .article-hero__lead,
  .hub-hero__lead {
    font-size: 16px;
  }

  .detail-hero__media {
    aspect-ratio: 4 / 3;
  }

  .project-facts {
    margin-top: 30px;
  }

  .project-facts div {
    padding: 20px 0;
  }

  .gallery-heading,
  .content-heading {
    margin-bottom: 32px;
  }

  .gallery-stage {
    aspect-ratio: 4 / 3;
  }

  .gallery-control,
  .lightbox__control,
  .lightbox__close {
    width: 44px;
    height: 44px;
  }

  .gallery-control--prev {
    left: 10px;
  }

  .gallery-control--next {
    right: 10px;
  }

  .gallery-stage__counter {
    right: 10px;
    bottom: 10px;
  }

  .gallery-thumbs {
    grid-auto-columns: 104px;
  }

  .lightbox__inner {
    padding: 68px 12px 82px;
  }

  .lightbox__control {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox__control--prev {
    left: 12px;
  }

  .lightbox__control--next {
    right: 12px;
  }

  .lightbox__caption {
    right: 66px;
    bottom: 30px;
    left: 66px;
  }

  .project-description__copy p,
  .article-content p,
  .article-content li {
    font-size: 17px;
  }

  .related-section__heading,
  .hub-section__heading {
    display: grid;
    align-items: start;
  }

  .related-card,
  .hub-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .related-card__media,
  .hub-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hub-card__media {
    aspect-ratio: 1672 / 941;
  }

  .related-card__body,
  .hub-card__body {
    min-height: 0;
    padding: 28px 24px;
  }

  .article-layout {
    padding-top: 58px;
  }

  .article-content h2 {
    margin-top: 54px;
  }

  .article-cta {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .article-cta .button {
    width: 100%;
  }
}

.legal-hero {
  padding-top: clamp(72px, 8vw, 118px);
  padding-bottom: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 130, 92, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.012);
}

.legal-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.02;
}

.legal-hero__lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.legal-version {
  margin: 24px 0 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-content {
  padding-top: clamp(68px, 8vw, 112px);
  padding-bottom: clamp(82px, 10vw, 144px);
}

.legal-content section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  border-top-color: rgba(225, 170, 130, 0.54);
}

.legal-content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 680;
  line-height: 1.2;
}

.legal-content section > p,
.legal-content section > ul,
.legal-content section > div {
  grid-column: 2;
}

.legal-content section > p + p,
.legal-content section > p + ul {
  margin-top: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 680;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(225, 170, 130, 0.56);
  text-underline-offset: 4px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}

.legal-operator > div {
  display: grid;
  gap: 8px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

@media (max-width: 760px) {
  .legal-hero {
    padding-top: 56px;
    padding-bottom: 66px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .legal-hero__lead {
    font-size: 16px;
  }

  .legal-content section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0;
  }

  .legal-content section > p,
  .legal-content section > ul,
  .legal-content section > div {
    grid-column: 1;
  }

  .legal-content p,
  .legal-content li {
    font-size: 16px;
  }
}
