:root {
  --bg: #1a1612;
  --bg-deep: #100d0b;
  --bg-soft: #221b16;
  --bg-blue: #1c2a3a;
  --card: #15110f;
  --card-warm: #211712;
  --accent: #e85a2a;
  --accent-hot: #ff6b2c;
  --ivory: #f4ead5;
  --muted: #c9b89a;
  --bronze: #8b6f47;
  --magic: #5fb8a8;
  --danger: #ba3d2a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 75% 10%, rgba(232, 90, 42, 0.13), transparent 28rem),
    radial-gradient(circle at 20% 20%, rgba(95, 184, 168, 0.08), transparent 22rem),
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(139, 111, 71, 0.32);
  background: rgba(16, 13, 11, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--container), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 90, 42, 0.42);
}

.brand-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-line {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(244, 234, 213, 0.24);
  background: transparent;
  color: var(--ivory);
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
  font: inherit;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--ivory);
  background: rgba(232, 90, 42, 0.14);
}

.page-main {
  overflow: hidden;
}

.atelier-tour {
  --tour-progress: 0;
}

.section {
  padding: 96px 0;
}

.section.tight {
  padding: 64px 0;
}

.band-blue {
  background:
    linear-gradient(180deg, rgba(28, 42, 58, 0.94), rgba(20, 17, 16, 0.98)),
    var(--bg-blue);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  color: var(--ivory);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.97;
  max-width: 860px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  max-width: 820px;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 780px;
}

.copy {
  color: var(--muted);
  max-width: 720px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 75% 35%, rgba(232, 90, 42, 0.22), transparent 28rem),
    linear-gradient(90deg, rgba(16, 13, 11, 0.98) 0%, rgba(16, 13, 11, 0.82) 36%, rgba(16, 13, 11, 0.34) 72%, rgba(16, 13, 11, 0.68) 100%),
    var(--bg-deep);
}

.room-soglia {
  background:
    radial-gradient(circle at 76% 62%, rgba(232, 90, 42, 0.18), transparent 24rem),
    radial-gradient(circle at 58% 24%, rgba(95, 184, 168, 0.1), transparent 20rem),
    linear-gradient(90deg, rgba(16, 13, 11, 0.96) 0%, rgba(16, 13, 11, 0.84) 31%, rgba(16, 13, 11, 0.22) 66%, rgba(16, 13, 11, 0.56) 100%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.08), rgba(16, 13, 11, 0.7)),
    url("/assets/hero/hero-soglia-atelier-v0-3.webp") center right / cover no-repeat,
    var(--bg-deep);
}

.room {
  position: relative;
  isolation: isolate;
}

.room > .container {
  position: relative;
  z-index: 1;
}

.room::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.room-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.room-label span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-transition {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  color: rgba(244, 234, 213, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.room-rail {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.room-rail::before,
.room-rail::after,
.room-rail span {
  content: "";
  position: absolute;
  display: block;
}

.room-rail::before {
  width: min(62vw, 760px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.55), rgba(232, 90, 42, 0.92), transparent);
  box-shadow: 0 0 28px rgba(232, 90, 42, 0.34);
  opacity: 0.58;
  transition: opacity 260ms ease, box-shadow 260ms ease;
}

.room-rail::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 32px rgba(232, 90, 42, 0.9);
  opacity: 0.72;
  transition: opacity 260ms ease, transform 260ms ease;
}

.room-rail span {
  width: 110px;
  height: 110px;
  border: 1px solid rgba(232, 90, 42, 0.18);
  transform: rotate(45deg);
  opacity: 0.5;
  transition: opacity 260ms ease, transform 260ms ease;
}

.room-active .room-rail::before {
  opacity: 1;
  box-shadow: 0 0 38px rgba(232, 90, 42, 0.48);
}

.room-active .room-rail::after {
  opacity: 1;
  transform: scale(1.18);
}

.room-active .room-rail span {
  opacity: 0.86;
  transform: rotate(45deg) scale(1.04);
}

.rail-soglia::before {
  left: 41%;
  bottom: 92px;
  transform: rotate(-8deg);
}

.rail-soglia::after {
  left: 62%;
  bottom: 83px;
}

.rail-soglia span {
  left: 67%;
  bottom: 38px;
}

.rail-banco::before {
  right: 7%;
  top: 18%;
  transform: rotate(12deg);
}

.rail-banco::after {
  right: 20%;
  top: 17%;
}

.rail-banco span {
  right: 13%;
  top: 8%;
}

.rail-scaffali::before {
  left: 6%;
  top: 46%;
  width: min(74vw, 920px);
  transform: rotate(2deg);
}

.rail-scaffali::after {
  left: 18%;
  top: 45%;
}

.rail-scaffali span {
  left: 6%;
  top: 36%;
}

.rail-lente::before {
  right: 9%;
  top: 51%;
  width: min(46vw, 620px);
  transform: rotate(-22deg);
  background: linear-gradient(90deg, transparent, rgba(95, 184, 168, 0.68), rgba(232, 90, 42, 0.84), transparent);
}

.rail-lente::after {
  right: 26%;
  top: 44%;
  background: var(--magic);
  box-shadow: 0 0 32px rgba(95, 184, 168, 0.9);
}

.rail-lente span {
  right: 17%;
  top: 33%;
  border-color: rgba(95, 184, 168, 0.22);
}

.rail-bacheca::before {
  left: 12%;
  top: 28%;
  width: min(58vw, 760px);
  transform: rotate(6deg);
  background: linear-gradient(90deg, transparent, rgba(186, 61, 42, 0.62), rgba(232, 90, 42, 0.82), transparent);
}

.rail-bacheca::after {
  left: 42%;
  top: 27%;
}

.rail-bacheca span {
  left: 48%;
  top: 18%;
}

.rail-porte::before {
  left: 18%;
  bottom: 22%;
  width: min(64vw, 860px);
  transform: rotate(-4deg);
}

.rail-porte::after {
  left: 70%;
  bottom: 21%;
}

.rail-porte span {
  left: 72%;
  bottom: 14%;
}

.rail-retro::before {
  right: 10%;
  top: 22%;
  width: min(42vw, 540px);
  background: linear-gradient(90deg, transparent, rgba(244, 234, 213, 0.3), rgba(232, 90, 42, 0.72), transparent);
}

.rail-retro::after {
  right: 29%;
  top: 21%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 234, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 213, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.room-soglia::before {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 54px;
  align-items: center;
}

.room-soglia .hero-grid {
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 234, 213, 0.18);
  color: var(--ivory);
  background: rgba(244, 234, 213, 0.06);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 90, 42, 0.7);
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hot);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
}

.microcopy {
  margin-top: 16px;
  color: rgba(201, 184, 154, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.atelier-visual {
  position: relative;
  min-height: 560px;
}

.room-soglia .atelier-visual {
  opacity: 0;
  pointer-events: none;
}

.scene {
  --parallax-y: 0px;
  transform: translateY(var(--parallax-y));
  transition: transform 80ms linear;
}

.scene-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
}

.scene-glow-one {
  right: 18%;
  bottom: 16%;
  width: 180px;
  height: 180px;
  background: rgba(255, 183, 80, 0.42);
}

.scene-glow-two {
  left: 10%;
  top: 12%;
  width: 140px;
  height: 140px;
  background: rgba(95, 184, 168, 0.22);
}

.forge-orb {
  position: absolute;
  right: 7%;
  top: 17%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 116, 49, 0.78), rgba(232, 90, 42, 0.22) 45%, transparent 72%);
  filter: blur(2px);
  animation: forgePulse 5.5s ease-in-out infinite;
}

.hero-logo {
  position: absolute;
  right: 4%;
  top: 8%;
  width: min(78%, 390px);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0.95;
  transform: translateY(calc(var(--tour-progress) * -10px));
}

.hanging-tools {
  position: absolute;
  right: 3%;
  top: 3%;
  width: 170px;
  height: 120px;
}

.hanging-tools span {
  position: absolute;
  top: 0;
  width: 2px;
  height: 90px;
  background: linear-gradient(var(--bronze), transparent);
  transform-origin: top;
}

.hanging-tools span::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 22px;
  height: 34px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(244, 234, 213, 0.16);
  border: 1px solid rgba(139, 111, 71, 0.5);
}

.hanging-tools span:nth-child(1) {
  left: 14px;
  transform: rotate(-7deg);
}

.hanging-tools span:nth-child(2) {
  left: 76px;
  height: 112px;
  transform: rotate(4deg);
}

.hanging-tools span:nth-child(3) {
  right: 22px;
  height: 76px;
  transform: rotate(9deg);
}

.workbench {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 16px;
  transform: rotate(-2deg);
}

.artifact {
  min-height: 170px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 111, 71, 0.62);
  background:
    linear-gradient(145deg, rgba(244, 234, 213, 0.13), rgba(21, 17, 15, 0.96)),
    var(--card);
  box-shadow: var(--shadow);
}

.artifact-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.artifact-link:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: rgba(232, 90, 42, 0.82);
  box-shadow: 0 30px 80px rgba(232, 90, 42, 0.16);
}

.artifact:nth-child(2) {
  transform: translateY(-34px) rotate(3deg);
}

.artifact-label {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artifact-title {
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}

.section-head .copy {
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 111, 71, 0.42);
  background: linear-gradient(180deg, rgba(244, 234, 213, 0.055), rgba(21, 17, 15, 0.96));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.card.pad {
  padding: 24px;
}

.card:hover .card-shine {
  opacity: 1;
  transform: translateX(120%);
}

.card-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 44%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 234, 213, 0.14), transparent);
  transform: translateX(0);
  transition: transform 560ms ease, opacity 180ms ease;
  pointer-events: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(244, 234, 213, 0.08);
  border: 1px solid rgba(244, 234, 213, 0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.accent {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.badge.magic {
  color: var(--bg);
  background: var(--magic);
  border-color: var(--magic);
}

.badge.warn {
  color: var(--ivory);
  background: rgba(186, 61, 42, 0.35);
  border-color: rgba(186, 61, 42, 0.62);
}

.material-card {
  display: grid;
  grid-template-rows: 170px auto;
}

.material-art {
  position: relative;
  overflow: hidden;
  background: var(--bg-blue);
}

.material-art.has-image {
  background: var(--bg-deep);
}

.material-art.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.03);
}

.material-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 234, 213, 0.22), transparent 11rem),
    radial-gradient(circle at 72% 60%, rgba(232, 90, 42, 0.28), transparent 12rem),
    linear-gradient(135deg, rgba(16, 13, 11, 0.2), rgba(16, 13, 11, 0.84));
}

.material-art[data-tone="sigil"] {
  background: #2a1814;
}

.material-art[data-tone="infernal"] {
  background: #2b1010;
}

.material-art[data-tone="urban"] {
  background: #172433;
}

.material-art[data-tone="haunted"] {
  background: #1c1a22;
}

.material-art::after {
  content: "";
  position: absolute;
  width: 112px;
  height: 142px;
  left: 24px;
  bottom: -12px;
  border-radius: 4px;
  border: 1px solid rgba(244, 234, 213, 0.45);
  background:
    linear-gradient(180deg, rgba(244, 234, 213, 0.9), rgba(201, 184, 154, 0.88)),
    var(--ivory);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
  transform: rotate(-5deg);
}

.material-art.has-image::before {
  background:
    linear-gradient(180deg, transparent 34%, rgba(16, 13, 11, 0.42) 72%, rgba(16, 13, 11, 0.76));
}

.material-art.has-image::after {
  display: none;
}

.material-body {
  padding: 22px;
}

.material-body p {
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.scaffold-card {
  min-height: 210px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(26, 22, 18, 0.72), rgba(16, 13, 11, 0.9));
}

.scaffold-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--category-image) center / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.02);
  transition: transform 420ms ease, opacity 420ms ease;
}

.scaffold-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 20%, rgba(95, 184, 168, 0.18), transparent 15rem),
    radial-gradient(circle at 14% 84%, rgba(232, 90, 42, 0.2), transparent 15rem),
    linear-gradient(180deg, rgba(16, 13, 11, 0.22), rgba(16, 13, 11, 0.9) 72%);
}

.scaffold-card:hover::before {
  opacity: 0.68;
  transform: scale(1.06);
}

.scaffold-card h3,
.material-card h3 {
  margin-bottom: 10px;
}

.feature-sigil {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 72% 45%, rgba(232, 90, 42, 0.22), transparent 18rem),
    linear-gradient(120deg, rgba(33, 23, 18, 0.98), rgba(16, 13, 11, 0.92));
}

.sigil-visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 90, 42, 0.4);
  background:
    radial-gradient(circle at 31% 58%, rgba(232, 90, 42, 0.42), transparent 9rem),
    radial-gradient(circle at 76% 45%, rgba(95, 184, 168, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(28, 42, 58, 0.72), rgba(16, 13, 11, 0.92));
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.46);
}

.sigil-actor-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% center;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  filter: saturate(1.08) contrast(1.05);
  transform: translate3d(34px, 0, 0) scale(1.035);
  transform-origin: 76% 50%;
  transition: opacity 520ms ease, transform 920ms cubic-bezier(0.18, 0.88, 0.26, 1);
}

.sigil-feature-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.035);
  transform-origin: 58% 50%;
  transition: transform 900ms cubic-bezier(0.18, 0.88, 0.26, 1), filter 520ms ease;
}

.feature-sigil:hover .sigil-feature-image,
.room-banco.room-active .sigil-feature-image {
  filter: saturate(1.18) contrast(1.09);
  transform: scale(1);
}

.room-banco.room-active .sigil-actor-panel,
.feature-sigil:hover .sigil-actor-panel {
  opacity: 0.96;
  transform: translate3d(0, 0, 0) scale(1);
}

.sigil-visual:hover .sigil-core,
.feature-sigil:hover .sigil-core {
  transform: translate(-50%, -50%) scale(1.08);
}

.sigil-visual.has-feature-image::before,
.sigil-visual.has-feature-image::after {
  display: none;
}

.sigil-visual::before,
.sigil-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 31%;
  top: 58%;
  border: 1px solid rgba(244, 234, 213, 0.32);
  transform: translate(-50%, -50%) rotate(45deg);
}

.sigil-visual::before {
  width: 180px;
  height: 180px;
}

.sigil-visual::after {
  width: 260px;
  height: 260px;
  opacity: 0.45;
}

.sigil-core {
  position: absolute;
  z-index: 3;
  left: 31%;
  top: 58%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-hot), var(--accent) 50%, rgba(232, 90, 42, 0.2));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(232, 90, 42, 0.55);
  transition: transform 220ms ease;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(139, 111, 71, 0.36);
  border-radius: var(--radius);
  background: rgba(16, 13, 11, 0.56);
  margin: 34px 0;
}

.library-overview-section {
  padding-top: 22px;
}

.library-materials-section {
  padding-top: 36px;
}

.library-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.library-category-card {
  appearance: none;
  position: relative;
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(139, 111, 71, 0.42);
  border-radius: var(--radius);
  background: rgba(16, 13, 11, 0.96);
  color: var(--ivory);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.library-category-card::before,
.library-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.library-category-card::before {
  background: var(--category-image) center / cover no-repeat;
  opacity: 0.68;
  transform: scale(1.02);
  transition: transform 460ms ease, opacity 460ms ease;
}

.library-category-card::after {
  background:
    radial-gradient(circle at 78% 18%, rgba(95, 184, 168, 0.15), transparent 13rem),
    radial-gradient(circle at 12% 86%, rgba(232, 90, 42, 0.24), transparent 13rem),
    linear-gradient(180deg, rgba(16, 13, 11, 0.1), rgba(16, 13, 11, 0.58) 40%, rgba(16, 13, 11, 0.96));
}

.library-category-card strong,
.library-category-card span,
.library-category-card em,
.library-category-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.library-category-card small {
  color: var(--accent-hot);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.library-category-card strong {
  margin: 58px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.02;
}

.library-category-card > span:not(.card-shine) {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.library-category-card em {
  margin-top: 28px;
  color: var(--magic);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.library-category-card.is-active,
.library-category-card:hover {
  border-color: rgba(232, 90, 42, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(232, 90, 42, 0.12), 0 22px 60px rgba(0, 0, 0, 0.32);
}

.library-category-card:hover::before {
  opacity: 0.86;
  transform: scale(1.06);
}

.library-active-nav {
  margin-bottom: 28px;
}

.library-shelf {
  margin-bottom: 74px;
}

.library-shelf:last-child {
  margin-bottom: 0;
}

.library-shelf-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.library-shelf-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.library-item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1040px;
}

.library-material-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  min-height: 460px;
  overflow: hidden;
}

.library-material-art {
  position: relative;
  display: block;
  min-height: 460px;
  overflow: hidden;
  background: var(--bg-blue);
  border-right: 1px solid rgba(139, 111, 71, 0.32);
}

.library-material-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(16, 13, 11, 0.34)),
    radial-gradient(circle at 18% 16%, rgba(244, 234, 213, 0.18), transparent 12rem);
  pointer-events: none;
}

.library-material-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.library-material-card:hover .library-material-art img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.library-material-body {
  padding: 26px;
}

.library-material-body h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.library-material-body p {
  color: var(--muted);
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 10px 12px;
  border-left: 3px solid rgba(232, 90, 42, 0.86);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(244, 234, 213, 0.055);
  color: var(--muted);
  font-size: 0.95rem;
}

.library-empty {
  min-height: 180px;
  background:
    radial-gradient(circle at 82% 18%, rgba(95, 184, 168, 0.12), transparent 14rem),
    linear-gradient(140deg, rgba(28, 42, 58, 0.34), rgba(16, 13, 11, 0.96));
}

.room-scaffali {
  min-height: 980px;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 90, 42, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(95, 184, 168, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(16, 13, 11, 0.34), rgba(16, 13, 11, 0.5) 54%, rgba(16, 13, 11, 0.82)),
    linear-gradient(90deg, rgba(16, 13, 11, 0.56), rgba(16, 13, 11, 0.12) 45%, rgba(16, 13, 11, 0.5)),
    url("/assets/library/scaffali-biblioteca-v0-1.webp") center center / cover no-repeat,
    var(--bg-blue);
}

.room-scaffali .container {
  position: relative;
  z-index: 1;
}

.room-scaffali .scaffold-card {
  border-color: rgba(201, 184, 154, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(244, 234, 213, 0.08);
  backdrop-filter: blur(3px) saturate(112%);
}

.room-scaffali .scaffold-card:hover {
  border-color: rgba(232, 90, 42, 0.72);
  transform: translateY(-4px);
}

.lente-console {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius);
  border: 1px solid rgba(95, 184, 168, 0.48);
  background:
    linear-gradient(180deg, rgba(16, 13, 11, 0.08), rgba(16, 13, 11, 0.46)),
    linear-gradient(90deg, rgba(16, 13, 11, 0.38), rgba(16, 13, 11, 0.02) 54%, rgba(16, 13, 11, 0.28)),
    url("/assets/lens/lente-role-monday-v0-1.webp") center center / cover no-repeat,
    var(--bg-blue);
  box-shadow: var(--shadow), 0 0 80px rgba(95, 184, 168, 0.12);
  overflow: hidden;
}

.lente-console::before {
  display: none;
}

.lens-core {
  display: none;
}

.signal-card {
  position: absolute;
  width: min(42%, 210px);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 234, 213, 0.22);
  background: linear-gradient(180deg, rgba(16, 13, 11, 0.72), rgba(16, 13, 11, 0.84));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px) saturate(115%);
}

.signal-card h3 {
  font-size: 1.25rem;
}

.signal-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.signal-a {
  left: 28px;
  top: 42px;
}

.signal-b {
  right: 26px;
  top: 132px;
}

.signal-c {
  left: 58px;
  bottom: 42px;
}

.signal-card:hover {
  border-color: rgba(95, 184, 168, 0.74);
  transform: translateY(-4px);
}

.room-bacheca .card {
  background:
    linear-gradient(180deg, rgba(186, 61, 42, 0.11), rgba(21, 17, 15, 0.97)),
    var(--card);
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.door-card {
  position: relative;
  min-height: 280px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 111, 71, 0.42);
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.98), rgba(44, 28, 50, 0.46)),
    linear-gradient(180deg, rgba(244, 234, 213, 0.06), transparent);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.door-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px 0;
  border: 1px solid rgba(139, 111, 71, 0.4);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.door-light {
  position: absolute;
  right: 0;
  top: 20%;
  width: 6px;
  height: 60%;
  background: rgba(232, 90, 42, 0.62);
  box-shadow: 0 0 40px rgba(232, 90, 42, 0.55);
  opacity: 0.32;
  transition: opacity 180ms ease, width 180ms ease;
}

.door-card:hover .door-light {
  width: 12px;
  opacity: 0.9;
}

.door-card h3 {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 234, 213, 0.14);
  background: rgba(244, 234, 213, 0.04);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.material-hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 77% 30%, rgba(232, 90, 42, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(28, 42, 58, 0.84), rgba(16, 13, 11, 1));
}

.material-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 38px;
  align-items: center;
}

.preview-frame {
  min-height: 460px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 111, 71, 0.54);
  background:
    radial-gradient(circle at 40% 28%, rgba(232, 90, 42, 0.3), transparent 12rem),
    linear-gradient(160deg, rgba(244, 234, 213, 0.12), rgba(16, 13, 11, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-frame.has-image {
  background: var(--bg-deep);
}

.preview-frame.has-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.04);
}

.list-clean {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-clean li {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(244, 234, 213, 0.055);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.notice {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(95, 184, 168, 0.35);
  background: rgba(95, 184, 168, 0.08);
  color: var(--muted);
}

.page-title-block {
  padding: 76px 0 38px;
}

.library-title-block {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  padding: 92px 0 84px;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 30%, rgba(95, 184, 168, 0.16), transparent 24rem),
    radial-gradient(circle at 72% 76%, rgba(232, 90, 42, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(16, 13, 11, 0.98) 0%, rgba(16, 13, 11, 0.86) 35%, rgba(16, 13, 11, 0.36) 70%, rgba(16, 13, 11, 0.7) 100%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.18), rgba(16, 13, 11, 0.92)),
    url("/assets/library/hero/biblioteca-atelier-archivista-v0-1.webp") center right / cover no-repeat,
    var(--bg-deep);
}

.library-title-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 13, 11, 0.22), transparent 40%, rgba(16, 13, 11, 0.94)),
    radial-gradient(circle at 18% 52%, rgba(16, 13, 11, 0.82), transparent 32rem);
  pointer-events: none;
}

.library-title-block h1 {
  max-width: 790px;
}

.library-title-block .lead {
  max-width: 760px;
}

.lettera-title-block {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  padding: 92px 0 84px;
  isolation: isolate;
  background:
    radial-gradient(circle at 24% 38%, rgba(232, 90, 42, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 24%, rgba(95, 184, 168, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(16, 13, 11, 0.97) 0%, rgba(16, 13, 11, 0.88) 36%, rgba(16, 13, 11, 0.34) 72%, rgba(16, 13, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(28, 42, 58, 0.1), rgba(16, 13, 11, 0.96)),
    url("/assets/lettera/lettera-atelier-lente-v0-1.webp") center right / cover no-repeat,
    var(--bg-deep);
}

.lettera-title-block > .container {
  position: relative;
  z-index: 1;
}

.lettera-promise {
  align-self: center;
  justify-self: end;
  width: min(100%, 470px);
  margin-left: clamp(18px, 4vw, 64px);
  background:
    radial-gradient(circle at 86% 16%, rgba(95, 184, 168, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(33, 23, 18, 0.96), rgba(16, 13, 11, 0.94));
}

.lettera-signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 40px;
  align-items: center;
}

.substack-embed-card {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 90, 42, 0.34);
  background:
    radial-gradient(circle at 74% 24%, rgba(232, 90, 42, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(244, 234, 213, 0.96), rgba(226, 210, 178, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.substack-embed-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(139, 111, 71, 0.28);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.substack-embed-card iframe {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-width: 100%;
  border: 0;
  background: transparent;
}

.substack-consent {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 440px;
  color: var(--bg-deep);
}

.substack-consent h3,
.substack-consent p {
  margin: 0;
}

.substack-consent p {
  color: rgba(16, 13, 11, 0.78);
}

.substack-consent .small,
.substack-consent .small a {
  color: rgba(16, 13, 11, 0.7);
}

.substack-consent .btn {
  color: var(--bg-deep);
  border-color: rgba(16, 13, 11, 0.28);
}

.substack-consent .btn.primary {
  border-color: var(--accent);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-content h2 {
  margin-top: 22px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.legal-content a {
  color: var(--turquoise);
}

.legal-note {
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(232, 90, 42, 0.1);
  color: var(--muted);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(139, 111, 71, 0.32);
  border-radius: var(--radius);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139, 111, 71, 0.24);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  color: var(--ivory);
  background: rgba(244, 234, 213, 0.06);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
}

.legal-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer {
  padding: 54px 0;
  border-top: 1px solid rgba(139, 111, 71, 0.36);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ivory);
}

.footer-social {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 8px;
}

.footer-social-label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(236, 222, 191, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-social img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-social a:hover {
  border-color: rgba(246, 86, 35, 0.72);
  background: rgba(246, 86, 35, 0.08);
  transform: translateY(-1px);
}

.small {
  color: rgba(201, 184, 154, 0.72);
  font-size: 0.9rem;
}

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

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

@keyframes forgePulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-sigil,
  .split,
  .material-detail-grid,
  .footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .atelier-visual {
    min-height: 480px;
    order: -1;
  }

  .grid.three,
  .grid.four,
  .door-grid,
  .library-category-grid,
  .library-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-shelf-head,
  .library-material-card,
  .lettera-signup-grid {
    grid-template-columns: 1fr;
  }

  .lettera-promise {
    justify-self: stretch;
    width: 100%;
    margin-left: 0;
  }

  .library-material-art {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.32);
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(16, 13, 11, 0.98);
    border-bottom: 1px solid rgba(139, 111, 71, 0.36);
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    padding: 14px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .room-soglia {
    min-height: calc(100svh - 72px);
    align-items: end;
    padding: 56px 0 96px;
    background:
      radial-gradient(circle at 72% 34%, rgba(232, 90, 42, 0.2), transparent 18rem),
      radial-gradient(circle at 62% 24%, rgba(95, 184, 168, 0.14), transparent 18rem),
      linear-gradient(180deg, rgba(16, 13, 11, 0.42) 0%, rgba(16, 13, 11, 0.72) 38%, rgba(16, 13, 11, 0.96) 78%, rgba(16, 13, 11, 0.98) 100%),
      url("/assets/hero/hero-soglia-atelier-v0-3.webp") 58% top / auto 100% no-repeat,
      var(--bg-deep);
  }

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

  .room-soglia .atelier-visual {
    display: none;
  }

  .room-soglia h1 {
    font-size: clamp(2.72rem, 13.4vw, 3.62rem);
    line-height: 1.01;
    max-width: 10ch;
  }

  .room-soglia .lead {
    max-width: 32ch;
    font-size: 1.04rem;
  }

  .lettera-title-block .lead {
    max-width: 32ch;
    font-size: 1.04rem;
  }

  .room-soglia .microcopy {
    max-width: 34ch;
  }

  .room-soglia.hero::before {
    opacity: 0;
  }

  .room-soglia .room-transition {
    bottom: 24px;
    width: min(100% - 32px, 420px);
    text-align: center;
  }

  .room-scaffali {
    min-height: auto;
    background-position: center top;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .door-grid,
  .library-category-grid,
  .library-item-grid {
    grid-template-columns: 1fr;
  }

  .library-category-card {
    min-height: 230px;
  }

  .library-material-art {
    min-height: 320px;
  }

  .room-rail {
    opacity: 0.55;
  }

  .room-rail::before {
    width: 86vw;
  }

  .lente-console {
    min-height: 520px;
  }

  .signal-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 18px;
  }

  .lens-core {
    opacity: 0.28;
  }

  .hero-actions,
  .button-row,
  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .workbench {
    grid-template-columns: 1fr;
    transform: none;
    bottom: 0;
  }

  .artifact:nth-child(2) {
    transform: none;
  }

  .artifact-link:hover {
    transform: none;
  }

  .hero-logo {
    width: min(72%, 300px);
    right: 14%;
  }

  .substack-embed-card {
    min-height: 328px;
    padding: 12px;
  }

  .substack-embed-card iframe {
    height: 320px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .sigil-actor-panel {
    opacity: 0.96;
    transform: none;
  }
}
/* Atelier Journey landing redesign v1 */
@keyframes maEmber {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: translateY(-105vh) translateX(30px); opacity: 0; }
}

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

@keyframes maSway {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes maGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes maPulse {
  0%, 100% { opacity: 0.25; transform: scaleX(0.7); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes maCoreSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body[data-page="home"] {
  background: #080605;
}

body[data-page="home"] .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: rgba(8, 6, 5, 0.78);
  transition: opacity 600ms ease;
}

body[data-page="home"] .page-main {
  overflow: clip;
}

.atelier-journey {
  background: #0e0b09;
  color: var(--ivory);
  position: relative;
}

.journey-overlay,
.journey-letterbox,
.journey-embers,
.journey-progress-rail {
  pointer-events: none;
}

.journey-lantern {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
}

.journey-vignette {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(4, 3, 2, 0.55) 100%);
}

.journey-letterbox {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 47;
  height: 0;
  background: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.85));
  will-change: height;
}

.journey-letterbox.top { top: 0; }
.journey-letterbox.bottom { bottom: 0; background: linear-gradient(0deg, #000, rgba(0, 0, 0, 0.85)); }

.journey-embers {
  position: fixed;
  inset: 0;
  z-index: 43;
  overflow: hidden;
}

.journey-embers span {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 8px rgba(255, 107, 44, 0.85);
  opacity: 0;
  animation-name: maEmber;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.journey-progress-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 46;
  height: 40vh;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.journey-room-name {
  writing-mode: vertical-rl;
  align-self: center;
  color: rgba(244, 234, 213, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.journey-rail-line {
  position: relative;
  width: 2px;
  display: block;
  background: linear-gradient(180deg, transparent, rgba(139, 111, 71, 0.55), transparent);
}

.journey-rail-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.95), 0 0 40px rgba(232, 90, 42, 0.5);
}

.journey-track {
  position: relative;
  isolation: isolate;
}

.journey-soglia { height: 280vh; }
.journey-banco { height: 240vh; }
.journey-scaffali { height: 300vh; }
.journey-lente { height: 320vh; }
.journey-bacheca { height: 260vh; }
.journey-lettera { height: 240vh; }
.journey-porte { height: 280vh; }
.journey-retro { height: 200vh; }

.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.journey-bg,
.journey-bg-overlay,
.soglia-backdrop,
.soglia-flash {
  position: absolute;
  inset: 0;
}

.journey-bg {
  z-index: -3;
  inset: -70px;
  background-size: cover;
  background-position: center;
  will-change: transform, filter;
}

.journey-bg-soglia { background-image: url("/assets/hero/hero-soglia-atelier-v0-3.webp"); background-position: center right; }
.journey-bg-banco { background-image: url("/assets/hero/hero-soglia-atelier-v0-1.webp"); }
.journey-bg-scaffali { background-image: url("/assets/library/categories/npc-fantasy-originale-v0-1.webp"); }
.journey-bg-lente { background-image: url("/assets/lens/lente-role-monday-v0-1.webp"); }
.journey-bg-lettera { background-image: url("/assets/lettera/lettera-atelier-lente-v0-1.webp"); }

.journey-bg-overlay { z-index: -2; }
.soglia-overlay { background: radial-gradient(circle at 74% 60%, rgba(232, 90, 42, 0.16), transparent 26rem), linear-gradient(90deg, rgba(8, 6, 5, 0.95) 0%, rgba(8, 6, 5, 0.82) 34%, rgba(8, 6, 5, 0.2) 68%, rgba(8, 6, 5, 0.55) 100%), linear-gradient(180deg, rgba(8, 6, 5, 0.3), rgba(8, 6, 5, 0.78)); }
.banco-overlay { background: linear-gradient(180deg, rgba(8, 6, 5, 0.9), rgba(8, 6, 5, 0.72) 45%, rgba(8, 6, 5, 0.9)), radial-gradient(circle at 50% 90%, rgba(232, 90, 42, 0.14), transparent 30rem); }
.scaffali-overlay { background: linear-gradient(180deg, rgba(8, 6, 5, 0.95), rgba(8, 6, 5, 0.8) 40%, rgba(8, 6, 5, 0.93)); }
.lente-overlay { background: linear-gradient(90deg, rgba(8, 6, 5, 0.95) 0%, rgba(8, 6, 5, 0.78) 42%, rgba(8, 6, 5, 0.4) 100%); }
.lettera-overlay { background: linear-gradient(180deg, rgba(8, 6, 5, 0.92), rgba(8, 6, 5, 0.7) 45%, rgba(8, 6, 5, 0.92)), radial-gradient(circle at 50% 40%, rgba(232, 90, 42, 0.1), transparent 32rem); }

.soglia-backdrop {
  z-index: 2;
  background: #080605;
  will-change: opacity;
}

.soglia-flash {
  z-index: 4;
  background: radial-gradient(circle at 50% 50%, rgba(255, 190, 120, 0.9), rgba(232, 90, 42, 0.4) 40%, transparent 70%);
  opacity: 0;
  will-change: opacity;
}

.floating-prop {
  position: absolute;
  z-index: 1;
  opacity: 0;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.prop-parchment { right: 6%; bottom: 14%; width: min(210px, 17vw); animation: maFloat 9s ease-in-out infinite; }
.prop-map { left: 55%; top: 12%; width: min(150px, 12vw); animation: maSway 13s ease-in-out infinite; }

.soglia-door {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.soglia-door img {
  width: min(360px, 64vw);
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
}

.door-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  max-width: 72vw;
  max-height: 72vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 42, 0.3), transparent 65%);
  animation: maGlow 4.5s ease-in-out infinite;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(244, 234, 213, 0.6);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px rgba(232, 90, 42, 0.8);
  animation: maPulse 2.6s ease-in-out infinite;
}

.journey-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  opacity: 0;
  will-change: opacity, transform;
}

.hero-copy-inner { max-width: 760px; }
.hero-copy-inner h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.hero-copy-inner .lead { max-width: 640px; }

.hero-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-artifacts a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(139, 111, 71, 0.45);
  border-radius: var(--radius);
  background: rgba(21, 17, 15, 0.75);
  backdrop-filter: blur(6px);
  transition: border-color 200ms ease, transform 200ms ease;
}

.hero-artifacts a:hover { transform: translateY(-3px); border-color: rgba(232, 90, 42, 0.65); }
.hero-artifacts span { color: var(--accent); font-family: Arial, Helvetica, sans-serif; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-artifacts strong { font-size: 0.95rem; font-weight: 400; }

.light-cone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60vw;
  height: 70vh;
  z-index: -1;
  opacity: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 120, 0.16), transparent 70%);
}

.journey-banco .scene-sticky,
.journey-lente .scene-sticky,
.journey-lettera .scene-sticky {
  display: flex;
  align-items: center;
}

.journey-banco-wrap {
  position: relative;
  z-index: 1;
}

.journey-bench {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}

.journey-bench-image {
  flex: 1 1 340px;
  min-height: 320px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.journey-bench-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-bench-copy {
  flex: 1 1 400px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.journey-bench-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.journey-bench-copy .lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.bench-seal,
.letter-seal {
  position: absolute;
  width: 110px;
  opacity: 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
  will-change: transform, opacity;
}

.bench-seal { top: -34px; right: -22px; }
.letter-seal { top: -36px; right: -24px; width: 116px; }

.journey-scene-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 12vh;
  z-index: 2;
}

.journey-scene-head.center { text-align: center; top: 14vh; }
.journey-scene-head.center h2,
.journey-scene-head.center .lead { margin-left: auto; margin-right: auto; }

.journey-shelf-row {
  position: absolute;
  inset: 0;
  z-index: 3;
  perspective: 1300px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.journey-shelf-card {
  position: absolute;
  left: 50%;
  top: 54%;
  display: block;
  pointer-events: none;
  cursor: pointer;
  width: min(340px, 80vw);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.35);
  background: rgba(21, 17, 15, 0.94);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, filter, opacity;
}

.journey-shelf-card.is-focused {
  pointer-events: auto;
  border-color: rgba(232, 90, 42, 0.7);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(232, 90, 42, 0.22);
}

.journey-shelf-image {
  height: 170px;
  overflow: hidden;
}

.journey-shelf-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-shelf-body {
  padding: 20px 22px 24px;
}

.journey-shelf-body span,
.pin-platform,
.letter-label {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-shelf-body h3 {
  margin: 8px 0 6px;
  font-size: 1.3rem;
}

.journey-shelf-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.journey-shelf-body em {
  display: block;
  margin-top: 16px;
  color: var(--magic);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-shelf-meta {
  position: absolute;
  left: 50%;
  bottom: 13vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-50%);
  will-change: opacity;
}

.journey-shelf-name {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.journey-shelf-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}

.journey-shelf-count {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.journey-shelf-bar {
  position: relative;
  display: block;
  width: 160px;
  height: 2px;
  overflow: hidden;
  background: rgba(139, 111, 71, 0.4);
}

.journey-shelf-bar span {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(255, 107, 44, 0.8);
  transform: scaleX(0);
  transform-origin: left center;
}

.journey-shelf-cta {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  z-index: 2;
  opacity: 0;
  transform: translateX(-50%);
}

.journey-lente-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.journey-lente-copy { flex: 1 1 420px; }
.teal { color: var(--magic); }
.teal-btn { background: var(--magic); border-color: var(--magic); }
.lens-micro { color: rgba(201, 184, 154, 0.6); font-family: Arial, Helvetica, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 26px; }

.lens-stage {
  flex: 1 1 380px;
  position: relative;
  height: 76vh;
  min-height: 420px;
}

.lens-aura,
.lens-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  z-index: 2;
}

.lens-aura {
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 184, 168, 0.4), transparent 65%);
  animation: maGlow 5s ease-in-out infinite;
}

.lens-ring {
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
  border: 1px dashed rgba(95, 184, 168, 0.3);
  animation: maCoreSpin 40s linear infinite;
}

.lens-parchment {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(330px, 82%);
  padding: 22px 24px 24px;
  opacity: 0;
  border-radius: 6px;
  border: 1px solid #c9b489;
  color: #2e2317;
  background: linear-gradient(165deg, #f0e3c5, #ddc9a2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.lens-parchment.is-examined { box-shadow: 0 0 46px rgba(95, 184, 168, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55); }
.lens-parchment span { color: #8a4a22; font-family: Arial, Helvetica, sans-serif; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 2px solid rgba(138, 74, 34, 0.35); padding-bottom: 4px; }
.lens-parchment h3 { margin: 12px 0 6px; color: #2e2317; }
.lens-parchment p { margin: 0; color: #5b4a35; }

.arcane-lens {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(300px, 48vw);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.lens-dots {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.lens-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(95, 184, 168, 0.25);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.lens-dots .is-active { background: var(--magic); box-shadow: 0 0 12px rgba(95, 184, 168, 0.9); }

.journey-bacheca .scene-sticky {
  background: linear-gradient(180deg, rgba(28, 42, 58, 0.92), rgba(12, 9, 8, 0.98)), var(--bg-blue);
}

.notice-prop {
  position: absolute;
  right: -30px;
  top: 6%;
  z-index: 0;
  width: 220px;
  opacity: 0.4;
  animation: maSway 12s ease-in-out infinite;
}

.pin-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 34vh;
  bottom: 8vh;
  z-index: 1;
}

.pin-stage-inner {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.journey-pin {
  position: absolute;
  width: min(300px, 90%);
  padding: 24px 24px 26px;
  opacity: 0;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  background: var(--card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}

.journey-pin:nth-child(1) { left: 2%; top: 8%; }
.journey-pin:nth-child(2) { left: 36%; top: 0; }
.journey-pin:nth-child(3) { left: 70%; top: 12%; }

.pin-head {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.journey-pin h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.journey-pin p { margin: 0 0 18px; color: var(--muted); font-size: 0.94rem; }
.journey-pin .btn { min-height: 40px; padding: 10px 14px; font-size: 0.72rem; }

.letter-parchment-fly {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 2;
  width: min(190px, 16vw);
  opacity: 0;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.55));
  will-change: transform, opacity;
}

.letter-stage {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.letter-card {
  position: relative;
  padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 60px);
  text-align: center;
  opacity: 0;
  border-radius: 8px;
  border: 1px solid #c9b489;
  background: linear-gradient(168deg, #f0e3c5, #dcc8a0);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.letter-card h2 { margin-top: 18px; color: #2e2317; font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.letter-card p { margin: 16px auto 0; color: #5b4a35; max-width: 560px; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.letter-label { color: #8a4a22; border-bottom: 2px solid rgba(138, 74, 34, 0.35); padding-bottom: 5px; }
.centered { justify-content: center; }
.letter-primary { background: #8a4a22; border-color: #8a4a22; color: #f0e3c5; }
.letter-secondary { color: #5b4a35; border-color: rgba(90, 74, 53, 0.45); }
.letter-secondary:hover { color: #2e2317; border-color: rgba(138, 74, 34, 0.8); }

.journey-porte .scene-sticky { background: radial-gradient(circle at 50% 120%, rgba(232, 90, 42, 0.12), transparent 40rem), #0a0807; }
.door-corridor { position: absolute; inset: 0; z-index: 1; }

.journey-door {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(280px, 74%);
  padding: 26px 24px 30px;
  text-align: center;
  opacity: 0;
  border-radius: 10px;
  border: 1px solid rgba(139, 111, 71, 0.35);
  background: var(--card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  will-change: transform, opacity;
}

.journey-door img { width: 84px; margin: 0 auto 12px; filter: brightness(0.8); }
.journey-door h3 { margin-top: 12px; font-size: 1.3rem; }
.journey-door i { position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-hot), transparent); box-shadow: 0 0 24px rgba(255, 107, 44, 0.9); animation: maPulse var(--pulse, 3.2s) ease-in-out infinite; }

.journey-retro .scene-sticky {
  display: grid;
  place-items: center;
  background: #080605;
}

.forge-breath {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  max-width: 80vw;
  max-height: 80vw;
  border-radius: 50%;
  opacity: 0.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 90, 42, 0.22), transparent 65%);
  will-change: opacity, transform;
}

.retro-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
}

.retro-copy .lead { margin-left: auto; margin-right: auto; }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  body[data-page="home"] .site-header { position: sticky; opacity: 1 !important; }
  .journey-vignette,
  .journey-letterbox,
  .journey-progress-rail,
  .journey-lantern,
  .journey-embers,
  [data-desktop="true"],
  .soglia-door,
  .soglia-backdrop,
  .soglia-flash,
  .scroll-hint { display: none !important; }
  .journey-track { height: auto !important; }
  .scene-sticky { position: relative; height: auto; min-height: 0; overflow: visible; padding: 90px 0; }
  .journey-bg { inset: 0; opacity: 0.52; filter: brightness(0.72) contrast(1.04) !important; transform: none !important; }
  .journey-soglia .journey-bg { opacity: 0.68; filter: brightness(0.8) contrast(1.08) !important; }
  .journey-hero-copy,
  .journey-scene-head,
  .pin-stage,
  .door-corridor { position: relative; inset: auto; top: auto; bottom: auto; opacity: 1 !important; transform: none !important; }
  .journey-hero-copy { display: block; }
  .hero-copy-inner { max-width: 100%; }
  .journey-bench,
  .journey-shelf-card,
  .lens-parchment,
  .journey-pin,
  .letter-card,
  .journey-door,
  .retro-copy { opacity: 1; transform: none; filter: none; }
  .journey-bench { flex-direction: column; }
  .journey-bench-image { border-radius: 10px 10px 0 0; min-height: 260px; }
  .bench-seal,
  .letter-seal { opacity: 1 !important; transform: rotate(12deg) scale(1) !important; }
  .journey-shelf-row { position: relative; inset: auto; width: min(var(--container), calc(100% - 40px)); margin: 40px auto 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; perspective: none; transform: none !important; }
  .journey-shelf-card { position: relative; left: auto; top: auto; flex: 1 1 260px; width: auto; opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .journey-shelf-meta { display: none !important; }
  .journey-shelf-cta { position: relative; left: auto; bottom: auto; margin-top: 10px; text-align: center; opacity: 1 !important; transform: none; }
  .journey-lente-grid { display: block; }
  .lens-stage { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
  .arcane-lens { position: relative; left: auto; top: auto; width: 170px; margin: 0 auto 18px; transform: none !important; order: -1; }
  .lens-parchment { position: relative; left: auto; top: auto; width: 100%; margin: 0; }
  .lens-dots { display: none; }
  .pin-stage-inner { height: auto; }
  .journey-pin { position: relative; left: auto !important; top: auto !important; margin: 0 auto 16px; }
  .letter-stage { width: min(860px, calc(100% - 32px)); }
  .journey-door { position: relative; left: auto; top: auto; margin: 0 auto 16px; }
  h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
}