/* Noah Asanias — portfolio */
:root {
  --bg: #f4f2ee;
  --ink: #111110;
  --muted: #6b6a66;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Georgia", serif;
  --script: "Shadows Into Light", cursive;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 28px; font-size: 12px; letter-spacing: .14em; font-weight: 600;
  mix-blend-mode: difference; color: #fff;
}
.nav .links { display: flex; gap: 26px; }
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home collage ---------- */
.stage {
  position: fixed; inset: 0; overflow: hidden;
}
.tile {
  position: absolute; will-change: transform;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.2s ease;
}
.tile.in { opacity: 1; }
.tile img, .tile video { width: 100%; height: auto; }
.hero-name {
  position: fixed; inset: 0; display: grid; place-items: center;
  pointer-events: none; z-index: 10;
}
.hero-name h1 {
  font-family: var(--script);
  font-size: clamp(52px, 9vw, 150px);
  font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
  line-height: .9; text-align: center;
}
/* scribble accents in About copy */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -4%; bottom: -.18em; width: 108%; height: .5em; overflow: visible; pointer-events: none; }
.scribble svg path {
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .85;
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
.about.in .scribble svg path { animation: draw 1.1s ease forwards .3s; }
.scribble.s2 svg path { animation-delay: .9s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); z-index: 10; text-align: center; white-space: nowrap;
}
.hand-name { width: min(64vw, 780px); height: auto; }
.hand-sub { display: flex; gap: 26px; align-items: center; }
.hand-sub img { height: clamp(20px, 2.6vw, 34px); width: auto; opacity: .92; }

/* ---------- about strip (scroll below fold on home) ---------- */
.spacer { height: 100vh; }
.about {
  position: relative; z-index: 20; background: var(--bg);
  min-height: 100vh; display: grid; place-content: center;
  padding: 18vh 8vw; text-align: center;
}
.about p {
  font-family: var(--serif);
  max-width: 820px; margin: 0 auto;
  font-size: clamp(20px, 2.7vw, 34px); font-weight: 460;
  letter-spacing: .005em; line-height: 1.5;
}
.about p em { font-style: italic; }
.about .contact { margin-top: 48px; font-size: 12px; letter-spacing: .2em; }
.about .contact a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.about .socials { margin-top: 26px; display: flex; gap: 18px; justify-content: center; font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.footer { position: relative; z-index: 20; background: var(--bg); text-align: center; padding: 30px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }

/* ---------- work page (scrolling scatter collage) ---------- */
.work-wrap { padding: 0; }
.scatter { position: relative; width: 100%; }
.scatter .shot {
  position: absolute; left: 0; top: 0;
  will-change: transform;
  margin: 0; cursor: zoom-in;
  opacity: 0; transition: opacity 1.2s ease;
}
.scatter .shot.in { opacity: 1; }
.scatter .shot img, .scatter .shot video { width: 100%; height: auto; display: block; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 16, .95);
  display: grid; place-items: center; padding: 5vh 5vw; }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lightbox .lb-media { max-width: 92vw; max-height: 90vh; display: grid; place-items: center; }
.lightbox .lb-media img, .lightbox .lb-media video { max-width: 92vw; max-height: 90vh; width: auto; height: auto; display: block; }
.lightbox .lb-close { position: fixed; top: 20px; right: 26px; z-index: 101;
  background: none; border: none; color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; opacity: .75; font-family: var(--font); }
.lightbox .lb-close:hover { opacity: 1; }

@media (max-width: 700px) {
  .tile { display: none; }
  .tile.keep-mobile { display: block; }
  .hero-sub { white-space: normal; width: 84vw; }

  /* work scatter falls back to a simple centered stack on phones */
  .scatter { display: flex; flex-direction: column; align-items: center; gap: 9vh;
    padding: 22vh 6vw 14vh; height: auto !important; }
  .scatter .shot { position: static; transform: none; left: auto; top: auto;
    width: 88vw !important; }
}
