:root {
  --primary-red: #C8102E;
  --deep-charcoal: #1A1A1A;
  --antique-gold: #D4AF37;
  --off-white: #F5F5F0;
  --medium-gray: #E8E8E8;
  --pure-white: #FFFFFF;
  --deep-red-alt: #8E0B20;
  --muted-gold: #B8943A;
  --dark-gray-alt: #2A2A2A;
  --font-display: 'Impact', 'Anton', 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Roboto Slab', 'Noto Serif SC', serif;
  --font-data: 'DIN Alternate', 'Roboto Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--deep-charcoal);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border-radius: 0;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--antique-gold);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--primary-red);
  color: var(--pure-white);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-red), var(--antique-gold));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--deep-charcoal);
}

.header-topbar {
  background: var(--dark-gray-alt);
  border-bottom: 1px solid rgba(245, 245, 240, 0.08);
}

.header-topbar__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 240, 0.55);
}

.header-topbar__version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.version-badge {
  display: inline-block;
  background: var(--primary-red);
  color: var(--pure-white);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1px 9px;
  transform: skewX(-8deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.desktop-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--antique-gold);
  font-weight: 700;
}

.desktop-status__dot {
  width: 6px;
  height: 6px;
  background: var(--antique-gold);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.header-main {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header-main__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure-white);
  position: relative;
  z-index: 960;
  flex-shrink: 0;
}

.brand-mark__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--primary-red);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transform: skewX(-10deg);
  border: 2px solid var(--antique-gold);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.brand-mark__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark__sub {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted-gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--pure-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-footer {
  background: var(--deep-charcoal);
  color: rgba(245, 245, 240, 0.7);
  margin-top: auto;
}

.footer-accent-line {
  display: flex;
  height: 4px;
}

.footer-accent-line__red {
  width: 75%;
  background: var(--primary-red);
}

.footer-accent-line__gold {
  width: 25%;
  background: var(--antique-gold);
}

.site-footer__inner {
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--pure-white);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.footer-brand__sub {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.8;
  max-width: 32em;
  color: rgba(245, 245, 240, 0.6);
  border-left: 3px solid var(--primary-red);
  padding-left: 14px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pure-white);
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--antique-gold);
  transform: translateY(-50%) skewX(-8deg);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  color: rgba(245, 245, 240, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--antique-gold);
  padding-left: 4px;
}

.footer-gold-badge {
  display: inline-block;
  background: var(--antique-gold);
  color: var(--deep-charcoal);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  transform: skewX(-6deg);
  margin-right: 6px;
}

.footer-contact__line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(245, 245, 240, 0.7);
}

.footer-contact__line a {
  color: rgba(245, 245, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact__line a:hover,
.footer-contact__line a:focus-visible {
  color: var(--antique-gold);
}

.footer-contact__icon {
  color: var(--primary-red);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
}

.footer-contact__line--address {
  align-items: flex-start;
  line-height: 1.7;
  border-left: 1px solid rgba(245, 245, 240, 0.18);
  padding-left: 12px;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245, 245, 240, 0.12);
  padding-top: 20px;
  margin-top: 48px;
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(245, 245, 240, 0.45);
}

.footer-copyright {
  color: rgba(245, 245, 240, 0.55);
}

.footer-icp {
  color: rgba(245, 245, 240, 0.4);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-red);
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--deep-red-alt);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--deep-charcoal);
  background: transparent;
  color: var(--deep-charcoal);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn:hover,
.btn:focus-visible {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--pure-white);
}

.btn--primary {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--pure-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--deep-red-alt);
  border-color: var(--deep-red-alt);
  color: var(--pure-white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--pure-white);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--pure-white);
  color: var(--deep-charcoal);
  border-color: var(--pure-white);
}

.card {
  background: var(--off-white);
  border: 1px solid var(--deep-charcoal);
  box-shadow: 6px 6px 0 var(--deep-charcoal);
  padding: 24px;
}

.card--paper {
  background: var(--pure-white);
  border: 1px solid var(--deep-charcoal);
  box-shadow: 8px 8px 0 rgba(26, 26, 26, 0.12);
}

.card--dark {
  background: var(--dark-gray-alt);
  color: var(--off-white);
  border-color: var(--dark-gray-alt);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 10px;
  background: var(--medium-gray);
  border-left: 3px solid var(--primary-red);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--antique-gold);
  color: var(--deep-charcoal);
  border-left-color: var(--deep-charcoal);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--deep-charcoal);
  margin-bottom: 20px;
}

.section-heading::before {
  content: attr(data-index);
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-red);
  background: var(--off-white);
  border: 1px solid var(--deep-charcoal);
  padding: 2px 9px;
  transform: skewX(-8deg);
  flex-shrink: 0;
}

.section-heading--light {
  color: var(--pure-white);
}

.section-heading--light::before {
  background: var(--deep-charcoal);
  color: var(--antique-gold);
  border-color: var(--pure-white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-family: var(--font-data);
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--deep-charcoal);
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary-red);
}

.breadcrumb__separator {
  color: var(--muted-gold);
}

.breadcrumb [aria-current="page"] {
  color: var(--primary-red);
  font-weight: 700;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--dark-gray-alt);
  border: 1px solid var(--deep-charcoal);
}

.img-frame > img,
.img-frame > picture,
.img-frame > .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-gray-alt) 0%, var(--deep-charcoal) 100%);
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.2em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.nav-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(245, 245, 240, 0.25);
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 950;
    flex-shrink: 0;
  }

  .nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--pure-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 920;
    background: var(--deep-charcoal);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
  }

  .site-nav[data-open] {
    clip-path: inset(0 0 0 0);
  }

  .site-nav::after {
    content: '03';
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-link {
    font-size: 28px;
    padding: 8px 24px;
    color: var(--off-white);
  }

  .nav-link::after {
    left: 24px;
    right: 24px;
    bottom: 2px;
  }

  .brand-mark__badge {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .brand-mark__name {
    font-size: 16px;
  }

  .brand-mark__sub {
    font-size: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-mark__sub {
    display: none;
  }

  .header-main__inner {
    min-height: 60px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .desktop-status__dot {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress__bar {
    transition: none;
  }

  .back-to-top {
    transition: opacity 0.01ms ease, visibility 0.01ms ease, transform 0.01ms ease;
  }
}
