:root {
  --color-lime: #d6ee32;
  --color-ink: #14110c;
  --color-page: #d6ee32;
  --color-fg: #14110c;
  --color-accent: #d6ee32;
  --color-paper: #f3ead4;
  --color-footer: #11110e;
  --color-on-footer: #f3ead4;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  background: var(--color-page);
  color: var(--color-fg);
  font-family: var(--font-display);
  min-height: 100dvh;
  transition: background-color 220ms ease-out, color 220ms ease-out;
}
a { color: inherit; }
::selection { background: var(--color-ink); color: var(--color-page); }
html.dark {
  color-scheme: dark;
  --color-page: #12110c;
  --color-fg: #d6ee32;
  --color-ink: #d6ee32;
  --color-lime: #12110c;
  --color-footer: #d6ee32;
  --color-on-footer: #14110c;
}
html.dark .site-grain { mix-blend-mode: overlay; opacity: 0.22; }
html.dark .proj-num { color: #d6ee32; }
html.dark .tape { color: #14110c; }

.site-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.5rem 0;
  position: relative;
  z-index: 20;
}
.top-end { display: flex; align-items: flex-start; gap: 0.7rem; }
.nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; padding: 0.5rem 0; position: relative; }
.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.25rem;
  height: 1px;
  background: var(--color-ink);
}
.menu-btn, .theme-btn {
  font-family: var(--font-mono);
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgb(20 17 12 / 0.3);
  background: var(--color-page);
  color: var(--color-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.dark .menu-btn, html.dark .theme-btn { border-color: rgb(214 238 50 / 0.35); }
.where {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 1rem 1.5rem 1.2rem;
}
.site-name {
  font-weight: 700;
  font-size: clamp(3.6rem, 18vw, 9.5rem);
  line-height: 0.76;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.site-name span { display: block; }
.tag {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}
.lede { max-width: 34ch; margin-top: 1rem; font-size: 1.15rem; line-height: 1.4; }
.work-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--color-ink);
}
.collage { position: relative; width: 100%; aspect-ratio: 1.12 / 1; min-height: 18rem; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.18) brightness(0.95); }
.shot { position: absolute; overflow: hidden; background: #111; box-shadow: 0 0.7rem 1.4rem rgb(0 0 0 / 0.22); }
.shot-earth { left: 2%; top: 0; width: 46%; height: 46%; transform: rotate(-3.2deg); z-index: 2; }
.shot-eye { right: 9%; top: 2%; width: 36%; height: 32%; transform: rotate(3.8deg); z-index: 2; }
.shot-mountain { left: 0; bottom: 6%; width: 46%; height: 36%; transform: rotate(-2deg); z-index: 1; }
.shot-column { right: 14%; top: 20%; width: 38%; height: 68%; transform: rotate(2.6deg); z-index: 3; }
.tape {
  position: absolute; z-index: 5; background: var(--color-paper); color: #14110c;
  font-family: var(--font-mono); font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  padding: 0.45rem 0.55rem; box-shadow: 0.12rem 0.16rem 0 rgb(0 0 0 / 0.16);
}
.tape-a { left: 26%; top: 8%; transform: rotate(-8deg); }
.tape-b { right: 4%; bottom: 24%; transform: rotate(11deg); }
.loop-words {
  position: absolute; left: 36%; bottom: 34%; z-index: 4; list-style: none;
  font-family: var(--font-mono); font-size: clamp(0.58rem, 1.3vw, 0.72rem);
  letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.45;
}
.star-mark { position: absolute; left: 34%; top: 48%; z-index: 4; font-size: 1.5rem; }
.aside-col {
  position: absolute; right: 0; top: 6%; z-index: 4; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.35; text-align: right; max-width: 5.2rem;
}
.halftone-dot {
  position: absolute; right: 4%; top: 42%; width: 4rem; height: 4rem; border-radius: 999px;
  background: repeating-radial-gradient(circle, #1a1a1a 0 1px, transparent 1px 4px); opacity: 0.5; z-index: 2;
}
.barcode { position: absolute; right: 1%; top: 30%; width: 0.9rem; height: 4.2rem; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px); z-index: 2; }
.pad { padding: 1.2rem 1.5rem 2.4rem; }
.pad h2 { text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; font-size: 1.3rem; }
.featured-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: 1px solid var(--color-ink); padding-bottom: 0.45rem; margin-bottom: 1rem; }
.featured-head h2 { margin: 0; }
.featured-head a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.card { text-decoration: none; color: inherit; }
.proj-thumb { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #161412; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.06); }
.proj-num { position: absolute; left: 0.6rem; bottom: 0.45rem; z-index: 4; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--color-accent); text-shadow: 0 1px 2px rgb(0 0 0 / 0.85); }
.dada { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cut {
  position: absolute;
  background: var(--color-paper);
  color: #14110c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  padding: 0.14em 0.28em 0.1em;
  box-shadow: 0.14rem 0.16rem 0 rgb(0 0 0 / 0.32);
}
.cut::before {
  content: attr(data-text);
  position: absolute;
  left: 3px; top: 2px;
  color: #c42a22;
  opacity: 0.42;
  z-index: -1;
  text-transform: uppercase;
}
.dada-roomish .cut-a { left: 6%; top: 16%; transform: rotate(-8deg); }
.dada-roomish .cut-b { right: 7%; bottom: 20%; font-size: clamp(1.35rem, 3.4vw, 2.15rem); font-style: italic; letter-spacing: 0.08em; transform: rotate(11deg); }
.dada-colors .cut-a { left: 7%; top: 10%; font-size: clamp(1.35rem, 3.2vw, 2rem); transform: rotate(6deg); }
.dada-colors .cut-c { right: 9%; top: 28%; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: 0.12em; transform: rotate(-14deg); }
.dada-colors .cut-b { left: 12%; bottom: 16%; font-size: clamp(1.85rem, 4.6vw, 3.1rem); transform: rotate(-3deg); }
.dada-pet .cut-a { left: 8%; top: 14%; transform: rotate(-6deg); }
.dada-pet .cut-b { left: 22%; top: 40%; transform: rotate(7deg); }
.dada-pet .cut-stamp {
  right: 7%; bottom: 14%;
  font-size: 0.78rem; letter-spacing: 0.22em; line-height: 1;
  padding: 0.7em 0.55em; border: 2px solid #14110c; border-radius: 999px;
  box-shadow: none; transform: rotate(14deg);
}
.dada-pet .cut-stamp::before { display: none; }
.meta { display: flex; justify-content: space-between; align-items: end; gap: 0.75rem; padding-top: 0.6rem; }
.meta h3 { font-size: 1.3rem; }
.meta p { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; font-size: 1.15rem; line-height: 1.4; max-width: 60rem; }
.list { list-style: none; }
.list li { border-top: 1px solid color-mix(in srgb, var(--color-ink) 35%, transparent); }
.list a { display: flex; justify-content: space-between; gap: 1rem; min-height: 3.4rem; align-items: center; text-decoration: none; font-size: 1.15rem; }
.list span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.empty { font-size: 1.15rem; max-width: 40ch; }
footer {
  background: var(--color-footer); color: var(--color-on-footer);
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: end;
  padding: 3rem 1.5rem 2.4rem; position: relative;
}
.torn-edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.75rem;
  background:
    linear-gradient(135deg, var(--color-page) 8px, transparent 0) 0 0 / 16px 14px,
    linear-gradient(-135deg, var(--color-page) 8px, transparent 0) 8px 0 / 16px 14px;
}
footer h2 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 0.9; text-transform: uppercase; }
footer p { max-width: 32ch; font-size: 1rem; line-height: 1.45; }
.social { margin-top: 1rem; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.seal {
  width: 6.8rem; height: 6.8rem; border: 1px solid var(--color-on-footer); border-radius: 999px;
  display: grid; place-items: center; text-align: center; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4;
  color: var(--color-on-footer);
}
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  margin: 0 1rem;
  border: 0 solid color-mix(in srgb, var(--color-ink) 20%, transparent);
  background: var(--color-page);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: grid-template-rows 220ms ease-out, opacity 180ms ease-out;
}
.mobile-nav > * { overflow: hidden; min-height: 0; }
.mobile-nav a { display: flex; min-height: 44px; align-items: center; text-decoration: none; padding: 0 0.75rem; }
.mobile-nav.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-width: 1px;
  padding: 0.4rem 0;
}
.icon-swap { position: relative; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; }
.icon-swap svg { grid-area: 1 / 1; transition: opacity 220ms cubic-bezier(0.2,0,0,1), transform 220ms cubic-bezier(0.2,0,0,1), filter 220ms cubic-bezier(0.2,0,0,1); }
.icon-swap-b, .icon-sun { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.menu-btn[aria-expanded="true"] .icon-swap-a,
html.dark .icon-moon { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.menu-btn[aria-expanded="true"] .icon-swap-b,
html.dark .icon-sun { opacity: 1; transform: scale(1); filter: blur(0); }

@media (min-width: 48rem) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .hero { grid-template-columns: 1fr 1.15fr; padding: 1.1rem 2rem; }
  .top, .pad, footer { padding-left: 2rem; padding-right: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1.3fr 1fr auto; }
  .mobile-nav { display: none; }
}
@media (max-width: 47.99rem) {
  .collage { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: 0.88fr 1.12fr; gap: 0.4rem; aspect-ratio: 1 / 0.98; min-height: 17rem; }
  .shot { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: 100%; min-height: 0; }
  .shot-earth { transform: rotate(-2.4deg); }
  .shot-eye { transform: rotate(3deg); }
  .shot-mountain { transform: rotate(-1.6deg); }
  .shot-column { transform: rotate(2deg); }
  .aside-col, .barcode, .loop-words, .star-mark, .halftone-dot { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .enter {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
    animation: rise 520ms cubic-bezier(0.2, 0, 0, 1) forwards;
  }
  .enter-2 { animation-delay: 140ms; }
  .enter-3 { animation-delay: 240ms; }
  .enter-4 { animation-delay: 340ms; }
  @keyframes rise { to { opacity: 1; transform: none; filter: none; } }
  .shot { animation: fadeShot 700ms ease-out both; }
  .shot-earth { animation-delay: 180ms; }
  .shot-eye { animation-delay: 260ms; }
  .shot-mountain { animation-delay: 340ms; }
  .shot-column { animation-delay: 220ms; }
  @keyframes fadeShot { from { opacity: 0; } to { opacity: 1; } }
  .tape, .loop-words, .star-mark, .aside-col { animation: fadeShot 500ms ease-out both; animation-delay: 480ms; }
  .proj-thumb img { transition: transform 420ms cubic-bezier(0.2, 0, 0, 1); }
  .project-card:hover .proj-thumb img { transform: scale(1.05); }
  .card-arrow { display: inline-block; transition: transform 200ms ease-out; }
  .project-card:hover .card-arrow { transform: translateX(4px); }
  .shelf-link { transition: padding-left 200ms ease-out; }
  .shelf-link:hover { padding-left: 0.4rem; }
  .tap { transition: transform 150ms ease-out; }
  .tap:active { transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .shot, .tape { animation: none; opacity: 1; filter: none; transform: none; }
}
