/*
Theme Name: Mystorium Ranoviqo
Theme URI: https://ranoviqo.com/mystorium/
Author: Ranoviqo
Author URI: https://ranoviqo.com/
Description: Animated product site theme for the Mystorium iOS app.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: mystorium-ranoviqo
*/

:root {
  --bg: #120a0b;
  --bg-card: #1e1518;
  --bg-lift: #2a2024;
  --bg-deep: #090505;
  --ink-1: #f7efe3;
  --ink-2: #cfc2b4;
  --ink-3: #96887e;
  --ink-4: #53484c;
  --gold: #c7972b;
  --gold-mid: #d5ad4a;
  --gold-bright: #f0cb62;
  --gold-pale: #ffe39a;
  --gold-wash: #2f2518;
  --red: #d45563;
  --blue: #72a9d9;
  --purple: #b65cff;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --font-logo: "Cinzel", "Noto Serif JP", serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-number: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-ui: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-status: "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 7%, rgba(240, 203, 98, 0.14), transparent 29rem),
    radial-gradient(circle at 88% 14%, rgba(182, 92, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 58% 62%, rgba(122, 44, 70, 0.15), transparent 32rem),
    linear-gradient(180deg, #080505 0%, var(--bg) 45%, #170d10 100%);
  color: var(--ink-1);
  font-family: var(--font-serif);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.17;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 227, 154, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(9, 5, 5, 0.78);
  border-bottom: 1px solid rgba(255, 227, 154, 0.12);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-logo);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.brand span:first-child {
  font-size: 26px;
  color: #fff8ed;
}

.brand span:last-child {
  font-size: 20px;
  background: linear-gradient(95deg, var(--gold), var(--gold-bright), var(--gold-pale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-ui);
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 14px 34px rgba(213, 173, 74, 0.24);
}

.button.secondary {
  color: var(--gold);
  background: rgba(30, 21, 24, 0.78);
  border: 1px solid rgba(240, 203, 98, 0.24);
  box-shadow: none;
}

.main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 64px;
  padding-top: 44px;
  padding-bottom: 56px;
}

.hero-text {
  position: relative;
  z-index: 4;
  max-width: 620px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  max-width: 620px;
}

.stat-pill {
  border-radius: 16px;
  background: rgba(30, 21, 24, 0.72);
  border: 1px solid rgba(255, 227, 154, 0.15);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-pill strong {
  display: block;
  font-family: var(--font-number);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}

.stat-pill span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 500;
}

.phone-stage {
  position: relative;
  min-height: 660px;
  perspective: 1200px;
}

.phone {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(145deg, #251b18, #090807);
  box-shadow: 0 36px 90px rgba(26, 22, 18, 0.34);
  transform: rotateY(-10deg) rotateX(5deg);
  animation: phoneFloat 7s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 2, 8, 0.25), transparent 38%),
    linear-gradient(135deg, #f6f1e8, #e4d6bd);
  padding: 22px;
  position: relative;
}

.app-logo {
  font-family: var(--font-logo);
  letter-spacing: 0.08em;
  font-size: 24px;
}

.screen-hero {
  margin-top: 18px;
  height: 154px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48)),
    url("assets/images/eyecatch.jpg") center/cover;
  box-shadow: inset 0 -20px 44px rgba(0, 0, 0, 0.22);
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.screen-card {
  min-height: 116px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(250, 248, 244, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 7px 7px 18px rgba(26, 22, 18, 0.1), -5px -5px 16px rgba(255, 255, 255, 0.62);
}

.screen-card b {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.screen-card span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-family: var(--font-number);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
}

.floating-card {
  position: absolute;
  width: 178px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(250, 248, 244, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: cardDrift 8s ease-in-out infinite;
}

.floating-card.one {
  top: 74px;
  left: -8px;
}

.floating-card.two {
  right: -8px;
  bottom: 90px;
  animation-delay: -3s;
}

.floating-card small {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}

.floating-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-1);
}

.app-showcase {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.device-frame,
.screen-shot,
.share-card-image {
  margin: 0;
}

.device-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  background: #090505;
  border: 1px solid rgba(255, 227, 154, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.44),
    0 0 54px rgba(213, 173, 74, 0.16);
}

.device-frame img,
.screen-shot img,
.share-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-shot img {
  filter: brightness(1.08) saturate(1.05);
}

.device-main {
  z-index: 3;
  width: min(48vw, 330px);
  aspect-ratio: 590 / 1280;
  border-radius: 38px;
  transform: translateY(4px);
  animation: phoneFloatLive 7s ease-in-out infinite;
}

.device-side {
  z-index: 1;
  width: min(31vw, 235px);
  aspect-ratio: 590 / 1280;
  opacity: 0.72;
  filter: saturate(0.9) brightness(0.76);
}

.device-side-left {
  left: 34px;
  top: 86px;
  transform: rotate(-8deg);
}

.device-side-right {
  right: 0;
  bottom: 48px;
  transform: rotate(8deg);
}

.app-showcase::before {
  content: "";
  position: absolute;
  width: min(88%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(240, 203, 98, 0.28), transparent 60%),
    radial-gradient(circle at 70% 35%, rgba(182, 92, 255, 0.22), transparent 48%);
  filter: blur(24px);
  z-index: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
}

.section-lead {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.legal-panel,
.support-card {
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(30, 21, 24, 0.72);
  border: 1px solid rgba(255, 227, 154, 0.14);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 800;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 19px;
  font-family: var(--font-serif);
  font-weight: 500;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.screen-feature-grid {
  align-self: stretch;
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}

.screen-shot {
  overflow: hidden;
  aspect-ratio: 590 / 1280;
  border-radius: 26px;
  border: 1px solid rgba(255, 227, 154, 0.18);
  background: #090505;
  box-shadow: var(--shadow);
}

.screen-shot:nth-child(2) {
  transform: translateY(36px);
}

.screen-shot:nth-child(3) {
  transform: translateY(-18px);
}

.memory-band {
  width: 100%;
  margin: 24px 0;
  padding: 76px 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(182, 92, 255, 0.2), transparent 28rem),
    linear-gradient(90deg, rgba(9, 5, 5, 0.94), rgba(30, 21, 24, 0.74));
  color: #fff;
}

.memory-band .inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.memory-band h2 {
  max-width: 760px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 70px);
}

.memory-band p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 46px;
  align-items: center;
}

.share-card-stack {
  min-height: 520px;
  position: relative;
}

.share-card-image {
  position: absolute;
  overflow: hidden;
  width: min(72%, 520px);
  aspect-ratio: 1240 / 1264;
  border-radius: 30px;
  background: #090505;
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.42);
}

.share-gold {
  left: 0;
  top: 0;
  border: 1px solid rgba(240, 203, 98, 0.34);
  transform: rotate(-3deg);
}

.share-purple {
  right: 0;
  bottom: 0;
  border: 1px solid rgba(182, 92, 255, 0.38);
  transform: rotate(4deg);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  background: rgba(30, 21, 24, 0.66);
  border: 1px solid rgba(255, 227, 154, 0.14);
}

.timeline-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 18px;
  font-family: var(--font-serif);
  font-weight: 500;
}

.timeline-item p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-panel {
  text-decoration: none;
  min-height: 180px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.legal-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.legal-panel strong {
  display: block;
  font-size: 20px;
  font-family: var(--font-serif);
  font-weight: 500;
}

.legal-panel p {
  color: var(--ink-2);
}

.page-hero {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 48px;
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
}

.content-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 96px;
}

.content-page h2 {
  margin-top: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 227, 154, 0.18);
  font-size: 20px;
  font-family: var(--font-serif);
  font-weight: 500;
}

.content-page p,
.content-page li {
  color: var(--ink-2);
}

.content-page ul {
  padding-left: 1.2em;
}

.contact-box {
  margin-top: 34px;
  border-radius: 22px;
  padding: 24px;
  background: var(--bg-lift);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 227, 154, 0.14);
  padding: 36px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 500;
}

.footer-inner a {
  color: var(--ink-2);
  text-decoration: none;
  margin-left: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-7deg) rotateX(4deg) translateY(-16px); }
}

@keyframes phoneFloatLive {
  0%, 100% { transform: translateY(4px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.2deg); }
}

@keyframes cardDrift {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero,
  .split,
  .share-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
  }

  .phone-stage {
    min-height: 600px;
  }

  .device-main {
    width: min(64vw, 320px);
  }

  .device-side {
    width: min(38vw, 210px);
  }

  .screen-strip {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    overflow-x: auto;
    padding-bottom: 36px;
    scroll-snap-type: x mandatory;
  }

  .screen-shot {
    scroll-snap-align: start;
  }

  .share-card-stack {
    min-height: 470px;
  }

  .feature-grid,
  .legal-links {
    grid-template-columns: 1fr;
  }

  .memory-band {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 68px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 520px;
  }

  .device-main {
    width: min(72vw, 300px);
  }

  .device-side {
    width: min(45vw, 180px);
  }

  .device-side-left {
    left: -20px;
    top: 78px;
  }

  .device-side-right {
    right: -18px;
    bottom: 70px;
  }

  .floating-card {
    display: none;
  }

  .screen-strip {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .screen-shot,
  .screen-shot:nth-child(2),
  .screen-shot:nth-child(3) {
    transform: none;
  }

  .share-card-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .share-card-image,
  .share-gold,
  .share-purple {
    position: static;
    width: 100%;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-inner a {
    margin: 0 14px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


/* Mystorium 1.0.4 live refinements */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8ed;
}
.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 0.92em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold), rgba(199,151,43,.28));
  box-shadow: 0 0 18px rgba(240,203,98,.28);
}
.gallery-section { padding-top: 48px; }
.gallery-head {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}
.gallery-copy { margin: 0; color: var(--ink-2); font-size: 16px; }
.app-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
}
.app-gallery::-webkit-scrollbar { height: 8px; }
.app-gallery::-webkit-scrollbar-track { background: rgba(255,227,154,.08); border-radius: 999px; }
.app-gallery::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; }
.gallery-shot {
  position: relative;
  flex: 0 0 min(72vw,330px);
  overflow: hidden;
  margin: 0;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(255,227,154,.2);
  background: radial-gradient(circle at 50% 0%, rgba(240,203,98,.16), transparent 36%), #090505;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.gallery-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,227,154,.08), transparent 22%), linear-gradient(0deg, rgba(9,5,5,.34), transparent 34%);
}
.gallery-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-shot.wide { flex-basis: min(82vw,520px); aspect-ratio: 872 / 980; }
.gallery-shot.tall { aspect-ratio: 451 / 980; }
.gallery-shot.board { flex-basis: min(78vw,440px); aspect-ratio: 676 / 980; }
.page-hero {
  width: min(980px, calc(100% - 40px));
  padding: 110px 0 54px;
}
.page-hero h1 {
  margin-top: 18px;
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: .05em;
}
.content-page {
  width: min(980px, calc(100% - 40px));
  max-width: 980px;
  padding: 8px 0 110px;
}
.content-page > * { max-width: 820px; }
.content-page > ul { max-width: 780px; }
.content-page h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 18px;
  padding: 0;
  border-bottom: 0;
  color: #fff8ed;
  font-size: clamp(22px, 2.2vw, 30px);
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: .08em;
}
.content-page h2::before {
  content: "";
  width: 5px;
  height: 1em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  box-shadow: 0 0 14px rgba(240,203,98,.24);
}
.content-page p,
.content-page li { color: var(--ink-2); font-size: 17px; line-height: 2.05; }
.content-page p { margin: 0 0 22px; }
.content-page strong { color: #fff8ed; font-weight: 600; }
.content-page ul { padding-left: 1.4em; margin: 0 0 26px; }
.contact-box {
  margin-top: 42px;
  border-left: 1px solid rgba(240,203,98,.48);
  padding: 18px 0 18px 24px;
  background: linear-gradient(90deg, rgba(240,203,98,.08), transparent 68%);
}
.contact-box p { margin: 0 0 8px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box a { color: var(--gold-pale); text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width:900px) {
  .gallery-head { grid-template-columns: 1fr; }
  .app-gallery { margin-left: -4px; margin-right: -4px; }
}
@media (max-width:560px) {
  .section-title { font-size: clamp(28px,9vw,42px); gap: 10px; letter-spacing: .05em; }
  .gallery-shot,
  .gallery-shot.wide,
  .gallery-shot.board { flex-basis: min(82vw,360px); min-height: 360px; }
}


/* Mystorium 1.0.5 memory visual and heading refinements */
.section-title {
  font-size: clamp(28px, 4.1vw, 50px);
}

.memory-band {
  position: relative;
  overflow: hidden;
}

.memory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 58px;
  align-items: center;
}

.memory-band h2 {
  font-size: clamp(30px, 4.7vw, 56px);
}

.memory-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.memory-visual::before {
  content: "";
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(240, 203, 98, 0.2), transparent 58%),
    radial-gradient(circle at 52% 42%, rgba(182, 92, 255, 0.22), transparent 64%);
  filter: blur(6px);
  opacity: 0.86;
  z-index: -1;
}

.memory-emblem {
  width: min(28vw, 310px);
  min-width: 220px;
  aspect-ratio: 1;
  border-radius: 34%;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 227, 154, 0.58), rgba(182, 92, 255, 0.18));
  box-shadow:
    0 0 72px rgba(240, 203, 98, 0.18),
    0 34px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
}

.memory-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31%;
}

.memory-chip {
  position: absolute;
  min-width: 170px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 227, 154, 0.18);
  background: rgba(18, 10, 11, 0.78);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.memory-chip strong {
  display: block;
  font-family: var(--font-logo);
  color: var(--gold-pale);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.memory-chip span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-ui);
  font-size: 12px;
}

.chip-top {
  top: 32px;
  right: 12px;
}

.chip-mid {
  left: 0;
  bottom: 118px;
}

.chip-bottom {
  right: 52px;
  bottom: 38px;
}

@media (max-width: 900px) {
  .memory-layout {
    grid-template-columns: 1fr;
  }

  .memory-visual {
    min-height: 340px;
  }

  .memory-emblem {
    width: min(58vw, 270px);
  }

  .chip-top {
    top: 8px;
    right: 4px;
  }

  .chip-mid {
    left: 4px;
    bottom: 86px;
  }

  .chip-bottom {
    right: 28px;
    bottom: 0;
  }
}

@media (max-width: 560px) {
  .section-title {
    font-size: clamp(25px, 7.5vw, 36px);
  }

  .memory-chip {
    min-width: 138px;
    padding: 11px 14px;
  }

  .memory-chip strong {
    font-size: 14px;
  }
}


/* Mystorium 1.0.5 memory app icon fallback */
.memory-band::before,
.memory-band::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.memory-band::before {
  right: max(24px, calc((100vw - 1120px) / 2));
  top: 50%;
  width: min(38vw, 480px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(240, 203, 98, 0.2), transparent 58%),
    radial-gradient(circle at 52% 42%, rgba(182, 92, 255, 0.22), transparent 64%);
  filter: blur(8px);
  opacity: 0.86;
  transform: translateY(-50%);
}

.memory-band::after {
  right: max(78px, calc((100vw - 1120px) / 2 + 72px));
  top: 50%;
  width: min(26vw, 300px);
  aspect-ratio: 1;
  border-radius: 34%;
  background:
    linear-gradient(145deg, rgba(255, 227, 154, 0.58), rgba(182, 92, 255, 0.18)),
    url("assets/images/app-icon.png") center/cover;
  box-shadow:
    0 0 72px rgba(240, 203, 98, 0.18),
    0 34px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) rotate(-4deg);
}

.memory-band .inner {
  position: relative;
  z-index: 1;
  padding-right: min(42vw, 420px);
}

@media (max-width: 900px) {
  .memory-band .inner {
    padding-right: 0;
  }

  .memory-band::before {
    right: 50%;
    top: auto;
    bottom: 36px;
    width: min(72vw, 320px);
    transform: translateX(50%);
  }

  .memory-band::after {
    position: relative;
    display: block;
    right: auto;
    top: auto;
    width: min(56vw, 250px);
    margin: 40px auto 0;
    transform: rotate(-4deg);
  }
}
