*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

:root {
  --black: #131212f5;
  --white: #f5f4f0e0;
  --mid: #999;
  --line: rgba(10,10,10,0.1);
  --ff: system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--ff);
  font-weight: 300;
  cursor: none;
  overflow-x: hidden;
}

/* ── CURSOR — crosshair / registration mark ── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* Horizontal bar */
#cursor-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--black);
  transform: translateY(-50%);
}

/* Vertical bar */
#cursor-dot::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  height: 100%; width: 1px;
  background: var(--black);
  transform: translateX(-50%);
}

/* On dark sections flip to white */
body.cursor-dark #cursor-dot::before,
body.cursor-dark #cursor-dot::after { background: var(--white); }

/* ── NAV — top right only ── */
nav {
  position: fixed;
  top: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 30px 40px;
}

.nav-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  font-weight: 400;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  top: 50%; left: -2px; right: -2px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

/* Gritty xerox-style grain overlay — fades toward bottom */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Keep name and divider above background grain */
#hero > * { position: relative; z-index: 2; }

/* Grain baked into the letterforms */
.hero-name {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14.8vw;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  padding: 0 0.04em 0.06em;
  filter: url(#textGrain);
}

.hero-name-inner {
  display: block;
}

/* Small meta row below the name */
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
}
.hero-meta-left {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 2;
}
.hero-meta-right {
  font-family: var(--ff);
  font-size: 20px;
  font-style: italic;
  color: var(--mid);
  text-align: right;
  line-height: 1.65;
}

/* ── WORKS ── */
#works { border-top: 1px solid var(--line); }

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 48px 20px 36px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── IMAGE GRID ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 2px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: none;
  background: #111;
}

.grid-item { overflow: hidden; }

.grid-item canvas,
.grid-item img {
  display: block;
  width: 100%;
  height: auto;
}


.grid-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 52px 18px 18px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.897));
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.grid-item:hover .grid-item-caption { opacity: 1; transform: none; }

.grid-item-title {
  display: block;
  font-family: var(--ff);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: #f5f4f0;
  line-height: 1.2;
}
.grid-item-meta {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(180, 175, 175, 0.795);
  margin-top: 5px;
}


/* ── ABOUT ── */
#about, #exhibitions {
  padding: 100px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-tag, .exhibitions-tag {
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid); padding-top: 6px;
}

.about-statement , .exhibitions-statement {
  font-family: var(--ff);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.72; font-weight: 400;
  color: var(--black); margin-bottom: 44px;
}

/* ── CONNECT ── */
#connect { border-top: 1px solid var(--line); background: var(--black); }

.connect-top {
  padding: 80px 20px 60px;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid rgba(245,244,240,0.07);
}
.connect-heading {
  font-family: 'EB Garamond', serif;
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 0.95; letter-spacing: -0.02em;
}
.connect-email {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,244,240,0.3); text-decoration: none;
  border-bottom: 1px solid rgba(245,244,240,0.12); padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.connect-email:hover { color: var(--white); border-color: rgba(245,244,240,0.6); }

.social-row { display: flex; border-top: 1px solid rgba(245,244,240,0.07); }

.social-item {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 26px 20px; border-right: 1px solid rgba(245,244,240,0.07);
  text-decoration: none; cursor: none; transition: background 0.2s;
}
.social-item:last-child { border-right: none; }
.social-item:hover { background: rgba(245,244,240,0.04); }

.social-platform {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,244,240,0.25);
}
.social-handle {
  font-family: var(--ff); font-size: 14px;
  font-weight: 300; font-style: normal; color: rgba(245,244,240,0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.social-item:hover .social-handle { color: var(--white); }
.social-arrow {
  font-size: 11px; color: rgba(245,244,240,0.18);
  transition: transform 0.3s ease, color 0.2s;
}
.social-item:hover .social-arrow { transform: translate(3px,-3px); color: var(--white); }

/* ── FOOTER — name repeated full width ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(245,244,240,0.07);
  overflow: hidden;
}

.footer-name {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15.8vw;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: rgba(245,244,240,0.06);
  white-space: nowrap;
  padding: 0.04em 0.04em 0.06em;
  transition: color 0.6s ease;
  user-select: none;
}
footer:hover .footer-name { color: rgba(245,244,240,0.1); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 24px;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.footer-meta p {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,244,240,0.18);
}

/* ── REVEALS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav { padding: 22px 24px; gap: 24px; }
  .hero-name { font-size: 16vw; }
  .hero-meta { padding: 14px 16px 20px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-meta-right { text-align: left; }
  .works-header { padding: 36px 16px 28px; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  #about, #exhibitions { grid-template-columns: 1fr; gap: 32px; padding: 72px 16px; }
  .connect-top { flex-direction: column; gap: 28px; padding: 56px 16px 40px; align-items: flex-start; }
  .social-row { flex-direction: column; }
  .social-item { border-right: none; border-bottom: 1px solid rgba(245,244,240,0.07); padding: 22px 16px; }
  .footer-name { font-size: 16vw; }
  .footer-meta { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name-inner { transform: none !important; transition: none; }
  .reveal { transition: none; }
  .grid-item canvas { transition: none; }
}
/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--black); }
::-webkit-scrollbar-thumb:hover { background: #444; }
* { scrollbar-width: thin; scrollbar-color: var(--black) var(--white); }