@font-face {
  font-family: "Roman Grotesque";
  src: url("../fonts/Roman_Grotesque_WEB-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gutter: clamp(24px, 2.7vw, 44px);

  --white: #ffffff;
  --logo: #712c00;

  --accent: #b5562a;
  --accent-light: #231c19;
  --panel-text: #d6cbc3;
  --panel-strong: #f0a67c;

  --panel-width: 50vw;

  --transition: 420ms cubic-bezier(0.76, 0, 0.24, 1);

  /* Slideshow motion. Keep in sync with main.js. */
  --video-fade: 1400ms;

  --word-enter: 1100ms;
  --word-stagger: 55ms;
  --word-exit: 550ms;
  --word-exit-stagger: 18ms;

  --ease-video: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
  color: var(--white);
  background: #000;
  font-family: "Roman Grotesque", Georgia, serif;
}

button {
  font: inherit;
}

/* -----------------------------
   BACKGROUND VIDEOS
----------------------------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;

  overflow: hidden;
  background: #000;
}

.site-bg::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 4;

  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.site-bg-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

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

  z-index: 0;
  opacity: 0;
  filter: grayscale(1) contrast(1.2);

  transition: opacity var(--video-fade) var(--ease-video);
}

.site-bg-video.is-incoming {
  z-index: 1;
  opacity: 1;
  transition: none;
}

.site-bg-video.is-active {
  z-index: 2;
  opacity: 1;
}

.site-bg-video.is-leaving {
  z-index: 3;
  opacity: 0;
}

/* -----------------------------
   HEADER AND MENU
----------------------------- */

.site-header {
  position: fixed;
  top: 32px;
  left: var(--gutter);
  z-index: 20;
}

.menu-toggle,
.menu-item {
  padding: 0;

  color: var(--white);
  background: transparent;
  border: 0;

  font-weight: 700;
  text-transform: uppercase;

  cursor: pointer;
}

.menu-toggle {
  font-size: 26px;
  letter-spacing: 0.02em;
}

.site-menu {
  position: fixed;
  top: 84px;
  left: var(--gutter);
  z-index: 20;

  display: grid;
  gap: 4px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px);

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms;
}

body.menu-open .site-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;

  width: max-content;
  min-height: 27px;

  font-size: 26px;
  line-height: 1.02;
  text-align: left;
}

.menu-label {
  text-box: trim-both cap alphabetic;
}

.menu-arrow {
  display: none;
  flex: none;

  width: 21px;
  height: 21px;
  margin-right: 7px;

  pointer-events: none;
}

.menu-item.is-active .menu-arrow {
  display: block;
}

.menu-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.menu-arrow circle {
  fill: var(--accent);
}

.menu-arrow path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -----------------------------
   VIDEO CONTROLS
----------------------------- */

.site-controls {
  position: fixed;
  top: 30px;
  right: var(--gutter);
  z-index: 25;

  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.video-toggle {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  cursor: pointer;
  transition: transform 200ms ease;
}

.video-toggle:hover {
  transform: scale(1.08);
}

.video-toggle[hidden] {
  display: none;
}

.video-toggle svg {
  width: 16px;
  height: 16px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-toggle .video-toggle-play {
  display: none;
  fill: currentColor;
  stroke-width: 1.5;
}

.video-toggle[aria-pressed="true"] .video-toggle-pause {
  display: none;
}

.video-toggle[aria-pressed="true"] .video-toggle-play {
  display: block;
}

/* -----------------------------
   AUTOMATIC SLIDESHOW
----------------------------- */

main {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;
}

/* All slides share the same fullscreen position. */

.page-section {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  visibility: hidden;
  pointer-events: none;
}

.page-section.is-active {
  visibility: visible;
}

/*
  Word-by-word motion. main.js wraps every word in a .word span
  and gives it its position as --i.

  Entrance: each word resolves out of a soft blur and rises
  slightly, one after the other.
  Exit: the words dissolve upwards in a quick ripple.
*/

.word {
  display: inline-block;

  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.35em);

  transition:
    opacity var(--word-enter) var(--ease-enter),
    filter var(--word-enter) var(--ease-enter),
    transform var(--word-enter) var(--ease-enter);
  transition-delay: calc(var(--i, 0) * var(--word-stagger));
}

.is-visible .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.page-section.is-exiting .word {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-0.2em);

  transition-duration: var(--word-exit);
  transition-timing-function: var(--ease-exit);
  transition-delay: calc(var(--i, 0) * var(--word-exit-stagger));
}

/* -----------------------------
   HERO
----------------------------- */

.hero-section {
  display: grid;
  place-items: center;
}

.hero-lockup {
  display: grid;
  justify-items: center;
  gap: clamp(34px, 5vh, 64px);

  width: min(58vw, 920px);

  text-align: center;
  text-transform: uppercase;

  /* Fewer, larger words: give each one more room. */
  --word-stagger: 130ms;
}

.hero-lockup p,
.hero-lockup h1 {
  margin: 0;
}

.hero-lockup-top,
.hero-lockup-bottom {
  color: var(--white);

  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
}

.hero-lockup-title {
  color: var(--logo);

  font-size: clamp(110px, 17vw, 320px);
  font-weight: 400;
  line-height: 0.68;
  letter-spacing: -0.075em;

  white-space: nowrap;
}

/* -----------------------------
   SECTION TEXT
----------------------------- */

.section-copy {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 16vh, 155px);
  left: var(--gutter);
  z-index: 1;

  margin: 0;

  font-size: clamp(34px, 3vw, 58px);
  font-weight: 700;
  line-height: 1.06;
}

.section-copy-title {
  display: inline;
  margin: 0 30px 0 0;

  color: var(--accent);
  font: inherit;
}

/* -----------------------------
   FOOTER
----------------------------- */

.site-footer {
  position: relative;
  z-index: 1;

  padding: 56px var(--gutter) calc(48px + env(safe-area-inset-bottom));

  background: rgba(10, 8, 7, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  font-size: 18px;
  line-height: 1.4;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 40px;

  max-width: 1200px;
}

.site-footer p {
  margin: 0;
}

.site-footer-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* -----------------------------
   SIDE PANEL
----------------------------- */

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;

  width: var(--panel-width);

  overflow-y: auto;
  overscroll-behavior: contain;

  color: var(--panel-text);
  background: var(--accent-light);

  transform: translateX(100%);

  transition:
    transform var(--transition),
    background-color 400ms ease,
    color 400ms ease;
}

body.panel-open .side-panel {
  transform: translateX(0);
}

.panel-controls {
  position: sticky;
  top: 0;
  z-index: 3;

  height: 66px;
  background: var(--accent-light);
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;

  width: 34px;
  height: 34px;
  padding: 0;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.panel-close::before,
.panel-close::after {
  content: "";

  position: absolute;
  top: 16px;
  left: 3px;

  width: 30px;
  height: 1px;

  background: var(--panel-strong);
}

.panel-close::before {
  transform: rotate(45deg);
}

.panel-close::after {
  transform: rotate(-45deg);
}

.panel-arrows {
  position: absolute;
  top: 16px;
  right: 74px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--panel-strong);
}

.panel-arrow {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  color: inherit;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 50%;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.panel-arrow svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-arrow:not(:disabled):hover {
  color: var(--accent-light);
  background: var(--panel-strong);
}

.panel-arrow:not(:disabled):active {
  transform: scale(0.92);
}

.panel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.panel-counter {
  min-width: 3.2em;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* -----------------------------
   PANEL TABS
----------------------------- */

.panel-tabs {
  display: none;
}

.panel-tab {
  flex: none;
  position: relative;

  padding: 6px 0;

  color: var(--panel-text);
  background: transparent;
  border: 0;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;

  opacity: 0.6;
  cursor: pointer;

  transition:
    opacity 200ms ease,
    color 200ms ease;
}

.panel-tab.is-active {
  color: var(--panel-strong);
  opacity: 1;
}

.panel-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;

  width: 6px;
  height: 6px;
  margin-left: -3px;

  background: var(--panel-strong);
  border-radius: 50%;
}

/* -----------------------------
   PANEL CONTENT
----------------------------- */

.panel-content {
  display: none;

  padding: 6px 56px 80px 42px;
  font-size: 28px;
  line-height: 30px;
}

.panel-content.is-active {
  display: block;
}

.panel-content.enter-from-right {
  animation: panel-enter-right 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-content.enter-from-left {
  animation: panel-enter-left 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panel-enter-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-enter-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.panel-content h2 {
  margin: 0 0 12px;

  color: var(--panel-strong);
  font-size: 1em;
}

.panel-content h3 {
  display: flex;
  gap: 30px;

  margin: 28px 0 4px;

  color: var(--panel-strong);
  font-size: 1em;
}

.panel-content p {
  margin: 0;
}

.panel-content ul {
  margin: 0 0 24px 63px;
  padding: 0;

  list-style: none;
}

.panel-content li::before {
  content: "– ";
}

.products-intro-label {
  margin-right: 40px;
  color: var(--panel-strong);
}

.products-marker {
  color: var(--panel-strong);
}

.panel-content .panel-section {
  margin-top: 28px;
}

.panel-content .panel-heading {
  display: block;
  margin: 0;

  color: var(--panel-strong);
  font-size: 1em;
  line-height: inherit;
}

.panel-content .panel-indent {
  padding-left: 0;
  text-indent: 0;
}

.panel-history .panel-heading,
.panel-history .panel-indent {
  text-indent: 56px;
}

.panel-history .panel-section:first-of-type {
  margin-top: 26px;
}

.panel-philosophy .panel-section {
  margin-top: 26px;
}

/* -----------------------------
   PANEL ARROW SECTIONS
----------------------------- */

.panel-section-arrow {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
}

.panel-section-arrow::before,
.panel-section-arrow::after {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  box-sizing: border-box;
  width: 30px;
  height: 30px;

  pointer-events: none;
}

.panel-section-arrow::before {
  border: 2px solid var(--panel-strong);
  border-radius: 50%;
}

.panel-section-arrow::after {
  background: var(--panel-strong);

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;

  transition: transform 250ms ease;
}

.panel-section-arrow .panel-heading {
  grid-column: 2;
}

.panel-section-arrow .panel-indent {
  grid-column: 1 / -1;
  padding-left: 0;
  text-indent: 56px;
}

/* -----------------------------
   INFORMATION
----------------------------- */

.panel-information .information-block {
  margin-top: 26px;
}

.panel-information strong {
  color: var(--panel-strong);
  font-weight: 700;
}

.information-phone {
  display: grid;
  grid-template-columns: 58px 1fr;
  margin-top: 24px;
}

.information-address a,
.information-phone a {
  color: inherit;
  text-decoration: none;
}

.information-address a:hover,
.information-phone a:hover {
  text-decoration: underline;
}

.opening-hours {
  margin: 26px 0 30px;
}

.opening-hours div {
  display: grid;
  grid-template-columns: 235px 1fr;
}

.opening-hours dt,
.opening-hours dd {
  margin: 0;
}

.information-route-intro {
  margin-top: 30px;
}

.route-toggle {
  width: 100%;
  padding: 0;

  color: var(--panel-strong);
  background: transparent;
  border: 0;

  font: inherit;
  text-align: left;

  cursor: pointer;
}

.route-accordion .route-toggle {
  grid-column: 1 / -1;
  padding-left: 56px;
}

.route-description {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;

  opacity: 0;

  transition:
    grid-template-rows 300ms ease,
    opacity 220ms ease;
}

.route-description>* {
  min-height: 0;
  overflow: hidden;
}

.route-accordion.is-open .route-description {
  grid-template-rows: 1fr;
  opacity: 1;
}

.route-accordion.is-open::after {
  transform: rotate(90deg);
}

/* -----------------------------
   ACCESSIBILITY
----------------------------- */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* -----------------------------
   MOBILE
----------------------------- */

@media (max-width: 900px) {
  :root {
    --panel-width: 100vw;
  }

  .site-controls {
    top: 26px;
  }

  body.panel-open .site-menu,
  body.panel-open .site-header,
  body.panel-open .site-controls {
    visibility: hidden;
  }

  .hero-lockup {
    width: 90vw;
    gap: 32px;
  }

  .hero-lockup-title {
    font-size: clamp(82px, 23vw, 170px);
  }

  .hero-lockup-top,
  .hero-lockup-bottom {
    font-size: clamp(14px, 4vw, 23px);
  }

  .section-copy {
    font-size: clamp(30px, 8vw, 48px);
  }

  .site-footer {
    font-size: 16px;
  }

  .panel-controls {
    height: 0;
    background: none;
  }

  .panel-close {
    top: 14px;
    right: 14px;
    z-index: 3;
  }

  .panel-tabs {
    position: sticky;
    top: 0;
    z-index: 1;

    display: block;
    padding: 22px 64px 0 0;

    background: var(--accent-light);
    border-bottom: 1px solid color-mix(in srgb,
        var(--panel-text) 15%,
        transparent);
  }

  .panel-tabs-track {
    display: flex;
    gap: 22px;

    padding: 0 28px 14px;
    overflow-x: auto;
    scrollbar-width: none;

    -webkit-mask-image: linear-gradient(90deg,
        #000 calc(100% - 44px),
        transparent);

    mask-image: linear-gradient(90deg,
        #000 calc(100% - 44px),
        transparent);
  }

  .panel-tabs-track::-webkit-scrollbar {
    display: none;
  }

  .panel-arrows {
    top: calc(100vh - 76px);
    top: calc(100dvh - 76px - env(safe-area-inset-bottom));
    right: 50%;

    transform: translateX(50%);

    gap: 6px;
    padding: 6px;

    color: var(--accent-light);
    background: var(--panel-strong);
    border-radius: 999px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .panel-arrow {
    width: 44px;
    height: 44px;
    border: 0;
  }

  .panel-arrow:not(:disabled):hover {
    color: var(--accent-light);
    background: color-mix(in srgb,
        var(--accent-light) 18%,
        transparent);
  }

  .panel-content {
    padding: 24px 28px 120px;
    font-size: 24px;
    line-height: 28px;
  }

  .panel-history .panel-heading,
  .panel-history .panel-indent,
  .panel-section-arrow .panel-indent {
    text-indent: 40px;
  }

  .panel-section-arrow {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .route-accordion .route-toggle {
    padding-left: 40px;
  }

  .opening-hours div {
    grid-template-columns: minmax(150px, 1fr) 1fr;
  }
}