  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --red: #E8201A;
    --red-dim: #9B1512;
    --bg: #0a0a0a;
    --surface: #111111;
    --surface2: #1a1a1a;
    --border: rgba(255,255,255,0.07);
    --text: #f0ede8;
    --text-muted: #888880;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  body.panel-open { overflow: hidden; }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: z-index 0s;
  }

  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
  }

  .nav-logo span { color: var(--red); }

  nav ul { list-style: none; display: flex; gap: 2.5rem; }

  nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  nav a:hover { color: var(--text); }

  /* HERO */
  .hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 0 4rem 6rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 15%;
    background-attachment: fixed;
  }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  background: rgba(0,0,0,0.25);
}

  .hero-rule {
    position: absolute;
    top: 0; left: 4rem;
    width: 1px;
    height: 100%;
    background: var(--border);
  }

  .hero-content { position: relative; max-width: 900px; }

  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--red);
  }

  h1 {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
  }

  h1 em { font-style: normal; color: var(--red); }

 .hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 300;
    line-height: 1.7;
    background: rgba(0,0,0,0.75);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(14px);
  }

  /* SECTION */
  section { padding: 4rem 4rem; }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    letter-spacing: 0.04em;
  }

  .section-count {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* GRID */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--border);
  }

  .project-card {
    background: var(--bg);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background 0.3s;
  }

  .project-card:hover { background: var(--surface); }

  .project-card.wide   { grid-column: span 7; }
  .project-card.narrow { grid-column: span 5; }
  .project-card.third  { grid-column: span 4; }
  .project-card.half   { grid-column: span 6; }

  .card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--surface2);
  }

  .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) brightness(0.8);
    transition: filter 0.5s, transform 0.6s;
  }

  .project-card:hover .card-thumb img {
    filter: grayscale(0%) brightness(0.95);
    transform: scale(1.03);
  }

  .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--surface2);
    background: var(--surface);
    letter-spacing: 0.1em;
    transition: color 0.3s;
  }

  .card-body { padding: 1.5rem 1.75rem 2rem; }

  .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .card-category {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
  }

  .card-year {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
  }

  .card-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
  }

  .project-card:hover .card-title { color: var(--red); }

  .card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
  }

  .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s, gap 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0;
  }

  .project-card:hover .card-arrow { color: var(--red); gap: 0.75rem; }
  .card-arrow svg { width: 14px; height: 14px; }

  /* =====================
     PROJECT PANEL OVERLAY
     ===================== */

  .panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
  }

  /* Dark scrim behind the panel */
  .panel-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    opacity: 0;
    transition: opacity 0.45s ease;
  }

  /* The sliding panel itself */
  .panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 92vh;
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .panel-overlay.is-open {
    pointer-events: all;
  }

  .panel-overlay.is-open .panel-scrim {
    opacity: 1;
  }

  .panel-overlay.is-open .panel {
    transform: translateY(0);
  }

  /* Panel top bar */
  .panel-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .panel-bar-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .panel-bar-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
  }

  .panel-bar-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--text);
  }

  .panel-close {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }

  .panel-close:hover { border-color: var(--red); color: var(--text); }

  .panel-close svg { width: 14px; height: 14px; }

  /* Panel content layout */
  .panel-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    min-height: calc(92vh - 65px);
  }

  .panel-main {
    padding: 3rem;
    border-right: 1px solid var(--border);
  }

  /* YouTube embed */
  .panel-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface2);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
  }

  .panel-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  /* Video placeholder (shown when no YouTube URL set) */
  .panel-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .panel-video-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }

  /* Extra images strip */
  .panel-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .panel-images .pimg {
    aspect-ratio: 16/9;
    background: var(--surface2);
    overflow: hidden;
  }
	.pimg-featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
  max-height: 70vh;
  align-items: center;
  }

  .panel-images .pimg img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s, transform 0.4s;
  }

  .panel-images .pimg:hover img {
    filter: brightness(1);
    transform: scale(1.04);
  }

  .panel-images .pimg-placeholder {
    width: 100%; height: 100%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface2);
    font-family: var(--font-display);
    font-size: 2rem;
  }

  /* Panel sidebar */
  .panel-sidebar {
    padding: 3rem 2.5rem;
  }

  .panel-sidebar h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
  }

  .panel-divider {
    height: 1px;
    background: var(--border);
    margin: 1.75rem 0;
  }

  .panel-detail-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.4rem;
  }

  .panel-detail-value {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .panel-long-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
  }

  .panel-long-desc p + p { margin-top: 1rem; }

  /* ABOUT */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }

  .about-visual {
    aspect-ratio: 4/5;
    background: var(--surface);
    position: relative;
    overflow: hidden;
  }

  .about-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
  }

  .about-text h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    line-height: 1;
  }

  .about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }

  .stat-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--red);
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }

  /* CONTACT */
  .contact-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .contact-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
  }

  .contact-inner h2 em { font-style: normal; color: var(--red); }

  .contact-inner p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--red);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
    background: transparent;
  }

  .btn:hover { background: var(--red); color: #fff; }

  /* FOOTER */
  footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
  }

  footer .footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--text);
  }

  footer .footer-logo span { color: var(--red); }

  .about-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--surface2);
    font-family: var(--font-display);
    font-size: 8rem;
  }
  
  .footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: var(--red);
  transition: color 0.2s;
  display: flex;
}

.footer-social a:hover { color: var(--text); }

.footer-social svg {
  width: 28px;
  height: 28px;
}

  @media (max-width: 900px) {
    nav { padding: 1.25rem 1.5rem; }
    nav ul { gap: 1.5rem; }
    .hero { padding: 0 1.5rem 4rem; }
    .hero-rule { left: 1.5rem; }
    section { padding: 5rem 1.5rem; }
    .project-card.wide,
    .project-card.narrow,
    .project-card.third,
    .project-card.half { grid-column: span 12; }
    .about { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { aspect-ratio: 3/2; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .panel-content { grid-template-columns: 1fr; }
    .panel-sidebar { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
    .panel-main { padding: 1.5rem; border-right: none; }
    .panel-bar { padding: 1rem 1.5rem; }
    .panel-images { grid-template-columns: repeat(2, 1fr); }
  }
  
  /* LIGHTBOX */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .lightbox.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
  }

  .lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }

  .lightbox-btn:hover { border-color: var(--red); background: rgba(232,32,26,0.1); }
  .lightbox-btn.prev { left: 2rem; }
  .lightbox-btn.next { right: 2rem; }
  .lightbox-btn svg { width: 20px; height: 20px; }

  .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
  }

  .lightbox-close:hover { border-color: var(--red); }
  .lightbox-close svg { width: 16px; height: 16px; }

  .lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
  }

  .pimg { cursor: pointer; }
  