:root {
  color-scheme: dark;
}

body {
  background-color: #0d0d0f;
  line-height: 1.6;
}

body.locked {
  overflow: hidden;
}

*::selection {
  background: rgba(234, 114, 3, 0.3);
  color: #fff;
}

.clip-pentagon {
  clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
}

.cosmic-bg {
  background: radial-gradient(circle at 35% 20%, rgba(28, 28, 32, 0.9) 0%, rgba(12, 12, 14, 0.95) 45%, rgba(8, 8, 10, 1) 100%);
}

.dark .cosmic-bg {
  background: radial-gradient(circle at 35% 20%, #1a1a1f 0%, #0e0e11 45%, #0a0a0c 100%);
}

.texture-overlay {
  background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuAacsLPp4uxl9IgYofEUWMBlj4YPbWfvgJP6DEom7I7_IbdYek4SCZDdOBCwnabNbOTHGgcMMXjhMVLSD_LB6FOtGMo7zuJ1a38bGJs83-nDoFHtLzFW24RkuwHcopukXzg0GfUll9iTPeyzpxnGcseBkbLNa5dZhV_6S26XlWnXPbpj_pMUGwauTzwkiJWZMJMa08hpVd85cZtf-6IQRAg9l6q14kMyc5-OWmNQULlWq4N52b3aYBbE_uvib-TZNxyrbQfRpxgFu4);
}

.text-balance {
  text-wrap: balance;
}

.calm-card {
  background: rgba(22, 22, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.calm-card:hover {
  transform: translateY(-4px);
  background: rgba(26, 26, 30, 0.95);
  border-color: rgba(234, 114, 3, 0.25);
  box-shadow: 0 28px 70px -42px rgba(234, 114, 3, 0.28);
}

.calm-card__label {
  letter-spacing: 0.08em;
}

.soft-button {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -18px rgba(234, 114, 3, 0.5);
}

.section-shell {
  position: relative;
  isolation: isolate;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(234, 114, 3, 0.05), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.04), transparent 32%);
  opacity: 0.6;
  z-index: -1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .delay-100,
  .delay-200,
  .delay-300,
  .delay-400 {
    animation: none !important;
  }
  * { transition: none !important; }
}

.image-mute {
  filter: grayscale(100%) contrast(1.06) brightness(0.9);
  transition: filter 0.5s ease;
}

.image-mute:hover {
  filter: grayscale(88%) contrast(1.05) brightness(0.98);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(234, 114, 3, 0.35), rgba(255, 255, 255, 0.05));
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #0d0d0f;
  border: 2px solid rgba(234, 114, 3, 0.6);
  left: 0.9rem;
  top: 0.75rem;
  box-shadow: 0 0 0 10px rgba(234, 114, 3, 0.1);
}

@media (min-width: 768px) {
  .timeline-item::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px -48px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 114, 3, 0.22);
  box-shadow: 0 26px 60px -44px rgba(234, 114, 3, 0.3);
}

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.access-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(234, 114, 3, 0.08), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.06), transparent 32%),
    rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(16px);
}

.access-panel {
  position: relative;
  max-width: 480px;
  width: min(90vw, 520px);
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.96), rgba(12, 12, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 28px 70px -40px rgba(0, 0, 0, 0.8);
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.access-panel h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.access-panel p {
  color: #a1a1aa;
  margin: 0;
  font-size: 0.95rem;
}

.access-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e5e5e5;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-form {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.access-input {
  width: 100%;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.access-input:focus {
  outline: none;
  border-color: rgba(234, 114, 3, 0.6);
  box-shadow: 0 0 0 3px rgba(234, 114, 3, 0.12);
}

.access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 114, 3, 0.35);
  background: linear-gradient(90deg, #ea7203, #d56703);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.access-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 32px -18px rgba(234, 114, 3, 0.5);
}

.access-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #73737a;
}

.access-hint span {
  color: #e5e5e5;
}

.access-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #fca5a5;
  min-height: 1.2em;
}

.access-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0d0f; }
::-webkit-scrollbar-thumb { background: #2d2d30; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3d3d40; }
