:root {
  color-scheme: dark;
  --ink: #142b40;
  --ink-soft: #243c52;
  --paper: #ffffff;
  --paper-muted: #c9d4e0;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.34);
  --metal: #62778f;
  --metal-light: #b6bec4;
  --max: 1480px;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% -10%, rgba(98, 119, 143, 0.24), transparent 32rem),
    var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 1.15rem clamp(1.1rem, 3.5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid rgba(20, 43, 64, 0.14);
}

.site-header::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 4rem;
  background: #e0e6ec;
  content: "";
  transform: translate(-50%, -50%);
}

.wordmark {
  position: relative;
  display: block;
  width: clamp(12.5rem, 16vw, 14.375rem);
  aspect-ratio: 520 / 140;
  overflow: hidden;
  background: #fff;
}

.wordmark::before {
  position: absolute;
  inset: 0;
  background: url("/assets/princess-official-france.jpg") center / contain no-repeat;
  content: "";
}

.wordmark > span,
.wordmark small {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 2rem);
}

.dlb-mark {
  display: block;
  width: clamp(8rem, 11vw, 10.3125rem);
  aspect-ratio: 165 / 20;
  overflow: hidden;
  background: transparent url("/assets/dlb-blue-silver.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  transition: opacity 180ms ease;
}

.dlb-mark:hover,
.dlb-mark:focus-visible {
  opacity: 0.8;
}

.language-toggle {
  min-width: 2.7rem;
  padding: 0.58rem 0.65rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(20, 43, 64, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  transition: border-color 180ms ease, background 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(20, 43, 64, 0.06);
  border-color: var(--ink);
}

.intro,
.collection,
.gallery-main,
.site-footer {
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--max));
  margin-inline: auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding: clamp(4.2rem, 10vw, 10rem) 0 clamp(3.5rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--metal-light);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.7rem, 5.8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.intro-copy {
  padding-bottom: 0.45rem;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.collection-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.7rem 0 0;
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-count i {
  width: 2.3rem;
  height: 1px;
  margin-inline: 0.3rem;
  background: var(--metal);
}

.collection {
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.7rem);
}

.model-card {
  position: relative;
  display: block;
  min-height: clamp(270px, 38vw, 570px);
  overflow: hidden;
  background: var(--ink-soft);
  isolation: isolate;
}

.model-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 43, 64, 0.02) 38%, rgba(20, 43, 64, 0.9) 100%);
  content: "";
}

.model-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
}

.model-card:hover img,
.model-card:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.model-card:focus-visible {
  outline: 2px solid var(--metal-light);
  outline-offset: 3px;
}

.model-card-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2.5rem);
}

.model-card h3 {
  margin: 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.model-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.model-meta strong {
  margin-top: 0.4rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.gallery-hero {
  position: relative;
  height: min(70vh, 760px);
  min-height: 480px;
  overflow: hidden;
  background: var(--ink-soft);
}

.gallery-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 43, 64, 0.1), rgba(20, 43, 64, 0.15) 48%, rgba(20, 43, 64, 0.94));
  content: "";
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-title {
  position: absolute;
  z-index: 2;
  right: clamp(1.1rem, 3.5vw, 4rem);
  bottom: clamp(2rem, 5vw, 4.5rem);
  left: clamp(1.1rem, 3.5vw, 4rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.gallery-title h1 {
  max-width: none;
  font-size: clamp(4rem, 11vw, 10rem);
}

.gallery-title p {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-align: right;
  text-transform: uppercase;
}

.gallery-main {
  padding: clamp(2.5rem, 6vw, 6rem) 0 clamp(5rem, 10vw, 9rem);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--paper-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--paper);
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-button {
  padding: 0.64rem 0.92rem;
  color: var(--paper-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}

.filter-button:hover,
.filter-button:focus-visible {
  color: var(--paper);
  border-color: var(--line-strong);
}

.filter-button.active {
  color: var(--ink);
  background: var(--paper);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 1rem);
}

.photo-button {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  background: var(--ink-soft);
  border: 0;
  cursor: zoom-in;
}

.photo-button:nth-child(7n + 1),
.photo-button:nth-child(7n + 5) {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

.photo-button:hover img,
.photo-button:focus-visible img {
  transform: scale(1.025);
  opacity: 0.92;
}

.photo-button:focus-visible {
  outline: 2px solid var(--metal-light);
  outline-offset: 3px;
}

.gallery-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(4rem, 9vw, 9rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.gallery-cta.gallery-cta-top {
  align-items: center;
  margin-top: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.gallery-cta-top h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.gallery-cta-top .cta-actions {
  flex-direction: row;
  min-width: 0;
}

.gallery-cta-top .button-link {
  min-width: 13.5rem;
}

.gallery-cta h2 {
  max-width: 16ch;
  margin-bottom: 0.75rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gallery-cta p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--paper-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  min-width: min(100%, 270px);
  gap: 0.65rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-link::after {
  content: "↗";
  font-size: 1rem;
}

.button-link.primary,
.button-link:hover,
.button-link:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.button-link.primary:hover,
.button-link.primary:focus-visible {
  background: #e0e6ec;
  border-color: #e0e6ec;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 2rem;
  align-items: end;
  padding: 2rem 0 3rem;
  color: var(--paper-muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--paper);
  font-weight: 500;
}

.site-footer address {
  font-style: normal;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper);
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: white;
  background: rgba(10, 28, 43, 0.98);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(10, 28, 43, 0.98);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox-top,
.lightbox-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
}

.lightbox-title,
.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-stage {
  position: relative;
  min-height: 0;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: clamp(0.6rem, 2vw, 1.5rem);
}

.lightbox-next {
  right: clamp(0.6rem, 2vw, 1.5rem);
}

.load-error {
  grid-column: 1 / -1;
  padding: 3rem;
  color: var(--paper-muted);
  text-align: center;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-copy {
    max-width: 42rem;
  }

  .gallery-cta,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-cta-top .cta-actions {
    width: 100%;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 80px;
  }

  .site-header {
    padding: 0.85rem;
  }

  .site-header::after {
    height: 2.6rem;
  }

  .wordmark {
    width: clamp(7.5rem, 38vw, 9rem);
  }

  .header-actions {
    gap: 0.55rem;
  }

  .dlb-mark {
    width: clamp(4.5rem, 24vw, 6rem);
  }

  .language-toggle {
    min-width: 2.2rem;
    padding: 0.45rem 0.48rem;
    font-size: 0.65rem;
  }

  .intro,
  .collection,
  .gallery-main,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .intro {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .section-heading,
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 68vw;
  }

  .model-meta {
    font-size: 0.64rem;
  }

  .gallery-hero {
    height: 58vh;
    min-height: 420px;
  }

  .gallery-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .gallery-title p {
    text-align: left;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .photo-button,
  .photo-button:nth-child(7n + 1),
  .photo-button:nth-child(7n + 5) {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .photo-button:nth-child(5n + 1) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .cta-actions {
    width: 100%;
  }

  .gallery-cta-top .cta-actions {
    flex-direction: column;
  }

  .gallery-cta-top .button-link {
    min-width: 0;
  }

  .lightbox-top,
  .lightbox-bottom {
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
