/* Cute Kitty WAR — splash landing (static hero + scroll sections)
   Layout per Tom 2026-08-05: hero up top, then trailer, recent news,
   and the door to the Command — the modern Command home's below-the-fold
   grammar, worn splash-simple. Parallax rig fossilized 2026-08-05. */

:root {
  --ink: #f7ead8;
  --ink-dim: rgba(247, 234, 216, 0.78);
  --dusk: #241338;
  --blackberry: #1a0f28;
  --panel: #2e1b44;
  --ember: #ff9d45;
  --ember-deep: #d9542b;
  --gold: #ffcf6b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--blackberry);
  overflow-x: hidden;
}

/* ---- the painting (fixed; the first screen scrolls away over it) ---- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%; /* keep the fence line in frame on tall crops */
  user-select: none;
}

/* ---- first screen: the lockup ---- */
.lockup {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vh, 4rem) 1.25rem 3.5rem;
  text-align: center;
  animation: settle 900ms ease-out both;
}

.logo img {
  width: min(46vw, 620px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(20, 8, 40, 0.55));
  user-select: none;
}

.badge {
  margin-top: clamp(0.8rem, 2.5vh, 1.6rem);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(217, 84, 43, 0.92), rgba(160, 44, 36, 0.92));
  border: 1px solid rgba(255, 210, 150, 0.55);
  border-radius: 999px;
  padding: 0.5em 1.5em;
  box-shadow: 0 6px 20px rgba(20, 8, 40, 0.45);
}

.tagline {
  margin-top: clamp(0.7rem, 2vh, 1.2rem);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-style: italic;
  color: var(--ink-dim);
  text-shadow: 0 2px 10px rgba(20, 8, 40, 0.85);
}

.command-link {
  margin-top: clamp(1.1rem, 3.5vh, 2.2rem);
  display: inline-flex;
  flex-direction: column;
  gap: 0.3em;
  align-items: center;
  text-decoration: none;
  color: var(--dusk);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  background: linear-gradient(180deg, #ffd9a0, var(--ember));
  border: 1px solid rgba(120, 50, 20, 0.6);
  border-radius: 14px;
  padding: 0.75em 1.9em;
  box-shadow: 0 8px 24px rgba(20, 8, 40, 0.5);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.command-link .sub {
  font-weight: 400;
  font-size: 0.72em;
  font-style: italic;
  color: rgba(60, 25, 15, 0.85);
}

.command-link:hover,
.command-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 8, 40, 0.6);
}

.command-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.scroll-cue {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 2px 10px rgba(20, 8, 40, 0.9);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ---- below the fold ---- */
.below {
  position: relative;
  z-index: 1;
  background: var(--blackberry);
  padding: clamp(2.5rem, 7vh, 5rem) 1.25rem;
  text-align: center;
}

.below .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.below h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 700;
}

/* first dark section eats the hero's lower edge with a soft top fade */
.trailer-section {
  background: linear-gradient(180deg, rgba(26, 15, 40, 0) 0%, var(--blackberry) 14%);
  padding-top: clamp(4rem, 10vh, 7rem);
}

.trailer-frame {
  position: relative;
  max-width: 860px;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 107, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.trailer-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.trailer-frame .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  padding-left: 6px;
  color: var(--ink);
  background: rgba(20, 8, 40, 0.65);
  border: 2px solid rgba(247, 234, 216, 0.7);
  border-radius: 50%;
}

/* ---- news ---- */
.notices {
  max-width: 860px;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.notices a {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 207, 107, 0.22);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.notices a:hover,
.notices a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 207, 107, 0.6);
}

.notices a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.notices img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(20, 8, 40, 0.6);
  flex-shrink: 0;
}

.notices b {
  display: block;
  font-size: 1.05rem;
}

.notices small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ---- the big door ---- */
.door-copy {
  max-width: 560px;
  margin: 0.9rem auto 0;
  color: var(--ink-dim);
  line-height: 1.5;
}

.command-link.big {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  padding: 0.85em 2.2em;
}

/* ---- footer ---- */
footer {
  position: relative;
  z-index: 1;
  background: var(--blackberry);
  padding: 1.4rem 1.25rem 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 234, 216, 0.6);
  border-top: 1px solid rgba(255, 207, 107, 0.15);
}

footer a {
  color: rgba(255, 207, 107, 0.75);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ---- helpers ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lockup { animation: none; }
  .scroll-cue { animation: none; }
  .command-link, .notices a { transition: none; }
  html { scroll-behavior: auto; }
}

/* portrait phones: bigger logo, keep the cats visible */
@media (max-width: 700px) {
  .logo img { width: min(92vw, 100%); }
  .hero img { object-position: 50% 68%; }
  .notices a { align-items: flex-start; }
}
