/* =========================================================================
   ROGNALIA — About Page
   Dark editorial, single violet accent.
   Georgia wordmark + Cormorant Garamond + Shippori Mincho B1 + system UI.
   Imagery-led, sticky labels, image lightbox.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Palette — night observatory */
  --bg-deep:      #07060B;
  --bg-night:     #0C0A14;
  --bg-surface:   #110D1B;
  --bg-veil:      rgba(255, 255, 255, 0.02);

  --ink-1:        #ECE6FF;
  --ink-2:        #B9B1D6;
  --ink-3:        #756C8E;
  --ink-4:        #4A4360;
  --copy-fg:      rgba(236, 230, 255, 0.82);
  --copy-size:    clamp(16px, 1.18vw, 17px);
  --copy-small:   clamp(15.5px, 1.05vw, 16px);
  --copy-weight:  500;
  --copy-line:    1.86;

  --accent:       #8E6CFF;
  --accent-soft:  #A990FF;
  --accent-faint: rgba(142, 108, 255, 0.18);
  --accent-line:  rgba(142, 108, 255, 0.34);

  --hairline:     rgba(236, 230, 255, 0.08);
  --hairline-2:   rgba(236, 230, 255, 0.16);

  /* Typography */
  --font-brand:   Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-display: "Cormorant Garamond", "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-jp-display: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Rhythm */
  --shell-px:     clamp(20px, 4.2vw, 64px);
  --shell-max:    1280px;

  /* Header */
  --header-h:     76px;

  /* Easing */
  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1200px 700px at 88% -8%, rgba(142, 108, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 4% 22%, rgba(74, 58, 118, 0.16), transparent 65%),
    linear-gradient(180deg, #08070D 0%, #07060B 100%);
}

body::before {
  /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  z-index: 1;
}

body.is-locked { overflow: hidden; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 240ms var(--ease-out), opacity 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
}

::selection { background: var(--accent-faint); color: var(--ink-1); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-2);
}

.term {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
  font-size: 1.04em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px; top: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}

:focus-visible {
  outline: 1px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   Reveal (motion)
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease-out),
    transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =========================================================================
   Topbar
   ========================================================================= */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 var(--shell-px);
  border-bottom: 1px solid rgba(236, 230, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 6, 11, 0.92) 0%, rgba(7, 6, 11, 0.76) 68%, rgba(7, 6, 11, 0.16) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  color: var(--ink-1);
}
.topbar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  filter:
    drop-shadow(0 0 10px rgba(142, 108, 255, 0.46))
    drop-shadow(0 0 22px rgba(142, 108, 255, 0.24));
}
.topbar__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.topbar__brand-name {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.16em;
  font-size: 18px;
  line-height: 1;
  color: #f7f4fb;
  text-rendering: geometricPrecision;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.72),
    0 0 20px rgba(214, 205, 255, 0.09),
    0 0 42px rgba(73, 45, 158, 0.16);
}

.topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.topbar__link {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
}
.topbar__link:hover { color: var(--ink-1); }
.topbar__link:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent-line);
}
.topbar__menu-button,
.topbar__mobile {
  display: none;
}
.topbar__menu-button {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--ink-1);
  background: transparent;
  box-shadow: none;
  transition:
    color 220ms var(--ease-out);
}
.topbar__menu-button span {
  position: absolute;
  left: 13px;
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  opacity: 0.9;
  transition:
    opacity 220ms var(--ease-out),
    background 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}
.topbar__menu-button span:first-child {
  top: 15px;
}
.topbar__menu-button span:nth-child(2) {
  top: 21px;
}
.topbar__menu-button span:last-child {
  top: 27px;
}
.topbar.is-menu-open .topbar__menu-button {
  color: var(--accent-soft);
}
.topbar__mobile {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--shell-px);
  width: min(292px, calc(100vw - var(--shell-px) * 2));
  padding: 6px 0;
  border: 1px solid rgba(226, 221, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 17, 28, 0.9), rgba(7, 6, 12, 0.94)),
    #0A0A11;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 70px -38px rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  animation: mobileMenuIn 220ms var(--ease-out) both;
}
.topbar__mobile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 144, 255, 0.5), transparent);
  pointer-events: none;
}
@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.topbar__mobile-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid #1E1E2C;
  color: var(--ink-1);
  transition:
    background 180ms var(--ease-out),
    color 180ms var(--ease-out),
    padding 180ms var(--ease-out);
}
.topbar__mobile-link:first-child {
  border-top: 0;
}
.topbar__mobile-link:hover,
.topbar__mobile-link:focus-visible {
  background: rgba(142, 108, 255, 0.07);
  color: #fff;
  padding-left: 22px;
}
.topbar__mobile-link .mono {
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.topbar__mobile-link span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 28px) var(--shell-px) 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  opacity: 0.92;
  transform: scale(1.02) translate3d(0, 0, 0);
  transform-origin: center center;
  animation: heroBgIn 1200ms var(--ease-soft) 80ms both, heroBgDrift 30s ease-in-out 1400ms infinite alternate;
  filter: saturate(1.05) contrast(1.02);
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 720px at 50% 56%, rgba(7, 6, 11, 0.34) 0%, rgba(7, 6, 11, 0.10) 55%, rgba(7, 6, 11, 0.66) 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero__starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.55), transparent 50%),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, 0.30), transparent 50%),
    radial-gradient(1.2px 1.2px at 44% 18%, rgba(236, 230, 255, 0.45), transparent 50%),
    radial-gradient(1px 1px at 62% 78%, rgba(255, 255, 255, 0.32), transparent 50%),
    radial-gradient(1.4px 1.4px at 78% 32%, rgba(255, 255, 255, 0.5), transparent 50%),
    radial-gradient(1px 1px at 88% 60%, rgba(236, 230, 255, 0.32), transparent 50%),
    radial-gradient(1px 1px at 6% 88%, rgba(236, 230, 255, 0.28), transparent 50%),
    radial-gradient(1.3px 1.3px at 96% 12%, rgba(255, 255, 255, 0.45), transparent 50%);
  opacity: 0.65;
}
.hero__glow--violet {
  position: absolute;
  width: 720px; height: 720px;
  top: -180px; right: -180px;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle at center, rgba(142, 108, 255, 0.32), transparent 65%);
  pointer-events: none;
}

@keyframes heroBgIn {
  from { opacity: 0; transform: scale(1.035) translate3d(0, 0, 0); }
  to   { opacity: 0.92; transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes heroBgDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.045) translate3d(-0.8%, -0.55%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: none; opacity: 0.92; }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-top: clamp(6px, 2.4vh, 26px);
}

.hero__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(116px, 10.8vw, 154px);
  height: clamp(116px, 10.8vw, 154px);
  margin: 0 0 22px;
  color: var(--accent-soft);
}
.hero__mark-aura {
  position: absolute;
  inset: -24%;
  background:
    radial-gradient(circle at center, rgba(142, 108, 255, 0.32) 0%, rgba(142, 108, 255, 0.10) 36%, transparent 68%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.hero__mark-rings,
.hero__mark-crosshair {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero__mark-rings svg,
.hero__mark-crosshair svg {
  width: 100%;
  height: 100%;
}
.hero__mark-crosshair {
  animation: markCrosshairPulse 4.6s var(--ease-out) infinite;
}
@keyframes markCrosshairPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.55; }
}
.hero__mark-img {
  position: relative;
  z-index: 2;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(142, 108, 255, 0.55))
    drop-shadow(0 0 56px rgba(142, 108, 255, 0.30));
  animation: markFloat 7s ease-in-out infinite alternate;
}
/* Hide broken-image placeholder if the source is missing */
.hero__mark-img.is-broken,
.hero__mark-img:not([src]) { display: none; }
@keyframes markFloat {
  from { transform: translateY(-2px); }
  to   { transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark-img,
  .hero__mark-crosshair { animation: none; }
}

.hero__title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.84;
  letter-spacing: clamp(0.08em, 1vw, 0.15em);
  margin: 0 0 26px;
  color: #f7f4fb;
  text-rendering: geometricPrecision;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(214, 205, 255, 0.14),
    0 0 78px rgba(73, 45, 158, 0.24);
  position: relative;
}

.hero__lede {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  margin: 0 0 22px;
  max-width: 22em;
}

.hero__body {
  font-size: var(--copy-size);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
  margin: 0 0 30px;
  max-width: 38em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  --cta-fill: rgba(123, 97, 255, 0.72);
  background: rgba(11, 9, 21, 0.24);
  color: var(--ink-1);
  border: 1px solid rgba(123, 97, 255, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 180ms ease,
    color 240ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--cta-fill), rgba(138, 114, 255, 0.88));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-soft);
}
.cta span {
  position: relative;
  z-index: 1;
}
.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
}
.cta:hover::after,
.cta:focus-visible::after {
  transform: scaleX(1);
}
.cta--primary {
  background: rgba(11, 9, 21, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 30px rgba(0, 0, 0, 0.2);
}
.cta--primary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(123, 97, 255, 0.12);
}
.cta--ghost {
  --cta-fill: rgba(123, 97, 255, 0.58);
  color: var(--ink-1);
  border-color: rgba(123, 97, 255, 0.48);
}
.cta--ghost:hover {
  border-color: rgba(169, 144, 255, 0.44);
  color: #ffffff;
  background: rgba(17, 15, 28, 0.48);
}

.hero__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.hero__pills li {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(185, 177, 214, 0.68);
  padding: 0 0 0 11px;
  border: 0;
  background: transparent;
}
.hero__pills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: rgba(169, 144, 255, 0.56);
  transform: translateY(-50%) rotate(45deg);
}

.hero__scroll {
  position: absolute;
  left: var(--shell-px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-3), transparent);
  animation: scrollPulse 3.6s var(--ease-out) infinite;
}
.hero__scroll-label { color: var(--ink-3); }
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-6px); opacity: 0.35; }
  50%      { transform: translateX(6px);  opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; }
}

/* =========================================================================
   Block (shared)
   ========================================================================= */

.block {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--shell-px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.block__rule {
  position: absolute;
  top: 0;
  left: var(--shell-px);
  right: var(--shell-px);
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-2) 0%, var(--hairline) 30%, transparent 70%);
}
.block__label {
  margin: 0 0 32px;
  color: var(--accent-soft);
}
.block__title {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  margin: 0 0 40px;
  max-width: 18em;
}
.block__body {
  max-width: 40em;
  display: grid;
  gap: 18px;
}
.block__body p {
  margin: 0;
  font-size: var(--copy-size);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
}

/* =========================================================================
   Image trigger (clickable plates)
   ========================================================================= */

.image-trigger {
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  transition: transform 360ms var(--ease-out);
}
.image-trigger:hover .image-frame { border-color: var(--accent-line); }
.image-trigger:hover .image-frame img { transform: scale(1.012); filter: brightness(1.06); }
.image-trigger:hover .image-frame__zoom {
  opacity: 1;
  transform: translate(0, 0);
}
.image-trigger:focus-visible { outline: none; }
.image-trigger:focus-visible .image-frame {
  border-color: var(--accent-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 2px rgba(168, 144, 255, 0.45),
    0 30px 70px -28px rgba(0, 0, 0, 0.65);
}

.image-frame {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: var(--bg-night);
  transition: border-color 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 70px -28px rgba(0, 0, 0, 0.65),
    0 0 60px -28px rgba(142, 108, 255, 0.25);
}
.image-frame picture {
  display: block;
  width: 100%;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(142, 108, 255, 0.08) 0%, transparent 35%, transparent 70%, rgba(74, 58, 118, 0.10) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 480ms var(--ease-out), filter 480ms var(--ease-out);
}
.image-frame__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(11, 9, 21, 0.75);
  color: var(--ink-1);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(2px, -2px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  pointer-events: none;
}

.image-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.image-caption .mono { color: var(--accent-soft); }
.image-caption__sep { color: var(--ink-4); }

/* =========================================================================
   Overview
   ========================================================================= */

.block--overview .block__body em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
  font-size: 1.04em;
}
.block--overview {
  padding-bottom: clamp(78px, 7vw, 96px);
}

.overview-slider {
  margin: 64px 0 0;
  --overview-offset: 0%;
  --overview-drag-x: 0px;
}
.overview-slider:focus-visible {
  outline: none;
}
.overview-slider:focus-visible .overview-slider__viewport {
  box-shadow:
    0 0 0 2px rgba(168, 144, 255, 0.42),
    0 30px 70px -28px rgba(0, 0, 0, 0.65),
    0 0 60px -28px rgba(142, 108, 255, 0.25);
}
.overview-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  touch-action: pan-y;
  cursor: grab;
}
.overview-slider.is-dragging .overview-slider__viewport {
  cursor: grabbing;
}
.overview-slider__track {
  display: flex;
  transform: translate3d(calc(var(--overview-offset) + var(--overview-drag-x)), 0, 0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.overview-slider.is-dragging .overview-slider__track {
  transition: none;
}
.overview-slider[data-active="1"] {
  --overview-offset: -100%;
}
.overview-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}
.overview-slide__trigger {
  cursor: zoom-in;
}
.overview-slide__frame {
  user-select: none;
}
.overview-slide__frame img {
  user-select: none;
  -webkit-user-drag: none;
}
.overview-slider__status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 14px 2px 0;
  color: var(--ink-4);
}
.overview-slider__switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(168, 144, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 6, 11, 0.68);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px -34px rgba(142, 108, 255, 0.9);
}
.overview-slider__switch-button {
  appearance: none;
  min-width: 120px;
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  text-align: center;
  transition:
    color 240ms var(--ease-out),
    background 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}
.overview-slider__switch-button:hover {
  color: var(--ink-1);
  background: rgba(142, 108, 255, 0.08);
  border-color: rgba(168, 144, 255, 0.22);
}
.overview-slider__switch-button:focus-visible {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(168, 144, 255, 0.32);
}
.overview-slider__switch-button[aria-current="true"] {
  color: var(--ink-1);
  background: linear-gradient(135deg, rgba(142, 108, 255, 0.22), rgba(236, 230, 255, 0.035));
  border-color: rgba(168, 144, 255, 0.46);
  box-shadow: 0 14px 34px -26px rgba(168, 144, 255, 1);
}
.overview-profile {
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}
.overview-profile__item {
  display: grid;
  grid-template-columns: minmax(390px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(30px, 3.8vw, 42px) 2px 0;
}
.overview-profile__item[hidden] {
  display: none;
}
.overview-profile__head {
  display: grid;
  gap: clamp(18px, 1.7vw, 22px);
}
.overview-profile__title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.overview-profile__avatar-frame {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 10px rgba(190, 165, 255, 0.46))
    drop-shadow(0 0 24px rgba(142, 108, 255, 0.24));
}
.overview-profile__avatar-frame::before,
.overview-profile__avatar-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.overview-profile__avatar-frame::before {
  inset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(225, 213, 255, 0.7),
    inset 0 0 0 3px rgba(111, 78, 194, 0.42),
    0 0 0 1px rgba(107, 75, 188, 0.55);
}
.overview-profile__avatar-frame::after {
  inset: 5px;
  box-shadow: inset 0 0 0 1px rgba(206, 188, 255, 0.36);
}
.overview-profile__avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.overview-profile__label {
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.overview-profile__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink-1);
}
.overview-profile__copy {
  display: grid;
  gap: 7px;
  max-width: 48em;
  padding-top: clamp(37px, 3vw, 42px);
}
.overview-profile__copy p {
  margin: 0;
  font-size: var(--copy-small);
  font-weight: var(--copy-weight);
  line-height: 1.78;
  color: var(--copy-fg);
}
.overview-profile__short {
  font-size: clamp(17px, 1.42vw, 20px);
  line-height: 1.5;
  color: var(--ink-1);
}

@media (prefers-reduced-motion: reduce) {
  .overview-slider__track,
  .overview-slider__switch-button {
    transition: none;
  }
}

/* =========================================================================
   Core Loop
   ========================================================================= */

.block--loop {
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(142, 108, 255, 0.08), transparent 60%);
}

.loop__stages {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.loop__stage {
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.loop__stage + .loop__stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: var(--hairline);
}
.loop__index { color: var(--accent); }
.loop__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  line-height: 1.1;
}
.loop__role {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.72;
  color: rgba(236, 230, 255, 0.76);
  margin-top: auto;
}
.loop__stage--return {
  background: linear-gradient(180deg, rgba(142, 108, 255, 0.05), transparent);
}
.loop__stage--return .loop__name {
  font-style: italic;
  color: var(--accent-soft);
}

.loop__caption {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--copy-size);
  color: var(--copy-fg);
  line-height: 1.75;
  max-width: 32em;
}

/* =========================================================================
   Product Scenes
   ========================================================================= */

.block--scenes { padding-bottom: clamp(72px, 10vw, 140px); }
.scenes__title { margin-bottom: 64px; }

.scene {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.scene--reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
}
.scene--reverse .scene__head { order: 2; }
.scene--reverse .scene__plates { order: 1; }

.scene__head {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}
.scene__kicker {
  color: var(--accent-soft);
  margin: 0 0 18px;
}
.scene__title {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  margin: 0 0 22px;
}
.scene__body {
  font-size: var(--copy-small);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
  margin: 0;
  max-width: 30em;
}

.scene__plates {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}
.scene--reverse .scene__plates {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
.scene__plates--single {
  grid-template-columns: minmax(0, 1fr);
}
.scene__plate {
  margin: 0;
  grid-row: 1;
}
.scene__plate--primary {
  grid-column: 1;
}
.scene__plate--secondary {
  grid-column: 2;
}
.scene__plate .image-caption {
  align-items: flex-start;
  line-height: 1.45;
  min-height: 2.9em;
}
.scene__plate--secondary .image-caption { color: var(--ink-3); }
.scene--reverse .scene__plate--primary {
  grid-column: 2;
}
.scene--reverse .scene__plate--secondary {
  grid-column: 1;
}
.scene--reverse .scene__plate--primary .image-caption {
  color: var(--ink-2);
}
.scene--reverse .scene__plate--secondary .image-caption {
  color: var(--ink-3);
}

/* =========================================================================
   Market Lab
   ========================================================================= */

.block--market {
  position: relative;
}
.block--market::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 380px at 14% 8%, rgba(142, 108, 255, 0.09), transparent 60%);
  z-index: -1;
}
.market__title { max-width: 18em; }
.market__intro {
  max-width: 42em;
  margin: 0 0 56px;
}
.market__intro p {
  font-size: var(--copy-size);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
  margin: 0;
}

.market-flow {
  display: grid;
  gap: clamp(48px, 7vw, 92px);
}

.market-step {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4.6vw, 62px);
  align-items: center;
  padding-top: clamp(34px, 5vw, 66px);
  border-top: 1px solid var(--hairline);
}

.market-step--lead {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 0;
  border-top: 0;
}

.market-step--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.62fr);
}

.market-step--reverse .market-step__copy { order: 2; }
.market-step--reverse .market-step__media { order: 1; }

.market-step__copy {
  max-width: 34em;
}

.market-step--lead .market-step__copy {
  max-width: 44em;
}

.market-step__copy .market-step__eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
}

.market-step__copy h3 {
  margin: 0 0 16px;
  font-family: var(--font-jp-display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink-1);
}

.market-step--lead .market-step__copy h3 {
  font-size: clamp(28px, 3.7vw, 48px);
  max-width: 16em;
}

.market-step__copy p {
  margin: 0;
  font-size: var(--copy-small);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
}

.market-step__media {
  margin: 0;
}

.market-step--lead .market-step__media {
  max-width: 100%;
}

.market__note {
  margin: 56px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent-line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-style: italic;
  max-width: 44em;
}

/* =========================================================================
   Judgment Boundary
   ========================================================================= */

.block--boundary {
  position: relative;
}
.boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}
.boundary__copy {
  max-width: 48em;
}
.boundary__body {
  display: grid;
  gap: 16px;
  max-width: 37em;
  margin-top: clamp(26px, 4vw, 42px);
}
.boundary__body p {
  margin: 0;
  font-size: var(--copy-small);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
  color: var(--copy-fg);
}
.boundary__visual {
  margin: clamp(22px, 3vw, 38px) 0 0;
}
.boundary-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 468px;
  aspect-ratio: 1 / 1;
  padding: clamp(18px, 2.3vw, 24px);
  border: 1px solid rgba(226, 221, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(16, 16, 26, 0.94), rgba(8, 8, 15, 0.97)),
    #0A0A11;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 34px 82px -42px rgba(0, 0, 0, 0.86);
  overflow: hidden;
}
.boundary-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 221, 255, 0.38), rgba(123, 97, 255, 0.62), transparent);
  opacity: 0.78;
  pointer-events: none;
}
.boundary-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(204, 195, 255, 0.035) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 31%, rgba(204, 195, 255, 0.03) 31.1%, transparent 31.4%);
  mask-image: linear-gradient(180deg, transparent, black 16%, black 84%, transparent);
}
.boundary-panel__header,
.boundary-panel__flow,
.boundary-panel__surface,
.boundary-panel__footer {
  position: relative;
  z-index: 1;
}
.boundary-panel__header {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid #1E1E2C;
}
.boundary-panel__mark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(202, 176, 255, 0.36);
  border-radius: 0;
  background: rgba(126, 66, 232, 0.11);
  box-shadow: 0 0 18px rgba(123, 97, 255, 0.14);
}
.boundary-panel__mark::before,
.boundary-panel__mark::after {
  content: "";
  position: absolute;
  background: rgba(226, 221, 255, 0.55);
}
.boundary-panel__mark::before {
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
}
.boundary-panel__mark::after {
  top: 50%;
  right: 6px;
  left: 6px;
  height: 1px;
}
.boundary-panel__title {
  min-width: 0;
}
.boundary-panel__title p {
  margin: 0 0 4px;
  color: #8A80B4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.boundary-panel__title strong {
  display: block;
  color: #F1F0FA;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.boundary-panel__state {
  padding: 5px 8px;
  border: 1px solid #24243A;
  border-radius: 0;
  background: #13131E;
  color: #A09FB8;
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.boundary-panel__flow {
  display: grid;
  grid-template-columns: auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #6B6A82;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.boundary-panel__flow i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 97, 255, 0.34), rgba(143, 208, 255, 0.28), rgba(226, 221, 255, 0.08));
}
.boundary-panel__flow span:nth-of-type(2) {
  color: #A990FF;
}
.boundary-panel__surface {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 0;
}
.boundary-node {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid #1A1A26;
  border-radius: 0;
  background: #0F0F18;
  overflow: hidden;
}
.boundary-node::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #3D3C52;
}
.boundary-node__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.boundary-node__head span {
  color: #8A80B4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.boundary-node__head em {
  color: #6B6A82;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.boundary-node strong {
  color: #F1F0FA;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.35;
  font-weight: 700;
}
.boundary-node ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.boundary-node li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #24243A;
  border-radius: 0;
  background: #0B0B12;
  color: #B8B6CA;
  font-size: 10px;
  line-height: 1.2;
}
.boundary-node li span {
  display: none;
}
.boundary-node li b {
  min-width: 0;
  color: #B8B6CA;
  font-weight: 600;
  white-space: nowrap;
}
.boundary-node--ai::before {
  background: #7B61FF;
}
.boundary-node--user {
  border-color: #2A3550;
  background:
    linear-gradient(90deg, rgba(143, 208, 255, 0.06), transparent 48%),
    #11111C;
}
.boundary-node--user::before {
  background: #8FD0FF;
}
.boundary-node--user .boundary-node__head span,
.boundary-node--user strong {
  color: #EAEAF2;
}
.boundary-node--workspace::before {
  background: #A990FF;
}
.boundary-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid #1A1A26;
  color: #6B6A82;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.boundary__caption {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* =========================================================================
   Continue
   ========================================================================= */

.block--continue {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.block--continue .block__label {
  margin-bottom: 18px;
}
.block--continue .block__title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  margin-bottom: 16px;
}
.continue__summary {
  max-width: 42em;
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: var(--copy-size);
  font-weight: var(--copy-weight);
  line-height: var(--copy-line);
}
.continue__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.continue__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--hairline-2);
  border-radius: 6px;
  background: rgba(236, 230, 255, 0.018);
  color: var(--ink-1);
  transition:
    background 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}
.continue__link:hover {
  transform: translateY(-1px);
  background: rgba(142, 108, 255, 0.07);
  border-color: rgba(169, 144, 255, 0.42);
  color: #ffffff;
}
.continue__link-name {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.continue__brand-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  color: var(--ink-2);
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.continue__external-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  color: var(--ink-3);
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.continue__link:hover .continue__brand-icon {
  color: #ffffff;
}
.continue__link:hover .continue__external-icon {
  color: var(--accent-soft);
  transform: translate(1px, -1px);
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 36px var(--shell-px) 56px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-1);
}
.footer__mark {
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(142, 108, 255, 0.32));
}
.footer__brand-name {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.16em;
  font-size: 18px;
  line-height: 1;
  color: #f7f4fb;
  text-rendering: geometricPrecision;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.72),
    0 0 20px rgba(214, 205, 255, 0.09),
    0 0 42px rgba(73, 45, 158, 0.16);
}

.footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: color 240ms var(--ease-out), border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.footer__link:hover {
  color: var(--ink-1);
  border-color: var(--hairline-2);
  background: rgba(236, 230, 255, 0.02);
}
.footer__icon { display: block; }
.footer__link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__copy {
  margin: 24px 0 0;
  text-align: right;
  color: var(--ink-4);
  letter-spacing: 0.12em;
  font-size: 10.5px;
}

/* =========================================================================
   Lightbox
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 64px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 280ms var(--ease-out), visibility 0s 280ms;
}
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 280ms var(--ease-out), visibility 0s 0s;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__figure {
  position: relative;
  margin: 0;
  z-index: 1;
  max-width: min(1400px, 96vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.985);
  touch-action: pan-y;
  transition: transform 280ms var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--hairline-2);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  max-width: 64ch;
}

.lightbox__close {
  position: fixed;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: color 240ms var(--ease-out), background 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.lightbox__close:hover {
  color: var(--ink-1);
  background: rgba(236, 230, 255, 0.06);
  border-color: var(--hairline-2);
}
.lightbox__close:focus-visible {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(168, 144, 255, 0.4);
}
.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  border: 1px solid rgba(236, 230, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 9, 21, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition:
    color 240ms var(--ease-out),
    background 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}
.lightbox__nav[hidden] {
  display: none;
}
.lightbox__nav--prev {
  left: clamp(16px, 3vw, 34px);
}
.lightbox__nav--next {
  right: clamp(16px, 3vw, 34px);
}
.lightbox__nav:hover {
  background: rgba(142, 108, 255, 0.16);
  border-color: rgba(169, 144, 255, 0.42);
}
.lightbox__nav:focus-visible {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(168, 144, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__figure { transition: none; }
}

/* =========================================================================
   Floating Controls
   ========================================================================= */

.back-to-top {
  position: fixed;
  right: calc(clamp(28px, 3vw, 40px) + env(safe-area-inset-right));
  bottom: calc(clamp(28px, 3vw, 40px) + env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(236, 230, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(236, 230, 255, 0.16), rgba(236, 230, 255, 0.055) 44%, rgba(7, 6, 11, 0.2)),
    rgba(14, 12, 24, 0.34);
  color: var(--ink-1);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -1px 0 rgba(7, 6, 11, 0.28) inset,
    0 18px 42px -26px rgba(0, 0, 0, 0.92),
    0 0 26px -20px rgba(168, 144, 255, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    color 260ms var(--ease-out);
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.back-to-top::before {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(142, 108, 255, 0.055) inset,
    0 10px 24px rgba(255, 255, 255, 0.035) inset;
  mask-image: linear-gradient(145deg, black, rgba(0, 0, 0, 0.72) 44%, transparent 86%);
}
.back-to-top svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(7, 6, 11, 0.72));
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: rgba(236, 230, 255, 0.28);
  color: var(--accent-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 -1px 0 rgba(7, 6, 11, 0.22) inset,
    0 20px 44px -26px rgba(0, 0, 0, 0.92),
    0 0 28px -18px rgba(168, 144, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

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

@media (max-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 24px) var(--shell-px) 80px; min-height: auto; }
  .hero__bg { object-position: 58% 42%; }
  .hero__inner { padding-top: 18px; }
  .hero__scroll { display: none; }

  .overview-profile__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .overview-profile__copy { padding-top: 0; }

  .loop__stages {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .loop__stage {
    border-top: 1px solid var(--hairline);
    min-height: auto;
    padding: 22px 0;
  }
  .loop__stage:first-child { border-top: 0; }
  .loop__stage + .loop__stage::before { display: none; }

  .scene,
  .scene--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .scene--reverse .scene__head { order: 0; }
  .scene--reverse .scene__plates { order: 1; }
  .scene__head { position: relative; top: 0; }
  .scene__plates {
    grid-template-columns: minmax(0, 1fr);
  }
  .scene--reverse .scene__plates {
    grid-template-columns: minmax(0, 1fr);
  }
  .scene--reverse .scene__plate--primary,
  .scene--reverse .scene__plate--secondary,
  .scene__plate--primary,
  .scene__plate--secondary {
    width: 100%;
    grid-column: 1;
    grid-row: auto;
    transform: none;
  }

  .market-step,
  .market-step--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .market-step--reverse .market-step__copy,
  .market-step--reverse .market-step__media {
    order: initial;
  }

  .boundary {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .boundary__visual {
    margin-top: 0;
  }
  .boundary-panel {
    width: min(520px, 100%);
    min-height: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .topbar { padding: 0 var(--shell-px); }
  .topbar__nav { display: none; }
  .topbar__menu-button { display: inline-grid; }
  .topbar.is-menu-open .topbar__mobile { display: grid; }
  .topbar__brand-mark {
    width: 30px;
    height: 30px;
  }
  .topbar__brand-name { font-size: 15px; }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__bg { object-position: 64% 42%; }
  .hero__inner { padding-top: 10px; }
  .hero__mark {
    width: clamp(104px, 31vw, 124px);
    height: clamp(104px, 31vw, 124px);
  }
  .hero__title { font-size: clamp(52px, 15.5vw, 72px); }
  .hero__lede { font-size: clamp(18px, 5.6vw, 22px); }
  .hero__body { font-size: 15.5px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta { width: 100%; justify-content: center; }

  .image-caption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
    align-items: start;
  }
  .image-caption__sep {
    display: none;
  }
  .image-caption > span:not(.mono):not(.image-caption__sep) {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .overview-slider { margin-top: 44px; }
  .overview-slider__status { margin-top: 10px; }
  .overview-profile { margin-top: 14px; }
  .overview-profile__item { padding-top: 20px; }
  .overview-profile__head h3 { font-size: 28px; }
  .block__title, .market__title { font-size: clamp(26px, 7vw, 36px); }
  .scene__title { font-size: clamp(22px, 6vw, 30px); }
  .boundary-panel {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    gap: 9px;
    padding: 16px;
  }
  .boundary-panel__header {
    grid-template-columns: 22px minmax(0, 1fr);
    padding-bottom: 10px;
  }
  .boundary-panel__mark {
    width: 22px;
    height: 22px;
  }
  .boundary-panel__state {
    display: none;
  }
  .boundary-panel__flow {
    display: none;
  }
  .boundary-panel__surface {
    gap: 8px;
  }
  .boundary-node {
    gap: 6px;
    padding: 9px 10px 9px 13px;
  }
  .boundary-node__head {
    align-items: baseline;
  }
  .boundary-node__head em {
    display: none;
  }
  .boundary-node__head span {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .boundary-node strong {
    font-size: 13px;
    line-height: 1.32;
  }
  .boundary-node ul {
    gap: 4px;
  }
  .boundary-node li {
    padding: 4px 5px;
    font-size: 9px;
    line-height: 1.18;
  }
  .boundary-panel__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 9px;
    font-size: 8px;
  }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 4px; }
  .footer__link { padding: 8px 10px; }
  .footer__copy { text-align: left; }

  .lightbox__close { top: 16px; right: 16px; }
}
