/* ==========================================
   ACT FIVE — THEME CSS
   Film-grade dark aesthetic
   ========================================== */

:root {
  --bg: #0A0A0F;
  --bg-mid: #111118;
  --bg-card: #16161D;
  --fg: #E8DDD0;
  --fg-muted: #8A857C;
  --gold: #C8A96E;
  --gold-dim: rgba(200, 169, 110, 0.15);
  --text-dim: #5A5650;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 8vw 60px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,169,110,0.06) 0%, transparent 70%),
    var(--bg);
}

.hero::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 36px;
  opacity: 0.7;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

.hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

/* ---- SECTION LABEL ---- */
.section-label {
  padding: 48px 8vw 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ---- WORK ---- */
.work-section { padding: 0 8vw 100px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.work-item {
  position: relative;
  overflow: hidden;
}

.work-item--wide { grid-column: 1 / -1; }

.work-img {
  min-height: 340px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.work-item--wide .work-img { min-height: 480px; }

.work-item:hover .work-img { transform: scale(1.03); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.work-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.work-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 420px;
}

.work-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.work-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: letter-spacing 0.2s ease;
}

.work-link:hover { letter-spacing: 0.25em; }

/* ---- EDGE ---- */
.edge-section {
  background: var(--bg-mid);
  padding: 100px 8vw;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.edge-inner { max-width: 960px; }

.edge-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.edge-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.edge-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.edge-text {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
}

.edge-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edge-stat {
  border-left: 1px solid var(--gold);
  padding-left: 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- CLOSING ---- */
.closing-section {
  padding: 120px 8vw;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200,169,110,0.05) 0%, transparent 70%),
    var(--bg);
}

.closing-inner { max-width: 720px; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 520px;
}

.closing-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-link:hover { border-color: var(--gold); }

.contact-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.contact-location {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 8vw;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 60px 6vw 50px; }
  .hero-scroll-hint { display: none; }

  .work-section { padding: 0 6vw 80px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--wide { grid-column: 1; }
  .work-item--wide .work-img { min-height: 300px; }
  .work-item:not(.work-item--wide) .work-img { min-height: 260px; }

  .edge-section { padding: 80px 6vw; }
  .edge-body { grid-template-columns: 1fr; gap: 36px; }

  .closing-section { padding: 80px 6vw; }
  .closing-contact { flex-wrap: wrap; gap: 12px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .closing-headline { font-size: 2rem; }
  .work-img { min-height: 240px !important; }
}