/* ==========================================================================
   Max Solution — Software (product catalog)
   Isolated stylesheet — mirrors the main site's tokens, not imported from it.
   black / gold / silver · editorial · museum composition
   ========================================================================== */

:root {
  --black: #070707;
  --black-2: #0b0b0b;
  --panel: #101010;
  --gold: #c8a24b;
  --gold-bright: #e9cd8a;
  --gold-dim: rgba(200, 162, 75, 0.4);
  --silver: #b9bdc6;
  --silver-dim: rgba(185, 189, 198, 0.6);
  --ivory: #f1eee6;
  --line: rgba(241, 238, 230, 0.13);
  --line-gold: rgba(200, 162, 75, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --rail: clamp(0rem, 6vw, 5.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

em { font-style: italic; color: var(--gold-bright); }

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

a { color: inherit; }

/* Film grain — consistent with the main site's texture */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ==========================================================================
   Header — quiet, like a cinema title strip
   ========================================================================== */

.bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  padding: 1.1rem var(--pad);
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ivory);
  text-decoration: none;
  margin-right: auto;
}
.bar__brand span { color: var(--gold); }
.bar__index {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.bar__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.bar__back,
.bar__door {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
}
.bar__back {
  color: var(--silver);
  border-bottom: 1px solid transparent;
}
.bar__back:hover { color: var(--ivory); border-color: var(--line); }
.bar__door {
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line-gold);
}
.bar__door:hover { color: var(--ivory); border-color: var(--ivory); }

/* ==========================================================================
   Hero
   ========================================================================== */

.s-hero {
  position: relative;
  padding: clamp(6rem, 14vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.s-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(closest-side, rgba(200, 162, 75, 0.07), transparent 65%);
  pointer-events: none;
}
.s-hero__label {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 2rem;
}
.s-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.s-hero__lead {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  color: var(--silver);
}

/* ==========================================================================
   Chapters — shared architecture (matches the main site)
   ========================================================================== */

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.chapter--alt { background: var(--black-2); }

.chapter__rail { position: relative; }
.chapter__rail span {
  position: sticky;
  top: 40vh;
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}

.chapter__body { min-width: 0; }

.chapter__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.chapter__no {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.chapter__intro {
  max-width: 34rem;
  color: var(--silver);
  margin-top: 1.6rem;
}

/* ==========================================================================
   Live product
   ========================================================================== */

.product {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.product__mat {
  padding: 0.6rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(200, 162, 75, 0.16), transparent 55%),
    linear-gradient(160deg, #15130e 0%, #0c0c0c 70%);
}
.product__mat img {
  width: 100%;
  height: auto;
  filter: saturate(0.9);
  transition: filter 0.5s ease;
}
.product__mat:hover img { filter: saturate(1); }

.product__info { min-width: 0; }
.product__facts {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}
.product__facts li {
  position: relative;
  padding-inline-start: 1.3rem;
  color: var(--silver);
  font-size: 0.98rem;
}
.product__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Coming Soon pipeline
   ========================================================================== */

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.pipeline__item {
  padding: clamp(1.6rem, 3vw, 2.2rem) 0.25rem;
  border-bottom: 1px solid var(--line);
  opacity: 0.82;
}
.pipeline__status {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--line-gold);
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.9rem;
}
.pipeline__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: var(--silver);
}
.pipeline__item p {
  color: var(--silver-dim);
  font-size: 0.9rem;
  max-width: 28rem;
}

/* ==========================================================================
   Positioning line
   ========================================================================== */

.s-positioning {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.s-positioning p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  color: var(--silver);
}
.s-positioning a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
}
.s-positioning a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ==========================================================================
   Buttons (shared language with the main site)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ==========================================================================
   Colophon (footer)
   ========================================================================== */

.colophon {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 2rem;
  overflow: hidden;
}
.colophon__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 10rem);
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 162, 75, 0.22);
  user-select: none;
  margin-bottom: 2.2rem;
}
.colophon__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.colophon__row a { text-decoration: none; }
.colophon__row a:hover { color: var(--gold-bright); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 920px) {
  .bar__index { display: none; }

  .chapter { grid-template-columns: 1fr; }
  .chapter__rail { display: none; }

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

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

@media (max-width: 560px) {
  .bar { gap: 0.7rem 1.2rem; }
  .bar__links { gap: 1.2rem; }
  .s-hero__title { max-width: 100%; }
}
