:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --mute: #8a8a8a;
  --line: #262626;
  --red: #ff1a1a;
  --head: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --tag: "Sedgwick Ave Display", "Permanent Marker", cursive;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #000; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } html { scroll-behavior: auto; } }

.dot { color: var(--red); font-size: .45em; vertical-align: .9em; margin-left: .15em; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4vw; background: linear-gradient(rgba(10,10,10,.85), rgba(10,10,10,0));
}
.logo { font-family: var(--head); font-size: 20px; letter-spacing: .02em; }
.links { display: flex; gap: 28px; text-transform: uppercase; font-size: 13px; letter-spacing: .12em; }
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--fg); transition: width .2s; }
.links a:hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: 2px solid var(--fg); color: var(--fg); font: 600 12px var(--body); letter-spacing: .15em; padding: 6px 10px; cursor: pointer; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.montage { position: absolute; inset: 0; background: #000; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.slide.active { opacity: 1; }
img.slide.active { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
/* quick white flash on every cut for a gritty, camera-shutter feel */
.montage::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.montage.flash::after { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .18; } 100% { opacity: 0; } }
.montage-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 3; }
.montage-bar span { display: block; height: 100%; width: 0; background: var(--red); }
.montage-count { position: absolute; right: 4vw; top: 84px; z-index: 3; font-size: 11px; letter-spacing: .18em; color: #cfcfcf; white-space: pre; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.2) 55%, rgba(10,10,10,.35) 100%); }
.hero-text { position: absolute; left: 4vw; right: 4vw; bottom: 12vh; }
.kicker { display: inline-block; background: var(--red); color: #000; font-family: var(--tag); font-size: 20px; line-height: 1.2; padding: 3px 12px; margin-bottom: 12px; transform: rotate(-1.5deg); }
.hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(46px, 11.5vw, 175px); line-height: .95; letter-spacing: -.02em; }
.sub { margin-top: 16px; color: #e6e6e6; max-width: 640px; font-family: var(--tag); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.25; }
.scroll { position: absolute; right: 4vw; bottom: 5vh; font-size: 12px; letter-spacing: .2em; border-bottom: 2px solid var(--red); padding-bottom: 4px; }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 4vw 40px; border-top: 2px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section h2 { font-family: var(--head); font-weight: 400; font-size: clamp(38px, 6.5vw, 88px); line-height: 1; }
.num { font-family: var(--body); font-size: 14px; color: var(--red); vertical-align: top; margin-right: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  background: none; color: var(--fg); border: 2px solid var(--fg); cursor: pointer;
  font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .12em; padding: 7px 14px;
}
.filters button:hover { background: var(--fg); color: #000; }
.filters button.active { background: var(--red); border-color: var(--red); color: #000; }

/* ---------- UNIFORM GRID ---------- */
.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; transition: opacity .2s; }
.masonry.swap { opacity: 0; }
.tile {
  position: relative; aspect-ratio: 3 / 2; cursor: zoom-in; overflow: hidden; background: #151515;
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.tile.in { opacity: 1; transform: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.92); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.07); filter: brightness(1.05); }
.tile::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); opacity: 0; z-index: 2; transition: opacity .2s; pointer-events: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:focus-visible { outline: none; }
.tile-num { position: absolute; top: 10px; left: 12px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 4px #000; }
@media (prefers-reduced-motion: reduce) { .tile { opacity: 1; transform: none; transition: none; } }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 0; transform: translateY(8px); transition: .25s;
}
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.tile figcaption span:first-child { color: var(--red); font-weight: 600; }

/* ---------- VIDEO ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.frame { position: relative; aspect-ratio: 16/9; background: #111; border: 2px solid var(--line); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.soon { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 26px; color: #333; letter-spacing: .05em; }
.video h3 { font-family: var(--tag); font-weight: 400; font-size: 26px; margin-top: 12px; line-height: 1.2; }
.video p { color: var(--mute); font-size: 13px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.about-grid { font-family: var(--text); }
.bio p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; margin-bottom: 1.1em; max-width: 680px; }
.cv h3 { font-family: var(--head); font-weight: 400; font-size: 17px; color: var(--red); margin: 0 0 10px; }
.cv ul { list-style: none; margin-bottom: 30px; }
.cv li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 15px; }
.cv p { font-size: 15px; color: #cfcfcf; }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: 100px; }
.big { font-size: clamp(40px, 9vw, 135px) !important; }
.contact-line { color: #bdbdbd; margin: 12px 0 40px; font-family: var(--tag); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.contact-links { display: flex; flex-direction: column; border-top: 2px solid var(--fg); }
.contact-links a {
  display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 2px solid var(--line);
  font-family: var(--head); font-size: clamp(20px, 3vw, 36px); transition: color .15s, padding .2s;
}
.contact-links a span { font-family: var(--body); font-size: 12px; letter-spacing: .15em; color: var(--mute); width: 110px; flex-shrink: 0; }
.contact-links a:hover { color: var(--red); padding-left: 12px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 4vw; border-top: 2px solid var(--line); font-size: 11px; letter-spacing: .1em; color: var(--mute); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.97); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #bbb; white-space: pre; }
.lightbox button { position: absolute; background: none; border: 2px solid var(--fg); color: var(--fg); font: 600 18px var(--body); width: 46px; height: 46px; cursor: pointer; }
.lightbox button:hover { background: var(--red); border-color: var(--red); color: #000; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .nav { background: rgba(10,10,10,.92); backdrop-filter: blur(6px); }
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 2px solid var(--red); }
  .links.open { display: flex; }
  .links a { padding: 16px 4vw; border-top: 1px solid var(--line); font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .masonry { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile figcaption { display: none; }
  .montage-count { top: 74px; }
  .lightbox { padding: 60px 10px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .contact-links a span { width: 80px; }
}

/* ---------- ALBUMS ---------- */
.section-sub { font-family: var(--tag); font-size: clamp(18px, 2vw, 24px); color: #bdbdbd; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.album { display: block; aspect-ratio: 4 / 3; cursor: pointer; }
.album img { filter: brightness(.8); }
.album:hover img, .album:focus-visible img { filter: brightness(1); }
.album-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}
.album-label h3 { font-family: var(--head); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; }
.album-label p { font-size: 12px; letter-spacing: .08em; color: #cfcfcf; margin-top: 6px; text-transform: uppercase; }
.album-bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.album-bar[hidden], .albums[hidden], .masonry[hidden] { display: none; }
.back {
  background: none; color: var(--fg); border: 2px solid var(--fg); cursor: pointer;
  font: 600 13px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; min-height: 44px;
}
.back:hover, .back:focus-visible { background: var(--red); border-color: var(--red); color: #000; }
.album-info h3 { font-family: var(--tag); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.album-info p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
@media (max-width: 760px) { .albums { grid-template-columns: 1fr; } .album-bar { gap: 14px; } }

/* ---------- SECTION PREVIEWS ---------- */
.section h2.clickable { cursor: pointer; }
.section h2.clickable:hover { color: var(--red); }
.masonry.is-preview { position: relative; cursor: pointer; }
.masonry.is-preview .tile:nth-last-child(-n+4) img { filter: brightness(.55); }
@media (max-width: 760px) { .masonry.is-preview .tile img { filter: brightness(.92); } .masonry.is-preview .tile:nth-last-child(-n+2) img { filter: brightness(.55); } }
.see-all {
  display: table; position: relative; z-index: 3;
  margin: -46px auto 10px; padding: 14px 38px 16px;
  font-family: var(--tag); font-size: clamp(26px, 3.4vw, 42px); line-height: 1; color: #000;
  transform: rotate(-2deg); transition: transform .2s;
}
.see-all[hidden] { display: none; }
/* red marker swipe behind the label */
.see-all::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  clip-path: polygon(2% 14%, 9% 4%, 30% 9%, 52% 2%, 74% 8%, 97% 0%, 100% 38%, 96% 62%, 99% 92%, 78% 96%, 55% 91%, 31% 100%, 8% 93%, 0% 74%, 3% 46%);
  box-shadow: 0 6px 24px rgba(255,26,26,.35);
}
/* drip under the swipe */
.see-all::after {
  content: ""; position: absolute; left: 22%; top: 88%; width: 7px; height: 22px; border-radius: 0 0 6px 6px;
  background: var(--red); box-shadow: 140px -4px 0 -1px var(--red), 64px 2px 0 -2px var(--red);
}
.see-all:hover, .see-all:focus-visible { transform: rotate(0deg) scale(1.06); outline: none; }
.section > .back { display: inline-flex; align-items: center; margin-bottom: 26px; }
.section > .back[hidden] { display: none; }

/* Full-section view: hide everything else */
body.focus .hero, body.focus #video, body.focus #about, body.focus #contact,
body.focus main > section.section:not(.is-focus) { display: none; }
body.focus main > section.is-focus { border-top: 0; }

/* ---------- CONTACT FORM ---------- */
.contact-form { display: grid; gap: 16px; max-width: 760px; margin: 0 0 44px; font-family: var(--text); }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 6px; font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: #0f0f0f; color: var(--fg); border: 2px solid #2a2a2a; border-radius: 0;
  font: 16px var(--text); padding: 12px 14px; min-height: 48px; letter-spacing: 0; text-transform: none;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-send {
  justify-self: start; position: relative; z-index: 0; background: none; border: 0; cursor: pointer;
  padding: 14px 34px 16px; font: 400 clamp(24px, 3vw, 34px) var(--tag); color: #000; transform: rotate(-2deg); transition: transform .2s;
}
.cf-send::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  clip-path: polygon(2% 14%, 9% 4%, 30% 9%, 52% 2%, 74% 8%, 97% 0%, 100% 38%, 96% 62%, 99% 92%, 78% 96%, 55% 91%, 31% 100%, 8% 93%, 0% 74%, 3% 46%);
}
.cf-send:hover, .cf-send:focus-visible { transform: rotate(0) scale(1.05); outline: none; }
.cf-send:disabled { opacity: .6; cursor: wait; }
.cf-status { min-height: 1.4em; font-size: 15px; }
.cf-status.ok { color: #7dff9a; }
.cf-status.err { color: var(--red); }

/* ---------- CONTACT: form + Instagram side panel ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid .contact-form { order: 1; margin: 0; max-width: none; }
.contact-side { order: 2; position: sticky; top: 96px; }
.side-tag { font-family: var(--tag); font-size: clamp(22px, 2.4vw, 30px); color: #e6e6e6; margin-bottom: 14px; transform: rotate(-2deg); }
.contact-side .contact-links { border-top: 0; gap: 14px; }
.contact-side .contact-links a {
  position: relative; z-index: 0; display: block; padding: 22px 24px 20px; border: 0;
  font-family: var(--head); font-size: clamp(20px, 2.3vw, 30px); line-height: 1.1; color: #000; word-break: break-word;
  transform: rotate(-1.5deg); transition: transform .2s;
}
.contact-side .contact-links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  clip-path: polygon(1% 10%, 12% 2%, 40% 6%, 63% 0%, 88% 5%, 100% 2%, 98% 40%, 100% 78%, 96% 98%, 70% 94%, 44% 100%, 18% 95%, 0% 98%, 2% 60%);
  box-shadow: 0 8px 26px rgba(255,26,26,.3);
}
.contact-side .contact-links a span { display: block; width: auto; margin-bottom: 6px; font: 600 12px var(--body); letter-spacing: .15em; color: rgba(0,0,0,.7); }
.contact-side .contact-links a:hover, .contact-side .contact-links a:focus-visible { padding-left: 24px; color: #000; transform: rotate(0) scale(1.04); outline: none; }
.contact-side .contact-links a:nth-child(2) { transform: rotate(1.2deg); }
.contact-side .contact-links a:nth-child(2)::before { background: var(--fg); }
.footer-ig { color: var(--fg); border-bottom: 2px solid var(--red); }
.footer-ig:hover { color: var(--red); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { order: 0; position: static; }
}

/* folder tags in a section's full view */
.folder-tags { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 22px; }
.folder-tags[hidden] { display: none; }
.folder-tags button {
  font-family: var(--tag); font-size: 18px; line-height: 1.2; padding: 3px 12px; cursor: pointer;
  background: none; color: var(--red); border: 2px solid var(--red); transform: rotate(-1.5deg);
}
.folder-tags button:nth-child(even) { transform: rotate(1deg); }
.folder-tags button:hover, .folder-tags button:focus-visible { background: var(--red); color: #000; }
.folder-tags button.on { background: var(--red); color: #000; }

/* archive note under the hero */
.archive-note { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 4vw; border-top: 2px solid var(--line); }
.archive-note p { margin: 0; max-width: 820px; font-family: var(--text); font-weight: 600; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.01em; color: #fff; }
.archive-tag { flex: none; background: var(--red); color: #000; font-family: var(--tag); font-size: 20px; line-height: 1.2; padding: 3px 12px; transform: rotate(-2deg); }
body.focus .archive-note { display: none; }
