/* ========================================
   VARIABLES
   ======================================== */
:root {
  --edge-padding: 40px;
  --header-offset: 70px;
  --header-height: 40px;
  --header-height-mobile: 60px;

  --font-serif: "Orpheus Pro", "Playfair Display", "Times New Roman", serif;
  --font-sans: "Bahnschrift", "Segoe UI", "Inter", Arial, sans-serif;

  --color-text: #000;
  --color-bg: #fff;
  --color-muted: #666;
  --color-border: rgba(0, 0, 0, 0.1);

  --z-slideshow: -1;
  --z-main: 1;
  --z-page: 800;
  --z-footer: 850;
  --z-nav: 900;
  --z-header: 1000;
}

/* ========================================
   RESET / BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #000;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

img {
  max-width: 100%;
}

/* ========================================
   BACKGROUND SLIDESHOW
   ======================================== */
.slideshow-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-slideshow);
  overflow: hidden;
  background: #111;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide-bg.active {
  opacity: 1;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  z-index: var(--z-header);
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--edge-padding);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.logo-icon-link {
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.logo-icon-link:hover {
  opacity: 0.75;
}

.logo-icon {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-nav);
  width: 100%;
  margin-top: var(--header-offset);
  padding: calc(var(--header-offset) * 1.5) var(--edge-padding) 40px;
  color: #fff;
}

.nav-wrapper-interior {
  display: flex;
  width: 100%;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.utility-nav {
  width: 200px;
  text-align: right;
}

.nav-main,
.nav-utility,
.sub-menu {
  list-style: none;
}

.nav-main>.menu-item,
.nav-utility>.menu-item {
  margin-bottom: 4px;
}

.nav-main a,
.nav-utility a {
  display: block;
  color: inherit;
  text-decoration: none;
  font-weight: 100;
  letter-spacing: 1.1px;
  line-height: 1.08;
  transition: opacity 0.2s ease;
  opacity: 0.76;
}

.nav-main a:hover,
.nav-utility a:hover {
  opacity: 0.65;
}

.sub-menu {
  max-height: 0;
  margin-top: 0;
  margin-left: 20px;
  overflow: hidden;

  transition:
    max-height 1s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item-has-children.clicked>.sub-menu {
  max-height: 1200px;
  margin-top: 8px;
}

.menu-item-has-children.clicked>a {
  font-weight: 500;
}

.sub-menu .menu-item {
  margin: 0;
}

.sub-menu .sub-menu {
  margin-left: 20px;
}

/* ========================================
   HOME CONTENT
   ======================================== */
.main-content {
  position: fixed;
  inset: 0;
  z-index: var(--z-main);
  pointer-events: none;
}

/* ========================================
   SHARED CONTENT PAGES
   ======================================== */
.page-content,
.product-page {
  position: fixed;
  inset: 0;
  z-index: var(--z-page);
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--color-bg);
  color: var(--color-text);
}

.page-content {
  padding: 140px var(--edge-padding) 60px;
}

.page-content.active,
.product-page.active {
  display: block;
  animation: pageFadeIn 0.35s ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header,
.product-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 1.2px;
}

.page-header {
  margin: 60px 0;
  font-size: 36px;
}

.page-text {
  max-width: 650px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.4px;
  text-transform: none;
  text-align: justify;
  text-justify: inter-word;
}

.page-text a {
  color: inherit;
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.6;
}

/* ========================================
   INTRODUCTION
   ======================================== */
.intro-wrapper {
  display: flex;
  width: 100%;
  gap: 60px;
  align-items: flex-start;
}

.intro-text,
.intro-image {
  flex: 0 0 calc(50% - 30px);
  max-width: calc(50% - 30px);
}

.intro-text {
  padding-top: 8px;
}

.intro-text p {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.5px;
  text-transform: none;
  text-align: justify;
  text-justify: inter-word;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-image figure {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.intro-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f5f5;
}

.intro-image figcaption {
  padding-top: 12px;
  color: #555;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1.2px;
  text-align: center;
}

/* ========================================
   NEWSLETTER
   ======================================== */

.newsletter-page {
  background: var(--color-bg);
}

.newsletter-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill,
      minmax(280px, 380px));

  gap:
    clamp(50px, 6vw, 90px);

  align-items: start;
}


/* ========================================
   NEWSLETTER ITEM
   ======================================== */

.newsletter-item {
  width: 100%;
}


/* ========================================
   COVER
   ======================================== */

.newsletter-cover-link {
  display: block;

  color: inherit;

  text-decoration: none;
}

.newsletter-cover {
  position: relative;

  width: 100%;

  margin: 0;

  overflow: hidden;

  background: #f1f1f1;
}

.newsletter-cover img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 2 / 3;

  object-fit: cover;

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}


/* ========================================
   DOWNLOAD OVERLAY
   ======================================== */

.newsletter-cover-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    rgba(0, 0, 0, 0.28);

  color: #fff;

  opacity: 0;

  transition:
    opacity 0.35s ease;
}

.newsletter-cover-overlay span {
  padding-bottom: 3px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.8);

  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.6px;
}


/* ========================================
   COVER HOVER
   ======================================== */

.newsletter-cover-link:hover .newsletter-cover img {
  transform: scale(1.025);
}

.newsletter-cover-link:hover .newsletter-cover-overlay {
  opacity: 1;
}


/* ========================================
   NEWSLETTER INFO
   ======================================== */

.newsletter-info {
  padding-top: 18px;
}

.newsletter-item-title {
  margin: 0 0 5px;

  font-family: var(--font-serif);

  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;

  letter-spacing: 0.4px;

  text-transform: none;
}

.newsletter-item-subtitle {
  margin: 0 0 18px;

  color: var(--color-muted);

  font-family: var(--font-serif);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;

  text-transform: none;
  text-align: justify;
}


/* ========================================
   DOWNLOAD LINK
   ======================================== */

.newsletter-download {
  display: inline-block;

  padding-bottom: 2px;

  border-bottom:
    1px solid currentColor;

  color: inherit;

  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;

  text-decoration: none;

  transition:
    opacity 0.2s ease;
}

.newsletter-download:hover {
  opacity: 0.55;
}


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

@media (max-width: 768px) {

  .newsletter-grid {
    grid-template-columns:
      minmax(0, 1fr);

    max-width: 420px;
  }

}

/* ========================================
   PRODUCT PAGE
   ======================================== */
.product-page {
  --product-inline: clamp(24px, 4vw, 72px);
}

.product-shell {
  width: 100%;
  padding: 130px var(--product-inline) 90px;
}

.product-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker brand"
    "title brand";
  column-gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.product-kicker {
  grid-area: kicker;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.product-title {
  grid-area: title;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.86;
}

.product-brand {
  grid-area: brand;
  padding-bottom: 5px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.product-story {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 170px);
}

.product-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.product-copy {
  grid-column: 1 / span 5;
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 48px);
  background: rgba(255, 255, 255, 0.94);
}

.product-copy p {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.35px;
  text-transform: none;
  text-align: justify;
  text-justify: inter-word;
}

.product-media {
  grid-column: 4 / -1;
  min-width: 0;
}

.product-media figure {
  margin: 0;
}

.product-media img {
  display: block;
  width: 100%;
  min-height: 360px;
  max-height: 78vh;
  object-fit: cover;
  background: #f1f1f1;
}

.product-media figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.3px;
  text-align: right;
}

.product-block:nth-child(even) .product-copy {
  grid-column: 8 / -1;
  grid-row: 1;
}

.product-block:nth-child(even) .product-media {
  grid-column: 1 / span 9;
  grid-row: 1;
}

.product-block:first-child .product-media img {
  aspect-ratio: 16 / 9;
}

.product-block:nth-child(2n) .product-media img {
  aspect-ratio: 4 / 3;
}

.product-block:nth-child(3n) .product-media img {
  aspect-ratio: 3 / 2;
}

.product-gallery-frame {
  width: min(86vw, 1500px);
  margin: 0 auto;
}

.product-gallery-frame img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  background: #f1f1f1;
}

.product-gallery-frame figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.3px;
  text-align: right;
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin-top: clamp(90px, 12vw, 180px);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: 1px;
}

.product-meta>div {
  grid-column: 2;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
}

.product-meta-label {
  color: var(--color-muted);
}

.product-card-tile {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto;
  grid-template-areas: "title status action";
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 96px;
  margin-top: clamp(90px, 12vw, 180px);
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

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

.product-card-title {
  grid-area: title;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: 0.8px;
}

.product-card-status {
  grid-area: status;
  color: var(--color-muted);
  font-size: 9px;
  letter-spacing: 1.3px;
}

.product-card-action {
  grid-area: action;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.product-card-tile[aria-disabled="true"] {
  cursor: default;
}

.product-card-tile:not([aria-disabled="true"]):hover {
  opacity: 0.55;
}

.product-back {
  margin-top: 70px;
}

.product-image-missing {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 30px;
  background: #f4f4f4;
  color: #888;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-align: center;
}

.overview-placeholder {
  place-items: center;
  background: #e9e9e9;
  color: #777;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.overview-placeholder.active {
  display: grid;
}

/* ========================================
   WORKS - BACK BUTTON
   ======================================== */

.works-back {
  position: fixed;
  left: var(--edge-padding);
  bottom: var(--edge-padding);

  z-index: 1000;

  margin: 0;
  padding-bottom: 2px;

  color: #ffffff;
  border-bottom: 1px solid #ffffff;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;

  cursor: pointer;

  transition: opacity 0.25s ease;
}

.works-back:hover {
  opacity: 0.7;
}

/* ========================================
   WORKS PAGE - SLIDESHOW
   ======================================== */

.works-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}


/* ========================================
   SLIDESHOW CONTAINER
   ======================================== */

.works-page .slideshow {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;

  overflow: hidden;

  background: #000;

  z-index: 1;
}


/* ========================================
   SLIDES
   ======================================== */

.works-page .slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 1s ease-in-out,
    visibility 1s ease-in-out;

  pointer-events: none;
}


/* ACTIVE SLIDE */

.works-page .slide.active {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* ========================================
   SLIDE IMAGE
   ======================================== */

.works-page .slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.5s ease;
}


/* ========================================
   PREVIOUS / NEXT BUTTONS
   ======================================== */

.works-page .prev,
.works-page .next {
  position: fixed;

  top: 50%;

  z-index: 100;

  transform: translateY(-50%);

  padding: 20px;

  border: 0;
  background: transparent;

  color: #ffffff;

  font-family: inherit;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  opacity: 0.8;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


/* LEFT ARROW */

.works-page .prev {
  left: 20px;
}


/* RIGHT ARROW */

.works-page .next {
  right: 20px;
}


/* HOVER */

.works-page .prev:hover,
.works-page .next:hover {
  opacity: 1;
}

.works-page .prev:hover {
  transform:
    translateY(-50%) translateX(-3px);
}

.works-page .next:hover {
  transform:
    translateY(-50%) translateX(3px);
}


/* ========================================
   WORKS BACK BUTTON
   ======================================== */

.works-page .works-back {
  position: fixed;

  left: var(--edge-padding);
  bottom: var(--edge-padding);

  z-index: 150;

  margin: 0;
  padding: 0 0 2px;

  border: 0;
  border-bottom: 1px solid #ffffff;

  background: transparent;
  color: #ffffff;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;

  cursor: pointer;

  transition: opacity 0.25s ease;
}

.works-page .works-back:hover {
  opacity: 0.7;
}


/* ========================================
   WORKS PAGE HEADER
   ======================================== */

.works-page .header {
  z-index: 150;
}


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

@media (max-width: 768px) {

  .works-page .prev,
  .works-page .next {
    padding: 14px;

    font-size: 26px;
  }

  .works-page .prev {
    left: 6px;
  }

  .works-page .next {
    right: 6px;
  }

  .works-page .works-back {
    left: var(--edge-padding);
    bottom: 24px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-footer);
  width: 100%;
  padding: var(--edge-padding);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-contact {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.8px;
  pointer-events: auto;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.65;
}

/* Hide home chrome on white content pages */
body.content-open .header,
body.content-open .nav-menu,
body.content-open .footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Elements inside the hidden home chrome set their own pointer-events value.
   Disable them explicitly so invisible social/logo links cannot overlap a
   content-page control on touch screens. */
body.content-open .header *,
body.content-open .nav-menu *,
body.content-open .footer * {
  pointer-events: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --edge-padding: 32px;
    --header-offset: 50px;
    --header-height: 44px;
  }

  .logo-icon {
    height: 22px;
  }

  .utility-nav {
    width: 160px;
  }

  .page-content {
    padding: 120px var(--edge-padding) 48px;
  }

  .page-header {
    margin: 48px 0;
    font-size: 32px;
  }

  .intro-wrapper {
    gap: 40px;
  }

  .intro-text,
  .intro-image {
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .product-copy {
    grid-column: 1 / span 5;
  }

  .product-media {
    grid-column: 5 / -1;
  }

  .product-block:nth-child(even) .product-copy {
    grid-column: 8 / -1;
  }

  .product-block:nth-child(even) .product-media {
    grid-column: 1 / span 8;
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 24px;
    --edge-padding: 20px;
  }

  .header {
    height: var(--header-height-mobile);
  }

  .logo-icon {
    height: 22px;
  }

  .nav-menu {
    padding-top: calc(var(--header-offset) + 80px);
  }

  .nav-wrapper-interior {
    flex-direction: column;
    gap: 18px;
  }

  .utility-nav {
    width: 100%;
    text-align: left;
  }

  .sub-menu,
  .sub-menu .sub-menu {
    margin-left: 15px;
  }

  .page-content {
    padding: 100px var(--edge-padding) 36px;
  }

  .page-header {
    margin: 40px 0;
    font-size: 26px;
  }

  .intro-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .intro-text,
  .intro-image {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .intro-text p {
    max-width: 100%;
    font-size: 13px;
  }

  .product-shell {
    padding-top: 100px;
  }

  .product-heading {
    display: block;
    margin-bottom: 60px;
  }

  .product-title {
    font-size: clamp(44px, 17vw, 92px);
  }

  .product-brand {
    margin-top: 16px;
    writing-mode: initial;
    transform: none;
  }

  .product-story {
    gap: 70px;
  }

  .product-block,
  .product-block:nth-child(even) {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .product-copy,
  .product-block:nth-child(even) .product-copy {
    order: 2;
    width: calc(100% - 28px);
    margin: -34px 0 0 28px;
    padding: 24px;
  }

  .product-media,
  .product-block:nth-child(even) .product-media {
    order: 1;
    width: 100%;
  }

  .product-media img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3 !important;
  }

  .product-meta {
    display: block;
    margin-top: 90px;
  }

  .product-card-tile {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title action" "status action";
    gap: 8px 32px;
    width: min(100%, 560px);
    min-height: 150px;
    margin-top: 90px;
    padding: 28px 32px;
    border: 1px solid var(--color-border);
  }

  .product-card-title {
    font-size: clamp(24px, 7vw, 38px);
  }

  .product-meta>div {
    display: grid;
    grid-template-columns: 100px 1fr;
  }

  .footer {
    padding: 12px var(--edge-padding);
  }

  .footer-inner {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --edge-padding: 16px;
  }

  .product-copy,
  .product-block:nth-child(even) .product-copy {
    width: calc(100% - 18px);
    margin-left: 18px;
  }

  .product-meta>div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card-tile {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "status" "action";
    padding: 24px;
  }

  .product-card-action {
    width: max-content;
    margin-top: 16px;
  }
}

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

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