/* ═══════════════════════════════════════════════════════
   sections.css — per-section layout styles
   ATK Portfolio Site
════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════
   SECTION 0 — HOME  (full viewport, grid layout matching Figma)
════════════════════════════════════════════════════════ */

.home {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden;
  /* Grid layout for content area */
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--nav-total-w);
  grid-template-rows: 26% 1fr;
}

/* Full-screen background photo — full bleed behind grid */
.home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Dark overlay — bottom gradient for name bar readability */
.home-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 28, 34, 0.0) 0%,
    rgba(26, 28, 34, 0.0) 60%,
    rgba(26, 28, 34, 0.8) 85%,
    rgba(26, 28, 34, 0.95) 100%
  );
  z-index: 1;
}

/* Top-left subtitle — grid row 1, col 2 */
.home-subtitle {
  grid-column: 2;
  grid-row: 1;
  z-index: 10;
  padding: 32px 0 0 24px;
  align-self: start;
}

.home-subtitle .subtitle-line {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.08em;
  line-height: 2;
  opacity: 0.85;
}

/* Couch photo — grid row 2, col 2, fills remaining space */
.home-couch {
  grid-column: 2;
  grid-row: 1 / -1;    /* span all rows */
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-end;  /* couch sits at bottom */
  justify-content: center;
  padding-bottom: 0;
  transform: translateY(240px);  /* push couch down so bottom is hidden by name bar */
}

.home-couch img {
  width: 110%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

/* Center Subtract shape — no longer used */
.home-subtract { display: none; }
.home-subtract img {}

/* Center play button — absolute over couch */
.home-play {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: 80px;
  height: 80px;
}

/* Name bar — absolute at bottom, overlaps couch */
.home-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: var(--nav-total-w);
  z-index: 15;
  padding: 0 0 24px var(--sidebar-w);
  display: flex;
  align-items: flex-end;
  background: rgba(123, 123, 123, 0.85);
}

.home-name img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  object-position: left bottom;
}


/* ════════════════════════════════════════════════════════
   SECTION 01 — 外滩经典之夜
════════════════════════════════════════════════════════ */

.section-01 {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.sec01-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
}

/* Left: full-height ATK photo ~40% */
.sec01-left {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.sec01-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Right: 2-row grid ~60% */
.sec01-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top row: heading + intro, ~40% height */
.sec01-top {
  flex: 0 0 40%;
  padding: 28px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.sec01-heading {
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.2;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 900;
}

.sec01-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sec01-body p {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--cream);
  line-height: 1.8;
}

/* Bottom row: setlist + photos side by side, ~55% height */
.sec01-bottom {
  flex: 1;
  display: flex;
  flex-direction: row;
}

/* Bottom-left: setlist */
.sec01-setlist {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
}

.sec01-subheading {
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.3;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cream);
}

.setlist {
  display: flex;
  flex-direction: row;
  gap: 14px;
  list-style: none;
}

.setlist-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setlist li {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  color: var(--cream);
  line-height: 1.5;
}

.setlist li em {
  font-style: italic;
  color: var(--text);
}

/* Bottom-right: two stacked photos ~35% */
.sec01-photos {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
}

.sec01-photo-venue {
  flex: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.sec01-photo-venue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sec01-photo-tower {
  flex: 1;
  overflow: hidden;
}

.sec01-photo-tower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* ════════════════════════════════════════════════════════
   SECTION 02 — 介绍
════════════════════════════════════════════════════════ */

.section-02 {
  height: 100%;
}

.sec02-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

.sec02-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec02-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  height: 100%;
  border: 1px solid var(--border);
}

/* Left column: text content only (~50%) */
.sec02-left {
  flex: 0 0 50%;
  position: relative;
  overflow: visible;
  border-right: 1px solid var(--border);
  z-index: 2;
}

/* Text content */
.sec02-text {
  position: relative;
  z-index: 4;
  padding: 32px 36px 32px 36px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sec02-heading {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.sec02-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec02-body p {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--cream);
  line-height: 1.9;
}

.sec02-accordion {
  padding: 0;
}

/* Accordion wrap in bottom-right */
.sec02-accordion-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 36px;
}

/* ATK figure: absolutely positioned relative to sec02-inner, spans across columns */
.sec02-figure {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 55%;
  height: 90%;
  pointer-events: none;
}

.sec02-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

/* Right column: family photo top (~50%) */
.sec02-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Family photo — top ~55% of right column */
.sec02-photo-family {
  flex: 0 0 55%;
  overflow: hidden;
  filter: grayscale(100%);
  border-bottom: 1px solid var(--border);
}

.sec02-photo-family img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}


/* ════════════════════════════════════════════════════════
   SECTION 03 — 专业
════════════════════════════════════════════════════════ */

.section-03 {
  height: 100%;
}

.sec03-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
}

.sec03-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec03-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  height: 100%;   /* fill section height so children can use % */
  border: 1px solid var(--border);
}

/* Left: static photo (exact Figma image) */
.sec03-photo {
  flex: 0 0 48%;
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--border);
}

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

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: rgba(0,0,0,0.3);
}

/* Right: text + mentor + accordion */
.sec03-content {
  flex: 1;
  padding: 36px 36px 36px 44px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec03-heading {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.sec03-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sec03-body p {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--cream);
  line-height: 1.9;
}

/* Mentor photo block — full column width, border above */
.sec03-mentor {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0 0 0;
  background: none;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  margin-left: -44px;
  margin-right: -36px;
  padding-left: 44px;
  padding-right: 36px;
}

.mentor-photo {
  flex: 0 0 clamp(140px, 16vw, 200px);
  width: clamp(140px, 16vw, 200px);
  height: clamp(160px, 18vw, 240px);
  overflow: hidden;
  border-radius: 0;
  order: 1;
}

.mentor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mentor-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 6px;
  writing-mode: vertical-rl;
  height: clamp(160px, 18vw, 240px);
  justify-content: flex-end;
  order: 0;
}

.mentor-name {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}

.mentor-title {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  color: var(--cream);
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.sec03-accordion {
  margin-top: auto;
}


/* ════════════════════════════════════════════════════════
   SECTION 04 — 演出
════════════════════════════════════════════════════════ */

.section-04 {
  overflow-y: auto;
}

.sec04-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;  /* let content expand naturally for scroll */
}

/* Full-bleed photo grid — Figma proportions:
   top-left 48%×50%, bottom-left 33%×50%, right 52%×100%
*/
.sec04-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  grid-template-rows: 1fr 1fr;
  height: 75vh;
  min-height: 500px;
}

.sec04-cell {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.sec04-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sec04-cell:hover img {
  transform: scale(1.03);
}

/* 12 Tenors: top left */
.cell-group {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.cell-group img { object-position: center bottom; }

/* ATK on chair — bottom left (portrait, show face) */
.cell-solo1 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.cell-solo1 img { object-position: center 25%; }

/* ATK arm outstretched — right column spans BOTH rows (show arm from top) */
.cell-solo2 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
.cell-solo2 img { object-position: 35% 5%; }

/* Caption strip */
.sec04-caption-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec04-caption-strip .sec-number {
  flex-shrink: 0;
  font-size: 48px;
  opacity: 0.12;
  margin: 0;
}

.sec04-captions {
  flex: 1;
}

.sec04-caption-main {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sec04-caption-sub {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(11px, 0.9vw, 12px);
  color: var(--cream);
  line-height: 1.7;
  opacity: 0.85;
}

/* Sub-section B: photo grid + text */
.sec04-b {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.sec04-b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 80vh;
  min-height: 500px;
}

.sec04-b-left {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.sec04-b-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sec04-b-right-top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.sec04-b-right-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec04-b-right-bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  overflow: hidden;
}

.sec04-b-right-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sec04-b-text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.sec04-b-heading {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.sec04-b-text p {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--cream);
  line-height: 1.9;
}

/* Banner strip */
.sec04-banner {
  width: 100%;
  overflow: hidden;
  max-height: 200px;
}

.sec04-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Sub-section C: roles table */
.sec04-c {
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
}

.sec04-c-heading {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}


/* ════════════════════════════════════════════════════════
   SECTION 05 — 媒体
════════════════════════════════════════════════════════ */

.section-05 {
  height: 100%;
}

.sec05-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

.sec05-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec05-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  height: 100%;   /* fill section so children can be 100% tall */
  align-items: stretch;
}

/* Left: 3-image stack */
.sec05-left {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border-dim);
}

.voice-img-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.voice-img-stack img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-dim);
}

.voice-img-stack img:last-child {
  border-bottom: none;
}

/* Center: logo + text */
.sec05-center {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
}

.voice-logo {
  width: 140px;
  margin-bottom: 8px;
}

.voice-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sec05-heading {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.sec05-body {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--cream);
  line-height: 1.9;
}

/* Right: stage photo with play button */
.sec05-right {
  flex: 0 0 35%;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border-dim);
}

.sec05-stage-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.sec05-stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay on stage photo */
.sec05-stage-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,28,34,0.4) 0%, transparent 40%);
  z-index: 1;
}

.sec05-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 80px;
  height: 80px;
}


/* ════════════════════════════════════════════════════════
   RESPONSIVE — adapt layout for different resolutions
════════════════════════════════════════════════════════ */

/* Large screens (1600px+) — give content more room */
@media (min-width: 1600px) {
  .home-couch img {
    width: 105%;
    max-height: 92vh;
  }
  .home-name img {
    max-height: 150px;
  }
  .sec01-top { padding: 40px 48px; }
  .sec01-setlist { padding: 28px 36px; }
  .sec04-grid { height: 78vh; }
}

/* Medium-large screens (1200–1440px) — default, no changes needed */

/* Medium screens (1024–1199px) — tighten proportions */
@media (max-width: 1199px) {
  .home-couch {
    transform: translateY(200px);
  }
  .home-couch img {
    width: 105%;
    max-height: 85vh;
  }
  .home-name img {
    max-height: 110px;
  }

  /* Section 01 */
  .sec01-left { flex: 0 0 35%; }
  .sec01-top { flex: 0 0 38%; padding: 24px 28px; gap: 8px; }
  .sec01-setlist { padding: 20px 24px; }
  .sec01-photos { flex: 0 0 32%; }
  .sec01-heading { font-size: clamp(18px, 2.2vw, 28px); }
  .sec01-body p { font-size: clamp(10px, 0.95vw, 12px); }

  /* Section 02 */
  .sec02-left { flex: 0 0 48%; }
  .sec02-heading { font-size: clamp(18px, 2.2vw, 30px); }
  .sec02-text { padding: 28px 30px; }

  /* Section 03 */
  .sec03-photo { flex: 0 0 44%; }
  .sec03-content { padding: 28px 28px 28px 36px; }
  .sec03-heading { font-size: clamp(20px, 2.5vw, 36px); }

  /* Section 04 */
  .sec04-grid { height: 65vh; }
  .sec04-b-grid { height: 70vh; }

  /* Section 05 */
  .sec05-left { flex: 0 0 25%; }
  .sec05-right { flex: 0 0 32%; }
}

/* Smaller screens (768–1023px) — compact layout */
@media (max-width: 1023px) {
  .home-couch {
    transform: translateY(160px);
  }
  .home-couch img {
    width: 100%;
    max-height: 80vh;
  }
  .home-name img {
    max-height: 90px;
  }
  .home-subtitle { padding: 20px 0 0 16px; }

  /* Section 01 */
  .sec01-left { flex: 0 0 32%; }
  .sec01-top { flex: 0 0 35%; padding: 20px 24px; gap: 6px; }
  .sec01-setlist { padding: 16px 20px; }
  .sec01-photos { flex: 0 0 30%; }
  .setlist { gap: 8px; }
  .setlist li { font-size: clamp(9px, 0.8vw, 11px); line-height: 1.4; }

  /* Section 02 */
  .sec02-left { flex: 0 0 45%; }
  .sec02-figure { width: 50%; height: 85%; }
  .sec02-text { padding: 24px 28px; gap: 12px; }
  .sec02-heading { font-size: clamp(16px, 2vw, 26px); }
  .sec02-body p { font-size: clamp(10px, 0.9vw, 12px); }

  /* Section 03 */
  .sec03-photo { flex: 0 0 40%; }
  .sec03-content { padding: 24px 24px 24px 32px; gap: 12px; }
  .sec03-heading { font-size: clamp(18px, 2.2vw, 32px); }
  .sec03-body p { font-size: clamp(11px, 1vw, 13px); }
  .mentor-photo {
    flex: 0 0 clamp(110px, 14vw, 160px);
    width: clamp(110px, 14vw, 160px);
    height: clamp(130px, 16vw, 200px);
  }
  .mentor-label { height: clamp(130px, 16vw, 200px); }

  /* Section 04 */
  .sec04-grid { height: 55vh; min-height: 350px; }
  .sec04-b-grid { height: 60vh; min-height: 400px; }
  .sec04-caption-strip { padding: 16px 28px; }
  .sec04-b-text { padding: 36px 28px; }
  .sec04-c { padding: 36px 28px; }

  /* Section 05 */
  .sec05-left { flex: 0 0 22%; }
  .sec05-center { padding: 32px 36px; }
  .sec05-right { flex: 0 0 30%; }
}
