/* Coming soon: intro (#s-top) and Cover Flow ring (#s-angles). */

/* ---------- #s-top ---------- */
#s-top { padding-top: calc(var(--sec-y) + var(--header-h)); overflow-x: clip; position: relative; }
#s-top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#s-top .wrap { position: relative; }
#s-top .stx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 40px; align-items: center; }
#s-top .stx-copy { min-width: 0; }
#s-top .stx-line { margin: 22px 0 0; color: var(--paper-ink); }
#s-top .stx-note { margin: 14px 0 0; }
#s-top .stx-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
#s-top .stx-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.4); color: var(--paper-ink);
  font: 500 15px/1 var(--f-body); text-decoration: none; transition: border-color .18s, background-color .18s;
}
#s-top .stx-chip:hover { border-color: var(--paper-ink); background: #fff; }
#s-top .stx-stampcell { display: flex; justify-content: flex-end; padding: 22px 14px 14px; }
#s-top .stx-stamp {
  width: clamp(228px, 62vw, 300px); aspect-ratio: 360 / 220;
  transform: rotate(-9deg); transform-origin: 50% 50%;
  mix-blend-mode: multiply; pointer-events: none;
}
#s-top .stx-stamp svg { width: 100%; height: auto; }
#s-top .stx-stamp.stx-slam { animation: stx-slam .7s .2s both; }
@keyframes stx-slam {
  0%   { opacity: 0; transform: rotate(-9deg) scale(1.35); animation-timing-function: cubic-bezier(.55, 0, .95, .5); }
  42%  { opacity: 1; transform: rotate(-9deg) scale(.95); animation-timing-function: ease-out; }
  66%  { transform: rotate(-9deg) scale(1.025); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@media (min-width: 900px) {
  #s-top .stx-grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 400px); }
  #s-top .stx-stampcell { justify-content: center; padding: 28px; }
  #s-top .stx-stamp { width: 100%; }
}

/* ---------- #s-angles ---------- */
#s-angles { --cw: clamp(236px, 66vw, 340px); --ch: calc(var(--cw) * 1.62); --rk: 2.3; overflow-x: clip; padding-bottom: calc(var(--sec-y) * .8); }
#s-angles .rgx-head { margin-bottom: clamp(20px, 4vw, 44px); }
#s-angles .rgx-head .t-lede { margin: 18px 0 0; }
#s-angles .rgx-stage {
  position: relative; height: calc(var(--ch) + 64px); margin-top: 8px;
  perspective: calc(var(--cw) * 5); perspective-origin: 50% 46%;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; border-radius: var(--radius);
}
#s-angles .rgx-stage.is-drag { cursor: grabbing; }
#s-angles .rgx-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: calc(var(--cw) * 1.7); height: 38px; margin-left: calc(var(--cw) * -.85);
  background: radial-gradient(closest-side, rgba(255,216,163,.16), rgba(255,216,163,0)); pointer-events: none;
}
#s-angles .rgx-ring {
  position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) * -.5 - 8px) 0 0 calc(var(--cw) * -.5);
  transform-style: preserve-3d; transform: translate3d(0, 0, calc(var(--cw) * var(--rk) * -1)); will-change: transform;
}
/* The 3D card carries no clip and no radius: the clip lives on a flat child, so iOS never has to mask a transformed layer. */
#s-angles .rgx-card {
  position: absolute; inset: 0; cursor: pointer;
  transform: rotateY(calc(var(--k) * 45deg)) translate3d(0, 0, calc(var(--cw) * var(--rk)));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
#s-angles .rgx-card::before {
  content: ""; position: absolute; inset: -14% -22%; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(closest-side, rgba(255,216,163,.17), rgba(255,216,163,0));
}
#s-angles .rgx-card.is-front::before { opacity: 1; }
#s-angles .rgx-clip {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  background: rgba(255,255,255,.12); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
}
#s-angles .rgx-clip::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; z-index: 0; opacity: 0; transition: opacity .5s;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0deg, rgba(255,216,163,0) 0 62%, rgba(255,216,163,.85) 84%, #fff2dc 90%, rgba(255,216,163,0) 94%);
}
#s-angles .rgx-clip::after {
  content: ""; position: absolute; inset: 1px; z-index: 1; border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(180deg, #17181b, #0c0d0f);
}
#s-angles .rgx-card--tint .rgx-clip::after { background: linear-gradient(180deg, #3b3c41, #1f2023); }
#s-angles .rgx-card.is-front .rgx-clip::before { opacity: 1; }
#s-angles .rgx-clip > * { position: relative; z-index: 2; }

#s-angles .rgx-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
#s-angles .rgx-idx { color: var(--mute); font-size: 11px; }
#s-angles .rgx-tag { color: var(--beam); font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
#s-angles .rgx-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--beam); opacity: .5; }

#s-angles .rgx-media { position: relative; overflow: hidden; margin: 8px 0 0; min-height: 0; }
#s-angles .rgx-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-user-drag: none; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 40%, transparent 100%);
}
#s-angles .rgx-card--fill .rgx-media img { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%); }
#s-angles .rgx-card--wide .rgx-media img { object-fit: cover; }
#s-angles .rgx-card--cut .rgx-media img { padding: 3% 0; -webkit-mask-image: none; mask-image: none; }
#s-angles .rgx-card--tint .rgx-media img { filter: brightness(1.5) saturate(.6); }
#s-angles .rgx-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255,216,163,0), rgba(255,216,163,.10) 80%, rgba(255,242,220,.18) 96%, rgba(255,216,163,0));
  transform: translate3d(0, -100%, 0);
}
#s-angles .rgx-brk {
  position: absolute; inset: 7px; pointer-events: none; opacity: .32; transition: opacity .5s; z-index: 3;
  --b: var(--beam);
  background:
    linear-gradient(var(--b), var(--b)) 0 0 / 12px 1px, linear-gradient(var(--b), var(--b)) 0 0 / 1px 12px,
    linear-gradient(var(--b), var(--b)) 100% 0 / 12px 1px, linear-gradient(var(--b), var(--b)) 100% 0 / 1px 12px,
    linear-gradient(var(--b), var(--b)) 0 100% / 12px 1px, linear-gradient(var(--b), var(--b)) 0 100% / 1px 12px,
    linear-gradient(var(--b), var(--b)) 100% 100% / 12px 1px, linear-gradient(var(--b), var(--b)) 100% 100% / 1px 12px;
  background-repeat: no-repeat;
}
#s-angles .rgx-card.is-front .rgx-brk { opacity: .95; }

#s-angles .rgx-plate { padding: 12px 16px 16px; border-top: 1px solid var(--line-dark); background: linear-gradient(180deg, rgba(255,216,163,.05), rgba(255,216,163,0)); }
#s-angles .rgx-title { margin: 0; font: 600 clamp(22px, 2.5vw, 28px)/1 var(--f-display); letter-spacing: -.035em; text-transform: none; color: var(--bone); }
#s-angles .rgx-line { margin: 6px 0 0; font: 400 13px/1.35 var(--f-body); color: var(--mute); }
#s-angles .rgx-chips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
#s-angles .rgx-chip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font: 500 10.5px/1.25 var(--f-mono); }
#s-angles .rgx-chip__l { flex: none; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; }
#s-angles .rgx-chip__v { flex: 1; min-width: 0; text-align: right; color: var(--beam); font-weight: 500; }
#s-angles .rgx-bar { flex: 1 1 24px; position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
#s-angles .rgx-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,216,163,.5), var(--beam)); transform-origin: 0 50%; transform: scaleX(.25); transition: transform .9s .2s var(--ease-out); }
#s-angles .rgx-card.is-front .rgx-bar i { transform: scaleX(1); }
#s-angles .rgx-chip--bar .rgx-chip__v { flex: none; }
#s-angles .rgx-fn { position: relative; color: var(--beam); text-decoration: none; font-size: 9px; vertical-align: super; margin-left: 2px; }
#s-angles .rgx-fn::after { content: ""; position: absolute; inset: -18px -14px; }

@keyframes rgx-sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rgx-scan { 0% { transform: translate3d(0, -100%, 0); } 100% { transform: translate3d(0, 300%, 0); } }
@keyframes rgx-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
#s-angles .rgx-stage.is-live .rgx-card.is-front .rgx-clip::before { animation: rgx-sweep 5.5s linear infinite; }
#s-angles .rgx-stage.is-live .rgx-card.is-front .rgx-scan { opacity: 1; animation: rgx-scan 4.6s linear infinite; }
#s-angles .rgx-stage.is-live .rgx-card.is-front .rgx-tag::before { animation: rgx-blink 1.8s ease-in-out infinite; }
#s-angles .rgx-card.is-front .rgx-tag::before { opacity: 1; }

#s-angles .rgx-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
#s-angles .rgx-arrow {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--bone); touch-action: manipulation;
  transition: border-color .18s, transform .18s var(--ease-out);
}
#s-angles .rgx-arrow:hover { border-color: var(--bone); }
#s-angles .rgx-arrow:active { transform: scale(.94); }
#s-angles .rgx-cap { flex: 1; min-width: 0; margin: 0; text-align: center; display: grid; gap: 4px; }
#s-angles .rgx-cap__n { color: var(--mute); font-size: 12px; letter-spacing: .14em; }
#s-angles .rgx-cap__t { font: 600 clamp(20px, 2.6vw, 28px)/1.1 var(--f-display); letter-spacing: -.035em; text-transform: none; }
#s-angles .rgx-dots { display: flex; flex-wrap: wrap; justify-content: center; margin: 6px auto 0; max-width: 264px; }
#s-angles .rgx-dot {
  width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; touch-action: manipulation;
}
#s-angles .rgx-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--char-3); transition: transform .25s var(--ease-out), background-color .25s; }
#s-angles .rgx-dot[aria-current="true"] span { background: var(--beam); transform: scale(1.5); }
#s-angles .rgx-note { text-align: center; margin: 4px 0 0; }
@media (min-width: 640px) { #s-angles .rgx-dots { max-width: 560px; } }

@media (prefers-reduced-motion: reduce) {
  #s-top .stx-stamp.stx-slam { animation: none; }
  #s-angles .rgx-clip::before, #s-angles .rgx-scan { display: none; }
  #s-angles .rgx-bar i { transform: scaleX(1); transition: none; }
  #s-angles .rgx-card::before, #s-angles .rgx-brk { transition: none; }
}

/* ---------- #s-feats: feature info as a plain grid ---------- */
#s-feats .ftx { list-style: none; margin: clamp(22px, 4vw, 40px) 0 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 22px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { #s-feats .ftx { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#s-feats .ftx__item figure { margin: 0; }
#s-feats .ftx__img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #0c0d10; box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
#s-feats .ftx__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#s-feats figcaption { margin-top: 10px; font: 400 14px/1.4 var(--f-body); color: var(--mute); }
#s-feats figcaption b { display: block; color: var(--bone); font: 600 18px/1.2 var(--f-display); letter-spacing: -.03em; margin-bottom: 3px; }
#s-feats .ftx__note { margin: 18px 0 0; }
#s-angles .rgx-media img { object-fit: contain; padding: 2% 0; -webkit-mask-image: none; mask-image: none; }

#s-angles .rgx-shuffle { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,216,163,.35); background: rgba(255,216,163,.08); color: var(--bone); font: 500 14px/1 var(--f-body); }
@media (max-width: 640px) { #s-angles .rgx-dots { max-width: none; flex-wrap: nowrap; justify-content: center; } #s-angles .rgx-dot { width: 36px; } }
#s-angles .rgx-shufrow { display: flex; justify-content: center; margin: 14px 0 6px; }
