/* ============================================================
   hwayoooo.sia.haus — cinematic motion-artist portfolio
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --bg-soft:   #121214;
  --ink:       #f2efe9;
  --ink-dim:   #a7a39b;
  --ink-faint: #565249;
  --line:      rgba(242, 239, 233, 0.12);
  --accent:    #d9c5a0;   /* warm light gold */
  --accent-2:  #c9786a;   /* muted terracotta */
  --maxw:      1240px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", "Pretendard", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0a0b; }

a { color: inherit; text-decoration: none; }

.serif { font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }

/* ---------- film grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9998; pointer-events: none;
  opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-2%, 1%); }
}

.cursor {
  position: fixed; top: 0; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 46px; height: 46px;
  background: var(--ink);
}
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 60px);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
  mix-blend-mode: difference;
}
.nav.is-scrolled {
  padding: 16px clamp(20px, 5vw, 60px);
}
.nav__brand {
  font-size: 18px; font-weight: 600; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__brand span { color: var(--accent); font-size: 13px; animation: spin 9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__menu { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__menu a {
  font-size: 14px; letter-spacing: 0.04em; position: relative; padding: 4px 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .4s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 75% 15%, rgba(201,120,106,.18), transparent 55%),
    radial-gradient(90% 90% at 10% 90%, rgba(217,197,160,.14), transparent 50%),
    var(--bg);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.42em;
  color: var(--accent); margin-bottom: 30px; font-weight: 500;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 7.2rem);
  line-height: 1.02; font-weight: 600; letter-spacing: -0.03em;
}
.hero__title span { display: block; }
.hero__title .serif { font-weight: 300; letter-spacing: -0.01em; }
.hero__title em { color: var(--accent); font-style: italic; }
.hero__sub {
  margin-top: 34px; max-width: 30ch;
  font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-dim); line-height: 1.75;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 44px; padding: 15px 30px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 15px; letter-spacing: 0.02em;
  transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.hero__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero__cta .arrow { transition: transform .4s var(--ease); }
.hero__cta:hover .arrow { transform: translateY(3px); }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--line); overflow: hidden; z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--accent); animation: scrolldot 2.2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0; background: var(--bg-soft);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 34px; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 40px);
  font-style: italic; color: var(--ink-faint);
}
.marquee__track i { color: var(--accent); font-size: 12px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 56px; }
.section-head__no {
  font-size: 13px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 14px;
}
.section-head__title { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }

/* ---------- works ---------- */
.works { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 60px); max-width: var(--maxw); margin: 0 auto; }
.works__grid {
  column-count: 3; column-gap: clamp(16px, 2.2vw, 28px);
}
.work {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--bg-soft); cursor: pointer;
  display: block; width: 100%; break-inside: avoid;
  margin-bottom: clamp(16px, 2.2vw, 28px);
  line-height: 0;
}
.work__media { position: relative; }
.work__media img {
  width: 100%; height: auto; display: block;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: grayscale(0.3) brightness(0.82);
}
.work:hover .work__media img { transform: scale(1.06); filter: grayscale(0) brightness(0.95); }
.work__ph {
  aspect-ratio: 4 / 3; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(217,197,160,.10), rgba(201,120,106,.08)),
    var(--bg-soft);
  color: var(--ink-faint); letter-spacing: 0.3em; font-size: 12px;
  transition: transform 1s var(--ease);
}
.work__ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='none' stroke='%23ffffff10' stroke-width='1'/%3E%3C/svg%3E");
}
.work:hover .work__ph { transform: scale(1.04); }
.work__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 30px); line-height: 1.4;
  background: linear-gradient(0deg, rgba(10,10,11,.85) 0%, transparent 60%);
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work:hover .work__overlay { opacity: 1; transform: translateY(0); }
.work__year { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 6px; }
.work__title { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; }
.work__play {
  position: absolute; top: clamp(16px, 2vw, 24px); right: clamp(16px, 2vw, 24px); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,11,.5); backdrop-filter: blur(6px);
  border: 1px solid rgba(242,239,233,.3); color: var(--ink);
  opacity: 0; transform: scale(.8); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work:hover .work__play { opacity: 1; transform: scale(1); }
.work__play::after { content: "▶"; font-size: 13px; margin-left: 2px; }

.works__more { margin-top: 56px; text-align: center; color: var(--ink-dim); font-size: 15px; }
.works__more a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.works__more a:hover { border-color: var(--accent); }

/* ---------- about ---------- */
.about { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 60px); border-top: 1px solid var(--line); }
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.about__portrait {
  position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  background: linear-gradient(150deg, rgba(217,197,160,.12), rgba(201,120,106,.10)), var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.about__portrait span { letter-spacing: 0.3em; font-size: 12px; color: var(--ink-faint); }
.about__headline { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.18; margin-bottom: 28px; }
.about__headline em { color: var(--accent); }
.about__text p { color: var(--ink-dim); margin-bottom: 18px; max-width: 52ch; }
.about__list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.about__list li {
  display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
.about__list span { color: var(--accent); min-width: 56px; font-size: 13px; letter-spacing: 0.1em; padding-top: 2px; }

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 60px) 40px; border-top: 1px solid var(--line); text-align: center; }
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__title { font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 44px; }
.contact__title em { color: var(--accent); }
.contact__mail {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-style: italic; padding-bottom: 8px; position: relative;
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--line); transition: background .4s var(--ease);
}
.contact__mail:hover::after { background: var(--accent); }
.contact__socials { display: flex; gap: 28px; justify-content: center; margin-top: 50px; }
.contact__socials a {
  font-size: 15px; letter-spacing: 0.04em; padding: 12px 26px;
  border: 1px solid var(--line); border-radius: 100px;
  display: inline-flex; gap: 8px; align-items: center;
  transition: border-color .4s var(--ease), color .4s var(--ease), background .4s var(--ease);
}
.contact__socials a span { color: var(--accent); transition: transform .4s var(--ease); }
.contact__socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact__socials a:hover span { transform: translate(2px, -2px); color: var(--bg); }

.footer {
  max-width: var(--maxw); margin: clamp(70px, 10vw, 120px) auto 0;
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; letter-spacing: 0.06em; color: var(--ink-faint);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,6,7,.94); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 70px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__close {
  position: absolute; top: 26px; right: 30px;
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 16px; cursor: pointer; transition: background .3s, transform .3s var(--ease);
}
.lightbox__close:hover { background: rgba(242,239,233,.1); transform: rotate(90deg); }
.lightbox__stage {
  width: min(1000px, 100%); max-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  transform: scale(.96); transition: transform .5s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox__stage iframe { width: min(1000px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.lightbox__cap { margin-top: 22px; color: var(--ink-dim); font-size: 14px; letter-spacing: 0.05em; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .works__grid { column-count: 2; }
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; }
  .nav__brand span { display: none; }
}
@media (max-width: 560px) {
  .works__grid { column-count: 1; }
  .nav__menu { gap: 18px; }
  .hero__sub br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
