/* =============================================
   MYTHERA — Immersive Click-Based Experience
   ============================================= */

:root {
  --color-bg:          #080c0a;
  --color-bg-deep:     #050807;
  --color-glass:       rgba(8, 14, 12, 0.65);
  --color-glass-light: rgba(12, 20, 17, 0.5);
  --color-glass-edge:  rgba(80, 100, 90, 0.12);
  --color-text:        #d8dcd9;
  --color-text-body:   #b0b8b4;
  --color-text-dim:    #8a9490;
  --color-text-muted:  #5e6b66;
  --color-text-bright: #f2f4f2;
  --color-silver:      #cdd4d0;
  --color-accent:      #c4a96e;
  --color-accent-dim:  #8a7650;
  --color-border:      rgba(80, 100, 90, 0.18);
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --transition-view: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-serif); background: var(--color-bg); color: var(--color-text); line-height: 1.75; overflow-x: hidden; }
::selection { background: rgba(196, 169, 110, 0.25); color: var(--color-text-bright); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }


/* ============================================
   ATMOSPHERE
   ============================================ */
.atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.atmosphere__top { position: absolute; top: 0; left: 0; right: 0; height: 12vh; background: linear-gradient(to bottom, rgba(8,12,10,0.6), transparent); }
.atmosphere__bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 8vh; background: linear-gradient(to top, rgba(8,12,10,0.5), transparent); }


/* ============================================
   NAV
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 3rem; background: linear-gradient(to bottom, rgba(8,12,10,0.95), rgba(8,12,10,0.3) 80%, transparent); transition: opacity 0.6s; }
.nav__logo { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo-img { width: 22px; height: 22px; object-fit: contain; opacity: 0.5; transition: opacity 0.6s; }
.nav__logo:hover .nav__logo-img { opacity: 0.8; }
.nav__wordmark { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.4em; color: var(--color-silver); }
.nav__links { display: flex; gap: 2rem; }
.nav__link { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-dim); transition: color 0.6s; }
.nav__link:hover { color: var(--color-text-bright); }




/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

.hero__image {
  position: absolute; inset: -6% -3%;
  background: url('public/images/mythera-5.png') center 35% / cover no-repeat;
  will-change: transform;
}

.hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(8,12,10,0.35) 100%),
    linear-gradient(180deg, rgba(8,12,10,0.1) 0%, transparent 25%, transparent 55%, rgba(8,12,10,0.85) 100%);
}

/* Floating particles */
.hero__particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px 2px rgba(196,169,110,0.4);
  opacity: 0;
}

.particle--1 { left: 15%; top: 30%; animation: particleFloat 8s 0s ease-in-out infinite; }
.particle--2 { left: 80%; top: 25%; animation: particleFloat 10s 1.5s ease-in-out infinite; background: var(--color-silver); box-shadow: 0 0 8px 2px rgba(205,212,208,0.4); }
.particle--3 { left: 25%; top: 65%; animation: particleFloat 9s 3s ease-in-out infinite; }
.particle--4 { left: 70%; top: 70%; animation: particleFloat 11s 2s ease-in-out infinite; background: var(--color-silver); box-shadow: 0 0 8px 2px rgba(205,212,208,0.4); }
.particle--5 { left: 45%; top: 20%; animation: particleFloat 7s 4s ease-in-out infinite; width: 5px; height: 5px; }
.particle--6 { left: 55%; top: 75%; animation: particleFloat 12s 0.5s ease-in-out infinite; background: var(--color-silver); box-shadow: 0 0 8px 2px rgba(205,212,208,0.4); }
.particle--7 { left: 10%; top: 50%; animation: particleFloat 9s 2.5s ease-in-out infinite; }
.particle--8 { left: 88%; top: 48%; animation: particleFloat 10s 3.5s ease-in-out infinite; background: var(--color-silver); box-shadow: 0 0 8px 2px rgba(205,212,208,0.4); }

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: 1; }
  50%  { opacity: 0.6; transform: translateY(-50px) scale(1.8); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* Orbit rings around title */
.hero__orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 55vw, 700px);
  height: clamp(340px, 55vw, 700px);
  pointer-events: none;
}

.hero__orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.hero__orbit-ring--1 {
  border-top-color: rgba(196,169,110,0.35);
  border-right-color: rgba(196,169,110,0.12);
  box-shadow: 0 0 20px rgba(196,169,110,0.08);
  animation: orbitSpin 25s linear infinite;
}

.hero__orbit-ring--2 {
  inset: 14%;
  border-bottom-color: rgba(205,212,208,0.3);
  border-left-color: rgba(205,212,208,0.1);
  box-shadow: 0 0 20px rgba(205,212,208,0.06);
  animation: orbitSpin 35s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__content { position: relative; z-index: 2; padding: 0 2rem; will-change: transform; }

.hero__wordmark-img {
  width: clamp(260px, 44vw, 560px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 80px rgba(196,169,110,0.08)) drop-shadow(0 4px 30px rgba(8,12,10,0.4));
}

.hero__headline {
  font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 300;
  color: var(--color-text-bright); letter-spacing: 0.03em; line-height: 1.7;
  max-width: 40ch; margin: 2rem auto 0;
  text-shadow: 0 2px 20px rgba(8,12,10,0.9), 0 0 50px rgba(8,12,10,0.6);
}

.hero__cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  padding: 0.8rem 2.4rem;
  transition: color 0.6s, border-color 0.6s, box-shadow 0.6s;
  text-shadow: 0 2px 20px rgba(8,12,10,0.9);
}

.hero__cta:hover {
  color: var(--color-text-bright);
  border-color: rgba(196,169,110,0.35);
  box-shadow: 0 4px 24px rgba(196,169,110,0.08);
}

.hero__scroll-cue {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; z-index: 2;
  animation: scrollPulse 5s ease-in-out infinite;
}
.hero__scroll-text { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-text-dim); }
.hero__scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--color-text-muted), transparent); }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%); }
  50% { opacity: 0.15; transform: translateX(-50%) translateY(5px); }
}


/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: -1;
}

.section-divider::before {
  bottom: 100%;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.section-divider::after {
  top: 100%;
  background: linear-gradient(to bottom, var(--color-bg), transparent);
}

.section-divider__line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  position: relative;
  overflow: hidden;
}

.section-divider__line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.section-divider__line::after {
  content: '';
  position: absolute;
  top: -1px;
  height: 3px;
  width: 40px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #cdd4d0, var(--color-accent), #cdd4d0, transparent);
  filter: blur(1px);
  opacity: 0;
}

.section-divider__line--left::after {
  animation: magicLineLeft 4s ease-in-out infinite;
}

.section-divider__line--right::after {
  animation: magicLineRight 4s ease-in-out infinite;
}

@keyframes magicLineLeft {
  0%   { right: -40px; opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { right: calc(100% + 10px); opacity: 0.9; }
  65%  { opacity: 0; }
  100% { right: calc(100% + 10px); opacity: 0; }
}

@keyframes magicLineRight {
  0%   { left: -40px; opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { left: calc(100% + 10px); opacity: 0.9; }
  65%  { opacity: 0; }
  100% { left: calc(100% + 10px); opacity: 0; }
}

.section-divider__img {
  width: 80px;
  height: auto;
  margin: 0 1.5rem;
  transition: opacity 0.6s;
}


/* ============================================
   THREE REALMS — Compact cards
   ============================================ */
.realms {
  padding: 5rem 3rem 4rem;
  text-align: center;
}

.realms__heading {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400; letter-spacing: 0.18em;
  color: var(--color-silver); text-transform: uppercase;
  margin-bottom: 3rem;
}

.realms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Realm card */
.realm-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--color-glass-edge);
  text-align: left;
  cursor: default;
  transition: transform 0.8s cubic-bezier(0.25,0.1,0.25,1), border-color 0.8s, box-shadow 0.8s;
}

.realm-card__image {
  position: absolute; inset: 0;
  overflow: hidden;
}

.realm-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.realm-card:hover .realm-card__img {
  transform: scale(1.05);
}

.realm-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,10,0.92) 0%, rgba(8,12,10,0.6) 30%, rgba(8,12,10,0.15) 55%, transparent 100%);
  transition: background 0.8s;
}

.realm-card:hover::after {
  background: linear-gradient(to top, rgba(8,12,10,0.85) 0%, rgba(8,12,10,0.4) 30%, rgba(8,12,10,0.08) 55%, transparent 100%);
}

.realm-card:hover {
  border-color: rgba(80,100,90,0.3);
  box-shadow: 0 20px 60px rgba(5,8,7,0.5);
  transform: translateY(-4px);
}

.realm-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.8rem;
}

.realm-card__index {
  display: block;
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.realm-card__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--color-text-bright);
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.realm-card__desc {
  font-size: 0.85rem; font-weight: 300; font-style: italic;
  color: var(--color-text-body);
  line-height: 1.6;
}


/* ============================================
   FEATURED WORKS — Flat grid
   ============================================ */
.works {
  padding: 5rem 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.works__heading {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-silver);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.8rem;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  transition: border-color 0.6s, transform 0.6s, box-shadow 0.6s;
  position: relative;
  overflow: hidden;
}

.work-card--has-image {
  padding: 0;
}

.work-card--has-image .work-card__body {
  padding: 1.4rem 1.8rem;
  position: relative;
}

.work-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.work-card:hover .work-card__image {
  transform: scale(1.03);
}

.work-card:hover {
  border-color: rgba(80, 100, 90, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(5,8,7,0.4);
}

.work-card--flagship {
  border-left: 2px solid var(--color-accent);
}

.work-card__realm {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-dim);
  margin-bottom: 0.5rem;
  transition: color 0.6s;
}

.work-card:hover .work-card__realm { color: var(--color-accent); }

.work-card__title {
  display: block;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-bright);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.work-card__desc {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-dim);
  line-height: 1.65;
  flex: 1;
}

.work-card__badge {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}



/* ============================================
   ABOUT — Studio + Creator combined
   ============================================ */
.about {
  padding: 5rem 3rem 4rem;
}

.about__inner {
  max-width: 860px;
  margin: 0 auto;
}

.about__studio {
  text-align: center;
  margin-bottom: 0;
}

.about__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.about__text {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: var(--color-text-body);
  line-height: 1.9;
  max-width: 50ch;
  margin: 0 auto 1.2rem;
}

.about__text--lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--color-text-bright);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 40ch;
}

.about__divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent-dim), transparent);
  margin: 3rem auto;
  opacity: 0.4;
}

.about__creator {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.about__profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 32px rgba(5,8,7,0.5);
  flex-shrink: 0;
}

.about__profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about__creator-info {
  flex: 1;
}

.about__name {
  font-weight: 400;
  color: var(--color-text-bright);
  font-style: normal;
}

.about__creator-text {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.about__card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-glass-edge);
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  max-width: 280px;
  transition: border-color 0.6s, box-shadow 0.6s, transform 0.6s;
}

.about__card:hover {
  border-color: rgba(196,169,110,0.25);
  box-shadow: 0 12px 40px rgba(5,8,7,0.5);
  transform: translateY(-3px);
}

.about__card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

.about__card-label {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-silver);
  transition: color 0.6s;
}

.about__card:hover .about__card-label {
  color: var(--color-accent);
}

.about__link-arrow {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.4s;
}

.about__card:hover .about__link-arrow {
  transform: translateX(3px);
}


/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 3rem 3rem 4rem; text-align: center; }
.footer__rule { width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(80,100,90,0.2), transparent); margin: 0 auto 1.5rem; }
.footer__text { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.5em; color: var(--color-text-dim); margin-bottom: 0.4rem; }
.footer__sub { font-size: 0.65rem; font-weight: 300; font-style: italic; letter-spacing: 0.15em; color: var(--color-text-dim); opacity: 0.6; }
.footer__signature { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(80,100,90,0.12); }
.footer__rights { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.1em; color: var(--color-text-body); }
.footer__author-link { color: var(--color-silver); text-decoration: none; transition: color 0.6s; border-bottom: 1px solid rgba(196,169,110,0.2); padding-bottom: 1px; }
.footer__author-link:hover { color: var(--color-accent); border-bottom-color: rgba(196,169,110,0.5); }




/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .realms__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .realm-card { aspect-ratio: 4 / 3; }
  .works__grid { grid-template-columns: 1fr; }
  .works { padding: 4rem 2rem 3rem; }
  .about { padding: 4rem 2rem 3rem; }
  .about__creator { flex-direction: column; text-align: center; }
  .about__card { margin: 0 auto; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav { padding: 1rem 1.5rem; }
  .nav__links { gap: 1rem; }
  .nav__link { font-size: 0.7rem; }
  .realms { padding-left: 1.5rem; padding-right: 1.5rem; }
  .depth__back { left: 1.5rem; }
}

@media (max-width: 480px) {
  .hero__wordmark-img { width: clamp(200px, 60vw, 280px); }
  .nav__links { display: none; }
  .work-card__badge { position: static; display: inline-block; margin-top: 0.5rem; }
}


/* ============================================
   SCROLL REVEAL (surface only)
   ============================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.3s ease, transform 1.3s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.4s; transform: none; }
  .hero__scroll-cue, .particle, .hero__orbit-ring { animation: none; }
  .hero__image, .hero__content { will-change: auto; }
  .realm-card { transition: box-shadow 0.4s; }
  .realm-card:hover { transform: none; }
}
