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

body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Keyboard "skip to content" link — hidden until focused. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Visible focus indicator for keyboard users (mouse clicks stay clean). */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 80, 80, 0.9);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The main region is only a programmatic focus target for the skip link. */
.content:focus {
  outline: none;
}

.navbar {
  position: relative;
  background-color: #050505;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 35%,
      rgba(0, 0, 0, 0.6) 55%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    linear-gradient(
      27deg,
      #0a0a0a 5px,
      transparent 5px,
      transparent 10px,
      #0a0a0a 10px,
      #0a0a0a 15px,
      transparent 15px
    ),
    linear-gradient(
      207deg,
      #0a0a0a 5px,
      transparent 5px,
      transparent 10px,
      #0a0a0a 10px,
      #0a0a0a 15px,
      transparent 15px
    ),
    linear-gradient(
      27deg,
      #141414 4px,
      transparent 4px,
      transparent 9px,
      #141414 9px,
      #141414 14px,
      transparent 14px
    ),
    linear-gradient(
      207deg,
      #141414 4px,
      transparent 4px,
      transparent 9px,
      #141414 9px,
      #141414 14px,
      transparent 14px
    ),
    linear-gradient(90deg, #181818 50%, #101010 50%);
  background-size: auto, 8px 16px, 8px 16px, 8px 16px, 8px 16px, 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-name {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(
    180deg,
    #f5f5f5 0%,
    #cfcfcf 35%,
    #6e6e6e 55%,
    #b8b8b8 75%,
    #efefef 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  padding-bottom: 0.25rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(220, 30, 30, 0) 10%,
    rgba(255, 60, 60, 0.95) 50%,
    rgba(220, 30, 30, 0) 90%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgba(255, 40, 40, 0.7);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a,
.nav-links .nav-button {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .nav-button:hover {
  color: #fff;
}

/* Reset the toggle <button> so it reads as a nav link. */
.nav-button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.content {
  flex: 1;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  /* [left spacer] [logo] [right spacer] [contact panel] */
  grid-template-columns: 1fr 40vw 1fr 0fr;
  gap: 0;
  align-items: start;
  transition: grid-template-columns 0.6s ease;
}

.content.is-active {
  /* spacers collapse + logo column shrinks + panel grows, all interpolated
     together so the logo slides left and shrinks at the same time */
  grid-template-columns: 0fr 22vw 0fr 1fr;
}

.logo {
  grid-column: 2;
  width: 100%;
  height: auto;
  display: block;
}

.contact-panel {
  grid-column: 4;
  position: relative;
  overflow: hidden;
  opacity: 0;
  color: #cfcfcf;
  padding: 1rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: translateX(60px);
  /* exit: slide back out to the right immediately */
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.content.is-active .contact-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  /* enter: wait for the logo/column to open, then slide in from the right */
  transition: opacity 0.45s ease 0.45s, transform 0.55s ease 0.45s;
}

.contact-title {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: 0.18em;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #e8e8e8;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-label {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #888;
  min-width: 5rem;
}

.contact-line a {
  color: #e8e8e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-line a:hover {
  color: #fff;
}

.contact-placeholder {
  color: #555;
}

.contact-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.contact-close:hover {
  color: #fff;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #777;
}

.footer a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-sep {
  margin: 0 0.5rem;
  color: #444;
}

/* Long-form legal / content pages */
.page {
  flex: 1;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  color: #cfcfcf;
  line-height: 1.7;
}

.legal h1 {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.legal .updated {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8e8e8;
  margin: 2rem 0 0.75rem;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0 0 1rem 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: #e8e8e8;
  transition: color 0.2s ease;
}

.legal a:hover {
  color: #fff;
}

/* Respect users who prefer reduced motion: drop the slide/fade animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
