/* JAYLO PIXELS — ARTISTIC ARCHIVE */
:root {
  --paper: #f2f0eb;
  --ink: #111111;
  --muted: #77736d;
  --line: rgba(17,17,17,.18);
  --accent: #d94f3d;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --pad: clamp(20px, 3vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  cursor: none;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; }
figure { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.section-pad { padding-inline: var(--pad); }
.eyebrow, .section-heading > span, figcaption, .project-meta, .filters, .discipline-list, .footer, .menu-panel p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--ink);
  border-radius: 50%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.cursor.hover { width: 52px; height: 52px; background: var(--ink); }
.cursor.hover span { background: var(--paper); }

.site-header {
  position: fixed;
  z-index: 500;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}
.brand {
  font-weight: 700;
  font-size: 13px;
  line-height: .86;
  letter-spacing: -.05em;
}
.brand span { font-size: 7px; vertical-align: top; margin-left: 2px; }
.menu-toggle {
  border: 0;
  background: none;
  cursor: none;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.menu-toggle i {
  display: block;
  width: 30px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform .35s;
}
.menu-toggle i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateY(6px);
}
body.menu-open .menu-toggle i { transform: rotate(45deg); }
body.menu-open .menu-toggle i::after { transform: rotate(-90deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.76,0,.24,1);
}
.menu-panel.open { transform: translateY(0); }
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a {
  font-size: clamp(48px, 9vw, 130px);
  line-height: .85;
  letter-spacing: -.06em;
  border-bottom: 1px solid rgba(242,240,235,.2);
  padding: 10px 0;
}
.menu-panel nav a small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  vertical-align: top;
}
.menu-panel p { opacity: .5; }

/* entrance ticker — first thing visible, clears the fixed header */
.ticker {
  margin-top: 92px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "—";
  margin: 0 22px;
  color: var(--accent);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.hero {
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 30px;
}
.hero-top { display: flex; justify-content: space-between; }
.eyebrow { margin: 0; }
.hero-title {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  margin: 10vh 0 7vh;
}
.hero-title h1, .contact h2 {
  font-size: clamp(68px, 12vw, 190px);
  line-height: .78;
  letter-spacing: -.075em;
  margin: 0;
  font-weight: 500;
}
em { font-family: var(--serif); font-weight: 400; }
.scramble-char { color: var(--accent); }
.hero-note {
  font-size: 13px;
  line-height: 1.35;
  max-width: 220px;
  margin: 0 0 8px;
}
.hero-visual { position: relative; width: min(78vw, 1050px); margin-left: auto; }
.hero-image { width: 100%; }
.media { overflow: hidden; background: #ddd; }
.media img {
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.media:hover img { transform: scale(1.035); }
.hero-image figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
}
.hero-accent {
  position: absolute;
  left: -6vw;
  bottom: -9vw;
  width: 30%;
  max-width: 240px;
  border: 6px solid var(--paper);
  box-shadow: 0 30px 60px rgba(17,17,17,.25);
  z-index: 5;
  opacity: 0;
  animation: hero-accent-in .9s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.hero-accent img { aspect-ratio: 3/4; }
@keyframes hero-accent-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-accent { animation: none; opacity: 1; }
}

.statement {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.statement-index { align-self: start; padding-top: 15vh; font: 10px var(--mono); }
.display {
  font-size: clamp(58px, 10vw, 160px);
  line-height: .78;
  letter-spacing: -.07em;
  margin: 0;
}
.statement-small {
  max-width: 280px;
  margin: 70px 0 0 32%;
  font-size: 13px;
  line-height: 1.4;
}

.section-heading {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 100px;
}
.section-heading h2, .archive h2, .personal h2, .about h2 {
  margin: 0;
  font-size: clamp(64px, 9vw, 145px);
  line-height: .76;
  letter-spacing: -.07em;
  font-weight: 500;
}
.section-heading p { margin: 0; font-size: 12px; line-height: 1.3; max-width: 190px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  row-gap: 12vw;
}
.project-a { grid-column: 1 / 7; }
.project-b { grid-column: 8 / 13; margin-top: 12vw; }
.project-c { grid-column: 3 / 9; }
.project-d { grid-column: 10 / 13; margin-top: 5vw; }
.project-card figure { overflow: hidden; }
.project-card img { aspect-ratio: 4/5; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.project-b img { aspect-ratio: 3/4; }
.project-c img { aspect-ratio: 16/11; }
.project-d img { aspect-ratio: 3/4; }
.project-card:hover img { transform: scale(1.04); }
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 9px;
}

.projects-list { margin-top: 18vw; }
.section-heading.compact { grid-template-columns: 1fr 220px; margin-bottom: 30px; }
.project-list { border-top: 1px solid var(--line); }
.project-list a {
  display: grid;
  grid-template-columns: 50px 1fr 220px 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: padding .3s, background .3s;
}
.project-list a:hover { padding-inline: 15px; background: var(--ink); color: var(--paper); }
.project-list strong { font-size: clamp(22px, 3vw, 45px); letter-spacing: -.04em; font-weight: 500; }
.project-list i { font: normal 10px var(--mono); }
.project-list b { font-weight: 400; }
.arrow-ne { width: 1em; height: 1em; vertical-align: -0.08em; margin-left: 2px; }

.archive { margin-top: 18vw; }
.archive-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.archive-intro h2 { margin-top: 60px; }
.archive-intro p { font-size: 13px; line-height: 1.35; max-width: 230px; margin: 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 100px 0 30px;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50px;
  padding: 8px 13px;
  cursor: none;
  transition: .25s;
}
.filter.active, .filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5vw 2vw;
}
.archive-item { grid-column: span 4; }
.archive-item.wide { grid-column: span 7; }
.archive-item.tall { grid-column: span 3; }
.archive-item img {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: none;
}
.archive-item.tall img { aspect-ratio: 3/4; }
.archive-item.wide img { aspect-ratio: 16/10; }
.archive-item figcaption { padding-top: 7px; }
.archive-item.hidden { display: none; }

.personal {
  margin-top: 20vw;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10vw;
  align-items: center;
}
.personal-copy h2 { margin: 30px 0; }
.personal-copy p { max-width: 220px; font-size: 13px; line-height: 1.4; }
.personal-feature { position: relative; }
.personal-feature img { aspect-ratio: 4/5; object-fit: cover; }
.floating-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: white;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about {
  margin-top: 20vw;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.section-number { font: 10px var(--mono); }
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8vw;
  margin-top: 12vw;
}
.about-copy { max-width: 430px; font-size: 18px; line-height: 1.35; }
.about-copy .lead { font-family: var(--serif); font-size: 38px; margin-top: 0; }
.discipline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-top: 15px;
}
.discipline-list span::before { content: "— "; }

.how { margin-top: 20vw; }
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process div {
  min-height: 250px;
  padding: 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.process div:last-child { border-right: 0; }
.process small { font: 10px var(--mono); }
.process strong { font-size: clamp(20px, 3vw, 42px); letter-spacing: -.05em; font-weight: 500; }

.contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 10vw;
}
.contact h2 { margin-top: 14vh; }
.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 10vh;
}
.contact-link {
  font-size: clamp(20px, 3vw, 42px);
  letter-spacing: -.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}
.contact-bottom p { font: 10px/1.6 var(--mono); text-transform: uppercase; }

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
}
.footer > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.footer strong { font-family: var(--sans); font-size: 13px; }
.footer span { opacity: .5; }
.footer-links { display: flex; gap: 20px; }
.footer a:hover { text-decoration: underline; }
.back-top {
  border: 0;
  background: none;
  text-align: right;
  cursor: none;
}

/* ---------- project detail pages ---------- */
.crumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 90px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crumb a {
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 16px;
  transition: .25s;
}
.crumb a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.project-hero {
  min-height: 60vh;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}
.project-title {
  font-size: clamp(48px, 9vw, 140px);
  line-height: .8;
  letter-spacing: -.06em;
  font-weight: 500;
  margin: 6vh 0 4vh;
}
.project-lead { max-width: 480px; font-size: 15px; line-height: 1.55; margin: 0; }
.project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  margin-top: 7vh;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.project-meta-bar div { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-meta-bar span {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 7px;
}

.project-cover { margin: 6vw 0; }
.project-cover img { aspect-ratio: 16/9; object-fit: cover; }

.project-story { margin-top: 4vw; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5vw 2vw;
}
.story-item { grid-column: span 6; }
.story-item.wide { grid-column: span 12; }
.story-item.tall { grid-column: span 7; }
.story-item img { object-fit: cover; }
.story-item.wide img { aspect-ratio: 21/9; }
.story-item.tall img { aspect-ratio: 3/4; }
.story-item:not(.wide):not(.tall) img { aspect-ratio: 4/5; }
.story-item figcaption { padding-top: 24px; }

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12vw;
  padding: 30px 0 60px;
}
.project-nav a { font-size: clamp(18px, 2.6vw, 34px); letter-spacing: -.04em; }
.project-nav .next-link { text-align: right; }
.project-nav small { display: block; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }

@media (max-width: 800px) {
  .project-meta-bar { gap: 25px 40px; }
  .story-item, .story-item.tall { grid-column: span 12; }
  .story-item.wide img, .story-item img { aspect-ratio: 4/5; }
  .project-nav { display: block; }
  .project-nav .next-link { text-align: left; margin-top: 30px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(17,17,17,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 25px; right: 30px;
  color: var(--paper);
  background: none;
  border: 0;
  font-size: 40px;
  cursor: none;
}
.lightbox-caption {
  position: absolute;
  bottom: 25px;
  left: 30px;
  color: var(--paper);
  font: 10px var(--mono);
  text-transform: uppercase;
}

/* reveal */
.reveal, .hero-title, .hero-image, .section-heading, .project-card, .archive-item, .about-layout, .process, .contact h2 {
  opacity: 0;
  animation: reveal .9s cubic-bezier(.16,1,.3,1) forwards;
  animation-play-state: paused;
}
.reveal.in-view, .hero-title.in-view, .hero-image.in-view, .section-heading.in-view, .project-card.in-view,
.archive-item.in-view, .about-layout.in-view, .process.in-view, .contact h2.in-view {
  animation-play-state: running;
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .site-header { padding: 18px 20px; }
  .ticker { margin-top: 78px; }
  .ticker-track span { font-size: 10px; }
  .hero { padding-top: 30px; }
  .hero-top { flex-direction: column; gap: 7px; }
  .hero-title { display: block; margin: 15vh 0 8vh; }
  .hero-title h1, .contact h2 { font-size: clamp(58px, 17vw, 110px); }
  .hero-note { margin: 35px 0 0 auto; }
  .hero-visual, .hero-image { width: 100%; }
  .hero-accent { display: none; }
  .statement { min-height: 80vh; display: block; padding-top: 100px; }
  .statement-index { padding: 0; }
  .statement-copy { margin-top: 120px; }
  .display { font-size: clamp(54px, 15vw, 90px); }
  .statement-small { margin: 60px 0 0 30%; }
  .section-heading { grid-template-columns: 45px 1fr; margin-bottom: 60px; }
  .section-heading p { grid-column: 2; margin-top: 25px; }
  .section-heading h2, .archive h2, .personal h2, .about h2 { font-size: clamp(58px, 16vw, 100px); }
  .project-grid { display: block; }
  .project { margin: 0 0 80px !important; }
  .project-card img { aspect-ratio: 4/5 !important; }
  .project-list a { grid-template-columns: 35px 1fr 25px; }
  .project-list i { display: none; }
  .archive-intro { display: block; }
  .archive-intro p { margin-top: 35px; }
  .filters { margin: 70px 0 25px; overflow-x: auto; flex-wrap: nowrap; }
  .filter { white-space: nowrap; }
  .archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 12px; }
  .archive-item, .archive-item.wide, .archive-item.tall { grid-column: span 1; }
  .archive-item.wide img { aspect-ratio: 1; }
  .personal { display: block; margin-top: 30vw; }
  .personal-copy { margin-bottom: 60px; }
  .about-layout { display: block; margin-top: 25vw; }
  .about-copy { margin-top: 60px; font-size: 16px; }
  .discipline-list { margin-top: 60px; }
  .process { grid-template-columns: 1fr; }
  .process div { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process div:last-child { border-bottom: 0; }
  .contact { min-height: 80vh; }
  .contact h2 { margin-top: 12vh; }
  .contact-bottom { display: block; margin-top: 10vh; }
  .contact-bottom > div { margin-top: 60px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-links { flex-wrap: wrap; }
  .back-top { grid-column: 1 / -1; text-align: left; margin-top: 25px; padding: 0; }
  .menu-panel { padding-top: 100px; }
  .menu-panel nav a { font-size: 16vw; }
}
