/* ============================================================
   Ben Young, Lighting Design
   Shared stylesheet used by all pages.
   ============================================================ */

:root{
  --bg:      #0e0e10;
  --surface: #18181b;
  --text:    #ececea;
  --muted:   #9b9b9f;
  --accent:  #d1a15c;
  --line:    rgba(236,236,234,0.12);

  --display: "Newsreader", Georgia, serif;
  --body:    "Inter", -apple-system, sans-serif;

  --maxw: 1440px;
  --gutter: 4vw;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 2rem;
  --sp-4: 3.5rem;
  --sp-5: 6rem;
}

*{ box-sizing:border-box; margin:0; padding:0; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
::selection{ background:var(--accent); color:var(--bg); }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
img{ max-width:100%; display:block; }
h1,h2,h3{ font-family:var(--display); font-weight:500; letter-spacing:-0.01em; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
}

section{ padding:var(--sp-5) 0; }
.border-top{ border-top:1px solid var(--line); }
.tight-top{ padding-top:0; }
.tight-bottom{ padding-bottom:0; }

.label{
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--muted);
}

/* ---------------- NAV ---------------- */
.site-header{
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
  background:rgba(14,14,16,0.92);
  backdrop-filter:blur(6px);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:1.2rem; padding-bottom:1.2rem;
}
.brand{ font-family:var(--display); font-size:1.15rem; }
.brand small{ display:block; font-family:var(--body); font-size:0.66rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--muted); margin-top:0.15rem; }

.nav-links{ display:flex; gap:2rem; list-style:none; }
.nav-links a{
  font-size:0.85rem; color:var(--muted);
  padding-bottom:4px; border-bottom:1px solid transparent;
  transition:color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover{ color:var(--text); }
.nav-links a.current{ color:var(--text); border-color:var(--accent); }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:2px;
  color:var(--text); padding:0.5rem 0.7rem; font-size:0.9rem;
}

@media (max-width:760px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:var(--bg);
    border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; transition:max-height 0.25s ease;
  }
  .nav-links.open{ max-height:300px; }
  .nav-links li{ border-top:1px solid var(--line); }
  .nav-links a{ display:block; padding:1rem var(--gutter); border-bottom:none; }
  .nav-links a.current{ background:var(--surface); }
  .nav-toggle{ display:block; }
}

/* ---------------- HERO (full width image) ---------------- */
.hero-media{
  width:100%;
  min-height:82vh;
  display:flex;
  align-items:flex-end;
  /* EDIT: HERO IMAGE, add a file at images/hero.jpg (a wide photo
     of a lit stage or rig works well). Until then this gradient
     shows on its own, so the page never looks broken. */
  background:
    linear-gradient(to top, rgba(10,10,12,0.96) 0%, rgba(10,10,12,0.55) 45%, rgba(10,10,12,0.25) 100%),
    url("/images/hero.jpg");
  background-size:cover;
  background-position:center;
}
.hero-media-inner{ padding-top:var(--sp-5); padding-bottom:var(--sp-4); max-width:760px; }
.hero-media h1{
  font-size:clamp(2.4rem, 5vw, 4rem);
  line-height:1.12;
}
.hero-media p.lede{
  margin-top:1.1rem;
  color:#d6d4cf;
  font-size:1.08rem;
  max-width:52ch;
}
.hero-actions{ margin-top:2rem; display:flex; gap:1rem; flex-wrap:wrap; }

.btn{
  font-size:0.85rem;
  padding:0.75rem 1.4rem;
  border:1px solid var(--line);
  border-radius:2px;
  transition:border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  display:inline-block;
}
.btn-solid{ background:var(--accent); color:var(--bg); border-color:var(--accent); }
.btn-solid:hover{ background:#e0b374; }
.btn-ghost{ border-color:rgba(236,236,234,0.4); }
.btn-ghost:hover{ border-color:var(--text); background:rgba(236,236,234,0.06); }

/* ---------------- INTRO BLOCKS ---------------- */
.split{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-4); align-items:start;
}
@media (max-width:800px){ .split{ grid-template-columns:1fr; gap:var(--sp-3); } }

.split h2{ font-size:1.4rem; margin-bottom:0.9rem; }
.split p{ color:#d3d1cc; margin-bottom:0.9rem; max-width:56ch; }
.text-link{ border-bottom:1px solid var(--line); }
.text-link:hover{ color:var(--accent); border-color:var(--accent); }

.about-photo{
  aspect-ratio:4/5;
  background:var(--surface);
  border:1px dashed var(--line); border-radius:3px;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:0.8rem; text-align:center; padding:1.5rem;
}

.facts{ margin-top:var(--sp-3); display:flex; flex-direction:column; gap:0.9rem; }
.facts div{ border-top:1px solid var(--line); padding-top:0.8rem; display:flex; justify-content:space-between; gap:1rem; font-size:0.9rem; }
.facts div span:first-child{ color:var(--muted); }

/* ---------------- TIKTOK, styled to belong ---------------- */
.tiktok-section h2{ font-size:1.6rem; margin-bottom:0.6rem; text-align:center; }
.tiktok-section > .wrap > p{ color:var(--muted); max-width:52ch; margin:0 auto var(--sp-3); text-align:center; }

.tiktok-frame{
  max-width:420px;
  margin:0 auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:var(--sp-3) var(--sp-3) var(--sp-2);
  text-align:center;
}
.tiktok-frame .tiktok-handle{
  font-family:var(--display);
  font-size:1.1rem;
  color:var(--accent);
  margin-bottom:0.2rem;
}
.tiktok-frame .tiktok-sub{ font-size:0.8rem; color:var(--muted); margin-bottom:var(--sp-2); }
.tiktok-embed-shell{
  border-radius:6px;
  overflow:hidden;
  background:#000;
  min-height:120px;
  display:flex; align-items:center; justify-content:center;
}
.tiktok-frame .btn{ margin-top:var(--sp-2); }

/* ---------------- PORTFOLIO LISTING (editorial rows) ---------------- */
.page-head{ padding:var(--sp-4) 0 var(--sp-3); }
.page-head h1{ font-size:clamp(2rem,4vw,2.8rem); }
.page-head p{ color:var(--muted); margin-top:0.7rem; max-width:56ch; }

.project-list{ padding-bottom:var(--sp-5); }

.project-row{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:var(--sp-4);
  align-items:center;
  padding:var(--sp-4) 0;
  border-top:1px solid var(--line);
}
.project-list .project-row:last-child{ border-bottom:1px solid var(--line); }
.project-row:nth-child(even){ direction:rtl; }
.project-row:nth-child(even) > *{ direction:ltr; }

.project-row-media{
  aspect-ratio:16/10;
  background:var(--surface);
  border:1px dashed var(--line); border-radius:4px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:0.8rem; text-align:center;
  transition:opacity 0.2s ease;
}
.project-row-media img{ width:100%; height:100%; object-fit:cover; }
.project-row:hover .project-row-media{ opacity:0.85; }

.project-row-text h2{ font-size:clamp(1.5rem,2.4vw,2.1rem); margin-bottom:0.7rem; }
.project-row-text p{ color:var(--muted); max-width:44ch; margin-bottom:1rem; }
.project-row-text .view-link{
  font-size:0.85rem; color:var(--accent); border-bottom:1px solid var(--accent); padding-bottom:2px;
}

@media (max-width:800px){
  .project-row{ grid-template-columns:1fr; gap:var(--sp-2); }
  .project-row:nth-child(even){ direction:ltr; }
}

/* ---------------- PROJECT DETAIL PAGE ---------------- */
.project-header{ padding:var(--sp-4) 0 var(--sp-3); }
.project-header h1{ font-size:clamp(2.2rem,5vw,3.4rem); max-width:20ch; }

.project-meta{
  display:flex; flex-wrap:wrap; gap:var(--sp-4);
  padding:var(--sp-3) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:var(--sp-4);
}
.project-meta div{ min-width:140px; }
.project-meta .label{ display:block; margin-bottom:0.3rem; }
.project-meta .value{ font-size:0.98rem; }

.project-description{ max-width:68ch; color:#d3d1cc; margin-bottom:var(--sp-5); font-size:1.05rem; }
.project-description p + p{ margin-top:1rem; }

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:var(--sp-2);
  padding-bottom:var(--sp-5);
}
.gallery img:nth-child(3n+1){ transition-delay:0s; }
.gallery img:nth-child(3n+2){ transition-delay:0.08s; }
.gallery img:nth-child(3n+3){ transition-delay:0.16s; }
.gallery .featured{ grid-column:span 2; }
@media (max-width:700px){ .gallery .featured{ grid-column:span 1; } }

.photo-slot, .gallery img{
  aspect-ratio:4/3;
  width:100%; height:100%;
  border-radius:3px;
  object-fit:cover;
}
.photo-slot{
  background:var(--surface);
  border:1px dashed var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:0.78rem; text-align:center; padding:1rem;
}
.gallery img{ cursor:zoom-in; border:1px solid var(--line); transition:opacity 0.2s ease; }
.gallery img:hover{ opacity:0.88; }

.project-nav{
  display:flex; justify-content:space-between; padding:var(--sp-3) 0 var(--sp-5);
  border-top:1px solid var(--line); font-size:0.9rem;
}
.project-nav a:hover{ color:var(--accent); }

/* ---------------- LIGHTBOX ---------------- */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(6,6,7,0.96);
  display:none; align-items:center; justify-content:center; padding:5vh 5vw;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-height:88vh; width:auto; margin:0 auto; border-radius:3px; }
.lightbox-close{
  position:fixed; top:1.5rem; right:1.5rem;
  border:1px solid var(--line); padding:0.55rem 1rem; border-radius:2px; font-size:0.8rem;
  background:var(--bg); color:var(--text);
}
.lightbox-close:hover{ border-color:var(--text); }

/* ---------------- CONTACT ---------------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-4); }
@media (max-width:800px){ .contact-grid{ grid-template-columns:1fr; gap:var(--sp-3); } }

.field{ display:flex; flex-direction:column; gap:0.4rem; margin-bottom:1.1rem; }
.field label{ font-size:0.75rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); }
.field input, .field textarea{
  background:var(--surface); border:1px solid var(--line); border-radius:2px;
  padding:0.75rem 0.9rem; color:var(--text); font-family:var(--body); font-size:0.95rem; resize:vertical;
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); }
.form-note{ font-size:0.78rem; color:var(--muted); margin-top:0.5rem; }

.contact-line{ margin-bottom:var(--sp-3); }
.contact-line .label{ display:block; margin-bottom:0.35rem; }
.contact-line a, .contact-line span.value{ font-family:var(--display); font-size:1.25rem; }
.contact-line a{ border-bottom:1px solid var(--line); }
.contact-line a:hover{ color:var(--accent); border-color:var(--accent); }

.socials{ display:flex; gap:0.8rem; margin-top:0.4rem; }
.socials a{ font-size:0.8rem; border:1px solid var(--line); padding:0.5rem 0.9rem; border-radius:2px; color:var(--muted); }
.socials a:hover{ color:var(--text); border-color:var(--text); }

/* ---------------- FOOTER ---------------- */
.site-footer{ border-top:1px solid var(--line); padding:var(--sp-3) 0; }
.site-footer .wrap{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.8rem;
  font-size:0.78rem; color:var(--muted);
}