:root {
  --ash-bg: #121212;
  --ash-surface: #131313;
  --ash-surface-container: #20201f;
  --ash-surface-low: #1c1b1b;
  --ash-surface-lowest: #0e0e0e;
  --ash-primary: #ffb4a8;
  --ash-primary-container: #8b0000;
  --ash-secondary: #ffb4aa;
  --ash-secondary-container: #812d26;
  --ash-tertiary: #e9c400;
  --ash-on-surface: #e5e2e1;
  --ash-on-surface-variant: #e3beb8;
  --ash-outline: #aa8984;
  --ash-outline-variant: #5a403c;
  
  --ash-font-heading: 'Libre Caslon Text', Georgia, serif;
  --ash-font-body: 'Source Serif 4', 'Times New Roman', serif;
  --ash-font-mono: 'Space Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--ash-bg);
  color: var(--ash-on-surface);
  font-family: var(--ash-font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ash-primary);
  outline-offset: 4px;
}

.ashroad-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header & Navbar */
.ashroad-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(90, 64, 60, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.ashroad-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.ashroad-brand {
  font-family: var(--ash-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ash-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.ashroad-nav-links {
  display: flex;
  gap: 32px;
}

.ashroad-nav-links a {
  color: var(--ash-on-surface-variant);
  font-family: var(--ash-font-heading);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ashroad-nav-links a:hover {
  color: var(--ash-primary);
}

.ashroad-menu-btn {
  display: none;
  background: rgba(19, 19, 19, 0.8);
  border: 1px solid rgba(90, 64, 60, 0.4);
  color: var(--ash-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Drawer Menu */
.ashroad-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(19, 19, 19, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ashroad-drawer.open {
  transform: translateX(0);
}

.ashroad-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ash-outline-variant);
  color: var(--ash-primary);
  border-radius: 50%;
  cursor: pointer;
}

.ashroad-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.ashroad-drawer-links a {
  color: var(--ash-on-surface-variant);
  font-family: var(--ash-font-heading);
  font-size: 24px;
  text-decoration: none;
}

.ashroad-drawer-links a:hover {
  color: var(--ash-primary);
}

/* Buttons */
.ashroad-btn {
  background: linear-gradient(180deg, #8b0000 0%, #4a0404 100%);
  border: 1px solid var(--ash-outline-variant);
  color: var(--ash-primary);
  font-family: var(--ash-font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
}

.ashroad-btn:hover:not(:disabled) {
  border-top: 1px solid var(--ash-tertiary);
  color: var(--ash-tertiary);
  box-shadow: inset 0 0 20px rgba(139, 0, 0, 0.8);
}

.ashroad-btn:disabled,
.ashroad-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #2a2a2a;
  border-color: #5a403c;
  color: var(--ash-on-surface-variant);
  box-shadow: none;
}

.ashroad-btn-lg {
  font-size: 18px;
  padding: 16px 36px;
  font-weight: 700;
}

/* Hero Section */
.ashroad-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(90, 64, 60, 0.3);
  overflow: hidden;
  text-align: center;
  padding-block: 80px 60px;
}

.ashroad-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
}

.ashroad-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.ashroad-hero h1 {
  font-family: var(--ash-font-heading);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ash-primary);
  text-transform: uppercase;
  margin: 0 0 16px;
  filter: drop-shadow(0 5px 15px rgba(139, 0, 0, 0.6));
}

.ashroad-hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--ash-on-surface-variant);
  margin-bottom: 32px;
}

.ashroad-tag {
  display: inline-block;
  background-color: var(--ash-primary-container);
  color: var(--ash-on-surface);
  font-family: var(--ash-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--ash-outline-variant);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* Story Section */
.ashroad-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 80px;
}

@media (min-width: 768px) {
  .ashroad-story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ashroad-card {
  background-color: #1a1a1a;
  border: 1px solid #4a0404;
  border-left: 4px solid var(--ash-primary-container);
  padding: 24px;
  position: relative;
}

.ashroad-card:hover {
  box-shadow: inset 0 0 15px rgba(139, 0, 0, 0.4);
  border-color: var(--ash-primary-container);
}

.ashroad-story-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border: 1px solid rgba(90, 64, 60, 0.5);
  display: block;
  margin: 0 auto;
}

/* Features Section */
.ashroad-features-section {
  background-color: var(--ash-surface-low);
  border-y: 1px solid rgba(90, 64, 60, 0.3);
  padding-block: 80px;
}

.ashroad-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .ashroad-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ashroad-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ashroad-icon-box {
  color: var(--ash-primary);
  font-size: 36px;
  margin-bottom: 12px;
}

/* Timeline / Cycle Section */
.ashroad-timeline-section {
  padding-block: 80px;
}

.ashroad-timeline {
  position: relative;
  border-left: 2px solid rgba(90, 64, 60, 0.4);
  margin-left: 20px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.ashroad-timeline-node {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--ash-bg);
  border: 2px solid var(--ash-primary);
  border-radius: 50%;
}

.ashroad-timeline-item.active .ashroad-timeline-node {
  background-color: var(--ash-primary);
  box-shadow: 0 0 10px rgba(255, 180, 168, 0.8);
}

/* Screenshots Gallery */
.ashroad-screenshots-section {
  padding-block: 80px;
}

.ashroad-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .ashroad-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ashroad-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ashroad-gallery-card {
  background: var(--ash-surface-low);
  border: 1px solid var(--ash-outline-variant);
  border-left: 4px solid var(--ash-primary-container);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  font: inherit;
  color: inherit;
  text-align: inherit;
  width: 100%;
}

.ashroad-gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--ash-primary);
}

.ashroad-gallery-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid var(--ash-outline-variant);
  border-radius: 4px;
}

.ashroad-gallery-caption {
  font-family: var(--ash-font-mono);
  font-size: 13px;
  color: var(--ash-primary);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

/* Lightbox Modal */
.ashroad-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ashroad-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.ashroad-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ashroad-lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--ash-primary);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
}

.ashroad-lightbox-caption {
  margin-top: 16px;
  font-family: var(--ash-font-mono);
  font-size: 14px;
  color: var(--ash-primary);
  text-align: center;
  text-transform: uppercase;
}

.ashroad-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  border: 1px solid var(--ash-outline-variant);
  color: var(--ash-primary);
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Image Container */
.ashroad-hero-img-wrap {
  width: 100%;
  max-width: 900px;
  margin: 32px auto 0;
  padding: 12px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--ash-outline-variant);
  border-radius: 4px;
}

.ashroad-hero-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(90, 64, 60, 0.5);
}

/* Footer */
.ashroad-footer {
  border-top: 1px solid rgba(90, 64, 60, 0.3);
  background: var(--ash-surface-lowest);
  padding-block: 48px;
}

.ashroad-footer-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .ashroad-footer-shell {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ashroad-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-family: var(--ash-font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.ashroad-footer-links a {
  color: var(--ash-on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ashroad-footer-links a:hover {
  color: var(--ash-tertiary);
}

.ashroad-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ash-primary);
  font-family: var(--ash-font-mono);
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 16px;
}

/* Reveal Animations & Reduced Motion Safety */
.ashroad-reveal {
  opacity: 1;
  transform: none;
}

body.js-enabled .ashroad-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-enabled .ashroad-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.js-enabled .ashroad-reveal,
  .ashroad-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .ashroad-nav-links,
  .ashroad-nav-action {
    display: none;
  }

  .ashroad-menu-btn {
    display: flex;
  }

  .ashroad-hero {
    min-height: 90dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
  }
}
