/* ========================================
   CERYS CROSS — ABSENT GODS STUDIOS
   Dark literary aesthetic. Moody. Sharp.
   ======================================== */

:root {
  /* Palette — near-black backgrounds, warm off-whites, blood accent */
  --bg-deep: #0a0a0c;
  --bg-surface: #111114;
  --bg-elevated: #1a1a1f;
  --bg-card: #141418;
  --text-primary: #e8e4df;
  --text-secondary: #9a9590;
  --text-muted: #5a5550;
  --accent: #c4463a;
  --accent-glow: rgba(196, 70, 58, 0.15);
  --accent-subtle: #8a3530;
  --rule: rgba(232, 228, 223, 0.08);
  --rule-accent: rgba(196, 70, 58, 0.3);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Film grain overlay ---- */
.grain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Sections ---- */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 30%, rgba(196, 70, 58, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.studio-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 3rem;
  animation: fadeUp 1s ease 0.8s both;
}

.hero-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.8;
  animation: fadeUp 1s ease 1s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  animation: fadeUp 1s ease 1.4s both, float 3s ease-in-out infinite;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---- About ---- */
.about-text {
  max-width: 700px;
}

.lead {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-text em {
  color: var(--text-primary);
  font-style: italic;
}

/* ---- Projects ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--rule-accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-link-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-subtle);
  letter-spacing: 0.05em;
}

/* ---- Philosophy ---- */
.philosophy {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.philosophy-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  padding: 0 2rem;
}

.philosophy-block blockquote::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}

/* ---- Buddhapunk ---- */
.buddhapunk-text {
  max-width: 600px;
}

.buddhapunk-text p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.buddhapunk-text em {
  color: var(--text-primary);
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-studio {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-right { text-align: left; }
  .philosophy-block blockquote { padding: 0; }
}

@media (max-width: 480px) {
  .hero-quote { font-size: 1rem; }
  .lead { font-size: 1.4rem; }
}
