:root {
  --text: #fff1cf;
  --muted: #d6b98a;
  --line: rgba(246, 194, 84, 0.24);
  --surface: #190406;
  --surface-soft: #2a0709;
  --surface-blue: #18342b;
  --accent: #f6c254;
  --accent-strong: #ff9b2f;
  --ink: #fff8df;
  --danger: #ff5138;
  --crimson: #8f1015;
  --crimson-deep: #4a070a;
  --gold-pale: #ffe7a0;
  --jade: #a8c8a1;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 32px rgba(192, 39, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(186, 31, 19, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(246, 151, 47, 0.1), transparent 28rem),
    linear-gradient(145deg, #100203 0%, var(--surface) 48%, #240507 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(246, 194, 84, 0.3);
  background: rgba(24, 3, 5, 0.9);
  padding: 16px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(135%);
}

.site-header > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 210px;
  font-weight: 700;
  color: var(--gold-pale);
  text-shadow: 0 0 18px rgba(246, 194, 84, 0.28);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 12px;
  line-height: 1;
}

.brand-logo {
  border: 1px solid rgba(246, 194, 84, 0.58);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: linear-gradient(145deg, #5d090c, #210406);
  box-shadow: 0 0 0 3px rgba(246, 194, 84, 0.08), 0 0 20px rgba(255, 80, 34, 0.2);
}

.search input {
  border: 1px solid rgba(246, 194, 84, 0.22);
  border-radius: 6px;
  background: rgba(50, 7, 10, 0.72);
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: var(--text);
}

.search input:focus {
  outline: 2px solid rgba(246, 194, 84, 0.2);
  border-color: var(--accent);
  background: rgba(73, 9, 12, 0.84);
  box-shadow: 0 0 24px rgba(246, 194, 84, 0.1);
}

.search input::placeholder {
  color: #a98261;
}

.header-nav,
.header-actions,
.site-footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.header-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(246, 194, 84, 0.28);
}

.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(246, 194, 84, 0.42);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(107, 12, 16, 0.94), rgba(47, 5, 8, 0.96));
  padding: 10px 12px;
  min-height: 42px;
  color: var(--gold-pale);
  box-shadow: inset 0 1px rgba(255, 235, 174, 0.12);
}

.icon-button:hover {
  border-color: var(--accent);
  background: linear-gradient(145deg, #a9191d, #5c080c);
  box-shadow: 0 0 22px rgba(246, 144, 40, 0.18);
}

main {
  margin: 0 auto;
  padding: 22px 32px 56px;
  max-width: 1480px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.ajo89-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 38px;
  align-items: start;
}

.gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 194, 84, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(162, 23, 20, 0.3), transparent 62%),
    linear-gradient(145deg, #350609, #160305);
  box-shadow: var(--shadow), inset 0 0 46px rgba(255, 111, 30, 0.08);
  aspect-ratio: 1 / 1;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(246, 194, 84, 0.58);
  border-radius: 50%;
  background: rgba(54, 6, 9, 0.88);
  width: 44px;
  height: 44px;
  color: var(--gold-pale);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36), 0 0 16px rgba(246, 194, 84, 0.14);
}

.gallery-nav:hover {
  background: linear-gradient(145deg, #a7191d, #5c080c);
  color: #fff7dc;
  box-shadow: 0 0 24px rgba(255, 132, 39, 0.3);
}

.gallery-nav.previous {
  left: 18px;
}

.gallery-nav.next {
  right: 18px;
}

.thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumbnail {
  overflow: hidden;
  border: 1px solid rgba(246, 194, 84, 0.2);
  border-radius: 6px;
  background: #260507;
  padding: 0;
  aspect-ratio: 1 / 1;
}

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

.thumbnail.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(246, 194, 84, 0.16), 0 0 22px rgba(255, 87, 31, 0.22);
}

.ajo89-panel {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(246, 194, 84, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 126, 35, 0.12), transparent 18rem),
    linear-gradient(155deg, rgba(68, 7, 11, 0.97), rgba(24, 3, 5, 0.98));
  padding: 26px;
  box-shadow: var(--shadow);
}

.entity-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.entity-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 194, 84, 0.58);
  background: radial-gradient(circle at 35% 25%, #c92720, #5b080c 72%);
  width: 42px;
  height: 42px;
  color: var(--gold-pale);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(246, 117, 33, 0.18);
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.entity-name {
  margin: 0;
  font-weight: 700;
  color: var(--gold-pale);
}

.ajo89-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(255, 127, 39, 0.18);
}

.ajo89-subtitle {
  margin: 8px 0 22px;
  color: var(--muted);
}

.access-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.access-duration {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(246, 194, 84, 0.24);
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(168, 200, 161, 0.3);
  background: rgba(24, 52, 43, 0.72);
  padding: 6px 10px;
  color: #d9ebd3;
  font-size: 12px;
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.spec-grid div {
  border-top: 1px solid rgba(246, 194, 84, 0.18);
  padding-top: 12px;
}

.spec-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.spec-grid dd {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--gold-pale);
}

.cta-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(246, 194, 84, 0.5);
  border-radius: 6px;
  padding: 13px 16px;
  min-height: 48px;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-position 600ms ease;
}

.button.primary {
  border-color: #ffd976;
  background: linear-gradient(110deg, #a2161b 0%, #e13a22 36%, #f6c254 50%, #d92f1f 64%, #8c1015 100%);
  background-size: 220% auto;
  color: #220305;
  text-shadow: 0 1px rgba(255, 240, 184, 0.34);
  box-shadow: inset 0 1px rgba(255, 246, 207, 0.48), 0 10px 26px rgba(125, 11, 14, 0.34);
}

.button.primary:hover {
  border-color: #fff0b5;
  background-position: 100% center;
  box-shadow: inset 0 1px rgba(255, 246, 207, 0.56), 0 12px 32px rgba(236, 69, 27, 0.32), 0 0 22px rgba(246, 194, 84, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  background: linear-gradient(145deg, rgba(106, 11, 15, 0.9), rgba(45, 5, 7, 0.94));
  color: var(--gold-pale);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--accent);
  color: #fff4cf;
  box-shadow: 0 0 22px rgba(246, 194, 84, 0.14);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: rgba(168, 200, 161, 0.26);
  background: rgba(24, 52, 43, 0.42);
  color: var(--text);
}

.button.ghost.is-saved {
  border-color: var(--jade);
  background: rgba(38, 77, 61, 0.72);
  color: #e5f2df;
  box-shadow: 0 0 20px rgba(168, 200, 161, 0.14);
}

.service-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.accordion {
  border-top: 1px solid rgba(246, 194, 84, 0.2);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(246, 194, 84, 0.18);
  background: transparent;
  padding: 16px 0;
  width: 100%;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.accordion-trigger:hover,
.accordion-trigger[aria-expanded="true"] {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(246, 194, 84, 0.18);
}

.accordion-trigger span::before {
  content: "+";
}

.accordion-trigger[aria-expanded="true"] span::before {
  content: "-";
}

.accordion-panel {
  border-bottom: 1px solid rgba(246, 194, 84, 0.18);
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.accordion-panel p {
  margin: 0;
}

.article-box {
  margin-top: 42px;
  border: 1px solid rgba(246, 194, 84, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(160, 20, 19, 0.17), transparent 25rem),
    linear-gradient(150deg, rgba(45, 5, 8, 0.96), rgba(20, 3, 4, 0.97));
  padding: 24px;
  max-width: 860px;
  box-shadow: var(--shadow);
}

.article-box-header {
  border-bottom: 1px solid rgba(246, 194, 84, 0.22);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.article-box-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-box h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(255, 120, 32, 0.14);
}

.article-box-body p {
  margin: 0;
  color: var(--muted);
}

.content-backlink {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(246, 194, 84, 0.48);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-shadow 180ms ease, text-decoration-color 180ms ease;
}

.content-backlink:hover {
  color: var(--gold-pale);
  text-decoration-color: var(--gold-pale);
  text-shadow: 0 0 14px rgba(246, 194, 84, 0.24);
}

.article-box-body {
  display: grid;
  gap: 22px;
}

.article-box-body section {
  display: grid;
  gap: 12px;
}

.article-box-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.article-box-body ul,
.article-box-body ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.article-box-body li strong {
  color: var(--text);
}

.faq-list details {
  border-top: 1px solid rgba(246, 194, 84, 0.18);
  padding: 12px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid rgba(246, 194, 84, 0.18);
}

.faq-list summary {
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list details p {
  margin-top: 8px;
}

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

.review-list h3 {
  grid-column: 1 / -1;
}

.review-list figure {
  margin: 0;
  border: 1px solid rgba(246, 194, 84, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(77, 8, 12, 0.78), rgba(31, 4, 6, 0.9));
  padding: 16px;
  box-shadow: inset 0 1px rgba(255, 230, 156, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.review-list figure:hover {
  border-color: rgba(246, 194, 84, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 20px rgba(226, 63, 27, 0.09);
  transform: translateY(-2px);
}

.review-list blockquote {
  margin: 0;
  color: var(--text);
}

.review-list figcaption {
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(246, 194, 84, 0.24);
  background: rgba(13, 2, 3, 0.58);
  padding: 24px 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 92, 27, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(255, 217, 118, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 82%, rgba(234, 48, 25, 0.1) 0 1px, transparent 2px);
  background-size: 170px 170px, 230px 230px, 290px 290px;
  content: "";
  pointer-events: none;
  animation: ember-drift 22s linear infinite;
}

.brand-logo,
.entity-avatar {
  animation: royal-pulse 4.8s ease-in-out infinite;
}

.gallery-main {
  animation: ember-glow 6s ease-in-out infinite;
}

.button.primary {
  animation: royal-shimmer 5.5s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  }

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

@keyframes royal-shimmer {
  0%,
  72%,
  100% {
    background-position: 0% center;
  }

  86% {
    background-position: 100% center;
  }
}

@keyframes royal-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(246, 194, 84, 0.06), 0 0 16px rgba(255, 80, 34, 0.14);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(246, 194, 84, 0.12), 0 0 26px rgba(255, 112, 32, 0.28);
  }
}

@keyframes ember-glow {
  0%,
  100% {
    box-shadow: var(--shadow), inset 0 0 42px rgba(255, 111, 30, 0.06);
  }

  50% {
    box-shadow: var(--shadow), 0 0 30px rgba(199, 36, 22, 0.16), inset 0 0 54px rgba(255, 145, 43, 0.11);
  }
}

@keyframes ember-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 170px -170px, -230px -230px, 290px -290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-nav {
    display: none;
  }

  .ajo89-layout {
    grid-template-columns: 1fr;
  }

  .ajo89-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button {
    padding: 9px;
  }

  main {
    padding: 16px 16px 36px;
  }

  .ajo89-layout {
    gap: 22px;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .gallery-nav.previous {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .thumbnail-strip {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .ajo89-panel {
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 16px;
  }
}

@media (max-width: 600px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search {
    grid-column: auto;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .thumbnail-strip {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }
}
