/* ============================================
   RGT STUDIO — shared stylesheet
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #080808;
  --dark:  #0f0d0d;
  --off-white: #f0ece4;
  --cream: #e8d8d0;
  --red: #c0221a;
  --red-bright: #e02820;
  --red-dim: #7a1510;
  --text-muted: #5a4a48;
  --border: rgba(192,34,26,0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; }

/* Custom cursor */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--red-bright); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--red); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease; opacity: 0.6;
}
body:hover .cursor-ring { opacity: 1; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
}
nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
  pointer-events: none;
}
.nav-logo { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-svg { height: 32px; width: auto; }
.nav-logo-text {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.3em;
  color: rgba(240,236,228,0.5); text-transform: uppercase;
  border-left: 1px solid var(--border); padding-left: 12px;
}
.nav-links { display: flex; gap: 36px; list-style: none; position: relative; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  opacity: 0.6; transition: opacity 0.3s, color 0.3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--red-bright); }
.nav-toggle { display: none; }

/* PAGE HEADER (for subpages) */
.page-header {
  padding: 180px 48px 80px;
  position: relative;
  background: linear-gradient(160deg, #080808 0%, #110a09 60%, #080808 100%);
  overflow: hidden;
}
.page-header-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35; pointer-events: none;
}
.page-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.35em;
  color: var(--red); text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px; position: relative;
}
.page-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--red); }
.page-header h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 300; line-height: 1.05;
  letter-spacing: -0.02em; max-width: 800px; position: relative;
}
.page-header h1 em { font-style: italic; color: var(--red-bright); }
.page-header-desc {
  font-size: 19px; font-weight: 300; color: var(--text-muted);
  max-width: 560px; line-height: 1.7; margin-top: 28px; position: relative;
}

/* SECTION BASE */
section { padding: 120px 48px; }
.section-label {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.35em;
  color: var(--red); text-transform: uppercase; margin-bottom: 64px;
  display: flex; align-items: center; gap: 20px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; margin-bottom: 16px; }
h2 em { font-style: italic; color: var(--red-bright); }

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

/* FOOTER */
footer {
  padding: 40px 48px; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
}
.footer-left { display: flex; align-items: center; gap: 20px; }
.footer-logo svg { height: 22px; width: auto; }
.footer-copy {
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em;
  color: var(--text-muted); text-transform: uppercase;
}
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a {
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.2em;
  color: var(--text-muted); text-decoration: none; text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--red-bright); }

@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .page-header { padding: 140px 24px 60px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}

/* ============================================
   RGT — SCROLL REVEAL & CINEMATIC EFEKTY
   ============================================ */

/* Reveal na scroll — prvky se jemně vynoří */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Postupné odhalování prvků ve skupině (dlaždice, karty) */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* Cinematic náběh celé stránky */
.page-fade {
  animation: pageIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fade-out při odchodu na jinou stránku */
body.leaving {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Jemné "dýchání" dlaždic — pomalý pohyb pozadí */
.pillar-card {
  overflow: hidden;
}
.pillar-card > * { position: relative; z-index: 2; }

/* Oživení dlaždic při najetí / dotyku */
@media (hover: hover) {
  .pillar-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(224,40,32,0.06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    z-index: 1; pointer-events: none;
  }
  .pillar-card:hover::after { transform: translateX(100%); }
}

/* Respekt k lidem citlivým na pohyb */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .page-fade, body.leaving { animation: none !important; transition: none !important; opacity: 1 !important; }
  .pillar-card::after { display: none !important; }
}
