/* Liquid Trinity Productions: base styles */

:root {
  --bg: #0b0a09;
  --bg-raised: #141210;
  --text: #f1ece4;
  --text-muted: #a89c8e;
  --accent: #e2a455;
  --accent-deep: #a6602c;
  --border: #2a2521;
  --focus: #f0c389;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle film grain overlay, SVG noise, fixed and inert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  background-size: 200px 200px;
}

h1, h2, h3 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 28px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #1a1512 0%, var(--bg) 70%);
  z-index: 0;
}

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

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waveform {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 48px;
  margin: 2.5rem auto 0;
}

.waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent-deep), var(--accent));
  animation: wave 2.4s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 14px; animation-delay: -2.1s; }
.waveform span:nth-child(2) { height: 26px; animation-delay: -1.8s; }
.waveform span:nth-child(3) { height: 40px; animation-delay: -1.5s; }
.waveform span:nth-child(4) { height: 20px; animation-delay: -1.2s; }
.waveform span:nth-child(5) { height: 34px; animation-delay: -0.9s; }
.waveform span:nth-child(6) { height: 16px; animation-delay: -0.6s; }
.waveform span:nth-child(7) { height: 30px; animation-delay: -0.3s; }
.waveform span:nth-child(8) { height: 18px; animation-delay: 0s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span {
    animation: none;
    transform: scaleY(0.8);
    opacity: 0.85;
  }
}

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.3em;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.8em;
  display: block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 28px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--accent);
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.work-credit {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Player facade */
.player-facade {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1512, #100e0c);
  aspect-ratio: 16 / 5;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  width: 100%;
  color: var(--text);
}

.player-facade:hover {
  border-color: var(--accent-deep);
}

.play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.player-facade:hover .play-button {
  transform: scale(1.06);
}

.play-button svg {
  width: 18px;
  height: 18px;
  fill: #150f0a;
}

.player-facade-label {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.player-frame {
  width: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

.no-player-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
}

/* Divisions */
.division-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.division-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.division-card a.cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}

/* About */
.about p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 1.1rem;
}

.contact-links a {
  color: var(--text);
}

/* Footer */
footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-muted);
}

footer p {
  margin: 0 0 8px;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

/* Privacy page */
.prose {
  max-width: 680px;
  padding-top: 140px;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.4rem;
}

.prose p, .prose li {
  color: var(--text-muted);
}

.prose a {
  color: var(--accent);
}

/* Visually hidden (skip link) */
.visually-hidden {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  background: var(--bg-raised);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 2000;
}
