:root {
  /* Crimson Glass Beauty Palette - Strictly No Blue */
  --bg-canvas: #3b0d1a;
  --bg-surface: #450a0a;
  --bg-alternate: #2a0812;
  --accent-primary: #e8d5a8;
  --text-primary: #fff8f0;
  --text-muted: #eacac6;
  --border-subtle: rgba(232, 213, 168, 0.15);
  
  --glass-backdrop: blur(16px) saturate(180%);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  
  --max-width: 1100px;
  --content-width: 70ch;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1.5rem; }

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Layout Wrappers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

section {
  padding: 6rem 0;
  position: relative;
}

.band-alt {
  background-color: var(--bg-alternate);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding: 8rem 0;
  margin: -3vw 0;
  z-index: 1;
}

.band-alt > .container {
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: relative;
  background: var(--bg-canvas);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.4s var(--ease-kinetic);
}

.main-nav a:hover::after, .main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons & Links */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 1rem 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 213, 168, 0.2);
}

.text-link {
  color: var(--accent-primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.4s var(--ease-kinetic);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Images & Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Strict square requirement */
}

.avatar {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Cards (Translucent) */
.glass-card {
  background: rgba(69, 10, 10, 0.4);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 0; /* Strict square requirement */
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation);
  background: rgba(69, 10, 10, 0.6);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-canvas) 0%, rgba(59, 13, 26, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-facts {
  margin-top: 2rem;
  background: rgba(42, 8, 18, 0.7);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-primary);
}

.hero-facts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-facts li {
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-facts li::before {
  content: '✦';
  font-size: 0.8rem;
}

/* Grids & Components */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.masonry {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-surface);
}

.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background-color: var(--accent-primary);
}

.scroll-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--border-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-btn::after {
  content: '+';
  color: var(--accent-primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-btn[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
}

.accordion-content-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

input, textarea, select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  font-family: inherit;
  border-radius: 0;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.preview-box {
  background: #000;
  padding: 2rem;
  color: #0f0;
  font-family: monospace;
  white-space: pre-wrap;
  min-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--accent-primary);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .main-nav.is-open {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .mobile-toggle {
    display: block;
  }

  .grid-2, .grid-3, .tool-layout {
    grid-template-columns: 1fr;
  }
  
  .masonry { column-count: 1; }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .band-alt {
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
    padding: 6rem 0;
  }
}

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