.guide {
  position: relative;
  background: radial-gradient(70% 60% at 50% 48%, rgba(59, 5, 16, 0.95), transparent 75%), var(--cherry, #221516);
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.pin {
  position: relative;
  min-height: 100svh;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 120px;
  box-sizing: border-box;
}

.rail {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  perspective: 1700px;
  padding-block: 20px;
  outline: none;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

.track {
  display: flex;
  align-items: center;
  gap: clamp(60px, 9vw, 160px);
  width: max-content;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  transform-style: preserve-3d;
}

.intro {
  width: min(560px, 84vw);
  flex: none;
  scroll-snap-align: start;
}

.intro h1 {
  font-family: var(--digivrse-font-serif, "Ortica", Georgia, serif);
  font-size: clamp(3.2rem, 7.4vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--porcelain, #F4F4F1);
}

.intro h1 .ln {
  display: block;
}

.intro h1 .ln:last-child {
  padding-left: 0.8em;
}

.intro p {
  margin-top: 26px;
  max-width: 24em;
  color: var(--stone, #E1DBD7);
  font-size: clamp(16px, 1.3vw, 19px);
}

.hint {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone, #E1DBD7);
  opacity: 0.8;
}

.hint i {
  display: block;
  width: 44px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--porcelain, #F4F4F1);
  animation: hint-slide 1.8s var(--ease-portfolio, ease) infinite;
}

@keyframes hint-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.item {
  flex: none;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  transform-style: preserve-3d;
}

.rig {
  --rw: min(54vw, 118vh, 860px);
  display: block;
  position: relative;
  width: var(--rw);
  text-decoration: none;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 14px;
}

.rig:focus-visible {
  outline-offset: 14px;
}

.mon {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.4;
  transform-style: preserve-3d;
}

/* GPU-accelerated chassis depth (replaces 80+ intersecting DOM layers) */
.mface {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #080506;
  padding: 1.3%;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1.5px #2a1d1e,
    0 0 0 3.5px #140d0e,
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 55px 110px -30px rgba(0, 0, 0, 0.95);
  transform: translateZ(4px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  container-type: inline-size;
}

.mbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 1.2cqw;
  height: 3.6cqw;
  min-height: 20px;
  font-size: max(9px, 1.15cqw);
  color: var(--stone, #E1DBD7);
  opacity: 0.8;
}

.mbar span:nth-child(2) {
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbar span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mbar span:last-child::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fd1a8;
  box-shadow: 0 0 8px #7fd1a8;
}

/* Clean inline-size containment (prevents Chrome tile-dropping bugs) */
.mscreen {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  container-type: inline-size;
  background: var(--porcelain, #F4F4F1);
  transform: translateZ(2px);
}

.phone {
  position: absolute;
  right: -5%;
  bottom: -11%;
  height: 68%;
  aspect-ratio: 0.485;
  transform: translateZ(60px);
  transform-style: preserve-3d;
}

.pfront {
  position: absolute;
  inset: 0;
  border-radius: 15% / 7.3%;
  background: #070405;
  padding: 3.6%;
  box-shadow:
    0 0 0 1.5px #2a1d1e,
    0 0 0 3px #12090a,
    0 25px 50px -15px rgba(0, 0, 0, 0.9);
  transform: translateZ(4px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pscreen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12.6% / 5.9%;
  overflow: hidden;
  container-type: inline-size;
  background: var(--porcelain, #F4F4F1);
  transform: translateZ(2px);
}

.island {
  position: absolute;
  left: 50%;
  top: 2.2%;
  width: 30%;
  height: 3.6%;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #050304;
  z-index: 7;
}

.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(105deg, transparent 30%, rgba(244, 244, 241, 0.14) 46%, transparent 60%);
  background-size: 260% 100%;
  background-position: var(--gx, 50%) 0;
}

/* Static noise overlay: transition removed to stop 60fps compositor fighting */
.nz {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--noise, var(--oxblood, #3B0510)) 0 0 / 180px;
  background-color: var(--oxblood, #3B0510);
  background-blend-mode: screen;
  image-rendering: pixelated;
  opacity: var(--nz, 0.08);
}

.nz::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
}

.rig:hover .nz,
.rig:focus-visible .nz {
  opacity: 0 !important;
}

/* Custom Media Wrappers */
.mon-custom-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mon-custom-media-img {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
}

.mon-custom-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.phone-custom-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.phone-custom-media-img {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
}

.phone-custom-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Caption Block */
.cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 18px;
  width: var(--rw, min(54vw, 860px));
  max-width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 219, 215, 0.16);
}

.cap-ch {
  font-size: 12px;
  color: var(--stone, #E1DBD7);
}

.cap b {
  font: 400 clamp(20px, 1.8vw, 28px) / 1 var(--digivrse-font-serif, "Ortica", Georgia, serif);
  letter-spacing: -0.01em;
  color: var(--porcelain, #F4F4F1);
}

.cap-meta {
  font-size: 11px;
  color: var(--stone, #E1DBD7);
  opacity: 0.7;
  grid-column: 2;
}

.cap-go {
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  font: 500 14px / 1 var(--digivrse-font-sans, "Uncut Sans", sans-serif);
  text-decoration: none;
  padding: 0.85em 1.15em;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(244, 244, 241, 0.3);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.item:hover .cap-go,
.item.tuned .cap-go {
  background-color: var(--porcelain, #F4F4F1);
  color: var(--cherry, #221516);
  box-shadow: none;
}

.cap-go span {
  display: inline-block;
  transition: transform 0.4s var(--ease-portfolio, ease);
}

.item:hover .cap-go span {
  transform: translate(2px, -2px);
}

.outro {
  flex: none;
  width: min(560px, 84vw);
  scroll-snap-align: center;
}

.outro h2 {
  font: 300 clamp(2.6rem, 5.6vw, 6rem) / 0.94 var(--digivrse-font-serif, "Ortica", Georgia, serif);
  letter-spacing: -0.035em;
  color: var(--porcelain, #F4F4F1);
}

.outro p {
  margin-top: 22px;
  color: var(--stone, #E1DBD7);
  max-width: 22em;
}

.outro .btn {
  margin-top: 30px;
  padding: 1em 1.5em;
  font-size: 15px;
}

.outro .back {
  display: inline-block;
  margin-left: 22px;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 244, 241, 0.35);
  padding-bottom: 3px;
  color: var(--porcelain, #F4F4F1);
}

/* Button Styling (.btn) */
.btn,
a.btn,
button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.7em !important;
  padding: 0.8em 1.25em !important;
  border-radius: 999px !important;
  background-color: var(--porcelain, #F4F4F1) !important;
  color: var(--cherry, #221516) !important;
  font-family: var(--digivrse-font-sans, "Uncut Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: color 0.3s ease !important;
}

.btn::after,
a.btn::after,
button.btn::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-color: var(--wine, #390517) !important;
  transform: translateY(101%) !important;
  transition: transform 0.5s var(--ease-portfolio, cubic-bezier(0.2, 0.7, 0.1, 1)) !important;
  z-index: 0 !important;
}

.btn > *,
a.btn > *,
button.btn > * {
  position: relative !important;
  z-index: 1 !important;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  color: var(--porcelain, #F4F4F1) !important;
}

.btn:hover::after,
a.btn:hover::after,
button.btn:hover::after {
  transform: none !important;
}

/* Tuner Bar */
.tuner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  justify-content: center;
}

.dial {
  position: relative;
  display: flex;
  gap: clamp(6px, 1.8vw, 24px);
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: rgba(14, 8, 9, 0.72);
  box-shadow: inset 0 0 0 1px rgba(225, 219, 215, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 90vw;
  overflow-x: auto;
}

.tk {
  all: unset;
  cursor: pointer;
  position: relative;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--stone, #E1DBD7);
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
}

.tk:hover {
  opacity: 1;
}

.tk:focus-visible {
  outline: 2px solid var(--porcelain, #F4F4F1);
  outline-offset: 2px;
  border-radius: 6px;
}

.tk.on {
  opacity: 1;
  color: var(--porcelain, #F4F4F1);
}

.tk::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background-color: var(--wine-lit, #9B2A48);
  transform: scale(0);
  transition: transform 0.35s var(--ease-portfolio, ease);
}

.tk.on::after {
  transform: scale(1);
}

.needle {
  transition: left 0.5s var(--ease-portfolio, ease), opacity 0.3s;
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background-color: var(--wine-lit, #9B2A48);
  box-shadow: 0 0 10px var(--wine-lit, #9B2A48);
  left: var(--nx, 14px);
  pointer-events: none;
  display: none;
}

/* Fallback Mini-Sites */
.s-halden { --s-bg: var(--porcelain); --s-fg: var(--cherry); --s-ac: var(--oxblood); --s-pan: var(--stone); --s-dis: var(--digivrse-font-bagnard); --s-up: none; --s-w: 400; }
.s-north  { --s-bg: var(--evergreen); --s-fg: var(--porcelain); --s-ac: #C9D9C9; --s-on: var(--evergreen); --s-pan: var(--forest); --s-dis: var(--digivrse-font-sans); --s-up: uppercase; --s-w: 700; }
.s-marrow { --s-bg: var(--stone); --s-fg: var(--cherry); --s-ac: var(--cherry); --s-pan: var(--porcelain); --s-dis: var(--digivrse-font-serif); --s-up: none; --s-w: 300; }
.s-velour { --s-bg: var(--cherry); --s-fg: var(--porcelain); --s-ac: var(--wine-lit); --s-pan: var(--wine); --s-dis: var(--digivrse-font-angular); --s-up: none; --s-w: 400; }
.s-tide   { --s-bg: var(--forest); --s-fg: var(--porcelain); --s-ac: var(--stone); --s-on: var(--forest); --s-pan: var(--evergreen); --s-dis: var(--digivrse-font-serif); --s-up: none; --s-w: 300; }
.s-foundry{ --s-bg: var(--stone); --s-fg: var(--evergreen); --s-ac: var(--evergreen); --s-pan: var(--porcelain); --s-dis: var(--digivrse-font-mono); --s-up: uppercase; --s-w: 400; }

.site {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100%;
  background: var(--s-bg);
  color: var(--s-fg);
  font-size: 3.9cqw;
  line-height: 1.4;
  padding: 13cqw 6cqw 0;
  text-align: left;
}

.site h4 {
  font: var(--s-w) 11.5cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
  letter-spacing: -0.02em;
  margin-top: 3cqw;
}

.site h5 {
  font: var(--s-w) 6.6cqw / 1.05 var(--s-dis);
  text-transform: var(--s-up);
  letter-spacing: -0.01em;
}

.s-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: var(--s-w) 6cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
}

.s-pill, .s-btn {
  display: inline-block;
  background: var(--s-ac);
  color: var(--s-on, var(--s-bg));
  font: 500 3.4cqw / 1 var(--digivrse-font-sans);
  padding: 2.4cqw 3.6cqw;
  border-radius: 99px;
  text-transform: none;
}

.s-btn {
  margin-top: 5cqw;
  padding: 3.4cqw 5cqw;
}

.s-kick {
  font: 400 2.9cqw / 1 var(--digivrse-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 12cqw;
}

.s-sub {
  margin-top: 3.6cqw;
  opacity: 0.8;
}

.s-menu {
  margin-top: 9cqw;
}

.s-menu ul {
  list-style: none;
  margin: 3cqw 0 0;
  padding: 0;
}

.s-menu li {
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
  padding: 2.6cqw 0;
  border-bottom: 0.3cqw dotted color-mix(in srgb, var(--s-fg) 30%, transparent);
}

.s-block {
  margin: 9cqw -6cqw 0;
  padding: 9cqw 6cqw;
  background: var(--s-ac);
  color: var(--s-on, var(--s-bg));
}

.s-block p {
  font: 400 2.9cqw / 1 var(--digivrse-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 3cqw;
}

.s-foot {
  padding: 7cqw 6cqw 16cqw;
  margin: 0 -6cqw;
  background: var(--s-pan);
  font: var(--s-w) 5cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
}

.dsite {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100%;
  background: var(--s-bg);
  color: var(--s-fg);
  font-size: 1.45cqw;
  line-height: 1.45;
  text-align: left;
}

.d-nav {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.4cqw 4cqw;
  border-bottom: 0.12cqw solid color-mix(in srgb, var(--s-fg) 14%, transparent);
}

.d-nav b {
  font: var(--s-w) 2.2cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
  margin-right: auto;
}

.d-nav span {
  opacity: 0.7;
  font-size: 1.3cqw;
}

.d-pill, .d-btn {
  display: inline-block;
  background: var(--s-ac);
  color: var(--s-on, var(--s-bg));
  font: 500 1.25cqw / 1 var(--digivrse-font-sans);
  padding: 1cqw 1.6cqw;
  border-radius: 99px;
  opacity: 1 !important;
}

.d-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 5cqw;
  padding: 7cqw 4cqw 6cqw;
  align-items: end;
}

.d-kick {
  font: 400 1.1cqw / 1 var(--digivrse-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.d-hero h4 {
  margin-top: 1.6cqw;
  font: var(--s-w) 6.4cqw / 0.95 var(--s-dis);
  text-transform: var(--s-up);
  letter-spacing: -0.03em;
}

.d-sub {
  margin-top: 2cqw;
  max-width: 30em;
  opacity: 0.8;
  font-size: 1.6cqw;
}

.d-btn {
  margin-top: 2.6cqw;
  padding: 1.4cqw 2.2cqw;
  font-size: 1.4cqw;
}

.d-panel {
  background: var(--s-pan);
  padding: 2.6cqw;
  border-radius: 1cqw;
}

.d-panel h5 {
  font: var(--s-w) 2.2cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
}

.d-panel ul {
  list-style: none;
  margin: 1.4cqw 0 0;
  padding: 0;
}

.d-panel li {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  padding: 1cqw 0;
  border-bottom: 0.1cqw dotted color-mix(in srgb, var(--s-fg) 30%, transparent);
}

.d-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
  padding: 0 4cqw 6cqw;
}

.d-cards div {
  border-top: 0.15cqw solid var(--s-fg);
  padding-top: 1.4cqw;
  opacity: 0.9;
}

.d-cards b {
  display: block;
  font: var(--s-w) 3cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
  margin-bottom: 0.8cqw;
}

.d-band {
  background: var(--s-ac);
  color: var(--s-on, var(--s-bg));
  padding: 6cqw 4cqw;
}

.d-band p {
  font: 400 1.1cqw / 1 var(--digivrse-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 1.4cqw;
}

.d-band h5 {
  font: var(--s-w) 4.4cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
  letter-spacing: -0.02em;
  max-width: 16em;
}

.d-foot {
  display: flex;
  justify-content: space-between;
  padding: 3cqw 4cqw 8cqw;
  background: var(--s-pan);
  font-size: 1.3cqw;
}

.d-foot b {
  font: var(--s-w) 2cqw / 1 var(--s-dis);
  text-transform: var(--s-up);
}

/* ==========================================================================
   Cinema (Pinned Full Viewport Experience) & Overflow Containment
   ========================================================================== */
.cinema .pin {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-block: 0;
}

.cinema .rail {
  overflow: hidden !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.cinema .needle {
  display: block;
}

/* Boot Static Canvas Overlay */
.boot {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
  place-items: center;
  background-color: var(--oxblood, #3B0510);
}

.boot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.boot span {
  position: relative;
  font: 400 clamp(14px, 1.6vw, 22px) / 1 var(--digivrse-font-mono, monospace);
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(244, 244, 241, 0.6);
  color: var(--porcelain, #F4F4F1);
}

.cinema .boot {
  display: grid;
}

@media (max-width: 899px) {
  .rig {
    --rw: 86vw;
  }
  .phone {
    height: 78%;
    right: -2%;
    bottom: -30%;
  }
  .item {
    padding-bottom: 12vw;
    gap: 40px;
  }
  .cap {
    grid-template-columns: auto 1fr;
  }
  .cap-go {
    grid-column: 1 / 3;
    grid-row: auto;
    justify-self: start;
    margin-top: 10px;
  }
}