/* ── Reset & Base ──────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; background: #ffffff; }
a { color: #111111; text-decoration: none; }
a:hover { color: #6b6b6b; }
::selection { background: #111111; color: #ffffff; }

/* ── Page Root ────────────────────────────────── */

.page-root {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  color: #111111;
  background: #ffffff;
  line-height: 1.5;
}


/* ── Site Header ─────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-inner {
  padding: 20px 20px;
  display: flex;
  align-items: center;
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: invert(1);
}

.menu-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #111111;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Nav Overlay (full-screen, two-column) ──── */

.menu-btn .menu-icon-close { display: none; }
.nav-open .menu-btn .menu-icon-open { display: none; }
.nav-open .menu-btn .menu-icon-close { display: block; }
.nav-open .menu-btn { display: none; }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  display: block;
  line-height: 0;
}

.nav-overlay-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: invert(1);
}

.nav-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1100px;
}

.nav-overlay-left {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 36px;
  flex-shrink: 0;
}

.nav-overlay-name {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-link {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 4px 0;
}

.nav-link:hover {
  color: #000000;
}

.nav-link.dimmed {
  color: #c7c7c7;
}

.nav-arrow {
  margin-right: 8px;
  color: #000000;
  font-family: 'MuseoModerno', sans-serif;
  font-style: normal;
  text-decoration: none;
}

.nav-link.dimmed .nav-arrow {
  color: #c7c7c7;
}

.nav-overlay-left-footer {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.nav-overlay-left-footer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .nav-overlay-left-footer a:hover {
    text-decoration: underline;
  }
}

.nav-overlay-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-preview {
  display: none;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #000000;
}

.nav-preview.active {
  display: block;
}

.nav-preview video,
.nav-preview img {
  width: 100%;
  display: block;
}

/* Legacy footer (hidden — replaced by in-column footer) */
.nav-overlay-footer {
  display: none;
}


/* ── Hero ──────────────────────────────────────── */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 48px 64px;
}

.hero h1 {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.hero-tagline {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 200;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #111111;
  max-width: 640px;
  margin: 0 0 20px;
}

.hero-tagline em {
  font-style: italic;
}

.hero-status {
  font-size: 16px;
  color: #111111;
  max-width: 620px;
  margin: 0;
}

/* ── Work Section ─────────────────────────────── */

.work {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px 60px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ── Project Card ─────────────────────────────── */

.project-header {
  border-top: 1px solid #e4e4e4;
  padding-top: 20px;
  margin-bottom: 16px;
}

.project-number-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.project-number {
  font-size: 12px;
  color: #6b6b6b;
  font-variant-numeric: tabular-nums;
}

.project-discipline {
  font-size: 12px;
  color: #6b6b6b;
}

.project-date {
  font-size: 12px;
  color: #6b6b6b;
  white-space: nowrap;
}

.project-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}

.project-desc {
  font-size: 15px;
  color: #111111;
  margin: 0;
  padding-right: 50px;
}

.project-desc em { font-style: italic; }

/* ── Project Media ────────────────────────────── */

.project-media {
  margin: 0 0 20px;
  line-height: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #000000;
  aspect-ratio: 16 / 9;
}

.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  outline: none;
  object-fit: cover;
}

/* ── Narrative Row ────────────────────────────── */

.narrative-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  cursor: pointer;
}

.highlight-preview video {
  width: 100%;
  display: block;
}

.project-narrative {
  flex: 1;
  min-width: 0;
}

.project-narrative p {
  font-size: 15px;
  color: #111111;
  margin: 0;
  line-height: 1.6;
}

.project-narrative strong {
  font-weight: 600;
}

.project-narrative a {
  text-decoration: underline;
}

/* ── Expand Toggle ────────────────────────────── */

.expand-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 40px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-top: 2px;
  padding: 0;
}

@media (hover: hover) {
  .expand-toggle:hover {
    border-color: #000000;
    color: #000000;
  }
}

.expand-toggle svg {
  transition: transform 0.3s ease;
}

.expand-toggle[aria-expanded="true"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.expand-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Meta Wrapper (expand/collapse) ───────────── */

.meta-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.meta-wrapper.expanded {
  grid-template-rows: 1fr;
}

.meta-wrapper > .project-meta {
  overflow: hidden;
}

/* ── Project Meta (single column) ────────────── */

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
  padding-right: 50px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 10px;
}

.meta-role-text {
  font-size: 15px;
}

.meta-mentions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-mentions a {
  font-size: 15px;
  text-decoration: underline;
  word-break: break-word;
}

.meta-highlights {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  color: #111111;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: disc;
}

/* ── Additional Highlights ────────────────────── */

.additional-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.additional-inner {
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  padding: 32px 0;
}

.additional-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 28px;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-row {
  position: relative;
  display: inline-block;
}

.highlight-label {
  font-size: 15px;
  color: #111111;
  cursor: pointer;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .highlight-row:hover .highlight-label {
    text-decoration: underline;
  }
}

.highlight-arrow {
  text-decoration: none;
  display: inline-block;
  margin-right: 4px;
}

.highlight-preview {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 380px;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  z-index: 30;
}

.highlight-row:hover .highlight-preview {
  opacity: 1;
  transform: scale(1);
}

/* ── About ────────────────────────────────────── */

.about {
  background: transparent;
  color: #111111;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.about-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  padding-top: 24px;
  margin-bottom: 24px;
}

.about-bio {
  font-size: 15px;
  color: #111111;
  max-width: none;
  margin: 0 0 40px;
  text-align: left;
  line-height: 1.6;
}

.about-bio p {
  margin: 0 0 16px;
}

.about-bio em {
  font-style: italic;
}

.bio-list-intro {
  margin-bottom: 8px !important;
}

.bio-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


/* ── Placeholders ─────────────────────────────── */

.placeholder-inline {
  background: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 13px;
  font-style: italic;
}

.placeholder-photo {
  background: #f0f0f0;
  border: 2px dashed #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}

.placeholder-thumb {
  background: #f0f0f0;
  border: 2px dashed #d0d0d0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

/* ── Footer ───────────────────────────────────── */

.site-footer {
  background: transparent;
  color: #6b6b6b;
  text-align: left;
  padding: 24px 20px;
  font-size: 13px;
}

/* ── Utilities ───────────────────────────────── */

.hidden { display: none; }

/* ── Project Detail Overlay (mobile) ─────────── */

.project-detail-overlay {
  display: none;
}

/* ── Responsive ───────────────────────────────── */

/* Mobile: keep header backdrop for readability */
@media (max-width: 600px) {
  .site-header {
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .site-header.scrolled {
    background: #ffffff;
  }
  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  .project-desc {
    display: block;
    font-size: 14px;
  }

  .narrative-row {
    display: none;
  }

  .meta-wrapper {
    display: none;
  }

  .project {
    cursor: pointer;
  }

  .project-title {
    font-size: 18px;
  }

  .project-narrative p,
  .project-desc,
  .meta-role-text,
  .meta-highlights,
  .meta-mentions a {
    font-size: 14px;
  }

  .project-detail-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #000000;
    padding: 60px 24px 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .project-detail-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .project-detail-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
  }

  .project-detail-content .project-header {
    border-top: none;
  }

  .project-detail-content .project-desc {
    display: block;
    font-size: 15px;
    color: #111111;
    margin: 0;
    padding-right: 0;
  }

  .project-detail-content .project-media {
    margin: 16px 0 20px;
  }

  .project-detail-content .narrative-row {
    display: flex;
  }

  .project-detail-content .meta-wrapper {
    display: grid;
  }

  .project-detail-content .narrative-body {
    display: inline;
  }

  .project-detail-content .project-meta {
    padding-right: 0;
  }

  .nav-overlay-inner {
    flex-direction: column;
    gap: 36px;
  }
  .nav-overlay-right {
    display: none;
  }
  .nav-overlay {
    padding: 80px 24px 48px;
  }
  .nav-link { font-size: 22px; }
  .nav-overlay-name { font-size: 15px; }
  .nav-overlay-left-footer a { font-size: 12px; }
}

/* Small mobile (≤390px — iPhone, SE) */
@media (max-width: 390px) {
  .header-inner { padding: 14px 16px; }
  .hero { padding: 80px 20px 32px; }
  .hero h1 { font-size: 28px; }
  .hero-tagline { font-size: 28px; max-width: none; }
  .hero-status { font-size: 14px; }
  .work { padding: 0 20px 32px; }
  .additional-section { padding: 0 20px; }
  .about-inner { padding: 0 20px 48px; }
  .site-footer { padding: 20px 16px; }
  .projects-list { gap: 48px; }
  .project-media { border-radius: 16px; }
  .highlight-preview { width: 220px; }
  .nav-overlay { padding: 72px 20px 32px; }
  .nav-overlay-logo { top: 14px; left: 16px; }
  .nav-close-btn { top: 14px; right: 16px; }
  .project-meta { padding-right: 0; }
}

/* Large mobile (391px–430px — iPhone Pro Max) */
@media (min-width: 391px) and (max-width: 430px) {
  .header-inner { padding: 16px 20px; }
  .hero { padding: 84px 24px 36px; }
  .hero h1 { font-size: 30px; }
  .hero-tagline { font-size: 30px; max-width: none; }
  .work { padding: 0 24px 36px; }
  .additional-section { padding: 0 24px; }
  .about-inner { padding: 0 24px 56px; }
  .site-footer { padding: 20px 20px; }
  .projects-list { gap: 52px; }
  .project-media { border-radius: 18px; }
  .highlight-preview { width: 260px; }
  .nav-overlay { padding: 76px 24px 36px; }
  .nav-overlay-logo { top: 16px; left: 20px; }
  .nav-close-btn { top: 16px; right: 20px; }
  .project-meta { padding-right: 0; }
}

/* General mobile (431px–600px) */
@media (min-width: 431px) and (max-width: 600px) {
  .header-inner { padding: 16px 24px; }
  .hero { padding: 88px 24px 40px; }
  .work { padding: 0 24px 40px; }
  .additional-section { padding: 0 24px; }
  .about-inner { padding: 0 24px 60px; }
  .site-footer { padding: 24px 24px; }
  .projects-list { gap: 56px; }
  .project-media { border-radius: 20px; }
  .highlight-preview { width: 280px; }
  .nav-overlay { padding: 80px 32px 40px; }
  .nav-overlay-logo { top: 16px; left: 24px; }
  .nav-close-btn { top: 16px; right: 24px; }
  .project-meta { padding-right: 0; }
}

/* Tablet (601px–1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero { padding: 96px 40px 40px; }
  .work { padding: 0 40px 48px; }
  .additional-section { padding: 0 40px; }
  .about-inner { padding: 0 40px 80px; }
  .site-footer { padding: 24px 20px; }
  .nav-overlay { padding: 80px 40px 40px; }
}

/* Small laptop (1025px–1280px — 13") */
@media (min-width: 1025px) and (max-width: 1280px) {
  .hero { padding: 100px 48px 40px; }
}

/* Large monitor (1920px+) */
@media (min-width: 1920px) {
  .hero { max-width: 1000px; }
  .work { max-width: 1000px; }
  .additional-section { max-width: 1000px; }
  .about-inner { max-width: 1000px; }
}
