/* --- THE ONYX PALETTE --- */
:root{
  --bg:#080808;
  --text-muted:#757575;
  --text-active:#B3B3B3;
  --highlight:#FFFFFF;
  --font-mono:'Courier New', monospace;
  --font-sans:'Helvetica','Arial',sans-serif;

  --z-base: 0;
  --z-grain: 5;   /* was 50 (keep grain behind UI text) */
  --z-ui: 10;
  --z-logo: 60;
  --z-modal: 100;
}

/* --- RESET / BASE --- */
*,*::before,*::after{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text-muted);
  font-family:var(--font-mono);
  min-height:100%;
  cursor:crosshair;
}

/* Let the page scroll if needed on small screens (prevents clipped footer) */
body{ overflow-x:hidden; }

/* --- THE GRAIN OVERLAY --- */
.grain{
  position:fixed;
  inset:0;
  opacity:0.05;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index:var(--z-grain);
}

/* --- LOGO --- */
.logo{
  position:absolute;
  top:40px; left:40px;
  font-size:14px;
  color:var(--text-muted);
  letter-spacing:-0.5px;
  z-index:var(--z-logo);
  user-select:none;
}

.logo a{
  text-decoration:none;
  color:inherit;
  cursor:inherit;
  padding:10px;
  margin-right:-10px;
}

/* --- CENTER NAVIGATION --- */
.container{
  display:flex;
  min-height:100vh;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:var(--z-ui);
  padding: 120px 0 120px;
}

.nav-list{
  list-style:none;
  padding:0;
  width:300px;
  margin:0;
  margin-right:20%;
}

.nav-item{
  font-size:14px;
  margin-bottom:25px;
  position:relative;
}

.nav-item a{
  text-decoration:none;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:20px;
  transition:color 0.3s ease, opacity 0.25s ease;
  outline:none;
}

.nav-item span{
  color:var(--text-muted);
  font-size:10px;
  opacity:0.5;
}

/* Hover effects only where hover exists */
@media (hover: hover) and (pointer: fine){
  .logo a:hover{ cursor:url("../img/crosshair-tint-bright-strongglow.png") 12 12, crosshair; }
  .nav-item:hover a{ color:var(--highlight); }
  .nav-list:hover .nav-item a{ opacity:0.3; }
  .nav-list .nav-item:hover a{ opacity:1; }
}

/* Focus styles (subtle) */
.nav-item a:focus-visible{
  color:var(--highlight);
}

/* --- THE IMAGE REVEAL (THE VOID) --- */
.image-reveal{
  position:absolute;
  top:50%;
  right:15%;
  transform:translateY(-50%);
  width:400px; height:500px;
  overflow:hidden;
  pointer-events:none;
  z-index:var(--z-base);
  opacity:0;
  transition:opacity 0.6s ease, transform 0.8s ease;
  filter:grayscale(100%) brightness(0.8);
}

.image-reveal img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

.image-reveal img[src=""]{ display:none; }

.image-reveal.active{
  opacity:1;
  transform:translateY(-50%) scale(1.02);
}

/* --- CONTACT LINK STYLE --- */
.contact-link{
  color:var(--text-muted);
  text-decoration:none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom:1px solid transparent;
  cursor:pointer;
}

.contact-link:hover{
  color:var(--highlight);
  border-bottom-color:var(--highlight);
}

.contact-link:focus-visible{
  color:var(--highlight);
  border-bottom-color:var(--highlight);
  outline:none;
  display:inline-block;
  padding-bottom:1px; /* lowers the border underline subtly */
}

/* --- SERVICES LINK (span; subtle by design) --- */
.services-link{
  color:var(--text-muted);
  text-decoration:none;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom:1px solid transparent;
  cursor:pointer;
  outline:none;
  display:inline-block;
  padding-bottom:1px; /* lowers the border underline subtly */
}

.services-link:hover{
  color:var(--highlight);
  border-bottom-color:var(--highlight);
}

.services-link:focus-visible{
  color:var(--highlight);
  border-bottom-color:var(--highlight);
}

/* --- FOOTER --- */
.footer{
  position:absolute;
  bottom:40px; left:40px;
  font-size:10px;
  color:var(--text-muted);
  z-index:var(--z-ui);
  user-select:none;
}

/* meta line stays “systematic” without forcing caps */
.footer-meta{
  text-transform:none;     /* was uppercase */
  letter-spacing:0.5px;
}

/* only the stamp is uppercase */
.footer-est{
  text-transform:uppercase;
}

.footer-tagline{
  margin-top:10px;
}

.footer .tagline{
  text-transform:none;
  color:var(--text-active);
  letter-spacing:0.2px;
}

.grounding{
  margin-top:10px;
  font-size:10px;
  letter-spacing:0.5px;
  text-transform:none;
  color:var(--text-muted);
  opacity:0.85;
  max-width:320px;
  line-height:1.5;
}

.threshold-link{
  margin-top:6px;
  font-size:10px;
  letter-spacing:0.5px;
}

.threshold-link a{
  color:var(--text-muted);
  opacity:0.7;
  text-decoration:none;
}

.threshold-link a:hover{
  color:var(--highlight);
  opacity:1;
}

.threshold-link a:focus-visible{
  color:var(--highlight);
  opacity:1;
  outline:none;
}

/* --- SERVICES OVERLAY --- */
.overlay{
  position:fixed;
  inset:0;
  background-color:rgba(0,0,0,0.95);
  backdrop-filter:blur(5px);
  z-index:var(--z-modal);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.4s ease;
}

.overlay.active{
  opacity:1;
  pointer-events:auto;
}

.services-list{
  text-align:center;
  line-height:2.5;
  font-size:12px;
  letter-spacing:1px;
  color:var(--text-active);
}

.services-title{
  color:var(--highlight);  /* was #FFF */
  margin:0 0 30px;
  letter-spacing:1px;
}

.close-btn{
  margin-top:40px;
  cursor:pointer;
  border-bottom:1px solid transparent;
  display:inline-block;
  color:var(--text-muted);
}

.close-btn:hover{
  border-color:var(--highlight);
  color:var(--highlight);
}

.close-btn:focus-visible{
  border-color:var(--highlight);
  color:var(--highlight);
  outline:none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px){
  .nav-list{ margin-right:0; width:260px; }
  .image-reveal{ display:none; }
  .container{ padding: 110px 0 110px; }
}

@media (max-width: 520px){
  .logo{ top:24px; left:24px; }
  .footer{ bottom:24px; left:24px; }
  .nav-item{ margin-bottom:22px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}

/* =========================
   PROJECT PAGES (Interiors/Gardens/Fashion/Objects)
   ========================= */

.page-project { cursor: crosshair; }

.header{
  position: fixed;
  top: 40px; left: 40px;
  z-index: var(--z-ui);
  mix-blend-mode: difference;
}

.header a{
  color: var(--text-active);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}

.project-container{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 150px;
  padding-bottom: 100px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* UPDATED: allows smooth collapse for objects filters */
.project{
  margin-bottom: 150px;
  opacity: 0;
  transform: translateY(20px);

  /* for filter collapse */
  max-height: 10000px;
  overflow: hidden;

  transition:
    opacity 1s ease,
    transform 1s ease,
    max-height 0.6s ease,
    margin-bottom 0.6s ease;
}

.project.visible{
  opacity: 1;
  transform: translateY(0);
}

.project-image{
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  margin-bottom: 20px;
  transition: filter 0.5s ease;
}

.project-image:hover{ filter: grayscale(0%); }

.caption-group{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-top: 1px solid #222;
  padding-top: 10px;
  gap: 20px;
}

.caption-left{ color: var(--text-active); }
.caption-right{ text-align: right; }

.caption-group p{ margin: 0; line-height: 1.6; }

.meta{
  color: var(--text-muted);  /* was #444 */
  opacity: 0.6;
  margin-top: 5px;
}

/* Process sketches */
.process-container{
  width: 100%;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-image{
  width: 60%;
  max-width: 500px;
  height: auto;
  filter: grayscale(100%) contrast(1.2);
  border: 1px solid #222;
  padding: 10px;
}

.process-label{
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

@media (max-width: 520px){
  .header{ top: 24px; left: 24px; }
  .process-image{ width: 85%; }
  .caption-group{ flex-direction: column; }
  .caption-right{ text-align: left; }
}

.archive-link{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-ui); /* was 1000 (prevents sitting above overlay) */
}

.archive-link a{
  font-family: inherit;
  font-size: 14px;
  color: currentColor;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.archive-link a:hover{
  opacity: 0.85;
  cursor: pointer;
}

.return{
  display:inline-block;
  margin-top:40px;
  font-size:10px;
  text-transform:none;
  letter-spacing:0.5px;
  color:var(--text-muted);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:all 0.3s ease;
}

.return:hover,
.return:focus-visible{
  color:var(--highlight);
  border-bottom-color:var(--highlight);
  outline:none;
}

/* Sketch refinement — hierarchy + paper whisper */
.process-image{
  width: 52%;
  max-width: 460px;

  filter:
    brightness(0.94)
    contrast(0.96);

  opacity: 0.98;
}

/* Remove framing from process sketches */
.process-image{
  border: none;
  box-shadow: none;
}

/* =========================
   OBJECTS: INDEX + FILTERS (Option A)
   illumination / artifacts / anchors
   ========================= */

.object-index{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);

  user-select: none;
}

.object-index .sep{
  opacity: 0.35;
}

.object-index a{
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.object-index a:hover{
  opacity: 0.95;
}

.object-index a.is-active{
  color: var(--text-active);
  opacity: 0.95;
}

/* collapse + silence non-matching objects */
.project.is-filtered-out{
  opacity: 0 !important;
  transform: translateY(20px) !important;
  max-height: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

/* Give filtered-to objects a soft top offset when scrolled into view */
.project[data-object="true"]{
  scroll-margin-top: clamp(80px, 12vh, 160px);
}

/* return to index (bottom of objects) */
#objects-index{
  scroll-margin-top: clamp(80px, 12vh, 160px);
}

.return-to-index-wrap{
  margin-top: 60px;
  text-align: right;
}

.return-to-index{
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-decoration: none;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.return-to-index:hover{
  opacity: 0.9;
}

@media (max-width: 520px){
  .return-to-index-wrap{ text-align: left; }
}

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* floating echo of the objects index (only shown after interaction) */
.object-index-float{
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: var(--z-ui);
  mix-blend-mode: difference;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.object-index-float.is-visible{
  opacity: 0.85;
  pointer-events: auto;
}

@media (max-width: 520px){
  .object-index-float{
    top: 24px;
    right: 24px;
  }
}



