/* Fluid Axis Portal — chromatic, off-axis, high z-index layers */
body.page-fluid-axis {
  --fx-void: #0a0a0c;
  --fx-ink: #f4f4f2;
  --fx-cyan: #2ee6ff;
  --fx-mag: #ff2d8a;
  --fx-yel: #ffe14a;
  --fx-pad: clamp(1.25rem, 4vw, 3.5rem);
  --fx-r: 0;
  background: var(--fx-void);
  color: var(--fx-ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: clip;
}

body.page-fluid-axis .bespoke-main {
  position: relative;
  isolation: isolate;
}

/* —— Diagonal telescoping corner nav —— */
.fx-corner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 4.5rem;
  height: 4.5rem;
  transform: rotate(-8deg) translate(-6%, -6%);
  transform-origin: top left;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-corner.is-open,
.fx-corner:hover,
.fx-corner:focus-within {
  width: min(18rem, 88vw);
  height: auto;
  min-height: 22rem;
  transform: rotate(-2deg) translate(0, 0);
}
.fx-corner-hub {
  position: absolute;
  inset: 0 auto auto 0;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid var(--fx-ink);
  background: var(--fx-void);
  color: var(--fx-ink);
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.15rem;
  padding: 0;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.fx-corner-mark {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.fx-corner-hint {
  font-family: "Fragment Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.fx-corner-links {
  position: absolute;
  inset: 0;
  padding: 5.25rem 1rem 1.25rem 1.15rem;
  background: linear-gradient(145deg, #121218 0%, #0a0a0c 55%, #1a0820 100%);
  border: 2px solid var(--fx-ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
.fx-corner.is-open .fx-corner-links,
.fx-corner:hover .fx-corner-links,
.fx-corner:focus-within .fx-corner-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fx-corner-links a {
  font-family: "Fragment Mono", monospace;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.4rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-corner-links a:hover,
.fx-corner-links a:focus-visible {
  color: var(--fx-cyan);
  border-left-color: var(--fx-mag);
  transform: translateX(0.35rem);
  outline: none;
}

/* —— Full-bleed hero · brand + copy over edge-to-edge media —— */
.fx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--fx-pad) + 5.5rem) var(--fx-pad) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
}
.fx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.72) 42%, rgba(10, 10, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, transparent 28%, rgba(10, 10, 12, 0.75) 100%);
}
.fx-chromatic {
  position: absolute;
  inset: -10% -5%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.28;
}
.fx-chromatic--a {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, var(--fx-cyan), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 70%, var(--fx-mag), transparent 55%);
  animation: fxDrift 14s ease-in-out infinite alternate;
}
.fx-chromatic--b {
  background:
    radial-gradient(ellipse 35% 35% at 60% 20%, var(--fx-yel), transparent 50%);
  animation: fxDrift 18s ease-in-out infinite alternate-reverse;
  opacity: 0.18;
}
@keyframes fxDrift {
  from { transform: translate(-2%, 1%) scale(1); }
  to { transform: translate(3%, -2%) scale(1.06); }
}

.fx-hero-brand {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  max-width: min(52rem, 100%);
}
.fx-wordmark {
  margin: 0;
  line-height: 0.88;
}
.fx-wordmark-top,
.fx-wordmark-bot {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 14vw, 9.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.fx-wordmark-top {
  color: var(--fx-ink);
  text-shadow: 3px 0 0 rgba(46, 230, 255, 0.55), -3px 0 0 rgba(255, 45, 138, 0.45);
}
.fx-wordmark-bot {
  color: var(--fx-cyan);
  -webkit-text-stroke: 0;
  text-shadow: 4px 0 0 rgba(255, 45, 138, 0.35), -4px 0 0 rgba(46, 230, 255, 0.25);
}
.fx-acronym {
  margin: 0.75rem 0 0;
  font-family: "Fragment Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--fx-yel);
}

.fx-hero-copy {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 3;
  max-width: 34rem;
  align-self: end;
  padding-top: 0.5rem;
}
.fx-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
}
.fx-hero-copy h1 em {
  font-style: normal;
  color: var(--fx-mag);
}
.fx-hero-copy p {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(244, 244, 242, 0.9);
  max-width: 36ch;
}
.fx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fx-cta-primary,
.fx-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  text-decoration: none;
  font-family: "Fragment Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.fx-cta-primary {
  background: var(--fx-cyan);
  border-color: var(--fx-cyan);
  color: #0a0a0c;
  box-shadow: 4px 4px 0 rgba(255, 225, 74, 0.55);
}
.fx-cta-ghost {
  background: rgba(10, 10, 12, 0.45);
  border-color: var(--fx-ink);
  color: var(--fx-ink);
}
.fx-cta-primary:hover,
.fx-cta-primary:focus-visible {
  background: var(--fx-yel);
  border-color: var(--fx-yel);
  color: #0a0a0c;
  box-shadow: 6px 6px 0 rgba(46, 230, 255, 0.45);
  transform: translate(3px, -3px);
  outline: none;
}
.fx-cta-primary:active {
  transform: translate(1px, -1px);
  box-shadow: 2px 2px 0 rgba(255, 225, 74, 0.55);
}
.fx-cta-ghost:hover,
.fx-cta-ghost:focus-visible {
  border-color: var(--fx-yel);
  color: var(--fx-yel);
  background: rgba(255, 225, 74, 0.12);
  transform: translate(-2px, 2px);
  outline: none;
}
.fx-cta-ghost:active {
  transform: translate(0, 0);
}

.fx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  min-height: 100%;
  width: 100%;
}
.fx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.08);
}
.fx-hero-media figcaption {
  position: absolute;
  bottom: 1.25rem;
  right: var(--fx-pad);
  left: auto;
  max-width: min(22rem, 42vw);
  z-index: 3;
  font-family: "Fragment Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: rgba(10, 10, 12, 0.88);
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(46, 230, 255, 0.45);
}
.fx-hero-media figcaption a {
  color: #f4f4f2;
  text-decoration: none;
  font-weight: 600;
}
.fx-hero-media figcaption a:hover,
.fx-hero-media figcaption a:focus-visible {
  color: var(--fx-cyan);
  outline: none;
}

/* —— Asymmetric dashboard sections —— */
.fx-dash,
.fx-mosaic,
.fx-featured {
  position: relative;
  padding: var(--fx-pad);
  z-index: 3;
}
.fx-dash { background: #0f0f14; }
.fx-mosaic {
  background: var(--fx-ink);
  color: var(--fx-void);
}
.fx-featured { background: var(--fx-void); }

.fx-dash-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}
.fx-dash-head--invert .fx-layer-tag { color: var(--fx-mag); }
.fx-layer-tag {
  font-family: "Fragment Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fx-cyan);
}
.fx-dash-head h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
}
.fx-mosaic .fx-dash-head h2 {
  color: var(--fx-void);
}

.fx-corridor {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 2rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fx-corridor-cell {
  flex: 0 0 min(14rem, 70vw);
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
  color: #f4f4f2;
  background: #16161e;
  border: 1px solid rgba(244, 244, 242, 0.2);
  padding: 0.75rem;
  transform: translateY(calc(var(--fx-n, 0) * 1.1rem)) rotate(calc(var(--fx-n, 0) * 1.2deg));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  z-index: 1;
}
.fx-corridor-cell:hover,
.fx-corridor-cell:focus-visible {
  z-index: 5;
  border-color: var(--fx-cyan);
  outline: none;
  transform: translateY(calc(var(--fx-n, 0) * 1.1rem - 0.5rem)) rotate(0deg) scale(1.03);
}
.fx-corridor-cell:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.45);
}
.fx-corridor-cell img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.fx-corridor-idx {
  font-family: "Fragment Mono", monospace;
  font-size: 0.65rem;
  color: var(--fx-mag);
  display: block;
}
.fx-corridor-cell strong {
  display: block;
  font-size: 1rem;
  margin: 0.25rem 0;
}
.fx-corridor-cell small {
  color: rgba(244, 244, 242, 0.78);
  font-size: 0.8rem;
}

.fx-mosaic-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.fx-tile {
  background: #fff;
  border: 2px solid var(--fx-void);
  grid-column: span 3;
  position: relative;
}
.fx-tile:nth-child(1) { grid-column: span 5; z-index: 4; margin-top: 0; }
.fx-tile:nth-child(2) { grid-column: span 3; z-index: 2; margin-top: 2.5rem; }
.fx-tile:nth-child(3) { grid-column: span 4; z-index: 3; margin-top: -0.5rem; }
.fx-tile:nth-child(4) { grid-column: span 4; z-index: 2; margin-top: 1rem; }
.fx-tile:nth-child(5) { grid-column: span 3; z-index: 5; margin-top: -1.5rem; }
.fx-tile:nth-child(6) { grid-column: span 5; z-index: 3; }
.fx-tile:nth-child(7) { grid-column: span 4; z-index: 2; margin-top: 1.25rem; }
.fx-tile:nth-child(8) { grid-column: span 4; z-index: 4; margin-top: -0.75rem; }
.fx-tile--z1 { box-shadow: 6px 6px 0 var(--fx-cyan); }
.fx-tile--z2 { box-shadow: -6px 8px 0 var(--fx-mag); }
.fx-tile--z3 { box-shadow: 8px -4px 0 var(--fx-yel); }
.fx-tile-media { display: block; overflow: hidden; }
.fx-tile-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-tile:hover .fx-tile-media img { transform: scale(1.06); }
.fx-tile-meta { padding: 0.85rem 1rem 1.1rem; color: #0a0a0c; }
.fx-tile-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.fx-tile-meta h3 a {
  color: #0a0a0c;
  text-decoration: none;
}
.fx-tile-meta h3 a:hover,
.fx-tile-meta h3 a:focus-visible {
  color: var(--fx-mag);
  outline: none;
}
.fx-tile-meta p {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 0.8rem;
  color: #1a1a1a;
}
.fx-tile-meta s { opacity: 0.55; margin-right: 0.35rem; color: #444; }
.fx-all-link {
  margin: 2rem 0 0;
  text-align: right;
  font-family: "Fragment Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fx-all-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  color: #0a0a0c;
  text-decoration: none;
  font-weight: 700;
  background: var(--fx-cyan);
  border: 2px solid #0a0a0c;
  box-shadow: 3px 3px 0 #0a0a0c;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.fx-all-link a:hover,
.fx-all-link a:focus-visible {
  background: var(--fx-yel);
  color: #0a0a0c;
  outline: none;
  transform: translate(-2px, -2px);
}
.fx-all-link a:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 #0a0a0c;
}

.fx-feat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: stretch;
}
.fx-feat-sku {
  flex: 1 1 16rem;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: #f4f4f2;
  padding: 1rem;
  border: 2px solid rgba(244, 244, 242, 0.35);
  transform: skewX(calc(var(--fx-skew, 0) * -1));
  transition: border-color 0.2s, background 0.2s;
}
.fx-feat-sku:hover,
.fx-feat-sku:focus-visible {
  border-color: var(--fx-cyan);
  background: rgba(46, 230, 255, 0.1);
  outline: none;
}
.fx-feat-sku:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.35);
}
.fx-feat-sku img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  transform: skewX(var(--fx-skew, 0));
}
.fx-feat-sku div { transform: skewX(var(--fx-skew, 0)); }
.fx-feat-sku strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.fx-feat-sku span {
  font-family: "Fragment Mono", monospace;
  font-size: 0.8rem;
  color: var(--fx-yel);
}

@media (max-width: 900px) {
  .fx-hero {
    min-height: 100svh;
    padding-top: calc(var(--fx-pad) + 5rem);
  }
  .fx-hero::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.78) 45%, rgba(10, 10, 12, 0.92) 100%);
  }
  .fx-hero-media figcaption {
    left: var(--fx-pad);
    right: var(--fx-pad);
    max-width: none;
    bottom: auto;
    top: auto;
    /* keep caption out of brand zone — pin near bottom still */
    bottom: 1rem;
  }
  .fx-mosaic-board { grid-template-columns: repeat(6, 1fr); }
  .fx-tile:nth-child(n) {
    grid-column: span 3;
    margin-top: 0 !important;
  }
  .fx-tile:nth-child(odd) { grid-column: span 3; }
  .fx-tile:nth-child(1),
  .fx-tile:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 560px) {
  .fx-tile:nth-child(n) { grid-column: span 6; }
  .fx-wordmark-top,
  .fx-wordmark-bot { font-size: clamp(2.8rem, 18vw, 4rem); }
  .fx-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .fx-cta-primary,
  .fx-cta-ghost {
    justify-content: center;
  }
}
