:root {
  --paper: #f5f5f7;
  --white: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #147ce5;
  --dark: #030303;
  --dark-soft: #111113;
  --line: rgba(0, 0, 0, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);
  --radius: 8px;
  --max: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 28px), 980px);
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.56);
  color: #fff;
  transform: translateX(-50%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.22s ease, color 0.22s ease;
}

.brand:hover {
  transform: scale(1.045);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.06);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04) 55%);
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0.9;
}

.hero-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #1d1d1f;
  cursor: zoom-in;
}

.hero-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-tile img,
.photo-card img,
.journey-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.01);
}

.hero-film {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 44px;
  z-index: 3;
  display: none;
  grid-template-columns: repeat(4, 92px);
  gap: 8px;
}

.film-tile {
  width: 92px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.film-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-tile:hover {
  border-color: rgba(255, 255, 255, 0.62);
  transform: scale(1.07);
}

.hero-empty {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #070708;
}

.empty-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #171719;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
}

.empty-frame::before,
.collection-placeholder::before,
.journey-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.12) 46% 47%, transparent 47%),
    linear-gradient(28deg, #0b0b0c, #333338);
}

.empty-frame span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.empty-frame-one {
  top: 13%;
  right: 8%;
  width: 34vw;
  height: 52vh;
  transform: rotate(3deg);
}

.empty-frame-two {
  top: 8%;
  right: 38%;
  width: 20vw;
  height: 29vh;
  transform: rotate(-5deg);
  opacity: 0.72;
}

.empty-frame-three {
  right: 25%;
  bottom: 8%;
  width: 22vw;
  height: 23vh;
  transform: rotate(7deg);
  opacity: 0.58;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(90vw, 980px);
  padding: 0 0 12vh max(28px, calc((100vw - var(--max)) / 2));
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(72px, 11vw, 168px);
  font-weight: 700;
  line-height: 0.92;
}

.hero p {
  max-width: 590px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.48;
}

.primary-link,
.load-more,
.view-more-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 23px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-link:hover,
.load-more:hover,
.view-more-button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px) scale(1.055);
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--white);
}

.intro-band p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.stat-row {
  display: flex;
  gap: 34px;
}

.stat-row div {
  min-width: 84px;
}

.stat-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chapter {
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
}

.chapter-light {
  background: var(--paper);
}

.chapter-dark {
  background: var(--dark);
  color: #fff;
}

.chapter-copy {
  width: min(100%, 720px);
}

.chapter-copy h2,
.gallery-head h2,
.closing h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 650;
  line-height: 1.02;
}

.chapter-copy p,
.gallery-head p,
.closing p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.chapter-dark .chapter-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.kunshan-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.75fr;
  grid-auto-rows: 235px;
  gap: 10px;
  margin-top: 54px;
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: #d7d7db;
  cursor: zoom-in;
  break-inside: avoid;
  isolation: isolate;
}

.photo-card.feature {
  grid-row: span 2;
}

.photo-card.wide {
  grid-column: span 2;
}

.photo-card::after,
.journey-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-card img,
.journey-card img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-card:hover img,
.journey-card:hover img {
  transform: scale(1.045);
}

.photo-card:hover::after,
.photo-card:hover .photo-meta,
.journey-card:hover::after {
  opacity: 1;
}

.photo-meta {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: grid;
  gap: 4px;
  color: #fff;
  opacity: 0;
  text-align: left;
  transition: opacity 0.25s ease;
}

.photo-meta strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 54px;
}

.empty-panel,
.empty-gallery {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.dark-panel {
  grid-column: 1 / -1;
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

.collection-placeholder {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #c9c9ce;
}

.collection-placeholder:first-child {
  grid-row: span 2;
}

.collection-placeholder:nth-child(4) {
  grid-column: span 2;
}

.collection-placeholder span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.empty-gallery {
  min-height: 260px;
  padding: 24px;
  break-inside: avoid;
}

.empty-gallery strong,
.empty-gallery span {
  display: block;
}

.empty-gallery strong {
  color: var(--ink);
  font-size: 25px;
}

.empty-gallery span {
  margin-top: 10px;
  font-size: 15px;
}

.journey-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 0;
  background: var(--dark-soft);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.journey-placeholder {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.journey-placeholder::before {
  opacity: 0.72;
}

.journey-placeholder span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.journey-placeholder strong {
  font-size: 48px;
  font-weight: 600;
}

.journey-placeholder small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.journey-card span {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 8px;
}

.journey-card strong {
  font-size: 30px;
  line-height: 1;
}

.journey-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.gallery-section {
  padding: 108px max(24px, calc((100vw - var(--max)) / 2)) 118px;
  background: var(--white);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  width: min(100%, 520px);
}

.view-switch {
  display: flex;
  align-self: end;
  gap: 4px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.view-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
}

.view-button:last-child span {
  transform: rotate(90deg);
}

.view-button.active {
  background: var(--ink);
  color: #fff;
}

.search-wrap,
.select-wrap {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-wrap {
  flex: 1 1 220px;
}

.select-wrap {
  flex: 1 1 180px;
}

.search-wrap input,
.select-wrap select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.search-wrap input:focus,
.select-wrap select:focus {
  border-color: rgba(0, 113, 227, 0.52);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.masonry {
  columns: 5 190px;
  column-gap: 10px;
}

.masonry .photo-card {
  margin: 0 0 10px;
}

.masonry .photo-card img {
  height: auto;
  min-height: 150px;
}

.masonry.grid-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  columns: auto;
}

.masonry.grid-view .photo-card {
  aspect-ratio: 1 / 1;
  margin: 0;
}

.masonry.grid-view .photo-card img {
  height: 100%;
}

.load-row {
  display: flex;
  justify-content: center;
  padding-top: 38px;
}

.closing {
  padding: 112px max(24px, calc((100vw - var(--max)) / 2)) 96px;
  background: var(--dark);
  color: #fff;
}

.closing p {
  color: rgba(255, 255, 255, 0.68);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.lightbox::backdrop {
  background: #000;
}

.lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  padding: 70px 74px 78px;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  position: fixed;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: center;
}

.icon-button {
  position: fixed;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(16px);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.close-lightbox {
  top: 20px;
  right: 20px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 720px);
  }

  .hero-film {
    right: 24px;
    grid-template-columns: repeat(4, 74px);
  }

  .film-tile {
    width: 74px;
    height: 52px;
  }

  .hero-copy {
    padding-right: 24px;
  }

  .intro-band,
  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-row {
    width: 100%;
    justify-content: space-between;
  }

  .kunshan-grid,
  .journey-strip {
    grid-template-columns: 1fr 1fr;
  }

  .journey-card {
    min-height: 320px;
  }

  .gallery-tools {
    justify-content: stretch;
    width: 100%;
  }

  .masonry.grid-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    display: grid;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px;
  }

  .brand {
    font-size: 13px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 7px 6px;
    font-size: 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding-right: 18px;
  }

  .hero-copy {
    padding-bottom: 10vh;
  }

  .chapter,
  .gallery-section,
  .closing {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .kunshan-grid,
  .journey-strip {
    grid-template-columns: 1fr;
  }

  .kunshan-grid {
    grid-auto-rows: 260px;
  }

  .collection-placeholder:nth-child(4) {
    grid-column: auto;
  }

  .journey-placeholder {
    min-height: 320px;
  }

  .empty-frame-one {
    top: 16%;
    right: -12%;
    width: 72vw;
    height: 44vh;
  }

  .empty-frame-two {
    top: 11%;
    right: 48%;
    width: 42vw;
    height: 22vh;
  }

  .empty-frame-three {
    right: 3%;
    bottom: 8%;
    width: 48vw;
    height: 20vh;
  }

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

  .photo-card.feature,
  .photo-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .masonry {
    columns: 2 150px;
  }

  .gallery-meta {
    flex-direction: column;
  }

  .lightbox figure {
    padding: 68px 18px 84px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.08);
  }
}

/* Four-section photography homepage */
.portfolio-section {
  padding: 116px max(24px, calc((100vw - var(--max)) / 2)) 126px;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 22px;
  margin-bottom: 58px;
}

.section-heading > span {
  padding-bottom: 9px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 650;
  line-height: 0.98;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.photo-layout {
  display: grid;
  gap: 10px;
}

.layout-editorial {
  grid-template-columns: 1.35fr 0.72fr 0.72fr;
  grid-auto-rows: 250px;
}

.layout-editorial > :first-child {
  grid-row: span 2;
}

.layout-editorial > :nth-child(4) {
  grid-column: span 2;
}

.layout-cinematic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 350px;
}

.layout-cinematic > :first-child {
  grid-column: 1 / -1;
  min-height: 500px;
}

.layout-checkin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 390px;
}

.layout-checkin > :nth-child(even) {
  transform: translateY(34px);
}

.layout-destinations {
  grid-template-columns: 0.8fr 1.25fr 0.8fr;
  grid-auto-rows: 440px;
}

.layout-destinations > :nth-child(2) {
  min-height: 540px;
  transform: translateY(-42px);
}

.photo-layout.photo-layout-expanded {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 230px;
}

.photo-layout.photo-layout-expanded > * {
  grid-row: auto;
  grid-column: auto;
  min-height: 0;
  transform: none;
}

.photo-layout.photo-layout-expanded .portfolio-photo span {
  right: 12px;
  bottom: 11px;
  left: 12px;
  gap: 3px;
}

.photo-layout.photo-layout-expanded .portfolio-photo strong {
  font-size: 14px;
}

.portfolio-photo,
.portfolio-placeholder {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: #202024;
}

.portfolio-photo {
  cursor: zoom-in;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.portfolio-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.portfolio-photo:hover img {
  transform: scale(1.035);
}

.portfolio-photo:hover {
  z-index: 2;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transform: scale(1.018);
}

.portfolio-photo span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 5px;
  color: #fff;
  text-align: left;
}

.portfolio-photo strong {
  font-size: 16px;
}

.portfolio-photo small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.portfolio-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, transparent 0 48%, rgba(255, 255, 255, 0.13) 48% 48.5%, transparent 48.5%),
    linear-gradient(25deg, #111113, #3a3a40);
}

.section-light .portfolio-placeholder::before {
  background:
    linear-gradient(140deg, transparent 0 48%, rgba(255, 255, 255, 0.52) 48% 48.5%, transparent 48.5%),
    linear-gradient(25deg, #b8b8bd, #e7e7ea);
}

.portfolio-placeholder span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.section-light .portfolio-placeholder span {
  color: rgba(29, 29, 31, 0.54);
}

.placeholder-tone-2::before {
  filter: brightness(0.82);
}

.placeholder-tone-3::before {
  filter: contrast(0.72) brightness(1.1);
}

.placeholder-tone-4::before {
  filter: brightness(0.62);
}

.placeholder-tone-5::before {
  filter: contrast(1.24);
}

.section-actions {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.section-dark .view-more-button {
  background: #fff;
  color: var(--ink);
}

.section-dark .view-more-button:hover {
  background: #f5f5f7;
}

.view-more-button[aria-disabled="true"] {
  background: var(--muted);
  cursor: default;
}

.view-more-button[aria-disabled="true"]:hover {
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  transition: color 0.2s ease, transform 0.22s ease;
}

.icp-link:hover {
  color: var(--ink);
  transform: scale(1.045);
}

.hero-tile {
  transition: transform 0.4s ease;
}

.hero-tile:hover {
  transform: scale(1.012);
}

@media (max-width: 900px) {
  .section-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .section-heading p {
    grid-column: 2;
  }

  .layout-editorial,
  .layout-destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-destinations > :nth-child(2) {
    min-height: auto;
    transform: none;
  }

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

  .photo-layout.photo-layout-expanded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 6px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }

  .nav-links a {
    overflow: hidden;
    padding: 7px 2px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portfolio-section {
    padding: 82px 18px 90px;
  }

  .section-heading {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 36px;
  }

  .section-heading > span {
    padding-bottom: 5px;
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .layout-editorial,
  .layout-cinematic,
  .layout-checkin,
  .layout-destinations {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .layout-editorial > :first-child,
  .layout-editorial > :nth-child(4),
  .layout-cinematic > :first-child {
    grid-row: auto;
    grid-column: auto;
    min-height: 390px;
  }

  .layout-checkin > :nth-child(even),
  .layout-destinations > :nth-child(2) {
    min-height: auto;
    transform: none;
  }

  .photo-layout.photo-layout-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .section-actions {
    padding-top: 34px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* 2026 gallery redesign */
:root {
  --paper: #f7f7f8;
  --ink: #171719;
  --muted: #747478;
  --dark: #050506;
  --radius: 6px;
  --max: 1380px;
}

body {
  background: var(--dark);
}

.scroll-progress {
  z-index: 80;
  height: 3px;
  box-shadow: 0 0 18px rgba(0, 113, 227, 0.4);
}

.site-header {
  top: 18px;
  width: min(calc(100% - 40px), 1120px);
  height: 52px;
  padding: 0 10px 0 20px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 18, 20, 0.54);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.brand {
  font-size: 14px;
  font-weight: 650;
}

.nav-links {
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 550;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  min-height: 100svh;
  align-items: center;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.03) 62%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 42%);
}

.hero-stage {
  opacity: 1;
}

.hero-tile img {
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.005);
}

.hero-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 12vh 36px 0;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 25px;
  font-size: clamp(76px, 9vw, 142px);
  font-weight: 650;
  line-height: 0.9;
}

.hero p {
  margin-bottom: 30px;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 450;
}

.primary-link,
.view-more-button {
  min-height: 44px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 650;
}

.portfolio-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
  grid-template-areas:
    "heading gallery"
    "actions gallery";
  gap: 0 64px;
  min-height: 100svh;
  padding: 150px max(28px, calc((100vw - var(--max)) / 2));
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--dark);
}

.section-heading {
  grid-area: heading;
  position: sticky;
  top: 118px;
  display: block;
  align-self: start;
  margin: 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-heading > span {
  display: block;
  margin-bottom: 24px;
  padding: 0;
  font-size: 12px;
}

.section-heading h2 {
  max-width: 320px;
  font-size: clamp(54px, 5.2vw, 82px);
  font-weight: 650;
  line-height: 0.98;
}

.section-heading p {
  max-width: 260px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.75;
}

.photo-layout {
  grid-area: gallery;
  align-self: start;
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s 0.08s ease, transform 0.9s 0.08s ease;
}

.section-visible .section-heading,
.section-visible .photo-layout {
  opacity: 1;
  transform: translateY(0);
}

.section-actions {
  grid-area: actions;
  position: sticky;
  top: calc(100svh - 100px);
  align-self: end;
  justify-content: flex-start;
  padding-top: 42px;
}

.view-more-button {
  min-width: 124px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  color: var(--ink);
}

.view-more-button::after {
  content: "↘";
  margin-left: 9px;
  font-size: 14px;
  transition: transform 0.22s ease;
}

.view-more-button:hover::after {
  transform: translate(2px, 2px);
}

.section-dark .view-more-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.layout-editorial {
  grid-template-columns: 1.3fr 0.72fr 0.72fr;
  grid-auto-rows: 275px;
}

.layout-cinematic {
  grid-auto-rows: 390px;
}

.layout-cinematic > :first-child {
  min-height: 580px;
}

.layout-destinations {
  grid-auto-rows: 470px;
}

.layout-destinations > :nth-child(2) {
  min-height: 590px;
}

.portfolio-photo,
.portfolio-placeholder {
  border-radius: var(--radius);
}

.portfolio-photo {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.portfolio-photo::after {
  height: 48%;
  opacity: 0.76;
}

.portfolio-photo:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.portfolio-photo:hover img {
  transform: scale(1.045);
}

.portfolio-photo span {
  right: 16px;
  bottom: 15px;
  left: 16px;
}

.portfolio-photo strong {
  font-size: 15px;
  font-weight: 620;
}

.photo-layout.photo-layout-expanded {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 210px;
}

.photo-layout.photo-layout-expanded .portfolio-photo::after {
  height: 55%;
}

.photo-layout.photo-layout-expanded .portfolio-photo strong {
  font-size: 12px;
}

.photo-layout.photo-layout-expanded .portfolio-photo small {
  display: none;
}

.photo-layout.photo-layout-expanded > :first-child,
.photo-layout.photo-layout-expanded > :nth-child(2),
.photo-layout.photo-layout-expanded > :nth-child(4),
.photo-layout.photo-layout-expanded > :nth-child(even) {
  grid-row: auto;
  grid-column: auto;
  min-height: 0;
  transform: none;
}

.site-footer {
  min-height: 90px;
  border-top-color: rgba(255, 255, 255, 0.1);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.56);
}

.icp-link:hover {
  color: #fff;
}

.lightbox {
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
}

@media (max-width: 1000px) {
  .portfolio-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "gallery"
      "actions";
    gap: 42px;
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .section-heading,
  .section-actions {
    position: static;
  }

  .section-heading h2,
  .section-heading p {
    max-width: 680px;
  }

  .section-actions {
    justify-content: center;
    padding-top: 0;
  }

  .photo-layout.photo-layout-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    padding: 10px 10px 9px;
  }

  .brand {
    padding-left: 4px;
  }

  .hero-copy {
    padding: 8vh 22px 0;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero p {
    max-width: 310px;
    font-size: 16px;
  }

  .portfolio-section {
    gap: 32px;
    padding: 86px 16px;
  }

  .section-heading h2 {
    font-size: 48px;
  }

  .section-heading p {
    margin-top: 18px;
  }

  .photo-layout.photo-layout-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }
}
