@font-face {
  font-family: "Ortica Linear";
  src: url("fonts/ortica-main/fonts/OrticaLinear-Light.woff2") format("woff2"),
    url("fonts/ortica-main/fonts/OrticaLinear-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sligoil";
  src: url("fonts/sligoil-main/fonts/web/Sligoil-Micro.woff2") format("woff2"),
    url("fonts/sligoil-main/fonts/web/Sligoil-Micro.woff") format("woff");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sligoil";
  src: url("fonts/sligoil-main/fonts/web/Sligoil-MicroMedium.woff2") format("woff2"),
    url("fonts/sligoil-main/fonts/web/Sligoil-MicroMedium.woff") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sligoil";
  src: url("fonts/sligoil-main/fonts/web/Sligoil-MicroBold.woff2") format("woff2"),
    url("fonts/sligoil-main/fonts/web/Sligoil-MicroBold.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --line: #111;
  --section-line: 0.1875rem solid var(--line);
  --accent: #8f956d;
  --accent-soft: rgba(143, 149, 109, 0.18);
  --selected-bg: #f4f4f2;
  --muted: var(--accent);
  --gap: 0.75rem;
  --body-font: "Ortica Linear", HelveticaNeue, Helvetica, Arial, sans-serif;
  --heading-font: "Sligoil", "Ortica Linear", HelveticaNeue, Helvetica, Arial, sans-serif;
  --smooth: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  --smooth-slow: 950ms cubic-bezier(0.45, 0, 0.25, 1);
  --carousel-fade-bg: #ecece8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0;
}

button,
input,
textarea {
  font-family: inherit;
  font-weight: 300;
}

h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 4rem;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--smooth), opacity var(--smooth);
}

a:hover {
  color: inherit;
  opacity: 0.62;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.6875rem;
  padding: 0 0.75rem;
  background: var(--paper);
  border-bottom: 0.0625rem solid var(--line);
}

.brand,
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6875rem;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand {
  gap: 0.375rem;
}

.brand-symbol {
  display: none;
  font-size: 1.25rem;
  line-height: 1;
  transform-origin: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.announcement {
  overflow: hidden;
  border-top: 0.0625rem solid var(--line);
  white-space: nowrap;
}

.marquee {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.marquee span {
  padding: 0.6875rem 0;
  margin-right: 2rem;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-33.33%, 0, 0);
  }
}

.hero-gallery {
  margin-top: 2.6875rem;
  padding: 0;
}

.hero-gallery .carousel {
  width: 100%;
  height: calc(100vh - 2.6875rem);
  margin: 0;
  background: var(--carousel-fade-bg);
}

.hero-gallery .carousel-inner {
  position: relative;
  height: 100%;
}

.hero-gallery img {
  display: block;
  width: 100%;
  height: calc(100vh - 2.6875rem);
  object-fit: cover;
  object-position: center;
}

#heroCarousel .carousel-item {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity var(--smooth-slow);
}

#heroCarousel .carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.release-strip {
  border-top: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
}

.release-link {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.75rem 0.75rem;
  font-family: var(--heading-font);
  font-size: clamp(0.9375rem, 3.4vw, 1.25rem);
}

.catalogue-section {
  position: relative;
  display: grid;
  overflow: hidden;
}

.catalogue-image {
  position: absolute;
  inset: 0;
}

.catalogue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.05);
}

.catalogue-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  scroll-margin-top: 2.6875rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  mix-blend-mode: multiply;
}

.catalogue-panel h1,
.newsletter h2,
.about-section h2 {
  margin: 0;
  padding: 0.75rem 0.75rem 2rem;
  border-top: var(--section-line);
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 2vw, 3rem);
  font-weight: 800;
}

.catalogue-panel h1::before,
.newsletter h2::before,
.about-section h2::before {
  content: "✴︎";
  display: inline-block;
  margin-right: 0.625rem;
  transform-origin: center;
  transition: transform var(--smooth);
}

.catalogue-panel h1:hover::before,
.newsletter h2:hover::before,
.about-section h2:hover::before,
.catalogue-section:hover .catalogue-panel h1::before,
.newsletter:hover h2::before,
.about-section:hover h2::before {
  animation: ascii-spin 1800ms linear infinite;
}

body:not(:has(.catalogue-section:hover, .newsletter:hover, .about-section:hover)) .catalogue-panel:target h1::before,
body:not(:has(.catalogue-section:hover, .newsletter:hover, .about-section:hover)) .newsletter:target h2::before,
body:not(:has(.catalogue-section:hover, .newsletter:hover, .about-section:hover)) .about-section:target h2::before {
  animation: ascii-spin 1800ms linear infinite;
}

body:has(.catalogue-section:hover) .newsletter:target h2::before,
body:has(.catalogue-section:hover) .about-section:target h2::before,
body:has(.newsletter:hover) .catalogue-panel:target h1::before,
body:has(.newsletter:hover) .about-section:target h2::before,
body:has(.about-section:hover) .catalogue-panel:target h1::before,
body:has(.about-section:hover) .newsletter:target h2::before {
  animation: none;
}

.catalogue-panel:target h1::before,
.newsletter:target h2::before,
.about-section:target h2::before {
  transform: rotate(0);
}

@keyframes ascii-spin {
  to {
    transform: rotate(1turn);
  }
}

.catalogue-item {
  border-bottom: 0.0625rem solid var(--line);
}

.catalogue-item:first-child {
  border-top: 0.0625rem solid var(--line);
}

.catalogue-item:last-child {
  border-bottom: 0;
}

.catalogue-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  width: 100%;
  min-height: 2.6875rem;
  align-items: center;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(0.9375rem, 3.3vw, 1.1875rem);
  line-height: 1.12;
  text-align: left;
  transition: background-color var(--smooth), opacity var(--smooth), padding-left var(--smooth);
}

.catalogue-trigger:hover,
.catalogue-trigger:focus-visible {
  background: var(--accent-soft);
  opacity: 0.72;
  padding-left: 1.125rem;
  text-decoration: none;
}

.catalogue-trigger[aria-expanded="true"] {
  background: var(--selected-bg);
}

.catalogue-trigger span:last-child {
  text-align: right;
}

.project-panel {
  max-height: 0;
  overflow: hidden;
  overflow-anchor: none;
  border-top: 0.0625rem solid transparent;
  background: var(--paper);
  opacity: 0;
  transform: translateY(-0.375rem);
  transition: max-height var(--smooth-slow), opacity var(--smooth), transform var(--smooth), border-color var(--smooth);
}

.project-panel.is-open {
  max-height: 162.5rem;
  border-top-color: var(--line);
  background: var(--selected-bg);
  opacity: 1;
  transform: translateY(0);
}

.project-carousel {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.project-slides {
  position: relative;
  width: 100%;
  height: clamp(20rem, 62vw, 45rem);
  background: var(--carousel-fade-bg);
  overflow: hidden;
}

.project-panel.is-open .project-specs,
.project-panel.is-open .project-description {
  background: var(--selected-bg);
}

.project-panel > .project-carousel:not(:first-child) {
  border-top: 0.0625rem solid var(--line);
}

.project-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.006);
  transition: opacity var(--smooth-slow), transform 1400ms cubic-bezier(0.45, 0, 0.25, 1);
}

.project-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.video-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--smooth);
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox-player {
  display: block;
  width: min(100%, 75rem);
  max-height: calc(100vh - 5rem);
  background: #000;
}

.video-lightbox-close {
  position: absolute;
  top: 0.625rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1;
  cursor: pointer;
}

.project-carousel-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 0.0625rem solid var(--line);
}

.project-carousel-grid .project-specs,
.project-carousel-grid > .project-carousel + .project-carousel {
  border-top: 0.0625rem solid var(--line);
}

.project-carousel-grid .project-slides {
  height: clamp(17.5rem, 72vw, 35rem);
}

.project-specs {
  display: grid;
  align-content: start;
  background: var(--paper);
}

.project-panel > .project-specs {
  min-height: auto;
  border-top: 0.0625rem solid var(--line);
}

.project-spec-block {
  padding: 0.875rem 0.75rem 1.125rem;
}

.project-spec-block + .project-spec-block {
  border-top: 0.0625rem solid var(--line);
}

.project-spec-block h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: var(--heading-font);
  font-size: clamp(0.9375rem, 3.3vw, 1.1875rem);
  font-weight: 300;
}

.project-spec-block p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.18;
}

.project-description {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0.5625rem 0.75rem 0.625rem;
  border-top: 0.0625rem solid var(--line);
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  line-height: 1.18;
}

.project-description p {
  max-width: 57.5rem;
  margin: 0;
}

.project-meta {
  color: var(--muted);
  font-family: var(--heading-font);
  font-weight: 300;
}

.publication-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 0.0625rem solid var(--line);
}

.publication-grid img {
  width: 100%;
  height: 72vh;
  min-height: 30rem;
  object-fit: cover;
  border-bottom: 0.0625rem solid var(--line);
}

.newsletter {
  padding: 0 0.75rem 2rem;
  scroll-margin-top: 2.6875rem;
}

.newsletter h2 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-bottom: 2rem;
}

.newsletter p {
  max-width: 43.125rem;
  margin: 0 0 0.625rem;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.newsletter input,
.newsletter textarea,
.newsletter button {
  height: 1.9375rem;
  padding: 0;
  border: 0;
  border-bottom: 0.0625rem solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: color var(--smooth), opacity var(--smooth);
}

.newsletter input:focus,
.newsletter textarea:focus,
.newsletter button:focus {
  outline: 0;
}

.newsletter input {
  grid-column: 1 / -1;
}

.newsletter textarea {
  grid-column: 1 / -1;
  margin-top: 0.625rem;
  height: 7.75rem;
  padding-top: calc(7.75rem - 1.9375rem);
  resize: vertical;
}

.newsletter input::placeholder,
.newsletter textarea::placeholder {
  color: var(--muted);
  transition: color var(--smooth);
}

.newsletter button {
  justify-self: end;
  display: inline-flex;
  align-items: flex-start;
  min-height: 1.9375rem;
  margin-top: 0.625rem;
  border-bottom: 0;
  font-family: var(--heading-font);
  font-size: 0.9375rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

.about-section {
  padding-bottom: 3.5rem;
}

.about-section > p {
  max-width: 68.75rem;
  margin: 0;
  padding: 0.5rem 0.75rem 1.75rem;
  font-size: clamp(0.9375rem, 2.3vw, 1.0625rem);
}

.dossier-accordion {
  padding: 0 0.75rem;
}

.dossier-accordion .accordion-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.dossier-accordion .accordion-button {
  min-height: 2.6875rem;
  padding: 0;
  border-top: 0.0625rem solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  transition: background-color var(--smooth), opacity var(--smooth);
}

.dossier-accordion .accordion-button:hover,
.dossier-accordion .accordion-button:focus-visible {
  background: var(--accent-soft);
  opacity: 0.72;
}

.dossier-accordion .accordion-item:last-child .accordion-button {
  border-bottom: 0.0625rem solid var(--line);
}

.dossier-accordion .accordion-button::after {
  width: auto;
  height: auto;
  margin-left: auto;
  background: none;
  content: "+";
  transform: rotate(0);
  transition: transform var(--smooth);
}

.dossier-accordion .accordion-button:not(.collapsed)::after {
  content: "-";
  transform: rotate(180deg);
}

.dossier-accordion .accordion-body {
  padding: 0.625rem 0 1.125rem;
  border-bottom: 0.0625rem solid var(--line);
  animation: soft-in var(--smooth) both;
}

@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0.75rem;
  border-top: var(--section-line);
  background: var(--selected-bg);
  color: var(--muted);
}

.footer-brand,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.footer-brand h2 span {
  display: inline-block;
  margin-right: 0.625rem;
  transform-origin: center;
  transition: transform var(--smooth);
}

.site-footer:hover .footer-brand h2 span {
  animation: ascii-spin 1800ms linear infinite;
}

.footer-links a {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 300;
}

.footer-links {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 35.999rem) {
  body {
    font-size: 0.875rem;
    line-height: 1.16;
  }

  p {
    font-size: 0.875rem;
  }

  .site-header {
    gap: 0.5rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .brand,
  .primary-nav a {
    font-size: 0.9375rem;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 1.25rem;
  }

  .brand-symbol {
    display: inline-block;
    font-size: 1.75rem;
  }

  .brand-name {
    display: none;
  }

  .primary-nav {
    gap: clamp(0.5rem, 2.8vw, 0.875rem);
  }

  .catalogue-panel h1,
  .newsletter h2,
  .about-section h2,
  .footer-brand h2 {
    font-size: 1.75rem;
  }

  .catalogue-trigger,
  .project-spec-block h3,
  .newsletter button,
  .footer-links a {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.875rem;
  }

  .about-section > p {
    font-size: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
  }

}

@media (min-width: 48rem) {
  body {
    font-size: 1.0625rem;
  }

  .site-header,
  .brand,
  .primary-nav a {
    height: 3rem;
    min-height: 3rem;
  }

  .announcement {
    margin-top: 0;
  }

  .hero-gallery {
    margin-top: 3rem;
  }

  .catalogue-panel {
    scroll-margin-top: 3rem;
  }

  .newsletter {
    scroll-margin-top: 3rem;
  }

  .hero-gallery .carousel {
    height: calc(100vh - 3rem);
  }

  .hero-gallery img {
    height: calc(100vh - 3rem);
  }

  .release-link {
    flex-direction: row;
    justify-content: space-between;
  }

  .project-carousel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-carousel-grid .project-specs,
  .project-carousel-grid > .project-carousel + .project-carousel {
    border-top: 0;
    border-left: 0.0625rem solid var(--line);
  }

  .project-carousel-grid .project-slides {
    height: clamp(18.75rem, 36vw, min(32.5rem, 70vh));
  }

  .project-specs {
    min-height: clamp(18.75rem, 36vw, min(32.5rem, 70vh));
  }

  .project-panel > .project-specs {
    min-height: auto;
  }

  .publication-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .publication-grid img {
    height: min(52vw, 70vh);
    min-height: 26.25rem;
    border-right: 0.0625rem solid var(--line);
  }

  .project-panel > .project-carousel .project-slides {
    height: clamp(22.5rem, 54vw, 72vh);
  }

  .newsletter,
  .about-section > p,
  .project-description,
  .dossier-accordion,
  .site-footer,
  .site-header {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .newsletter h2 {
    margin-left: -1.125rem;
    margin-right: -1.125rem;
  }

}

@media (min-width: 75rem) {
  .catalogue-panel {
    margin-bottom: 0;
  }

  .publication-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .publication-grid img {
    height: min(42vw, 68vh);
    min-height: 28.75rem;
  }

  .about-section > p {
    font-size: 1.1875rem;
  }
}
