:root {
  --ink: #0c0d0d;
  --ink-soft: #171819;
  --moon: #f4f1ea;
  --mist: #c9c9c4;
  --stone: #777977;
  --blood: #b63232;
  --blood-dark: #7d2026;
  --parchment: #d5b77e;
  --line: rgba(244, 241, 234, 0.2);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--moon);
  background: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(244, 241, 234, 0.2), transparent 24rem),
    linear-gradient(90deg, rgba(12, 13, 13, 0.86), rgba(12, 13, 13, 0.34) 50%, rgba(12, 13, 13, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.24) 45%, rgba(0, 0, 0, 0.72));
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.background-stage {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #090909;
}

.bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 850ms ease;
}

.bg-layer.is-active {
  opacity: 1;
}

.bg-layer::before,
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--image);
  background-position: var(--focus-x) center;
  background-repeat: no-repeat;
}

.bg-layer::before {
  inset: -8%;
  background-size: cover;
  filter: blur(28px) contrast(1.08);
  opacity: 0.86;
  transform: scale(1.08);
}

.bg-layer::after {
  background-image:
    radial-gradient(circle at 50% 35%, rgba(244, 241, 234, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(9, 9, 9, 0.58), rgba(9, 9, 9, 0.04) 32%, rgba(9, 9, 9, 0.06) 68%, rgba(9, 9, 9, 0.62)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.08), rgba(8, 8, 8, 0.16)),
    var(--image);
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center, center, center, var(--focus-x) var(--focus-y, center);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.42));
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  width: clamp(142px, 15vw, 196px);
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 100%;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.main-nav a,
.site-footer a {
  text-decoration: none;
  font-size: 0.82rem;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(244, 241, 234, 0.78);
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--moon);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--moon);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.section {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(96px, 12vh, 150px) clamp(18px, 4vw, 56px);
  scroll-margin-top: 96px;
}

.hero {
  min-height: 92svh;
  align-items: flex-end;
  padding-bottom: clamp(46px, 8vh, 86px);
}

.story-section {
  align-items: flex-start;
  padding-top: clamp(112px, 14vh, 150px);
}

.story-section .split-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(48px, 7vw, 104px);
}

.story-section h2 {
  max-width: 560px;
  font-size: clamp(2.2rem, 4.1vw, 3.55rem);
  line-height: 1.03;
}

.story-section .copy-stack p {
  font-size: clamp(1.08rem, 1.28vw, 1.22rem);
}

.content {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-content {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--parchment);
  font-size: 0.78rem;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif;
  line-height: 0.96;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 7.2rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.56);
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(244, 241, 234, 0.9);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 234, 0.32);
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 241, 234, 0.58);
  background: rgba(182, 50, 50, 0.86);
}

.social-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blood), var(--blood-dark));
  box-shadow: 0 16px 36px rgba(124, 22, 25, 0.32);
}

.button-secondary {
  color: var(--moon);
  border-color: rgba(244, 241, 234, 0.32);
  background: rgba(0, 0, 0, 0.24);
}

.split-layout,
.collaboration-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.copy-stack {
  max-width: 680px;
}

.copy-stack p {
  margin: 0 0 18px;
  color: rgba(244, 241, 234, 0.88);
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  font-weight: 600;
}

.story-extra[hidden] {
  display: none;
}

.story-toggle {
  margin-top: 8px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 280px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 23, 23, 0.76), rgba(12, 13, 13, 0.56)),
    rgba(12, 13, 13, 0.58);
  box-shadow: var(--shadow);
}

.card-number {
  display: block;
  margin-bottom: 44px;
  color: var(--blood);
  font-family: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.product-card p {
  margin: 18px 0 0;
  color: rgba(244, 241, 234, 0.82);
}

.carousel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.form-note {
  color: rgba(244, 241, 234, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.flip-carousel {
  --visible-cards: 3;
  --carousel-gap: clamp(16px, 3vw, 30px);
  overflow: hidden;
  min-height: min(690px, 74vh);
  padding: 2px 0 30px;
}

.flip-track {
  display: flex;
  gap: var(--carousel-gap);
  align-items: center;
  transition: transform 760ms cubic-bezier(0.2, 0.76, 0.2, 1);
  will-change: transform;
}

.flip-card {
  display: block;
  flex: 0 0 calc((100% - ((var(--visible-cards) - 1) * var(--carousel-gap))) / var(--visible-cards));
  max-width: none;
  aspect-ratio: 827 / 1418;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 1500px;
}

.flip-card-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.54));
}

.flip-card.is-flipped .flip-card-inner {
  transform: none;
}

.flip-face {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 720ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 240ms ease;
  background: rgba(0, 0, 0, 0.68);
}

.flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-front {
  z-index: 2;
  opacity: 1;
  transform: rotateY(0deg);
}

.flip-back {
  z-index: 1;
  opacity: 0;
  transform: rotateY(-180deg);
}

.flip-card.is-flipped .flip-front {
  z-index: 1;
  opacity: 0;
  transform: rotateY(180deg);
}

.flip-card.is-flipped .flip-back {
  z-index: 2;
  opacity: 1;
  transform: rotateY(0deg);
}

.carousel-progress {
  width: min(180px, 42vw);
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.18);
}

.carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blood), #e35252);
}

.carousel-progress.is-running span {
  animation: carouselLoad 10s linear forwards;
}

@keyframes carouselLoad {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.collaboration-layout {
  grid-template-columns: minmax(260px, 390px) minmax(320px, 1fr);
}

.phone-shell {
  position: relative;
  width: min(390px, 42svh, 100%);
  aspect-ratio: 9 / 18;
  margin: 0 auto;
  padding: 10px;
  border: 2px solid rgba(244, 241, 234, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.12), rgba(244, 241, 234, 0.02)),
    #080808;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64);
  overflow: hidden;
}

.phone-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: #050505;
}

.collaboration-copy .button {
  margin-top: 8px;
}

address {
  color: rgba(244, 241, 234, 0.82);
  font-style: normal;
}

address a {
  color: var(--parchment);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.56);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--parchment);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--moon);
  background: rgba(0, 0, 0, 0.42);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--parchment);
}

.form-note {
  min-height: 22px;
  margin: 0;
  text-transform: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  background: rgba(0, 0, 0, 0.86);
}

.site-footer img {
  width: min(220px, 100%);
}

.site-footer p {
  margin: 0 0 5px;
  color: rgba(244, 241, 234, 0.64);
  font-size: 0.85rem;
  text-shadow: none;
}

.back-to-top {
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 30;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, 24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--blood), var(--blood-dark));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  }

  .main-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .section {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 76px;
  }

  .hero {
    min-height: 92svh;
  }

  .split-layout,
  .collaboration-layout,
  .contact-layout,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .collaboration-copy {
    order: -1;
  }

  .product-card {
    min-height: 220px;
  }

  .carousel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .flip-carousel {
    --visible-cards: 2;
  }

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

@media (max-width: 640px) {
  .bg-layer::after {
    background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  }

  .button {
    width: 100%;
  }

  .hero-socials {
    width: 100%;
    justify-content: center;
  }

  .social-link {
    flex: 1;
    max-width: 68px;
  }

  .flip-carousel {
    --visible-cards: 1;
    min-height: auto;
  }

  .flip-card {
    max-width: min(360px, 100%);
  }

  .phone-shell {
    width: min(340px, 92vw);
    border-radius: 28px;
  }
}
