/* ===== Yoon Young Jeong — site styles ===== */

/* Fonts: swap these for your real fonts once you know them (see README). */
@font-face {
  font-family: "Pixel";
  src: url("fonts/pixelify-sans-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pixel: "Pixel", var(--sans);
  --pad: clamp(16px, 1.8vw, 36px);
  --dot: 0.85vw;            /* halftone dot size on the menu screen */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .55; }
img, video { display: block; width: 100%; height: auto; }

/* ---------- HOME: intro screen ---------- */
.screen {
  position: relative;
  height: 100svh;
  min-height: 62vw;
  overflow: hidden;
}
.collage {
  --u: 1vw;                 /* collage unit: 1% of the screen width */
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--u) * 100);
  height: calc(var(--u) * 62);
  transform: translate(-50%, -50%);
  isolation: isolate;
  background: #fff;
}
.collage img {
  position: absolute;
  width: auto;
  mix-blend-mode: multiply;  /* lets overlapping objects show through each other */
}
.contact {
  position: absolute; top: calc(var(--pad) * 1.1); left: var(--pad);
  z-index: 2; font-weight: 500; font-size: clamp(13px, 1.1vw, 20px);
  display: flex; gap: 0;
}
.contact a:first-child { width: 17.8vw; min-width: 12em; }
.big-name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; margin: 0; text-align: center;
  font-family: var(--pixel); font-weight: 400;
  font-size: 9.6vw; line-height: 1.17; letter-spacing: .08em;
}
.scroll {
  position: absolute; left: 0; right: 0; bottom: calc(var(--pad) * 1.3);
  z-index: 2; text-align: center; font-style: italic;
  font-size: clamp(24px, 3vw, 60px); line-height: 1;
}
.scroll::after {               /* the thin line under "Scroll" */
  content: ""; position: absolute; left: var(--pad); right: var(--pad);
  bottom: calc(var(--pad) * -.6); border-top: 1px solid var(--ink);
}

/* ---------- HOME: halftone menu screen ---------- */
.halftone { filter: contrast(14); overflow: hidden; }
.halftone img { filter: grayscale(1) brightness(.45) contrast(1.6) blur(calc(var(--dot) * .3)); }
.halftone::after {
  content: ""; position: absolute; inset: -40%; z-index: 9; pointer-events: none;
  transform: rotate(45deg);
  background: radial-gradient(closest-side, #000, #fff) 0 0 / var(--dot) var(--dot);
  mix-blend-mode: screen;
}
.menu-name {
  position: absolute; top: var(--pad); left: var(--pad); z-index: 2; margin: 0;
  font-weight: 400; font-size: clamp(32px, 3.1vw, 64px); line-height: 1.12;
  text-transform: uppercase;
}
.menu {
  position: absolute; left: var(--pad); top: 66%; z-index: 2;
  list-style: none; margin: 0; padding: 0;
  font-size: clamp(26px, 2.35vw, 48px); line-height: 1.5;
}

/* ---------- inner pages ---------- */
.page {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1rem;
  padding: var(--pad);
  padding-bottom: 12rem;
}
.home-link { grid-column: 1 / -1; text-align: right; font-size: 1.1em; margin-bottom: 4rem; }
.main { grid-column: 3 / span 10; }
.work-title { font-style: italic; font-weight: 400; font-size: 1.64em; margin: 0 0 3.5rem; }
.film-title { font-weight: 400; font-size: 1.5em; margin: 0 0 3.5rem; padding-left: 1.2em; }
.block { margin: 0 auto 8rem; }
.block.single { width: var(--w); }
.caption { text-align: right; margin: 1.2em 0 0; }
.caption.center { text-align: center; }
.caption b { font-weight: 700; }
.wide { grid-column: 1 / -1; }

/* free-placed gallery: positions are copied from your Cargo layout */
.freeform { position: relative; width: 100%; }
.ff { position: absolute; }

/* slideshow */
.slideshow { position: relative; user-select: none; }
.slideshow .slide { display: none; }
.slideshow .slide.on { display: block; }
.slideshow .slide img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; cursor: e-resize; }
.slideshow .controls { display: flex; justify-content: center; gap: 1.5em; margin-top: 1em; }
.slideshow button { background: none; border: 0; font: inherit; cursor: pointer; padding: 0 .3em; }

/* zoom (click an image to see it big) */
img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox img { width: auto; max-width: 94vw; max-height: 94vh; }

/* placeholder shown until the real image/video file is added */
.ph {
  width: 100%; aspect-ratio: var(--ar, 4 / 3);
  background: #ececec; color: #777; display: flex; align-items: center; justify-content: center;
  font: 11px/1.3 ui-monospace, Menlo, monospace; text-align: center; padding: 6px; word-break: break-all;
}

/* lists (works / films) */
.list { list-style: none; margin: 0; padding: 0; font-size: 1.1em; }
.list li { margin-bottom: 3.2em; }
.films { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1rem; padding: var(--pad); min-height: 100vh; }
.films .list { grid-column: 1 / span 2; padding-top: 6.5em; font-size: 1.2em; }
.films .list li { margin-bottom: 4em; }
.films .home-link { grid-column: 3 / -1; grid-row: 1; }

/* about */
.about-name { grid-column: 1 / span 8; font-size: 1.5em; font-weight: 400; margin: 0; }
.about .home-link { grid-column: 9 / -1; font-size: 1.32em; }
.bio { grid-column: 1 / span 5; font-size: 1.2em; }
.bio p { margin: 0 0 1.4em; }
.about-img { grid-column: 7 / -1; }
.about-img .ph, .about-img img { width: 79.4%; margin: 0 auto; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .main, .bio, .about-img, .about-name, .about .home-link { grid-column: 1 / -1; }
  .about .home-link { order: -1; }
  .block.single { width: 100%; }
  .block { margin-bottom: 5rem; }
  .freeform { height: auto !important; }
  .ff { position: static !important; width: 100% !important; margin-bottom: 1rem; }
  .films .list { grid-column: 1 / -1; padding-top: 0; }
  .films .home-link { grid-column: 1 / -1; }
  .collage { --u: 1.9vw; }   /* bigger collage on phones, sides cropped */
  .big-name { font-size: 15vw; }
  .contact { flex-direction: column; gap: .2em; }
  .menu { top: auto; bottom: 12%; }
}
