﻿/* ==========================================================================
   Tabbed Portfolio Shell
   ========================================================================== */

/* Current submission UI: website-style tabs, not presentation paging. */
body.tabbed-portfolio {
  min-height: 100vh;
  overflow: hidden;
  background: #101417;
}

body.tabbed-portfolio .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 76px;
  color: #f7f0e4;
  border-bottom: 1px solid rgba(205, 156, 68, .42);
  background:
    linear-gradient(90deg, rgba(202,154,71,.12), transparent 22%, rgba(83,126,142,.1) 82%, rgba(202,154,71,.1)),
    linear-gradient(180deg, rgba(18, 24, 27, .98), rgba(10, 14, 17, .98));
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

body.tabbed-portfolio .topbar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -8px;
  height: 8px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(205, 156, 68, .72) 10%, rgba(245, 209, 128, .72) 50%, rgba(205, 156, 68, .72) 90%, transparent),
    linear-gradient(90deg, transparent, rgba(205, 156, 68, .28) 14%, rgba(205, 156, 68, .28) 86%, transparent);
  background-size: 100% 1px, 100% 1px;
  background-position: center 1px, center 6px;
  background-repeat: no-repeat;
  opacity: .9;
}

body.tabbed-portfolio .brand strong {
  color: #fffdf8;
}

body.tabbed-portfolio .brand span {
  color: rgba(232, 223, 201, .72);
}


body.tabbed-portfolio .nav {
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(205, 156, 68, .34);
  border-radius: 12px;
  background: rgba(12, 15, 18, .88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 246, 220, .04);
}

body.tabbed-portfolio .nav a {
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  color: rgba(255, 253, 248, .78);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}

body.tabbed-portfolio .nav a:hover {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

body.tabbed-portfolio .nav a.is-active {
  border: 0;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(158, 52, 39, .36);
}

body.tabbed-portfolio .page-section {
  display: none;
  height: calc(100vh - 76px);
  margin-top: 76px;
  overflow: auto;
  overscroll-behavior: contain;
}

body.tabbed-portfolio .page-section.is-page-active {
  display: block;
}

body.tabbed-portfolio .hero.page-section.is-page-active {
  display: flex;
}

body.tabbed-portfolio footer {
  display: none !important;
}

body.tabbed-portfolio .work-function-layout {
  padding-top: 34px;
  padding-bottom: 44px;
}

@media (max-width: 900px) {
  body.tabbed-portfolio {
    overflow: auto;
  }

  body.tabbed-portfolio .topbar {
    position: sticky;
  }

  body.tabbed-portfolio .page-section {
    min-height: calc(100vh - 96px);
    height: auto;
    margin-top: 0;
  }
}

  

.hero-collage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 20px;
}

.hero-shot {
  position: relative;
  min-height: 104px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #25211d;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  display: block;
  object-fit: cover;
  opacity: .78;
  filter: saturate(.92) contrast(.96);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-shot span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72));
  pointer-events: none;
}

.hero-shot:hover img,
.hero-shot:focus-visible img {
  opacity: .98;
  transform: scale(1.035);
}

.hero-shot:focus-visible {
  outline: 3px solid rgba(241, 199, 91, .72);
  outline-offset: 2px;
}

.project-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
}

.project-panel-media {
  position: relative;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #24211f;
}

.project-panel-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
  opacity: .9;
}

.project-panel-media span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0,0,0,.75);
  z-index: 1;
}

.project-panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0,0,0,.72));
  pointer-events: none;
}

.project-panel-media.is-text {
  display: grid;
  place-items: end start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(171,45,20,.34), transparent 46%),
    linear-gradient(160deg, #262a2d, #1b1917);
}

.project-panel-media.is-text span {
  position: static;
  max-width: 180px;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  h1 {
    white-space: normal;
  }

  .project-panel-head {
    grid-template-columns: 1fr;
  }

  .project-panel-media {
    min-height: 220px;
  }

}

@media (max-width: 760px) {
  .hero-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

