/* ==========================================================================
   Aurelia Textile — New Feature Sections
   ========================================================================== */

.section-inner--tight {
  padding-block: clamp(3rem, 7vw, 6rem);
}

/* ============================================================================
   The Swatch Wall — 3 columns auto-scrolling at different speeds/directions
   ============================================================================ */
.section--swatch-wall {
  background: var(--bg-collection);
  overflow: hidden;
}

.swatch-wall__header {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.swatch-wall__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.swatch-wall__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  height: clamp(360px, 46vw, 560px);
  padding-inline: var(--container-pad-x);
  padding-left: calc(var(--container-pad-x) + var(--rail-space));
  max-width: var(--container-max);
  margin-inline: auto;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.swatch-wall__col {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card-sm);
}

.swatch-wall__col-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  animation: swatch-scroll-up linear infinite;
}

.swatch-wall__col--down .swatch-wall__col-track {
  animation-name: swatch-scroll-down;
}

.swatch-wall__col:hover .swatch-wall__col-track {
  animation-play-state: paused;
}

.swatch-wall__tile {
  position: relative;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  flex: none;
}

.swatch-wall__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.swatch-wall__tile:hover img {
  transform: scale(1.06);
}

.swatch-wall__tile-code {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-pill);
  background: rgba(240, 235, 216, 0.88);
  color: var(--text-heading);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

@keyframes swatch-scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes swatch-scroll-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

/* ============================================================================
   How a Surface Is Made — pinned split-scroll story
   ============================================================================ */
.section--process {
  background: var(--bg-page);
}

.process__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.process__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
}

.process__eyebrow {
  display: block;
  margin-bottom: var(--space-4);
}

.process__labels {
  position: relative;
}

.process__label-stack {
  position: relative;
  height: clamp(220px, 30vw, 320px);
  margin-top: var(--space-5);
}

.process__label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.process__label-num {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-label);
  margin-bottom: var(--space-3);
}

.process__label-word {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--text-heading);
}

.process__label-desc {
  margin-top: var(--space-4);
  max-width: 30ch;
  font-size: var(--fs-body);
  color: var(--text-body-muted);
}

.process__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.process__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.process__progress {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
  display: flex;
  gap: var(--space-2);
}

.process__progress span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: rgba(240, 235, 216, 0.5);
  overflow: hidden;
  position: relative;
}

.process__progress span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-lime-500);
  transform: scaleX(0);
  transform-origin: left;
}

.process__progress span.is-active::after {
  transform: scaleX(1);
  transition: transform 0.1s linear;
}

@media (max-width: 860px) {
  .process__inner { grid-template-columns: 1fr; }
  .process__labels { height: 160px; }
  .process__label { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ============================================================================
   Specimen Index — coverflow-lite carousel (grayscale sides, sharp center)
   ============================================================================ */
.section--specimens {
  background: var(--bg-collection);
  overflow: hidden;
}

.specimens__header {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.specimens__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.specimens__desc {
  margin-top: var(--space-3);
  color: var(--text-body-muted);
}

.specimens__carousel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.specimens__track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: clamp(320px, 34vw, 440px);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.specimens__track::-webkit-scrollbar {
  display: none;
}

.specimens__track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.specimens__spacer {
  flex: none;
  height: 1px;
}

.specimens__card {
  scroll-snap-align: center;
}

.specimens__track.is-dragging {
  cursor: grabbing;
}

.specimens__card {
  position: relative;
  flex: none;
  width: clamp(200px, 22vw, 300px);
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  transform: scale(0.82);
  filter: grayscale(1) brightness(0.75);
  opacity: 0.6;
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  box-shadow: var(--shadow-card);
}

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

.specimens__card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(to top, rgba(28, 18, 32, 0.82), transparent);
  color: var(--color-cream-text);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.specimens__card-code {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-lime-600);
  margin-bottom: var(--space-1);
}

.specimens__card-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.specimens__card-tagline {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.78rem;
  opacity: 0.85;
}

.specimens__card.is-active {
  transform: scale(1);
  filter: grayscale(0) brightness(1);
  opacity: 1;
  z-index: 2;
}

.specimens__card.is-active .specimens__card-info {
  opacity: 1;
}

.specimens__card.is-adjacent {
  transform: scale(0.9);
  filter: grayscale(0.5) brightness(0.85);
  opacity: 0.85;
}

.specimens__nav {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--color-cream);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) ease;
}

.specimens__nav svg { width: 18px; height: 18px; }

.specimens__nav:hover {
  background: var(--color-aubergine-900);
  color: var(--color-cream-text);
  transform: scale(1.06);
}

.specimens__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
}

.specimens__dots {
  display: flex;
  gap: var(--space-2);
}

.specimens__dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--divider);
  border: none;
  padding: 0;
  transition: background var(--dur-fast) ease, width var(--dur-fast) ease;
}

.specimens__dot.is-active {
  background: var(--color-aubergine-900);
  width: 34px;
}

.specimens__hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ============================================================================
   In the Studio — a rail that glides on its own and takes mouse control
   ============================================================================ */
.section--studio-gallery {
  background: var(--bg-lab);
  overflow: hidden;
}

.studio-gallery__header {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.studio-gallery__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.studio-rail {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  /* Bleed past the container so cards run off both edges of the screen. */
  margin-inline: calc(var(--container-pad-x) * -1);
  padding-block: var(--space-4);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.studio-rail.is-dragging {
  cursor: grabbing;
}

.studio-rail__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  will-change: transform;
}

.studio-rail__card {
  flex: none;
  width: clamp(190px, 19vw, 280px);
}

.studio-rail__card--wide { width: clamp(270px, 29vw, 420px); }
.studio-rail__card--square { width: clamp(210px, 21vw, 310px); }

/* Staggered baseline so the strip reads as a scatter, not a row of tiles. */
.studio-rail__card:nth-child(3n + 2) { margin-top: 38px; }
.studio-rail__card:nth-child(3n) { margin-top: 16px; }

.studio-rail__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card-sm);
  aspect-ratio: 3 / 4;
  background: rgba(240, 235, 216, 0.06);
}

.studio-rail__card--wide .studio-rail__media { aspect-ratio: 16 / 10; }
.studio-rail__card--square .studio-rail__media { aspect-ratio: 1 / 1; }

.studio-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.studio-rail__card:hover .studio-rail__media img {
  transform: scale(1.05);
}

.studio-rail__cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-3);
  padding-inline: var(--space-1);
}

.studio-rail__cap strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-cream-text);
}

.studio-rail__cap span {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-body-muted-inverse);
}

.studio-rail__hint {
  margin-top: var(--space-6);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body-muted-inverse);
}

/* ============================================================================
   The Lookbook — stacked card carousel, dragged left/right
   ============================================================================ */
.section--lookbook {
  background: var(--bg-builder);
  overflow: hidden;
}

.lookbook__header {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.lookbook__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.lookbook__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 5rem);
}

.lookbook__stack {
  position: relative;
  flex: none;
  width: clamp(230px, 24vw, 320px);
  height: clamp(310px, 32vw, 430px);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  outline: none;
}

.lookbook__stack.is-dragging {
  cursor: grabbing;
}

.lookbook__stack:focus-visible {
  outline: 2px solid var(--color-aubergine-900);
  outline-offset: 12px;
  border-radius: var(--radius-card);
}

.lookbook__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-aubergine-900);
  box-shadow: 0 30px 60px rgba(43, 27, 58, 0.3);
  transform-origin: 50% 120%;
  will-change: transform;
  /* The photo sits under a brand tint so the fanned-out edges read as colour,
     the way the flat colour cards do in the reference. */
}

.lookbook__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.05);
}

/* 'color' keeps the photograph's light and shade but recolours it to the
   edition's brand hue, so each card reads as a distinct colour when it's
   fanned out behind the front one. */
.lookbook__card-tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  opacity: 0.85;
}

.lookbook__card--aubergine .lookbook__card-tint { background: var(--color-aubergine-900); }
.lookbook__card--purple .lookbook__card-tint { background: var(--color-purple-500); }
.lookbook__card--terracotta .lookbook__card-tint { background: var(--color-terracotta-600); }
.lookbook__card--navy .lookbook__card-tint { background: var(--color-navy-600); }
.lookbook__card--lime .lookbook__card-tint { background: var(--color-lime-600); opacity: 0.7; }

.lookbook__card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 18, 32, 0.55), rgba(28, 18, 32, 0.25) 42%, rgba(28, 18, 32, 0.72));
}

.lookbook__card-body {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  color: var(--color-cream-text);
}

.lookbook__card-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.lookbook__card-center {
  margin: auto 0;
  text-align: center;
}

.lookbook__card-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

.lookbook__card-sub {
  display: block;
  margin-top: var(--space-2);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.lookbook__card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.lookbook__card-foot span small {
  display: block;
  opacity: 0.6;
  font-size: 0.9em;
  margin-bottom: 2px;
}

.lookbook__nav {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.lookbook__nav svg { width: 18px; height: 18px; }

.lookbook__nav:hover {
  background: var(--color-aubergine-900);
  color: var(--color-cream-text);
  transform: scale(1.06);
}

.lookbook__caption {
  margin-top: var(--space-8);
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ============================================================================
   The Studio Ledger — shuffling stat boxes ("skipper boxes")
   ============================================================================ */
.section--studio-ledger {
  background: var(--bg-page);
}

.studio-ledger__header {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.studio-ledger__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.studio-ledger__hint {
  margin-top: var(--space-3);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-label);
}

.studio-ledger__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.studio-ledger__box {
  position: relative;
  border-radius: var(--radius-card-sm);
  padding: var(--space-6) var(--space-5);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.studio-ledger__box--aubergine { background: var(--color-aubergine-900); color: var(--color-cream-text); }
.studio-ledger__box--lime { background: var(--color-lime-500); color: var(--color-aubergine-900); }
.studio-ledger__box--purple { background: var(--color-purple-500); color: var(--color-cream-text); }
.studio-ledger__box--terracotta { background: var(--color-terracotta-500); color: var(--color-aubergine-900); }

.studio-ledger__box-value {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.studio-ledger__box-label {
  font-size: 0.85rem;
  max-width: 22ch;
  opacity: 0.9;
}

@media (max-width: 860px) {
  .studio-ledger__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   The Vault — 3D coverflow, square cards, perspective + physics drag
   ============================================================================ */
.section--vault {
  background: var(--bg-lab);
  overflow: hidden;
}

.vault__header {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.vault__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.vault__stage {
  perspective: 1400px;
  height: clamp(280px, 34vw, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault__track {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.vault__track.is-dragging { cursor: grabbing; }

.vault__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(200px, 22vw, 280px);
  height: clamp(200px, 22vw, 280px);
  margin: calc(clamp(200px, 22vw, 280px) / -2) 0 0 calc(clamp(200px, 22vw, 280px) / -2);
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  box-shadow: 0 30px 50px rgba(28, 18, 32, 0.45);
  will-change: transform, opacity;
}

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

.vault__card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(28, 18, 32, 0.85), transparent);
  color: var(--color-cream-text);
}

.vault__card-code {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--color-lime-600);
}

.vault__card-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 2px;
}

.vault__card-note {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 2px;
}

.vault__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.vault__nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--divider-inverse);
  background: transparent;
  color: var(--color-cream-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.vault__nav svg { width: 18px; height: 18px; }

.vault__nav:hover {
  background: var(--color-cream-text);
  color: var(--color-aubergine-900);
  transform: scale(1.06);
}

.vault__hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body-muted-inverse);
}

/* ============================================================================
   Field Notes — fanned card stack, cycles to full focus and back
   ============================================================================ */
.section--field-notes {
  background: var(--bg-builder);
}

.field-notes__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-10);
  align-items: center;
}

.field-notes__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

.field-notes__desc {
  margin-top: var(--space-4);
  max-width: 38ch;
  color: var(--text-body-muted);
}

.field-notes__stack-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.field-notes__stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: clamp(260px, 30vw, 340px);
  cursor: pointer;
}

.field-notes__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}

.field-notes__card--terracotta { background: var(--color-terracotta-500); color: var(--color-aubergine-900); }
.field-notes__card--purple { background: var(--color-purple-500); color: var(--color-cream-text); }
.field-notes__card--lime { background: var(--color-lime-500); color: var(--color-aubergine-900); }
.field-notes__card--aubergine { background: var(--color-aubergine-900); color: var(--color-cream-text); }

.field-notes__card-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
}

.field-notes__card-body {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  max-width: 30ch;
}

.field-notes__hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}

@media (max-width: 1024px) {
  .field-notes__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .swatch-wall__col-track,
  .studio-ledger__box,
  .field-notes__card,
  .specimens__card,
  .vault__card {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================================
   Studio Console — hosts the matrix loaders and the stacking banners
   ============================================================================ */
.section--console {
  background: var(--color-aubergine-900);
}

.console__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: end;
}

.console__title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-top: var(--space-3);
}

.console__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.console__row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(240, 235, 216, 0.12);
  border-radius: var(--radius-card-sm);
  background: rgba(240, 235, 216, 0.04);
}

.console__row .t-matrix {
  --matrix-dot: 4px;
  flex: none;
}

.console__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.console__text strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-cream-text);
}

.console__text small {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-body-muted-inverse);
}

/* ---- Banner stack -------------------------------------------------------- */
.console__col--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.console__stack-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-lime-600);
}

/* The stack is absolutely positioned from its bottom edge, so the wrapper
   reserves the room the spread needs to climb into. */
.console__stack {
  height: 78px;
  margin-top: calc(78px * 2 + 16px);
}

.t-stack-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card-sm);
  border: 1px solid rgba(240, 235, 216, 0.14);
  background: var(--color-purple-500);
  box-shadow: 0 18px 40px rgba(28, 18, 32, 0.45);
}

.t-stack-banner .t-matrix {
  --matrix-dot: 3px;
  flex: none;
}

.stack-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stack-banner__text strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-cream-text);
}

.stack-banner__text small {
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 216, 0.7);
}

@media (max-width: 860px) {
  .console__grid { grid-template-columns: 1fr; }
  .console__stack { margin-top: calc(78px * 2 + 16px); }
}

/* ============================================================================
   The Journal — squeeze carousel
   ============================================================================ */
.section--journal {
  background: var(--bg-collection);
  overflow: hidden;
}

.journal__header {
  max-width: 640px;
  margin-bottom: var(--space-2);
}

.journal__title {
  font-size: var(--fs-h2);
  margin-top: var(--space-3);
}

/* The outer element is the size container, so every width below reads the
   width the carousel is given rather than the width of the window. The
   variables live one level in because a container query cannot restyle the
   container itself. */
.sq {
  container-type: inline-size;
  width: 100%;
}

.sq__body {
  --sq-h: clamp(180px, 32cqi, 340px);
  --sq-gap: 16px;
  --sq-slat-gap: 8px;
  --sq-slat: 8px;
  --sq-radius: var(--radius-card-sm);
  --sq-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* A 16:9 block sets both the open card and the size every picture is drawn
     at, so a picture keeps one scale however narrow its card gets. */
  --sq-hero: calc(var(--sq-h) * 16 / 9);
  /* What the four columns share once the open card, slats and gaps are paid. */
  --sq-room: calc(
    100cqi - var(--sq-hero)
    - var(--sq-slats) * var(--sq-slat-gap)
    - 3 * var(--sq-gap)
    - var(--sq-slats) * var(--sq-slat)
  );

  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* On a narrow carousel a full 16:9 block would leave the four columns
   nothing, so cap the open card and tighten the gaps. */
@container (max-width: 640px) {
  .sq__body {
    --sq-gap: 8px;
    --sq-slat-gap: 6px;
    --sq-slat: 6px;
    --sq-hero: min(calc(var(--sq-h) * 16 / 9), 62cqi);
  }
}

/* Changes that must not be seen: a trim, or the pre-shift before a step back. */
.sq.is-still * {
  transition: none !important;
}

/* ---- controls ------------------------------------------------------------ */
.sq__controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.sq__arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--color-aubergine-900);
  color: var(--color-cream-text);
  cursor: pointer;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.sq__arrow svg {
  width: 16px;
  height: 16px;
}

.sq__arrow:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.sq__arrow:focus-visible {
  outline: 2px solid var(--color-aubergine-900);
  outline-offset: 3px;
}

/* ---- the row ------------------------------------------------------------- */
.sq__viewport {
  width: 100%;
  height: var(--sq-h);
  overflow: hidden;
}

.sq__strip {
  display: flex;
  width: max-content;
  height: 100%;
  transition: transform var(--sq-ms) var(--sq-ease);
}

.sq__card {
  position: relative;
  isolation: isolate;
  flex: none;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(43, 27, 58, 0.08);
  cursor: pointer;
  outline: none;
  transition:
    width var(--sq-ms) var(--sq-ease),
    margin-left var(--sq-ms) var(--sq-ease);
}

.sq__card:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-collection), 0 0 0 4px var(--color-aubergine-900);
}

.sq__img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--sq-hero);
  min-width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
}

.sq__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  padding: 4rem 1rem 1rem;
  pointer-events: none;
  background-image: linear-gradient(to top, rgba(28, 18, 32, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--sq-ms) var(--sq-ease);
}

.sq__card.is-front .sq__overlay {
  opacity: 1;
}

.sq__mark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-cream-text);
  white-space: nowrap;
}

@container (min-width: 32rem) {
  .sq__overlay {
    padding: 5rem 1.5rem 1.5rem;
  }
}

/* ---- copy underneath ----------------------------------------------------- */
/* Every slide's copy sits in the same grid cell and cross-fades. */
.sq__panel {
  display: grid;
  margin-top: var(--space-6);
}

.sq__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--sq-ms) var(--sq-ease), visibility var(--sq-ms);
}

.sq__slide.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sq__copy {
  max-width: 46rem;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: balance;
}

.sq__title {
  color: var(--text-heading);
  font-weight: 500;
}

.sq__desc {
  color: var(--text-body-muted);
}

.sq__action {
  flex-shrink: 0;
}

.sq__action-icon {
  width: 6px;
  height: 9px;
  transition: transform var(--dur-fast) ease;
}

.sq__action:hover .sq__action-icon {
  transform: translateX(2px);
}

@container (min-width: 32rem) {
  .sq__copy {
    font-size: 17px;
  }
}

@container (min-width: 36rem) {
  .sq__slide {
    flex-direction: row;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sq__body {
    --sq-ms: 0ms !important;
  }
}
