
:root{
  --bg:#121212;
  --panel:#171717;
  --panel-2:#1d1d1d;
  --ink:#f5f5f5;
  --ink-d:#cfcfcf;
  --muted:#9a9a9a;
  --accent:#ff6f61;
  --line:#262626;
  --stroke:#262626;
  --shadow:0 20px 40px rgba(0,0,0,.42);
  --radius:20px;
  --r:18px;
}

/* ---------- Reset / base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
button{font:inherit}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(255,111,97,.06), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255,111,97,.04), transparent 20%);
  z-index:-1;
}

.wrap{
  max-width:1220px;
  margin:0 auto;
  padding:1rem 1.25rem;
}

/* ---------- Header / Nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(10px);
  background:rgba(18,18,18,.9);
  border-bottom:1px solid #222;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.logo{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:1.5rem;
  letter-spacing:.5px;
  white-space:nowrap;
}

.nav ul{
  display:flex;
  list-style:none;
  gap:1rem;
  padding:0;
  margin:0;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  position:relative;
  font-size:.95rem;
  transition:color .2s ease, transform .2s ease;
}

.nav a::after{
  content:"";
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .2s ease;
}

.nav a:hover,
.nav a:focus{
  color:var(--accent);
  transform:translateY(-2px);
}

.nav a:hover::after{width:100%}

/* Simple "back to portfolio" link used on sub-pages */
.back,
.back-link{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.9rem;
  color:var(--ink-d);
  opacity:.9;
  white-space:nowrap;
  transition:color .2s ease, transform .2s ease, opacity .2s ease;
}
.back:hover,
.back-link:hover{
  color:var(--accent);
  transform:translateY(-1px);
  opacity:1;
}

/* ---------- Hero (rotating image / banner) ---------- */
.hero{
  position:relative;
  min-height:clamp(480px, 75vh, 720px);
  overflow:hidden;
  background:#0c0c0c;
  border-bottom:1px solid #222;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
  background-size:cover;
  background-position:center 20%;
  transform:scale(1.02);
}
.hero-slide.active{opacity:1}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(18,18,18,.18), rgba(18,18,18,.75));
  z-index:1;
}

.hero-inner{
  position:relative;
  z-index:2;
  min-height:clamp(480px, 75vh, 720px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  max-width:1220px;
  margin:0 auto;
  padding:2rem 1.25rem 1.6rem;
}

.hero-inner h1{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:clamp(2.5rem,6vw,4.6rem);
  line-height:1;
}

.subtitle{
  margin:.45rem 0 0;
  color:var(--accent);
  max-width:850px;
  font-weight:700;
  font-size:clamp(1rem,2vw,1.25rem);
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}

.page-copy{
  margin:.35rem 0 0;
  color:var(--ink-d);
  max-width:820px;
}

/* ---------- Project-style page hero (sub-pages) ---------- */
.page-hero{
  max-width:1220px;
  margin:0 auto 1.35rem;
  border:1px solid var(--stroke);
  border-radius:var(--r);
  background:linear-gradient(135deg,#1a1a1a,#101010);
  box-shadow:var(--shadow);
  padding:1.35rem;
}
.page-hero h1{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:clamp(2.25rem,5vw,3.7rem);
  line-height:1;
}
.page-hero p{
  margin:.45rem 0 0;
  color:var(--ink-d);
  max-width:740px;
  font-size:.96rem;
}

/* ---------- Main layout ---------- */
main{
  max-width:1220px;
  margin:0 auto;
  padding:1.25rem;
}

/* ---------- Project strip + filters ---------- */
.project-strip{
  margin:0 0 1.25rem;
  padding:1rem;
  border:1px solid #252525;
  border-radius:var(--radius);
  background:linear-gradient(180deg,#181818,#151515);
  box-shadow:var(--shadow);
}

.project-strip-top{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  margin-bottom:.85rem;
  text-align:center;
}

.project-strip-title{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:1.35rem;
  color:var(--ink);
  line-height:1.1;
}

/* Filters now read as a single segmented control rather than tags */
.project-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.25rem;
  background:#101010;
  border:1px solid #2a2a2a;
  border-radius:999px;
  padding:.25rem;
}

.filter{
  border:none;
  background:transparent;
  color:#cfcfcf;
  padding:.38rem .9rem;
  border-radius:999px;
  cursor:pointer;
  font-size:.8rem;
  font-weight:700;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.filter:hover{
  color:#fff;
  transform:translateY(-1px);
}

.filter.active{
  background:var(--accent);
  color:#000;
}

.project-row{
  display:flex;
  gap:.65rem;
  overflow-x:auto;
  padding-bottom:.45rem;
  scrollbar-width:thin;
  scrollbar-color:#333 transparent;
}
.project-row::-webkit-scrollbar{height:6px}
.project-row::-webkit-scrollbar-thumb{background:#333;border-radius:999px}

.project-card{
  flex:0 0 auto;
  width:200px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #252525;
  background:#0c0c0c;
  transition:transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.project-card:hover{
  transform:translateY(-3px);
  border-color:#444;
}
.project-card img,
.project-card video{
  width:100%;
  height:140px;
  object-fit:cover;
  background:#0c0c0c;
}
.project-card-body{
  padding:.52rem .55rem .58rem;
  min-height:58px;
}
.project-card-body h3{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:.88rem;
  line-height:1.05;
}
.project-card-body p{
  margin:.2rem 0 0;
  color:var(--muted);
  font-size:.68rem;
  line-height:1.25;
}

/* ---------- Section titles ---------- */
.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:1rem;
  margin:1.75rem 0 .85rem;
}
.section-title h2{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:clamp(1.6rem,3vw,2.3rem);
  color:var(--accent);
  line-height:1.05;
}
.section-title p{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
  text-align:right;
}

/* Generic content section (sub-pages) */
.section{margin-top:2.25rem}
.section h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.6rem, 3vw, 2.1rem);
  margin:0 0 .75rem;
  color:var(--accent);
}
.section p{
  margin:.25rem 0 0;
  color:var(--ink-d);
  font-size:.95rem;
  max-width:860px;
}

/* ---------- Card / panel pattern (used for project sections) ---------- */
.card,
.project,
section.project{
  background:linear-gradient(180deg,#181818,#151515);
  border:1px solid var(--stroke);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card-pad,
.project-body{
  padding:1.1rem;
}

/* ---------- Art / image grids ---------- */
.art-section{
  background:linear-gradient(180deg,#181818,#151515);
  border:1px solid #252525;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.art-section-inner{padding:1.15rem}

.art-grid,
.grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(3, 1fr);
  align-items:start;
}

.art-grid img,
.grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid #232323;
  background:#0c0c0c;
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.art-grid img:hover,
.grid img:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,.38);
  border-color:#343434;
}

.single-art img{
  width:100%;
  max-width:980px;
  margin:0 auto;
  border-radius:12px;
  border:1px solid #232323;
  background:#0c0c0c;
  cursor:pointer;
}

/* ---------- Pills ---------- */
.pill{
  border-radius:999px;
  padding:.28rem .8rem;
  border:1px solid #2a2a2a;
  background:#141414;
  color:var(--ink-d);
  font-size:.8rem;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}
.pill-strong{
  background:var(--accent);
  color:#000;
  border-color:var(--accent);
  font-weight:800;
}
.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.25rem;
}

/* ---------- Chips (jump links) ---------- */
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #2d2d2d;
  border-radius:999px;
  background:#151515;
  padding:.48rem .8rem;
  color:var(--ink-d);
  font-size:.83rem;
  font-weight:700;
  transition:transform .15s ease,border-color .2s ease,color .2s ease;
}
.chip:hover{transform:translateY(-2px);border-color:#454545;color:var(--ink)}

/* ---------- Buttons ---------- */
.btn-row{
  max-width:1220px;
  margin:1.25rem auto 0;
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  justify-content:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.75rem 1.1rem;
  border-radius:999px;
  border:1px solid #2a2a2a;
  background:#161616;
  color:var(--ink);
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .25s ease, border-color .2s ease;
}
.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  border-color:#3a3a3a;
}
.btn.primary{background:var(--accent); color:#000; border-color:transparent}

.contact-btn{
  display:block;
  text-align:center;
  border:1px solid #2a2a2a;
  padding:.82rem .95rem;
  border-radius:999px;
  background:#181818;
  color:var(--ink);
  font-weight:700;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.contact-btn:hover{
  transform:translateY(-2px);
  background:#202020;
  border-color:#3a3a3a;
}

.small-link{
  color:var(--ink-d);
  font-size:.9rem;
  border:1px solid #2a2a2a;
  border-radius:999px;
  padding:.45rem .8rem;
  background:#181818;
}
.small-link:hover{color:var(--accent);border-color:#3a3a3a}

/* ---------- About / Contact ---------- */
.about-contact{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:1rem;
  margin-top:1.25rem;
}
.about-box,
.contact-box{
  padding:1.15rem;
  border-radius:var(--radius);
  background:linear-gradient(180deg,#181818,#151515);
  border:1px solid #252525;
  box-shadow:var(--shadow);
}
.about-box h2,
.contact-box h2{
  margin:0 0 .55rem;
  font-family:'Playfair Display',serif;
  font-size:1.45rem;
  color:var(--accent);
}
.about-box p{
  margin:0;
  color:var(--ink-d);
  font-size:.95rem;
  line-height:1.6;
}
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
}
.extra-links{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:.85rem;
}

/* ---------- Footer ---------- */
footer{
  padding:1.15rem 1.25rem 2rem;
  color:#8e8e8e;
  font-size:.88rem;
  text-align:center;
  border-top:1px solid #202020;
}
footer p{margin:.6rem auto 0; max-width:860px; color:#9a9a9a}
footer a{color:var(--accent)}
footer a:hover{text-decoration:underline}

/* ---------- Lightbox (shared across pages) ---------- */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:1.25rem;
  visibility:hidden;
  opacity:0;
  transition:opacity .2s ease, visibility .2s;
}
.lightbox.open,
.lightbox.show{
  visibility:visible;
  opacity:1;
  display:flex;
}

.lightbox img{
  max-width:min(1100px, 96vw);
  max-height:86vh;
  width:auto;
  height:auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:#0c0c0c;
}

.lightbox .media{
  width:min(1180px, 96vw);
  max-height:88vh;
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox .media img{
  max-width:100%;
  max-height:85vh;
  width:auto;
  height:auto;
  border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,.65);
  background:#000;
  cursor:zoom-in;
  transition:none;
  display:block;
}
.lightbox .media img.lb-zoomed{
  max-width:none;
  max-height:none;
  width:auto;
  height:auto;
  cursor:zoom-out;
}
.lightbox .media video{
  max-width:100%;
  max-height:85vh;
  border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,.65);
  background:#000;
}

.lb-btn,
.lb-close,
.lightbox .close{
  position:absolute;
  border:none;
  background:rgba(0,0,0,.58);
  color:#fff;
  cursor:pointer;
  user-select:none;
  transition:background .18s ease, transform .18s ease;
}
.lb-btn,
.lightbox .controls button{
  top:50%;
  transform:translateY(-50%);
  font-size:1.4rem;
  padding:.6rem .9rem;
  border-radius:999px;
  opacity:.9;
}
.lb-btn:hover,
.lb-close:hover,
.lightbox .close:hover,
.lightbox .controls button:hover{
  background:rgba(0,0,0,.88);
  opacity:1;
}
.lb-prev,
.lightbox .controls #prev{left:1rem}
.lb-next,
.lightbox .controls #next{right:1rem}

.lb-close,
.lightbox .close{
  top:1rem;
  right:1rem;
  font-size:1.2rem;
  padding:.55rem .8rem;
  border-radius:999px;
}

.lightbox .controls{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.lightbox .controls button{pointer-events:auto}

.lightbox .caption{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:1.05rem;
  color:var(--ink-d);
  font-size:.95rem;
  text-align:center;
  max-width:min(920px, 92vw);
  padding:0 .75rem;
}

/* ---------- Project page hero (used on sub-pages like Fish and Game) ---------- */
.project-hero{
  border:1px solid var(--stroke);
  border-radius:var(--r);
  overflow:hidden;
  background:linear-gradient(180deg,#171717,#141414);
  box-shadow:var(--shadow);
  margin-bottom:1.35rem;
}
.hero-top{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  border-bottom:1px solid var(--stroke);
  min-height:360px;
}
.hero-media{
  background:#0b0b0b;
  position:relative;
  min-height:360px;
}
.hero-media img{
  width:100%;height:100%;
  object-fit:cover;
  opacity:.92;
  filter:saturate(.95) contrast(1.05);
}
.hero-media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.25),rgba(0,0,0,.55));
  pointer-events:none;
}
.hero-meta{
  padding:1.25rem 1.25rem 1.35rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.75rem;
}
.hero-meta h1{
  font-family:'Playfair Display',serif;
  margin:0;
  font-size:clamp(2rem,3.8vw,3rem);
  line-height:1.1;
}
.hero-meta p{margin:0;color:var(--ink-d);font-size:.95rem}

/* Jump chips bar */
.jump{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  padding:1rem 1.1rem;
  border-top:1px solid var(--stroke);
  background:#101010;
}

/* Key assets grid */
.keygrid{
  margin-top:1.15rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.kcard{
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  display:flex;
  flex-direction:column;
  min-height:240px;
  color:inherit;
  text-decoration:none;
}
.kcard:hover{transform:translateY(-6px);border-color:#3a3a3a;box-shadow:0 18px 36px rgba(0,0,0,.55)}
.kmedia{height:150px;background:#0b0b0b;border-bottom:1px solid var(--stroke);overflow:hidden}
.kmedia img,.kmedia video{width:100%;height:100%;object-fit:cover}
.kmeta{padding:.85rem .95rem}
.kmeta strong{display:block;font-size:.98rem}
.kmeta span{display:block;color:var(--ink-d);font-size:.88rem;margin-top:.25rem}

/* Video wrapper (16/9 embed or inline video) */
.video-wrap{
  margin-top:1rem;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background:#000;
  aspect-ratio:16/9;
  box-shadow:0 10px 26px rgba(0,0,0,.45);
}
.video-wrap iframe,.video-wrap video{
  width:100%;height:100%;
  border:0;display:block;
  background:#000;object-fit:cover;
}

/* .grid — auto-fit columns for sub-pages */
.grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin-top:1rem;
}

/* Media tiles */
.media-tile{
  border:1px solid var(--stroke);
  border-radius:16px;
  overflow:hidden;
  background:#0b0b0b;
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.media-tile:hover{transform:translateY(-5px);border-color:#3a3a3a;box-shadow:0 16px 34px rgba(0,0,0,.55)}
.media-tile img{width:100%;height:220px;object-fit:cover;background:#0b0b0b;display:block}
.media-tile .cap{
  padding:.7rem .85rem;
  border-top:1px solid var(--stroke);
  color:var(--ink-d);
  font-size:.88rem;
  background:#101010;
}

/* Subhead inside project sections */
.subhead{
  font-family:'Playfair Display',serif;
  color:var(--ink);
  font-size:1.25rem;
  margin:1.5rem 0 .6rem;
}

/* ---------- Featured works grid (homepage) ---------- */
.featured-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1rem;
}
/* span helpers */
.feat-span-2{grid-column:span 2}
.feat-span-3{grid-column:span 3}
.feat-span-6{grid-column:span 6}

.feat-item{
  border-radius:14px;
  overflow:hidden;
  border:1px solid #252525;
  background:#0c0c0c;
  cursor:pointer;
  position:relative;
  display:block;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.feat-item:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,.38);
  border-color:#343434;
}
.feat-item img,.feat-item video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#0c0c0c;
  pointer-events:none;
}
/* fixed heights per span so rows look intentional */
.feat-span-3 .feat-media,
.feat-span-2 .feat-media{ height:320px }
.feat-span-6 .feat-media{ height:460px }

.feat-media{
  width:100%;
  overflow:hidden;
  background:#0c0c0c;
  position:relative;
}
/* label overlays the image — gradient fade for readability */
.feat-label{
  position:absolute;
  bottom:0; left:0; right:0;
  padding:.7rem .85rem .75rem;
  background:linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.0) 100%);
  pointer-events:none;
}
.feat-label strong{display:block;font-size:.88rem;color:#fff}
.feat-label span{display:block;font-size:.76rem;color:rgba(255,255,255,.65);margin-top:.1rem}
/* tall portrait items — show the full image at natural height, no crop */
.feat-tall .feat-media{height:auto; min-height:200px}
.feat-tall .feat-media img{height:auto; width:100%; object-fit:initial}

.feat-placeholder{
  height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:.4rem;
  background:repeating-linear-gradient(
    45deg,
    #131313,
    #131313 10px,
    #161616 10px,
    #161616 20px
  );
  color:var(--muted);
  font-size:.82rem;
  text-align:center;
}
.feat-placeholder .ph-icon{font-size:1.6rem;opacity:.35}
.feat-play{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:50px;height:50px;
  background:rgba(0,0,0,.62);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  transition:background .18s ease,transform .18s ease;
}
.feat-item:hover .feat-play{background:rgba(0,0,0,.88);transform:translate(-50%,-50%) scale(1.08)}
.feat-play::after{
  content:'';
  border-left:17px solid #fff;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  margin-left:4px;
}

/* Sketchbook page styles */
.page-head{
  max-width:1220px;
  margin:0 auto 2rem;
}
.page-head h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(2.2rem,5vw,3rem);
  margin:0 0 .5rem;
}
.page-head p{margin:0;color:var(--ink-d);max-width:740px;font-size:.95rem;line-height:1.7}
.fun-card{
  max-width:1220px;
  margin:0 auto;
  background:#171717;
  border-radius:var(--radius);
  border:1px solid #242424;
  box-shadow:var(--shadow);
  padding:1.5rem;
}
.thumb-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:.75rem;
  margin-top:1rem;
}
.thumb-grid img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
  opacity:.85;
  border:1px solid #2a2a2a;
  background:#0c0c0c;
  display:block;
  transition:opacity .18s ease,border-color .18s ease,transform .15s ease,box-shadow .18s ease;
}
.thumb-grid img:hover{
  opacity:1;
  transform:scale(1.04);
  border-color:var(--accent);
  box-shadow:0 0 12px rgba(255,111,97,.2);
}
.studies{margin:2.5rem auto 0;padding:0 1.25rem 3rem;max-width:1220px}
.studies h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.4rem,3vw,2rem);
  margin:0 0 .5rem;
  color:var(--accent);
}
.studies p{margin:.25rem 0 1rem;color:var(--ink-d);max-width:640px}
.study-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.study-grid img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #2a2a2a;
  background:#0c0c0c;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
}
.study-grid img:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.4)}

/* Sketchbook fullscreen lightbox */
.lb-inner{
  position:absolute;inset:0;
  display:grid;
  grid-template-rows:auto 1fr;
}
.lb-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.85rem 1rem;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(10,10,10,.55);
  backdrop-filter:blur(10px);
}
.lb-title{
  font-weight:600;
  color:var(--ink-d);
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lb-btn-sk{
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:var(--ink);
  border-radius:999px;
  padding:.55rem .9rem;
  cursor:pointer;
  font:inherit;
  transition:background .15s ease,transform .12s ease;
}
.lb-btn-sk:hover{background:rgba(255,255,255,.10);transform:scale(1.03)}
.lb-stage{
  position:relative;
  display:grid;
  place-items:center;
  padding:1rem;
}
.lb-img{
  max-width:min(1200px,96vw);
  max-height:calc(100vh - 110px);
  width:auto;height:auto;
  object-fit:contain;
  border-radius:14px;
  background:#0c0c0c;
  box-shadow:0 30px 80px rgba(0,0,0,.75);
}
.lb-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;height:52px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(0,0,0,.55);
  color:var(--ink);
  font-size:1.5rem;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  user-select:none;
  font:inherit;
  transition:background .15s ease,transform .12s ease;
}
.lb-arrow:hover{background:rgba(0,0,0,.80);transform:translateY(-50%) scale(1.04)}
.lb-arrow.left{left:14px}
.lb-arrow.right{right:14px}

/* Diaperbank / animation page styles */
.content-2col{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:1rem;
  align-items:start;
  margin-top:1.25rem;
}
.media-block{
  border:1px solid #2a2a2a;
  border-radius:14px;
  overflow:hidden;
  background:#0c0c0c;
  margin-top:1rem;
}
.media-head{
  padding:.75rem .9rem;
  border-bottom:1px solid #232323;
  background:#141414;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:.5rem;
}
.media-head h3{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:1.15rem;
  color:var(--ink);
}
.media-head span{color:var(--ink-d);font-size:.85rem}
.frame{
  aspect-ratio:16/9;
  width:100%;
  background:#0c0c0c;
  display:block;
  border:0;
}
video.frame{object-fit:cover}
.img-frame{
  width:100%;
  display:block;
  background:#0c0c0c;
  max-height:680px;
  object-fit:contain;
}
.media-foot{
  padding:.7rem .9rem;
  color:var(--ink-d);
  font-size:.92rem;
  border-top:1px solid #232323;
  background:#131313;
}
.meta-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.5rem;
  margin:1rem 0 0;
  padding:0;
}
.meta-list li{
  position:relative;
  padding-left:1.2rem;
  color:var(--ink-d);
  font-size:.92rem;
}
.meta-list li::before{
  content:"";
  position:absolute;
  left:0;top:.15em;bottom:.15em;
  width:4px;
  border-radius:2px;
  background:var(--accent);
}
.meta-list strong{color:var(--ink);font-weight:700}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .art-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  .hero-top{grid-template-columns:1fr}
  .featured-grid{grid-template-columns:repeat(4,1fr)}
  .feat-span-6{grid-column:span 4}
  .feat-span-3{grid-column:span 4}
  .feat-span-2{grid-column:span 2}
  .content-2col{grid-template-columns:1fr}
}

@media (max-width:800px){
  .project-strip-top,
  .section-title,
  .about-contact{
    display:block;
  }
  .project-filters{justify-content:flex-start;margin-top:.7rem}
  .section-title p{text-align:left;margin-top:.3rem}
  .contact-box{margin-top:1rem}
  .page-hero{display:block}
}

@media (max-width:600px){
  .hero{min-height:420px}
  .hero-inner{min-height:420px}
  .art-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .project-card{width:148px}
  .project-card img,.project-card video{height:104px}
  .featured-grid{grid-template-columns:1fr 1fr}
  .feat-span-6,.feat-span-3{grid-column:span 2}
  .feat-span-2{grid-column:span 1}
  .feat-span-3 .feat-media,.feat-span-2 .feat-media,.feat-span-6 .feat-media{height:200px}
  .feat-placeholder{height:200px}
}

@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}