:root {
  --bg: #f7f3ef;
  --panel: #f2e9e0;
  --sidebar: #200f06;
  --sidebar-text:#200f06;
  --muted: #726763;
  --text: hwb(21 2% 87%);
  --card-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  --border: rgba(29, 27, 26, 0.08);
  --accent: #d5785f;
  --accent-soft:#200f06;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-color: #0f0f10;
 

  /* fixed background image, 1920x1080-style crop */
  background-image:
    url("https://github.com/PalmettoPeril/Benji-DeMay-Portfolio/blob/main/sketchbg.webp?raw=true");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
@media (max-width: 980px) {
  body {
    background-image: url("https://github.com/PalmettoPeril/Benji-DeMay-Portfolio/blob/main/sketchbg_mobile_new.webp?raw=true");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
  }
}
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar-meta a,
.nav a,
.brand-block a {
  color: #200f06;
}

.sidebar-meta a:hover,
.nav a:hover,
.brand-block a:hover {
  color: #dac663;
}

.sidebar {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-right: 1px solid rgba(61, 35, 22, 0.15);
  color: #200f06;

  padding-top: 2.25rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex: 1;
}

.nav-toggle {
  position: absolute;
  right: 0;
}

.brand-block {
  text-align: left;
  margin-top: 1.1rem;
  margin-left: 0.2rem;
}

.nav {
  margin-top: 1.5rem;
  padding-left: 0.2rem;
}

.sidebar-meta {
  margin-top: 2rem;
  padding-left: 0.2rem;
  border-top: 1px solid rgba(61, 35, 22, 0.12);
}

.brand-block h1,
.brand-block p,
.nav a,
.sidebar-meta,
.sidebar-meta a {
  color: #200f06;
}

.brand-block p {
  opacity: 0.8;
}

.nav a {
  color: #200f06;
}

.nav a:hover,
.nav a.active {
  background: rgba(61, 35, 22, 0.08);
  color: #200f06;
}

.sidebar-meta a {
  color: #200f06;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f2c3a4, #d5785f);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.avatar.small {
  width: 48px;
  height: 48px;
  font-size: 0.8rem;
}

.brand-block {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-block h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.brand-block p {
  margin: 0.45rem 0 0;
  color: #200f06;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: auto;
}

.nav a {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: #200f06;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.sidebar-meta {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  color: #200f06;
  font-size: 0.9rem;
}

.sidebar-meta p {
  margin: 0 0 0.5rem;
}

.sidebar-meta a {
  color: #200f06;
}

.content {
  padding: 2.5rem clamp(1rem, 2vw, 2rem);
}

.mobile-header {
  display: block;
  padding: 1rem 0 1.2rem;
  text-align: center;
}

.mobile-header .avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(61, 35, 22, 0.12);
  border-radius: 18px;
  padding: 0.75rem;
}

.mobile-nav a {
  display: block;
  text-align: center;
  padding: 0.8rem 1rem;
  color: #1f1a1a;
  border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(61, 35, 22, 0.08);
}

.nav-toggle {
  display: none;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.hero-copy .intro-text {
  color: rgba(44, 23, 13, 0.08);
}
.hero-copy h2,
.page-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p.intro-text {
  color: #2b1509 !important;

  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;

}
.hero-copy,
.page-intro,
.section-heading,
.gallery-card,
.about-grid > div,
.card-caption {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(61, 35, 22, 0.08);
}

.hero-copy {
  padding: 1.5rem 1.75rem;
  border-radius: 24px;
}

.page-intro {
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
}

.section-heading {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  display: inline-block;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.25);
}

.card-caption {
  border-top: 1px solid rgba(61, 35, 22, 0.08);
  border-radius: 0;
}

.about-grid > div {
  border-radius: 20px;
  padding: 1.3rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 245, 241, 0.05);
  color: var(--text);
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.featured,
.about,
.page-intro {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.gallery-card.ringmaster img {
  object-position: top center;
}

.gallery-card.kappacomic img {
  object-position: bottom center;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-card.tall img {
  height: 420px;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card.wide img {
  height: 340px;
}

.card-caption {
  padding: 0.9rem 1rem 1.1rem;
}

.card-caption h4 {
  margin: 0 0 0.28rem;
  font-size: 1.05rem;
}

.card-caption span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.about-grid > div {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem;
}

.about-grid h4 {
  margin-top: 0;
  font-size: 1.15rem;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding-bottom: 1rem;
  }

  .nav {
    display: none;
  }

  .sidebar.open .nav {
    display: flex;
    margin-top: 1rem;
  }

  .sidebar-meta {
    margin-top: 1.2rem;
  }

  .mobile-header {
  display: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 980px) {
  .mobile-header {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-header,
  .nav-toggle {
    display: none !important;
  }
}

  .hero {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .content {
    padding-top: 1rem;
  }
  .content {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
}


.hero-copy,
.page-intro,
.section-heading,
.gallery-card,
.about-grid > div,
.card-caption {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(61, 35, 22, 0.08);
}

.hero-copy {
  padding: 1.5rem 1.75rem;
  border-radius: 24px;
}

.page-intro {
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
}

.section-heading {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  display: inline-block;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-card img {
  background: rgba(255, 255, 255, 0.2);
}

.card-caption {
  border-top: 1px solid rgba(61, 35, 22, 0.08);
  border-radius: 0;
}

.about-grid > div {
  border-radius: 20px;
  padding: 1.3rem;
}


  .gallery-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.wide {
    grid-column: span 1;
  }

  .hero-image img {
    height: 320px;
  }
 .video-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.gallery-card a {
  display: block;
  cursor: pointer;
}

.gallery-card img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-card a:hover img {
  transform: scale(1.01);
  opacity: 0.96;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  width: 90px;
  height: 42px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 981px) {
  .mobile-header,
  .mobile-brand,
  .nav-toggle {
    display: none !important;
  }
}



.video-link {
  position: relative;
  display: block;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-caption {
  margin-top: auto;
  padding: 0.9rem 1rem 1.1rem;
}
}

.video-link {
  position: relative;
  display: block;
  width: 100%;
  height: 420px;
  overflow: hidden;
  line-height: 0;
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #1d1b1a;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}
@media (min-width: 901px) {
  .video-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 900px) {
  .video-row {
    display: block;
  }

  .video-row > .gallery-card {
    margin-bottom: 1.2rem;
  }
}
@media (min-width: 981px) {
  .mobile-header,
  .mobile-brand,
  .nav-toggle {
    display: none !important;
  }
}
html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

#lightbox,
.lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.82) !important;
  padding: 2rem !important;
  box-sizing: border-box !important;
}

#lightbox.open,
.lightbox.open {
  display: flex !important;
}

#lightbox img,
.lightbox img {
  max-width: min(92vw, 1200px) !important;
  max-height: 90vh !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35) !important;
  background: white !important;
}

#lightbox .lightbox-close,
.lightbox-close {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.5rem !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: white !important;
  width: 90px !important;
  height: 42px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  
}
 .storyboard-page .storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.storyboard-page .storyboard-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(61, 35, 22, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.storyboard-page .storyboard-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.storyboard-page .storyboard-trigger img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.storyboard-page .storyboard-meta {
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(61, 35, 22, 0.08);
  padding: 0.9rem 1rem 1rem;
}

.storyboard-page .storyboard-meta h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f1a1a;
  line-height: 1.4;
}