/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #111;
  font-family: 'Barlow', sans-serif;
}

/* ── LAYOUT SHELL ── */
#shell {
  position: fixed; inset: 0;
  display: flex;
}

/* ══════════════════════════════
   LEFT PANEL
══════════════════════════════ */
#left-panel {
  width: 260px;
  flex-shrink: 0;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  z-index: 50;
}

#logo-wrap {
  padding: 0 1.8rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
#logo-wrap img {
  width: 100%;
  max-width: 190px;
  display: block;
}

/* Section nav */
.sec-nav {
  padding: 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sec-nav::-webkit-scrollbar { width: 3px; }
.sec-nav::-webkit-scrollbar-track { background: transparent; }
.sec-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.sec-nav-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: color 0.25s;
  padding: 0;
  margin-bottom: 0.55rem;
  line-height: 1.1;
  background: none; border: none; text-align: left;
}
.sec-nav-label:hover { color: rgba(255,255,255,0.75); }
.sec-nav-label.active { color: #fff; }

/* Sub-nav project list */
.sub-nav {
  padding: 0 1.8rem 0 2.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 0;
  opacity: 0;
  /* negative margin-top cancels the label's margin-bottom when collapsed,
     so a closed sub-nav adds zero extra space between its two neighbours  */
  margin-top: -0.55rem;
  margin-bottom: 0.55rem;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}
.sub-nav.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 0;
}
.sub-nav-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  background: none; border: none; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sub-nav-item:hover { color: rgba(255,255,255,0.75); }
.sub-nav-item.active { color: #c8a96e; }

/* Contact nav (bottom) */
.contact-nav {
  margin-top: auto;
  padding: 1.5rem 1.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.contact-nav-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: color 0.25s;
  background: none; border: none; text-align: left;
  line-height: 1.1;
}
.contact-nav-label:hover,
.contact-nav-label.active { color: #fff; }

/* ══════════════════════════════
   MAIN STAGE
══════════════════════════════ */
#stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#sections-track {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  display: flex;
  transition: transform 0.75s cubic-bezier(0.77,0,0.175,1);
}

.section-panel {
  width: calc(100vw - 260px);
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Background image */
.panel-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
/* sits between .panel-bg and .panel-overlay; used for cross-fading */
.panel-bg-over {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.panel-overlay {
  position: absolute; inset: 0;
  background: transparent;
}

/* ══════════════════════════════
   ABOUT PANEL
══════════════════════════════ */
.about-content {
  position: absolute; inset: 0;
  display: flex;
  align-items: stretch;
}
.about-text-col {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  position: relative;
  z-index: 2;
}
.about-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #c8a96e;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.about-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.88;
  color: #fff;
  margin-bottom: 1.2rem;
}
.about-body {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 440px;
}
.about-body p { margin-bottom: 0.6rem; }

.expertise-list {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
}
.exp-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.2);
}
.stats-bar {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
}
.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: #c8a96e;
}
.stat-l {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

/* ══════════════════════════════
   PROJECT PANELS
══════════════════════════════ */
.panel-ui {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.5rem;
}
.panel-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}
.panel-project-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.9;
  margin-bottom: 1rem;
}

/* Accordion */
.info-accordion {
  display: flex;
  flex-direction: column;
  max-width: 520px;
}
.accordion-row {
  border-top: 1px solid rgba(255,255,255,0.15);
}
/* translucent bg behind the open accordion section */
.accordion-row:has(.accordion-body.open) {
  background: rgba(0, 0, 0, 0.55);
  padding: 0 0.75rem;
  margin: 0 -0.75rem;
  border-top-color: transparent;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: none; border: none; width: 100%; text-align: left;
  transition: color 0.2s;
}
.accordion-header:hover,
.accordion-header.open { color: #c8a96e; }
.accordion-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s;
}
.accordion-header.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.accordion-body.open { display: block; }
.accordion-body p { margin-bottom: 0.5rem; }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 0.8rem;
}
.meta-k {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: #c8a96e;
  text-transform: uppercase;
}
.meta-v {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* Experience projects list */
.exp-proj-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.exp-proj-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.exp-proj-link:hover {
  color: #c8a96e;
  border-bottom-color: #c8a96e;
}
.exp-proj-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* Project team list */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.team-item {
  font-size: 0.82rem;
  line-height: 1.4;
}
.team-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-right: 0.3rem;
}
.team-name {
  color: rgba(255,255,255,0.65);
}

/* ── PHOTO FILMSTRIP (project panels) ── */
.photo-strip-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.photo-strip {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.photo-strip img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Thumbnail strip */
.thumb-strip {
  position: absolute;
  right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 120px;
  height: 100%;
  overflow: hidden;
}
.thumb-strip img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
  min-height: 0;
}
.thumb-strip img:hover,
.thumb-strip img.active { opacity: 1; }

/* Experience roles list */
.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}
.role-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.role-item:last-child { border-bottom: none; }
.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.role-header.clickable {
  cursor: pointer;
}
.role-header.clickable:hover .role-title {
  color: #fff;
}
.role-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.role-years {
  font-size: 0.78rem;
  color: #c8a96e;
  white-space: nowrap;
  flex-shrink: 0;
}

.role-desc {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.role-desc.open {
  max-height: 400px;
  opacity: 1;
}
.role-desc li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
  padding-left: 0.2rem;
}

/* ══════════════════════════════
   CONTACT PANEL
══════════════════════════════ */
.contact-content {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 3rem;
  z-index: 2;
}
.contact-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #c8a96e;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.contact-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 0.9;
  margin-bottom: 2rem;
}
.contact-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.contact-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover { color: #c8a96e; border-color: #c8a96e; }
.contact-edu {
  margin-top: 2.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
}

/* ══════════════════════════════
   ARROWS & COUNTER
══════════════════════════════ */
.nav-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.3);
  color: #fff;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.nav-arrow:hover { background: rgba(200,169,110,0.3); border-color: #c8a96e; }
#arrow-prev { left: 1rem; }
#arrow-next { right: 1rem; }
.nav-arrow.hidden { opacity: 0; pointer-events: none; }

#slide-counter {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 20;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════
   MOBILE
══════════════════════════════ */
@media (max-width: 768px) {
  #left-panel {
    width: 100%; height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #logo-wrap { padding: 0; border: none; margin: 0; flex: 1; }
  #logo-wrap img { max-width: 130px; }
  .sec-nav, .sub-nav, .contact-nav { display: none; }

  #mobile-nav {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #mobile-nav::-webkit-scrollbar { display: none; }
  .mob-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    background: none; border: none; cursor: pointer;
  }
  .mob-btn.active { color: #c8a96e; }

  #stage { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; }
  .section-panel { width: 100vw; }
  .thumb-strip { display: none; }
  .about-text-col { width: 100%; padding: 3rem 1.5rem; }
  .panel-ui { padding: 2rem 1.5rem; }
}

@media (min-width: 769px) {
  #mobile-nav { display: none; }
}

/* ══════════════════════════════
   CONTENT BOX (translucent backdrop)
══════════════════════════════ */
.panel-content-box {
  background: rgba(0, 0, 0, 0.55);
  padding: 1.4rem 1.8rem 1.6rem;
  margin-top: 0.6rem;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

/* ══════════════════════════════
   SKILLS PANEL
══════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.5rem;
  max-width: 520px;
  margin-bottom: 0.5rem;
}
.skill-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a96e;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.2);
}

/* ══════════════════════════════
   PUBLICATIONS PANEL
══════════════════════════════ */
.pub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  max-width: 860px;
  margin-bottom: 0.5rem;
}
.pub-item {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.pub-source {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 0.15rem;
}
.pub-title {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
}
.pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.pub-title a:hover {
  color: #c8a96e;
  border-bottom-color: #c8a96e;
}
.pub-year {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.1rem;
}

/* ══════════════════════════════
   EDUCATION PANEL
══════════════════════════════ */
.edu-list {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin-bottom: 0.5rem;
}
.edu-item {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.edu-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.2rem;
}
.edu-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
