/* ==========================================================================
   UMBRA DREAM - 2026 (FULLSCREEN CINEMATIC EDITION)
   Aesthetic: Full-Bleed Imagery with Floating Transparent Typography & Registry Field
   Protocol: Premium Utilitarian Minimalism & Editorial UI
   ========================================================================== */

:root {
  /* Core Colors */
  --color-canvas: #090A0C;
  
  /* Typography Colors */
  --color-text-primary: #F5F4F0;
  --color-text-secondary: #C2C5CD;
  --color-text-muted: rgba(243, 242, 238, 0.55);
  
  /* SKILL.md Section 3 Typographic Architecture */
  --font-serif: 'Newsreader', 'Playfair Display', 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist', 'SF Pro Display', 'Helvetica Neue', 'Switzer', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', monospace;
  
  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  
  /* Easing */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  position: relative;
}

/* ==========================================================================
   Fullscreen Edge-to-Edge Visual Stage
   ========================================================================== */

.fullscreen-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #060708;
}

.fullscreen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.04) brightness(0.98);
  transition: transform 1.2s var(--ease-editorial);
  will-change: transform;
}

/* Cinematic Tonal Scrim for Readability of Floating Text */
.fullscreen-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 65% 25%, rgba(9, 10, 12, 0.05) 0%, rgba(9, 10, 12, 0.35) 55%, rgba(9, 10, 12, 0.75) 100%),
    linear-gradient(180deg, rgba(9, 10, 12, 0.45) 0%, rgba(9, 10, 12, 0) 25%, rgba(9, 10, 12, 0.3) 50%, rgba(9, 10, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(9, 10, 12, 0.8) 0%, rgba(9, 10, 12, 0.45) 40%, rgba(9, 10, 12, 0.08) 100%);
}

/* Film Grain Texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Viewport Overlay UI Layout
   ========================================================================== */

.viewport-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Top-Left Corner Brand Cluster */
.fullscreen-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  user-select: none;
  background: rgba(12, 14, 17, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease;
}

.brand-cluster:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.brand-logo {
  display: block;
  width: clamp(24px, 2.8vh, 28px);
  height: auto;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 0 6px rgba(222, 143, 159, 0.25));
  transition: transform 0.3s var(--ease-editorial);
}

.brand-cluster:hover .brand-logo {
  transform: rotate(-4deg) scale(1.08);
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

/* Bottom Row Layout */
.viewport-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* ==========================================================================
   Floating Transparent Text Block in Bottom-Left
   ========================================================================== */

.bottom-left-floating-block {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 350;
  line-height: 1.1; /* SKILL.md Section 3: tight 1.1 line-height */
  letter-spacing: -0.035em; /* SKILL.md Section 3: tight tracking between -0.02em and -0.04em */
  color: var(--color-text-primary);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

.card-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6; /* SKILL.md Section 3: generous 1.6 line-height for legibility */
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
  max-width: 500px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

/* Integrated Notice Registry Form */
.notice-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-line-wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
}

.notice-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  background: rgba(12, 14, 17, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notice-input::placeholder {
  color: rgba(243, 242, 238, 0.4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.notice-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(12, 14, 17, 0.85);
}

.notice-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--color-text-primary);
  color: var(--color-canvas);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.notice-btn:hover {
  background-color: #FFFFFF;
}

.notice-btn:active {
  transform: scale(0.98);
}

.notice-feedback {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-height: 1.1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.notice-feedback.success {
  color: #66BB70;
}

.notice-feedback.error {
  color: #E8A2B5;
}

/* Bottom-Right Coordinates */
.bottom-right-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-bottom: 0.5rem;
  user-select: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.dot-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Micro-Animations
   ========================================================================== */

.animate-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealContent 0.75s var(--ease-editorial) forwards;
  animation-delay: calc(var(--delay, 0) * 120ms);
}

@keyframes revealContent {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animate-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .fullscreen-img {
    transition: none;
  }
}

/* Responsive Handling */
@media (max-width: 768px) {
  .viewport-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .bottom-left-floating-block {
    max-width: 100%;
  }
  
  .input-line-wrap {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .viewport-overlay {
    padding: 1.25rem;
  }
  
  .input-line-wrap {
    flex-direction: column;
  }
  
  .notice-btn {
    width: 100%;
  }
  
  .bottom-right-meta {
    font-size: 0.62rem;
  }
}
