:root {
  --ink: #080806;
  --coal: #11110e;
  --coal-2: #171713;
  --paper: #e8e0cf;
  --paper-muted: #a69f91;
  --copper: #b46f45;
  --copper-light: #d59a6c;
  --line: rgba(232, 224, 207, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  min-height: 78px;

  padding:
    0 clamp(1.25rem, 4vw, 4.5rem);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 2rem;

  position: sticky;
  top: 0;

  z-index: 1000;

  background: rgba(8, 8, 6, .96);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(232, 224, 207, .18);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, .22);
}


/* Brand */

.brand {
  display: inline-flex;
  align-items: center;

  gap: .75rem;

  text-decoration: none;

  color: var(--paper);

  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;

  letter-spacing: .02em;

  white-space: nowrap;

  transition:
    color .2s ease,
    opacity .2s ease;
}

.brand:hover {
  color: #fff8ec;
}

.brand-mark {
  color: var(--copper-light);

  font-size: 1.5rem;
}


/* Desktop navigation */

.desktop-nav {
  display: flex;
  align-items: center;

  gap: clamp(1rem, 2vw, 2rem);
}

.desktop-nav a {
  position: relative;

  text-decoration: none;

  color: #c7bfb1;

  font-size: .72rem;
  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: .13em;

  transition:
    color .2s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
}

.desktop-nav a[aria-current="page"] {
  color: var(--paper);
}

.desktop-nav a[aria-current="page"]::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -.72rem;

  height: 1px;

  background: var(--copper-light);
}


/* Mobile menu button */

.menu-button {
  display: none;

  width: 42px;
  height: 42px;

  place-content: center;

  gap: 4px;

  padding: 0;

  border:
    1px solid rgba(232, 224, 207, .22);

  background: rgba(255, 255, 255, .02);

  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;

  width: 18px;
  height: 1px;

  background: var(--paper);
}


/* Mobile navigation */

.mobile-nav {
  display: none;
}


/* =========================================================
   COLLECTION
   ========================================================= */

.collection-section {
  padding:
    clamp(5rem, 10vw, 9rem)
    clamp(1.25rem, 5vw, 6rem);

  background: var(--paper);

  color: var(--ink);
}


/* Section heading */

.section-heading {
  display: grid;

  grid-template-columns:
    1fr minmax(300px, 520px);

  gap: 3rem;

  align-items: end;

  padding-bottom: 3rem;

  border-bottom:
    1px solid rgba(8, 8, 6, .18);
}

.section-heading h2,
.collectors-note h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(3rem, 5vw, 5.4rem);

  font-weight: 600;

  line-height: .88;

  letter-spacing: -.045em;
}

.section-heading > p {
  margin: 0;

  color: #656057;

  line-height: 1.8;

  font-size: .9rem;
}


/* Eyebrow */

.eyebrow {
  margin:
    0 0 1rem;

  color: var(--copper-light);

  font-size: .68rem;

  font-weight: 600;

  letter-spacing: .22em;

  text-transform: uppercase;
}


/* =========================================================
   CATALOGUE TOOLS
   ========================================================= */

.catalogue-tools {
  margin:
    2rem 0 .75rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 2rem;
}

.filter-group {
  display: flex;

  flex-wrap: wrap;

  gap: .45rem;
}

.filter-button {
  border:
    1px solid rgba(8, 8, 6, .18);

  background: transparent;

  padding:
    .65rem .85rem;

  cursor: pointer;

  text-transform: uppercase;

  letter-spacing: .11em;

  font-size: .62rem;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.filter-button span {
  color: #8a8378;

  margin-left: .3rem;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);

  color: var(--paper);

  border-color: var(--ink);
}

.filter-button.is-active span,
.filter-button:hover span {
  color: var(--paper-muted);
}


/* Search */

.search-box {
  width: min(100%, 310px);

  border-bottom:
    1px solid rgba(8, 8, 6, .28);

  display: flex;

  align-items: center;

  gap: .65rem;

  padding: .6rem 0;
}

.search-box svg {
  width: 17px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.5;
}

.search-box input {
  width: 100%;

  border: 0;

  outline: 0;

  background: transparent;

  color: var(--ink);

  font-size: .78rem;
}

.search-box input::placeholder {
  color: #7a746a;
}

.results-status {
  min-height: 1.5rem;

  color: #777066;

  font-size: .67rem;

  text-transform: uppercase;

  letter-spacing: .12em;
}


/* =========================================================
   CAMERA GRID
   ========================================================= */

.camera-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1px;

  background:
    rgba(8, 8, 6, .18);

  border:
    1px solid rgba(8, 8, 6, .18);
}

.camera-card {
  position: relative;

  min-width: 0;

  background: var(--paper);

  cursor: pointer;

  border: 0;

  padding: 0;

  text-align: left;

  overflow: hidden;

  color: var(--ink);
}

.camera-card[hidden] {
  display: none;
}


/* Camera image */

.camera-image {
  aspect-ratio: 4 / 3.25;

  position: relative;

  display: grid;

  place-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #d7cebc,
      #eee6d7
    );

  border-bottom:
    1px solid rgba(8, 8, 6, .13);
}

.camera-image::before {
  content: "";

  position: absolute;

  inset: 13%;

  border:
    1px solid rgba(8, 8, 6, .13);
}

.camera-image::after {
  content:
    "IMAGE\A" attr(data-file);

  white-space: pre;

  text-align: center;

  color: #8d8578;

  font-size: .58rem;

  letter-spacing: .16em;

  line-height: 2;
}

.camera-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 7%;

  position: relative;

  z-index: 1;
}

.camera-image img.is-missing {
  display: none;
}


/* Camera labels */

.camera-rank {
  position: absolute;

  z-index: 2;

  top: 1rem;

  left: 1rem;

  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  border:
    1px solid rgba(8, 8, 6, .3);

  border-radius: 50%;

  font-size: .6rem;

  background:
    rgba(232, 224, 207, .72);

  backdrop-filter: blur(5px);
}

.interest-tag {
  position: absolute;

  z-index: 2;

  top: 1rem;

  right: 1rem;

  padding:
    .45rem .55rem;

  background:
    rgba(8, 8, 6, .83);

  color: var(--paper);

  font-size: .53rem;

  letter-spacing: .12em;

  text-transform: uppercase;
}


/* Card body */

.camera-card-body {
  padding: 1.45rem;
}

.camera-meta {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  color: #777066;

  font-size: .58rem;

  letter-spacing: .13em;

  text-transform: uppercase;
}

.camera-card h3 {
  margin:
    .55rem 0 .35rem;

  font-family: var(--serif);

  font-size:
    clamp(1.8rem, 2.5vw, 2.35rem);

  line-height: 1;
}

.lens-line {
  min-height: 2.5em;

  margin: 0;

  color: #605b52;

  font-size: .75rem;

  line-height: 1.5;
}

.card-footer {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  gap: 1rem;

  margin-top: 1.4rem;

  padding-top: 1rem;

  border-top:
    1px solid rgba(8, 8, 6, .13);
}

.price-sgd {
  display: block;

  font-family: var(--serif);

  font-size: 1.5rem;

  font-weight: 700;
}

.price-rm {
  color: #746d63;

  font-size: .68rem;
}

.view-details {
  color: var(--copper);

  font-size: .6rem;

  letter-spacing: .11em;

  text-transform: uppercase;
}


/* Hover / focus */

.camera-card:hover .camera-image {
  background:
    linear-gradient(
      145deg,
      #cec1ab,
      #ede2ce
    );
}

.camera-card:hover .view-details {
  text-decoration: underline;
}

.camera-card:focus-visible {
  outline:
    3px solid var(--copper);

  outline-offset: -3px;
}


/* Empty state */

.empty-state {
  grid-column: 1 / -1;

  background: var(--paper);

  padding:
    5rem 2rem;

  text-align: center;
}

.empty-state h3 {
  font-family: var(--serif);

  font-size: 2.4rem;

  margin:
    0 0 .5rem;
}


/* =========================================================
   BUTTONS / LINKS
   ========================================================= */

.button {
  display: inline-flex;

  justify-content: center;

  align-items: center;

  min-height: 49px;

  padding:
    .85rem 1.25rem;

  text-decoration: none;

  font-size: .69rem;

  font-weight: 600;

  letter-spacing: .12em;

  text-transform: uppercase;

  border:
    1px solid transparent;

  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--copper);

  color: #fff8ec;
}

.button-primary:hover {
  background: var(--copper-light);

  color: var(--ink);
}

.button-secondary {
  border-color: var(--line);

  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--paper-muted);
}

.text-link {
  text-decoration: none;

  color: var(--paper);

  padding-block: .5rem;

  font-size: .75rem;

  border-bottom:
    1px solid rgba(232, 224, 207, .35);
}


/* =========================================================
   COLLECTORS NOTE
   ========================================================= */

.collectors-note {
  padding:
    clamp(5rem, 9vw, 8rem)
    clamp(1.25rem, 7vw, 8rem);

  display: grid;

  grid-template-columns:
    .35fr 1.25fr .8fr;

  gap:
    clamp(2rem, 5vw, 6rem);

  align-items: start;

  background: var(--coal);
}

.note-number {
  font-family: var(--serif);

  font-size:
    clamp(7rem, 14vw, 13rem);

  color:
    rgba(232, 224, 207, .06);

  line-height: .65;
}

.note-copy > p:not(.eyebrow) {
  color: var(--paper-muted);

  max-width: 660px;

  font-size: .9rem;

  line-height: 1.85;
}

.note-copy ul {
  list-style: none;

  margin:
    2.2rem 0 0;

  padding: 0;

  border-top:
    1px solid var(--line);
}

.note-copy li {
  display: flex;

  gap: 1rem;

  padding:
    1rem 0;

  border-bottom:
    1px solid var(--line);

  color: var(--paper-muted);

  font-size: .78rem;
}

.note-copy li span {
  color: var(--copper-light);

  font-size: .64rem;
}


/* Enquiry card */

.enquiry-card {
  padding: 2rem;

  border:
    1px solid var(--line);

  background:
    rgba(255, 255, 255, .025);
}

.enquiry-card h3 {
  font-family: var(--serif);

  font-size: 2.4rem;

  margin:
    0 0 .75rem;
}

.enquiry-card > p:not(.eyebrow) {
  color: var(--paper-muted);

  font-size: .78rem;

  line-height: 1.75;
}

.enquiry-card .button {
  width: 100%;

  margin-top: .7rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding:
    2.2rem
    clamp(1.25rem, 4vw, 4.5rem);

  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 1.5rem;

  align-items: center;

  border-top:
    1px solid var(--line);

  background: #060605;
}

.footer-brand {
  display: flex;

  gap: .75rem;

  align-items: center;
}

.footer-brand strong {
  font-family: var(--serif);

  font-size: 1.3rem;
}

.footer-brand p,
.footer-small {
  margin:
    .2rem 0 0;

  color: #6e6a61;

  font-size: .63rem;
}

.footer-links {
  display: flex;

  flex-wrap: wrap;

  gap: 1.25rem;

  justify-content: end;
}

.footer-links a {
  color: var(--paper-muted);

  text-decoration: none;

  font-size: .68rem;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-small {
  grid-column: 1 / -1;
}


/* =========================================================
   CAMERA DIALOG
   ========================================================= */

.camera-dialog {
  width:
    min(1120px, calc(100% - 2rem));

  max-height:
    calc(100svh - 2rem);

  padding: 0;

  border:
    1px solid rgba(232, 224, 207, .18);

  background: var(--coal);

  color: var(--paper);

  box-shadow:
    0 30px 100px #000;
}

.camera-dialog::backdrop {
  background:
    rgba(0, 0, 0, .82);

  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;

  z-index: 4;

  top: 1rem;

  right: 1rem;

  width: 42px;

  height: 42px;

  border:
    1px solid var(--line);

  background:
    rgba(8, 8, 6, .75);

  color: var(--paper);

  font-size: 1.6rem;

  cursor: pointer;
}

.dialog-layout {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  min-height: 650px;
}

.dialog-image {
  min-height: 540px;

  display: grid;

  place-items: center;

  position: relative;

  background:
    linear-gradient(
      145deg,
      #292821,
      #0d0d0b
    );

  overflow: hidden;
}

.dialog-image::after {
  content:
    "CAMERA IMAGE\A" attr(data-file);

  white-space: pre;

  text-align: center;

  color: #6c685f;

  font-size: .62rem;

  letter-spacing: .18em;

  line-height: 2;
}

.dialog-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 8%;

  position: absolute;

  inset: 0;

  z-index: 1;
}

.dialog-image img.is-missing {
  display: none;
}

.dialog-content {
  padding:
    clamp(2rem, 5vw, 4.5rem);

  align-self: center;
}

.dialog-content h2 {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(3.2rem, 6vw, 5.5rem);

  font-weight: 600;

  line-height: .85;

  letter-spacing: -.04em;
}

.dialog-lead {
  color: var(--paper-muted);

  font-size: .88rem;

  line-height: 1.8;

  margin:
    1.5rem 0 2rem;
}

.spec-list {
  border-top:
    1px solid var(--line);

  margin: 0;
}

.spec-list div {
  display: grid;

  grid-template-columns:
    115px 1fr;

  gap: 1rem;

  padding:
    .75rem 0;

  border-bottom:
    1px solid var(--line);
}

.spec-list dt {
  color: #77736b;

  font-size: .6rem;

  letter-spacing: .13em;

  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;

  font-size: .75rem;
}

.dialog-price {
  margin-top: 1.75rem;

  display: flex;

  gap: 1rem;

  align-items: baseline;
}

.dialog-price strong {
  font-family: var(--serif);

  font-size: 2.4rem;
}

.dialog-price span {
  color: var(--paper-muted);

  font-size: .75rem;
}

.dialog-actions {
  display: flex;

  align-items: center;

  gap: 1.5rem;

  margin-top: 1.5rem;
}


/* =========================================================
   MISC
   ========================================================= */

.noscript-note {
  padding: 2rem;

  background: #fff0c7;

  color: #17130c;
}

.reveal {
  opacity: 0;

  transform:
    translateY(18px);

  transition:
    opacity .65s ease,
    transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;

  transform: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-nav {
    position: absolute;

    display: grid;

    top: 100%;

    left: 0;
    right: 0;

    padding: 1.25rem;

    background:
      rgba(8, 8, 6, .99);

    border-bottom:
      1px solid var(--line);

    box-shadow:
      0 18px 35px
      rgba(0, 0, 0, .35);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding:
      .9rem .85rem;

    text-decoration: none;

    color: #c7bfb1;

    border-bottom:
      1px solid var(--line);

    font-size: .78rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .12em;
  }

  .mobile-nav a:hover,
  .mobile-nav a[aria-current="page"] {
    color: var(--paper);
  }

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

  .collectors-note {
    grid-template-columns:
      .25fr 1fr;
  }

  .enquiry-card {
    grid-column: 2;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .site-header {
    min-height: 68px;

    padding:
      0 1rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    font-size: 1.3rem;
  }

  .section-heading {
    grid-template-columns: 1fr;

    gap: 1.25rem;
  }

  .catalogue-tools {
    align-items: stretch;

    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

  .camera-image {
    aspect-ratio:
      4 / 3;
  }

  .collectors-note {
    grid-template-columns: 1fr;
  }

  .note-number {
    display: none;
  }

  .enquiry-card {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }

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

  .dialog-image {
    min-height: 300px;

    aspect-ratio:
      4 / 3;
  }

  .dialog-content {
    padding:
      2rem 1.25rem;
  }

  .dialog-actions {
    align-items: stretch;

    flex-direction: column;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      .01ms !important;

    transition-duration:
      .01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}
