:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --accent: #c9a84c;
  --card: #151515;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

body.lightbox-open {
  overflow: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 40px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.lang-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  z-index: 50;
}

.lang-btn {
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.logo img {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.main-nav {
  display: flex;
  gap: 4px;
  font-weight: 500;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-tab.active {
  color: var(--accent);
  background: rgba(201,168,76,0.12);
  border-bottom: 2px solid var(--accent);
}

.hero {
  position: relative;
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: url("images/res/bg_en.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  border-radius: 20px;
}

html[lang="zh-CN"] .hero {
  background-image: url("images/res/bg.jpg");
}

html[lang="en"] .hero {
  background-image: url("images/res/bg_en.jpg");
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 150px 110px 160px 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  min-height: 620px;
}

.hero-motto {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 64px);
  margin-bottom: 18px;
  color: #111111;
  font-size: clamp(20px, 2.5vw, 42px);
  font-weight: 100;
  letter-spacing: 0.28em;
}

.hero-content h1 {
  width: auto;
  font-size: clamp(72px, 9vw, 150px);
  line-height: 1;
  margin-bottom: 36px;
  color: #000000;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
}

.hero-subtitle-wrap {
  width: auto;
  display: block;
}

.hero-subtitle-line {
  display: none;
}

.hero-subtitle {
  max-width: none;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.92);
  text-align: left;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(373px, 1.33fr);
  gap: 40px;
  align-items: start;
  margin-top: 150px;
}

.about-text {
  position: relative;
}

.about-text h2 {
  font-size: 43px;
  margin-top: -92px;
  margin-bottom: 64px;
  color: var(--accent);
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-toggle-btn:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.72);
}

.about-toggle-btn.hidden {
  display: none;
}

.about-text p:first-of-type {
  font-size: 24px;
  color: var(--text);
  margin-top: -40px;
  margin-bottom: 18px;
}

.about-gallery {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

.team-panel {
  background: var(--bg-soft);
  padding: 56px 0 96px;
}

.team-section-header {
  max-width: 900px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-detail-view.hidden {
  display: none;
}

.team-detail-view {
  margin-top: 24px;
}

.team-back-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.team-detail-card {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.team-detail-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(201, 168, 76, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.team-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-detail-role {
  display: inline-flex;
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.8px;
}

.team-detail-name {
  font-size: 30px;
  line-height: 1.2;
}

.team-detail-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.team-member-card {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-member-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(201, 168, 76, 0.35);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  overflow: hidden;
}

.team-member-meta {
  min-width: 0;
}

.team-member-role {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.team-member-name {
  font-size: 28px;
  line-height: 1.2;
}

.team-member-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.projects-panel {
  padding: 56px 0 96px;
}

.news-panel {
  background: var(--bg-soft);
  padding: 56px 0 96px;
}

.contact-panel {
  padding: 56px 0 96px;
}

.contact-shell {
  display: block;
}

.contact-intro {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.contact-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.24);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.contact-intro h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-intro p {
  color: var(--muted);
  max-width: 28ch;
}

.contact-content {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.contact-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--accent);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-list a {
  color: var(--text);
  font-size: 18px;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-list a:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card.active {
  border-color: rgba(201, 168, 76, 0.65);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(21, 21, 21, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.project-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 20px;
}

.project-card-body h3 {
  margin-bottom: 10px;
  color: #4da3ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-card-body p {
  color: var(--muted);
}

.project-detail {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(466px, 700px) 1fr;
  gap: 28px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.project-detail.hidden,
.project-showcase.hidden,
.projects-grid.hidden {
  display: none;
}

.project-showcase {
  margin-top: 48px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.01)), rgba(10, 10, 10, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.project-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent);
  font-size: 22px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-back-btn-top {
  margin-bottom: 20px;
}

.project-back-btn-bottom {
  margin-top: 24px;
}

.project-back-btn:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.65);
  transform: translateY(-1px);
}

.project-back-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.showcase-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.showcase-items {
  display: grid;
  gap: 40px;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.showcase-item.reverse {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.showcase-item-media img,
.showcase-item-media video {
  width: 100%;
  border-radius: 18px;
  background: #000;
}

.showcase-item-text h4 {
  font-size: 28px;
  margin-bottom: 14px;
}

.showcase-item-text p,
.project-detail-meta,
.project-detail-content p,
.showcase-intro-main p {
  color: var(--muted);
}

.project-detail-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
}

.showcase-intro-main h3,
.project-detail-content h3 {
  font-size: 36px;
  margin-bottom: 16px;
}

.project-detail-meta {
  list-style: none;
  display: grid;
  gap: 14px;
}

.project-detail-meta li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 16px;
}

.project-detail-media img,
.project-detail-media video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
}

#project-detail-media-c img {
  aspect-ratio: 13 / 8;
  height: auto;
  min-height: 0;
}

html[lang="en"] #project-detail-media-b img {
  aspect-ratio: 35 / 24;
  height: auto;
  min-height: 0;
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-date {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
}

.news-card h3 {
  margin-bottom: 12px;
}

.news-card p {
  color: var(--muted);
}

.news-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
}

.news-card-image {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  margin-top: 18px;
}

.zoomable-image {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.zoomable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.zoomable-image:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox-content {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  width: auto;
}

.image-lightbox-preview {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.image-lightbox-close:hover {
  transform: scale(1.04);
}

.image-lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0 20px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  height: 44px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .about-content,
  .contact-shell,
  .project-detail,
  .showcase-intro,
  .showcase-item {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 132px 72px 136px 180px;
  }

  .hero-content h1 {
    font-size: clamp(60px, 8vw, 110px);
  }

  .section-header h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .projects-panel.mobile-project-list-view .project-showcase,
  .projects-panel.mobile-project-list-view .project-detail {
    display: none;
  }

  .projects-panel.mobile-project-detail-view .projects-grid,
  .projects-panel.mobile-project-detail-view .section-header p {
    display: none;
  }

  .projects-panel.mobile-project-detail-view .project-back-btn {
    display: inline-flex;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 36px;
  }

  .main-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    aspect-ratio: 1200 / 620;
    background-size: cover;
  }

  .hero-content {
    min-height: auto;
    padding: 12.5% 6% 13% 21.6667%;
  }

  .hero-motto {
    gap: clamp(10px, 2.8vw, 24px);
    margin-bottom: clamp(8px, 1.8vw, 14px);
    flex-wrap: nowrap;
    font-size: clamp(10px, 2.6vw, 18px);
    letter-spacing: 0.18em;
  }

  .hero-content h1 {
    font-size: clamp(28px, 8vw, 92px);
    margin-bottom: clamp(10px, 2.4vw, 22px);
    max-width: none;
  }

  .hero-subtitle-wrap {
    width: auto;
  }

  .hero-subtitle {
    font-size: clamp(9px, 2.15vw, 18px);
    max-width: none;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .about-content {
    margin-top: 80px;
  }

  html[lang="en"] .about-text.about-collapsible .about-text-content.about-text-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  html[lang="en"] .about-text.about-collapsible .about-text-content.about-text-collapsed p {
    margin-bottom: 0;
  }

  .about-text h2 {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 34px;
  }

  .about-text p:first-of-type {
    margin-top: 0;
    font-size: 20px;
  }

  .carousel-slide img {
    height: 260px;
  }

  .team-member-card {
    padding: 22px;
  }

  .team-member-toggle {
    display: none;
  }

  .team-member-head {
    align-items: flex-start;
  }

  .team-member-avatar {
    width: 76px;
    height: 76px;
  }

  .team-member-name {
    font-size: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    border-radius: 18px;
  }

  .project-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project-card-body {
    padding: 18px;
  }

  .project-card-body h3 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .project-card-body p {
    font-size: 15px;
    line-height: 1.8;
  }

  .project-showcase,
  .project-detail {
    margin-top: 28px;
    padding: 24px;
  }

  .project-back-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .project-back-btn-top {
    margin-bottom: 16px;
  }

  .project-back-btn-bottom {
    margin-top: 20px;
  }

  .showcase-intro {
    gap: 20px;
    margin-bottom: 32px;
  }

  .showcase-items {
    gap: 28px;
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .showcase-intro-main h3,
  .project-detail-content h3 {
    font-size: 30px;
  }

  .showcase-item-text h4 {
    font-size: 26px;
    line-height: 1.25;
  }

  .showcase-item-text p,
  .showcase-intro-main p,
  .project-detail-content p,
  .project-detail-meta li {
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
  }

  .project-detail-meta {
    gap: 12px;
  }

  .project-detail-meta li {
    padding: 14px 16px;
  }

  .showcase-item-media img,
  .showcase-item-media video,
  .project-detail-media img,
  .project-detail-media video {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .team-panel.mobile-team-list-view .team-detail-view {
    display: none;
  }

  .team-panel.mobile-team-detail-view .team-grid,
  .team-panel.mobile-team-detail-view .team-section-header p {
    display: none;
  }

  .team-panel.mobile-team-detail-view .team-detail-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px);
    gap: 18px;
  }

  .team-panel.mobile-team-detail-view .team-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
  }

  .team-panel.mobile-team-detail-view .team-detail-card {
    width: min(100%, 420px);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

  .team-panel.mobile-team-detail-view .team-detail-bio {
    max-width: 32ch;
    text-align: left;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .site-header {
    padding-bottom: 26px;
  }

  .site-header .container {
    width: min(100%, calc(100% - 12px));
  }

  .nav-wrapper {
    gap: 6px;
    padding: 12px 0;
  }

  .logo img {
    height: 30px;
  }

  .main-nav {
    gap: 0;
  }

  .nav-tab {
    padding: 5px 6px;
    font-size: 11px;
    border-radius: 4px;
  }

  .lang-switcher {
    position: absolute;
    right: 8px;
    top: calc(100% - 16px);
    bottom: auto;
    z-index: 20;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .section-header p {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    border-radius: 16px;
  }

  .hero-content {
    min-height: auto;
    padding: 12.5% 6% 13% 21.6667%;
  }

  .hero-motto {
    margin-bottom: clamp(6px, 1.6vw, 12px);
    gap: clamp(8px, 2.2vw, 16px);
    font-size: clamp(8px, 2.5vw, 16px);
    letter-spacing: 0.14em;
  }

  .hero-content h1 {
    font-size: clamp(24px, 8.2vw, 58px);
    margin-bottom: clamp(8px, 2vw, 16px);
    letter-spacing: 0.04em;
  }

  .hero-subtitle-wrap {
    width: auto;
  }

  .hero-subtitle {
    font-size: clamp(8px, 1.95vw, 15px);
    line-height: 1.6;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .lang-switcher {
    right: 16px;
    bottom: 16px;
  }

  .team-member-card {
    gap: 12px;
    min-width: 0;
  }

  .team-member-head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .team-member-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
  }

  .team-member-role {
    margin-bottom: 0;
    align-self: center;
    padding: 5px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
    border: 1px solid rgba(201, 168, 76, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .team-member-name {
    font-size: 18px;
    line-height: 1.25;
  }

  .team-member-card > .team-member-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f3f3f3;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.4px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .team-member-card > .team-member-toggle {
    display: inline-flex;
  }

  .team-member-card {
    cursor: pointer;
  }

  .team-member-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .team-member-card > .team-member-toggle:hover,
  .team-member-card.is-expanded > .team-member-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.28);
    transform: translateY(-1px);
  }

  .team-member-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .team-member-bio {
    display: none;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
  }

  .team-panel.mobile-team-list-view .team-member-bio {
    display: none;
  }

  .team-panel.mobile-team-list-view .team-member-card.is-expanded .team-member-bio {
    display: none;
  }

  .team-panel,
  .projects-panel,
  .news-panel,
  .contact-panel {
    padding-top: 36px;
  }

  .project-card-body h3 {
    font-size: 24px;
  }

  .project-showcase,
  .project-detail,
  .contact-intro,
  .contact-card,
  .news-card,
  .team-member-card {
    padding: 18px;
  }

  .showcase-intro-main h3,
  .project-detail-content h3 {
    font-size: 24px;
    line-height: 1.25;
  }

  .showcase-item-text h4 {
    font-size: 20px;
  }

  .project-detail-label {
    font-size: 12px;
    padding: 5px 10px;
  }

  .project-detail-meta li {
    padding: 12px 14px;
  }

  .project-back-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .project-back-btn-top {
    margin-bottom: 14px;
  }

  .project-back-btn-bottom {
    margin-top: 18px;
  }

  .footer-main {
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-content {
    max-width: 100%;
  }

  .image-lightbox-close {
    top: -12px;
    right: -4px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}
