/* Oracle of the Sun — prestige film site */
:root {
  --void: #050403;
  --ink: #f7f1e4;
  --ink-dim: #b7aa94;
  --ink-faint: #6e6558;
  --gold: #d4af6a;
  --gold-hot: #e8c98a;
  --gold-deep: #8a6b2f;
  --line: rgba(212, 175, 106, 0.18);
  --glass: rgba(12, 10, 8, 0.55);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); }

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse 75% 70% at 50% 40%, transparent 40%, rgba(0,0,0,0.55) 100%);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(5,4,3,0.92), rgba(5,4,3,0.4) 70%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(5, 4, 3, 0.88);
  border-bottom-color: var(--line);
}
.nav-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.28em;
}
.nav-mark-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav-mark-sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.42em;
  margin-top: 0.2rem;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-hot); }
.nav-cta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  padding: 0.65rem 1.1rem;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--gold-hot); transform: translateY(-1px); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,4,3,0.97) 0%, rgba(5,4,3,0.55) 38%, rgba(5,4,3,0.25) 62%, rgba(5,4,3,0.45) 100%),
    linear-gradient(90deg, rgba(5,4,3,0.55) 0%, transparent 45%);
}
.hero-frame {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.pill {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  background: rgba(0,0,0,0.25);
}
.pill.subtle { color: var(--ink-dim); border-color: rgba(255,255,255,0.08); }

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.title-line { display: block; }
.title-line.italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-hot);
  padding-left: 0.05em;
}
.hero-tagline {
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--ink-dim);
  margin: 0 0 2.25rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--void);
}
.btn-gold:hover {
  background: var(--gold-hot);
  box-shadow: 0 12px 40px rgba(212, 175, 106, 0.25);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}
.btn-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--void);
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-line {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}
.hero-side {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 3.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.domain-chip {
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
}
@media (max-width: 700px) {
  .hero-side { display: none; }
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: #0a0907;
  overflow: hidden;
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.marquee-track span:nth-child(odd) { color: var(--gold-deep); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.section-lead {
  margin: 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 34rem;
}

/* Film / cinema player */
.film-section { background: linear-gradient(180deg, var(--void), #0b0a08 40%, var(--void)); }
.cinema {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}
.cinema-bezel {
  background: #000;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 40px 100px rgba(0,0,0,0.65),
    0 0 80px rgba(212, 175, 106, 0.06);
  overflow: hidden;
}
.cinema-topbar,
.cinema-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: #0c0b09;
}
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  display: inline-block;
  margin-right: 0.5rem;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.cinema video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1100px;
  margin: 0 auto;
}
.stat {
  background: #0a0907;
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--gold-hot);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* Chapters */
.experience { background: #080706; }
.chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 800px) {
  .chapters { grid-template-columns: 1fr; }
}
.chapter {
  background: #0c0b09;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.chapter:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}
.chapter-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.chapter-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.chapter:hover .chapter-img-wrap img { transform: scale(1.05); }
.chapter-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: rgba(0,0,0,0.55);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
}
.chapter-body { padding: 1.5rem 1.35rem 1.75rem; }
.chapter-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
}
.chapter-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Sanctuary */
.sanctuary { border-block: 1px solid rgba(255,255,255,0.04); }
.sanctuary-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .sanctuary-grid { grid-template-columns: 1fr; }
}
.sanctuary-copy p {
  color: var(--ink-dim);
  margin: 0 0 1.1rem;
}
.lock-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.lock-list li {
  font-size: 0.88rem;
  color: var(--ink-dim);
  padding-left: 1.25rem;
  position: relative;
}
.lock-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}
.sanctuary-visual {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sanctuary-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.sanctuary-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sanctuary-caption span:first-child { color: var(--gold); }

/* Gallery */
.gallery { background: #070605; }
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 1200px;
  margin: 0 auto;
}
.g-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  aspect-ratio: 1;
}
.g-item.g-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s;
  filter: saturate(0.92) contrast(1.05);
}
.g-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.08);
}
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.g-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 800px) {
  .gallery-mosaic { grid-template-columns: 1fr 1fr; }
  .g-item.g-wide { grid-column: span 2; }
}

/* Domains */
.domains-section { background: linear-gradient(180deg, #070605, #0c0b09); }
.domain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .domain-cards { grid-template-columns: 1fr; }
}
.domain-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}
.domain-card:hover {
  border-color: var(--line);
  background: rgba(212, 175, 106, 0.04);
  transform: translateY(-3px);
}
.domain-card.featured {
  border-color: rgba(212, 175, 106, 0.35);
  background: linear-gradient(145deg, rgba(212,175,106,0.08), transparent 60%);
}
.d-label {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.d-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  word-break: break-all;
}
.d-desc {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Contact */
.contact {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(5rem, 12vw, 8rem);
}
.contact-panel {
  text-align: center;
  max-width: 36rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,106,0.08), transparent 55%),
    #0a0907;
}
.contact-panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1.5rem;
}
.contact-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
}
.contact-mail {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--gold-hot);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
  margin-bottom: 0.75rem;
}
.contact-mail:hover { border-bottom-color: var(--gold); }
.contact-tel, .contact-loc {
  margin: 0.35rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: #050403;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}
.footer-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-copy, .footer-domains {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.footer-domains { color: var(--gold-deep); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection {
  background: rgba(212, 175, 106, 0.35);
  color: var(--ink);
}

/* Letterbox film bars on large screens */
@media (min-width: 1400px) {
  .cinema-bezel {
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.8),
      0 50px 120px rgba(0,0,0,0.7),
      0 0 100px rgba(212, 175, 106, 0.08);
  }
}

/* Gold hairline under section heads */
.section-head h2 {
  position: relative;
  padding-bottom: 1rem;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-img, .marquee-track, .scroll-line, .rec-dot { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
