/* ============================================================
   Full-bleed, SpaceX-inspired sections for the home page.
   Loaded after style.css.
   ============================================================ */

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
}

/* ---------- transparent header over hero (home only) ---------- */
/* ghost buttons sitting on photographs need on-image colours, in both themes */
.hero-full__bg img { object-position: center 46%; }

.hero-full .btn-ghost,
.hero-full .btn-ghost:visited {
  color: var(--on-image);
  border-color: var(--on-image-line);
  background: transparent;
}
.hero-full .btn-ghost:hover {
  color: var(--on-image);
  border-color: rgba(255, 255, 255, 0.6);
  background: var(--on-image-fill);
}

.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
/* on-image colours only while the bar floats transparently over the hero;
   once it turns solid it must follow the active theme */
.page-home .site-header:not(.is-scrolled) .brand-text strong { color: var(--on-image); }
.page-home .site-header:not(.is-scrolled) .brand-text span { color: var(--on-image-dim); }
.page-home .site-header:not(.is-scrolled) .brand-mark { color: var(--on-image); border-color: var(--on-image-line); background: var(--on-image-fill); }
.page-home .site-header:not(.is-scrolled) .nav-link { color: var(--on-image-soft); }
.page-home .site-header:not(.is-scrolled) .nav-link:hover,
.page-home .site-header:not(.is-scrolled) .nav-link.is-active { color: var(--on-image); }
.page-home .site-header:not(.is-scrolled) .lang { color: var(--on-image-dim); }
.page-home .site-header:not(.is-scrolled) .lang.is-active { color: var(--on-image); background: var(--on-image-fill); }
.page-home .site-header:not(.is-scrolled) .icon-btn { color: var(--on-image-soft); border-color: var(--on-image-line); }
.page-home .site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -30px rgba(0, 0, 0, 0.6);
}
.page-home .site-header.is-scrolled .brand-text strong { color: var(--text); }
.page-home .site-header.is-scrolled .brand-text span { color: var(--muted); }
.page-home .site-header.is-scrolled .brand-mark { color: var(--accent); border-color: var(--line-strong); background: linear-gradient(140deg, rgba(94, 234, 212, 0.16), rgba(129, 140, 248, 0.18)); }
.page-home .site-header.is-scrolled .nav-link { color: var(--text-soft); }
.page-home .site-header.is-scrolled .nav-link:hover,
.page-home .site-header.is-scrolled .nav-link.is-active { color: var(--text); }
.page-home .site-header.is-scrolled .lang { color: var(--muted); }
.page-home .site-header.is-scrolled .lang.is-active { color: var(--text); background: var(--line); }
.page-home .site-header.is-scrolled .icon-btn { color: var(--text-soft); border-color: var(--line); }

/* ---------- full-screen hero ---------- */
.hero-full {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-full__bg { position: absolute; inset: 0; overflow: hidden; }
.hero-full__bg img,
.hero-full__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}
.hero-full__video { display: block; }
.hero-full__veil {
  position: absolute;
  inset: 0;
  background: var(--veil-hero);
}
.hero-full__inner { position: relative; z-index: 2; }

.hero-full__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-image-eyebrow);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(94, 234, 212, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.55; }
}

.hero-full__title {
  font-size: clamp(2.6rem, min(8.2vw, 12vh), 5.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--on-image);
  text-shadow: var(--on-image-shadow);
}
.hero-full__name { display: block; }
.hero-full__latin {
  display: block;
  margin-top: 18px;
  font-size: 0.24em;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-image-soft);
}
.hero-full__headline {
  margin-top: 26px;
  font-size: clamp(1.05rem, min(2.1vw, 3vh), 1.45rem);
  font-weight: 600;
  color: var(--on-image);
}
.hero-full__intro {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--on-image-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}
.hero-full__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

.hero-full__scroll {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--on-image-dim);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--on-image-soft), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}

/* ---------- full-screen project features ---------- */
.feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 130px 0 96px;
  overflow: hidden;
}
.hero-full__bg,
.feature__bg {
  /* dark base so a slow or blocked video never leaves white type on white */
  background: #080d16;
}

.feature__bg { position: absolute; inset: 0; overflow: hidden; }
.feature__bg img,
.feature__bg .feature__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.feature__bg .feature__video { display: block; }
.feature__veil {
  position: absolute;
  inset: 0;
  background: var(--veil-scrim), var(--veil-feature);
}
.feature--indigo .feature__veil { background: var(--veil-scrim), var(--veil-feature-indigo); }
.feature--violet .feature__veil { background: var(--veil-scrim), var(--veil-feature-violet); }
.feature--cyan .feature__veil { background: var(--veil-scrim), var(--veil-feature-cyan); }

.feature__inner { position: relative; z-index: 2; }
.feature__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-image-dim);
}
.feature__index {
  padding: 4px 10px;
  border: 1px solid var(--on-image-line);
  border-radius: 999px;
  color: var(--on-image);
}
.feature__title {
  max-width: min(100%, 22ch);
  font-size: clamp(1.9rem, min(5vw, 8.5vh), 3.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--on-image);
  text-shadow: var(--on-image-shadow);
}
.feature__summary {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--on-image-soft);
  line-height: 1.8;
}
.feature__tags { margin-top: 20px; }
.feature__tags .tag {
  border-color: var(--on-image-line);
  background: var(--on-image-fill);
  color: var(--on-image-soft);
}
.feature__cta {
  margin-top: 30px;
  border-color: var(--on-image-line);
  color: var(--on-image);
}
.feature__cta:hover {
  border-color: var(--on-image);
  color: var(--on-image);
  background: var(--on-image-fill);
}

/* ---------- stats band ---------- */
.stats-band {
  padding: 76px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.stat-block__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, min(3.6vw, 5.5vh), 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(118deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-block__label {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ---------- about band ---------- */
.about-band { padding: 112px 0; }
.about-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.about-band__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-band__media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-band__media:hover img { transform: scale(1.05); }
.about-band__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.about-band__caption a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.about-band__caption a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}
.about-band__p {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--text-soft);
  line-height: 1.86;
}
.about-band__copy .btn { margin-top: 26px; }

/* ---------- contact band ---------- */
.contact-band {
  position: relative;
  padding: 132px 0 144px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact-band__glow {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.12), transparent 70%);
  pointer-events: none;
}
.contact-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-band__title {
  font-size: clamp(1.9rem, min(4.6vw, 7.5vh), 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.contact-band__desc {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--text-soft);
  line-height: 1.8;
}
.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-full { min-height: 92svh; padding: 130px 0 90px; }
  .hero-full__scroll { display: none; }
  .feature { min-height: auto; padding: 96px 0 76px; }
  .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-band { padding: 84px 0; }
  .about-band__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-band { padding: 100px 0 110px; }
}

@media (max-width: 640px) {
  .hero-full { padding: 112px 0 82px; }
  .hero-full__latin { letter-spacing: 0.2em; }
  .feature__title { font-size: clamp(1.75rem, min(8.5vw, 7vh), 2.6rem); }
  .stats-band { padding: 56px 0; }
  .stats-band__grid { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full__bg img,
  .feature__bg img,
  .feature__bg .feature__video { transform: none; }
  .pulse-dot,
  .scroll-line { animation: none; }
}


/* ---------- projects: category + sub-projects + shots ---------- */
.project-row__cat {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.subprojects { display: grid; gap: 14px; margin-top: 22px; }
.subproject {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.subproject__media img { width: 100%; display: block; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.subproject__body h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -0.01em; }
.subproject__body p { margin: 0 0 10px; color: var(--text-soft); font-size: 0.92rem; line-height: 1.72; }
.subproject__more { color: var(--muted) !important; font-size: 0.86rem !important; }
.project-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.project-shots img { width: 100%; display: block; border-radius: var(--radius-md); border: 1px solid var(--line); }
@media (max-width: 720px) { .subproject { grid-template-columns: 1fr; } }

/* ---------- personal page ---------- */
.personal-block + .personal-block { border-top: 1px solid var(--line); }
.personal-block__title { margin: 6px 0 14px; font-size: clamp(1.5rem, min(3.2vw, 5vh), 2.2rem); letter-spacing: -0.02em; }
.personal-block__lead { max-width: 70ch; margin: 0 0 12px; color: var(--text); font-size: 1.02rem; line-height: 1.8; }
.personal-block__text { max-width: 78ch; margin: 0 0 12px; color: var(--text-soft); line-height: 1.85; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 26px;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery--masonry { display: block; column-count: 3; column-gap: 14px; }
.gallery--masonry .gallery__item { margin-bottom: 14px; break-inside: avoid; }
@media (max-width: 900px) { .gallery--masonry { column-count: 2; } }
@media (max-width: 560px) { .gallery--masonry { column-count: 1; } }



/* ---------- collapsible project details ---------- */
.project-more { margin-top: 16px; }
.project-more__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.project-more__toggle::-webkit-details-marker { display: none; }
.project-more__toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.project-more__open { display: none; }
.project-more[open] .project-more__closed { display: none; }
.project-more[open] .project-more__open { display: inline; }
.project-more__chev {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.project-more[open] .project-more__chev { transform: rotate(-135deg) translateY(-2px); }
.project-more__body { padding-top: 18px; animation: more-in 0.25s ease; }
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.project-video { margin: 4px 0 20px; }
.project-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #000;
}



/* ---------- image lightbox (project pages only) ---------- */
.project-shots img,
.subproject__media img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 4vmin;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox.is-open { display: grid; opacity: 1; }
.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
@media (max-width: 640px) {
  .lightbox img { max-width: 96vw; max-height: 84vh; }
}


/* ---------- contact: support & QR cards over the blackboard photo ---------- */
.qr-board {
  position: relative;
  margin: 2.4rem 0 0;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}
.qr-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/contact-board.jpg") center / cover no-repeat;
  filter: saturate(0.85) brightness(0.55);
  z-index: -2;
}
.qr-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.45), rgba(6, 10, 16, 0.78));
  z-index: -1;
}
.qr-board .qr-board__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.02em;
}
.qr-board .qr-board__hint {
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  color: rgba(236, 243, 255, 0.78);
  font-size: 0.92rem;
}
.qr-board__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 26px);
}
.qr-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  width: clamp(180px, 22vw, 240px);
}
.qr-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.qr-card span {
  font-size: 0.86rem;
  color: #0f172a;
  letter-spacing: 0.04em;
}

/* 虚线占位框：替换掉不想公开的二维码，尺寸与原二维码一致 */
.qr-void {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  background: #fff;
  color: rgba(15, 23, 42, 0.44);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.qr-void span {
  font-size: inherit;   /* 覆盖 .qr-card span 的小字号 */
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-indent: 0.14em; /* 抵消最后一个字后面多出的字距，让两行真正居中 */
  white-space: nowrap;
}


/* ---------- stat proof zoom button ---------- */
.stat-block__zoom {
  margin-top: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: zoom-in;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stat-block__zoom:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.stat-block__zoom svg { fill: currentColor; }

/* ---------- modal: resume notice + embedded player ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 16, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.75);
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--accent); border-color: var(--accent); }
.modal .modal__title { margin: 0 34px 14px 0; font-size: 1.05rem; color: var(--text); }
.modal .modal__note { margin: 0; color: var(--text-soft); line-height: 1.85; }
.modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ---------- resume buttons open a modal instead of downloading ---------- */
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.resume-actions .btn { cursor: pointer; }

.modal .modal__fallback { margin: 14px 0 0; font-size: 0.86rem; }

/* ---------- music button (sits left of the language switch) ---------- */
.music-btn svg { display: block; }
.music-btn:hover { color: var(--accent); }

/* ---------- footer disclaimer ---------- */
.footer-disclaimer {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- modal description under an embedded player ---------- */
.modal .modal__desc {
  margin: 16px 0 0;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-soft);
}


/* ---------- music button rotation ---------- */
.music-btn.is-playing svg { animation: music-spin 3.2s linear infinite; transform-origin: 50% 50%; }
@keyframes music-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music-btn.is-playing svg { animation: none; } }

/* ---------- project shots: grouped rows, picture left / caption right ---------- */
.shot-groups { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); margin-top: 24px; }
.shot-group__name {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot-group__list { display: flex; flex-direction: column; gap: 14px; }
.shot-item {
  display: grid;
  grid-template-columns: minmax(0, 44%) 1fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.shot-item img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot-item figcaption { font-size: 0.9rem; line-height: 1.85; color: var(--text-soft); }
@media (max-width: 720px) {
  .shot-item { grid-template-columns: 1fr; }
}

/* ---------- embedded video box at the bottom of a project ---------- */
.project-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.project-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-source { margin: 14px 0 0; }


.project-credit {
  margin: 16px 0 0;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.85;
}


/* ---------- footer credits ---------- */
.credits { position: relative; margin-top: 10px; }
.credits__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.credits__toggle:hover { color: var(--accent); border-color: var(--accent); }
.credits__chev {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}
.credits.is-open .credits__chev { transform: rotate(-135deg) translate(-1px, -1px); }
.credits__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(330px, 84vw);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.65);
  z-index: 40;
}
.credits__title { margin: 0 0 10px; font-size: 0.78rem; color: var(--text); }
.credits__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.credits__list li { display: flex; align-items: baseline; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.credits__role { white-space: nowrap; }
.credits__dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.credits__name { white-space: nowrap; color: var(--text-soft); }

/* ---------- first-visit music guide ---------- */
.mguide { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.mguide.is-closing { opacity: 0; transition: opacity 0.26s ease; }
.mguide__stage { position: absolute; inset: 0; }
.mguide__dot {
  position: absolute;
  left: 22px;
  bottom: 88px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2.5px dashed currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  color: var(--accent);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.55);
  transition: transform 1.05s cubic-bezier(0.32, 1.28, 0.42, 1), box-shadow 0.3s ease;
  transform: translate(0, 0) rotate(0deg);
}
.mguide__dot:hover { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6); }
.mguide__face { display: grid; place-items: center; animation: mg-breathe 2.6s ease-in-out infinite; }
@keyframes mg-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}
.mguide__trail {
  position: absolute;
  left: -92px;
  top: -92px;
  width: 240px;
  height: 240px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}
.mguide.is-travel .mguide__dot { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(720deg); }
.mguide.is-travel .mguide__trail { opacity: 0.5; }
.mguide__copy {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(560px, 86vw);
  transform: translate(-50%, 12px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.6);
  text-align: center;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", "Kaiti SC", "STKaiti", cursive;
}
.mguide.is-open .mguide__copy { opacity: 1; transform: translate(-50%, 0); }
.mguide__main { display: block; font-size: clamp(1.05rem, 2.1vw, 1.35rem); line-height: 1.65; color: var(--text); }
.mguide__sub { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .mguide__dot { transition: none; }
  .mguide.is-travel .mguide__dot { transform: translate(var(--tx, 0), var(--ty, 0)); }
  .mguide__face { animation: none; }
}


/* ---------- about band: autoplaying clip instead of a still ---------- */
.about-band__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* sound control on that clip: hover shows it, clicking the clip plays audio,
   clicking anywhere else silences it again (the music ducks meanwhile) */
.about-band__media { cursor: pointer; }
.about-band__sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(6, 10, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.about-band__media:hover .about-band__sound,
.about-band__media:focus-within .about-band__sound,
.about-band__media.is-sound-on .about-band__sound,
.about-band__sound:focus-visible { opacity: 1; }
.about-band__media.is-sound-on .about-band__sound {
  background: var(--accent);
  border-color: transparent;
  color: #04121a;
}
[data-theme="light"] .about-band__media.is-sound-on .about-band__sound { color: #ffffff; }
.about-band__sound svg { width: 16px; height: 16px; display: block; }
.about-band__sound .icon-sound-on { display: none; }
.about-band__media.is-sound-on .about-band__sound .icon-sound-on { display: block; }
.about-band__media.is-sound-on .about-band__sound .icon-sound-off { display: none; }
@media (hover: none) {
  /* touch screens have no hover: keep the control visible so it can be tapped */
  .about-band__sound { opacity: 1; }
}


/* credits: grouped by department */
.credits__panel { width: min(430px, 88vw); max-height: min(60vh, 520px); overflow: auto; }
.credits__board { display: flex; flex-direction: column; gap: 14px; }
.credits__dept-name {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.credits__list li { flex-wrap: wrap; }
.credits__en { font-size: 0.68rem; color: var(--muted); opacity: 0.75; }


/* ---------- first-visit guide: doodle ring + loopy connector ---------- */
.mguide { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.mguide.is-closing { opacity: 0; transition: opacity 0.28s ease; }
.mguide__svg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mguide__ring,
.mguide__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease;
}
.mguide__line { stroke-dasharray: 1; transition-duration: 1.1s; transition-delay: 0s; opacity: 0.75; }
.mguide__ring.is-drawn { stroke-dashoffset: 0; }
.mguide__line.is-drawn { stroke-dashoffset: 0; }
.mguide__bubble {
  position: fixed;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(520px, 86vw);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.6);
  text-align: center;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", "Kaiti SC", "STKaiti", cursive;
}
.mguide.is-open .mguide__bubble { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mguide__main { display: block; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.7; color: var(--text); }
.mguide__sub { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .mguide__ring, .mguide__line, .mguide__bubble { transition: none; }
}


/* ---------- music guide, refined ---------- */
.mguide__ring {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-dasharray: 9 8;
  stroke-linecap: round;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent));
}
.mguide__line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  opacity: 0.55;
}
.mguide__end {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mguide__end.is-drawn { opacity: 1; }

.mguide__bubble {
  position: fixed;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(470px, 88vw);
  padding: 22px 26px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.65), 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent);
  text-align: left;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: "Comic Sans MS", "Segoe Print", "Kaiti SC", "STKaiti", cursive;
}
.mguide__bubble::after {
  content: "";
  position: absolute;
  right: 54px;
  top: -9px;
  width: 16px;
  height: 16px;
  background: var(--surface-solid);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
  border-radius: 3px;
}
.mguide.is-open .mguide__bubble { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mguide__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 1rem;
}
.mguide__main {
  display: block;
  font-size: clamp(0.98rem, 1.7vw, 1.16rem);
  line-height: 1.75;
  color: var(--text);
}
.mguide__sub {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* gentle pulse on the music button until it is first used */
.music-btn.is-hinting {
  animation: music-hint 2.8s ease-in-out infinite;
}
@keyframes music-hint {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .music-btn.is-hinting { animation: none; }
}


/* placeholders so a slow image never shows as a blank bar */
.gallery img,
.shot-item img,
.subproject__media img {
  background: color-mix(in srgb, var(--surface) 85%, var(--bg));
  min-height: 120px;
}


/* thin loading bar while an SPA navigation is in flight */
body.is-navigating::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 300;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: nav-sweep 0.9s linear infinite;
}
@keyframes nav-sweep {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}


/* rocket riding the guide line */
.mguide__ship {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  color: var(--accent);
  offset-rotate: 0deg;
  offset-distance: 0%;
  opacity: 0;
  transition: offset-distance 0.95s cubic-bezier(0.4, 0.1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--accent) 45%, transparent));
}
.mguide__ship svg { width: 100%; height: 100%; display: block; transform: rotate(38deg); }
.mguide__ship.is-flying { opacity: 1; offset-distance: 100%; }

/* bubble pops with a soft overshoot */
.mguide.is-open .mguide__bubble {
  animation: mg-pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
@keyframes mg-pop {
  0% { transform: translate(-50%, -46%) scale(0.92); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


/* about band: news teaser on the left, resume button pushed right */
.about-band__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.news-teaser {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.news-teaser__arrow {
  font-size: 1rem;
  color: var(--accent);
  animation: news-nudge 1.8s ease-in-out infinite;
}
@keyframes news-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(-4px); opacity: 1; }
}
.news-teaser__label { white-space: nowrap; }
.about-band__foot .btn { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .news-teaser__arrow { animation: none; } }


/* rotating aerospace headlines inside the about band */
.news-teaser__items {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.4em;
  max-width: min(46ch, 42vw);
  overflow: hidden;
}
.news-teaser__item {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-soft);
  text-decoration: none;
}
.news-teaser__item.is-current {
  display: inline;
  animation: news-fade 0.45s ease both;
}
/* fallback: the first headline shows even if the rotation script has not run */
.news-teaser__items > .news-teaser__item:first-child { display: inline; }
.news-teaser__items:has(.news-teaser__item.is-current) > .news-teaser__item:first-child:not(.is-current) { display: none; }
@keyframes news-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.news-teaser__items a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.2s ease; }
.news-teaser__items a:hover { text-decoration-color: currentColor; }
.news-teaser__item:hover { color: var(--accent); }
.news-teaser__src {
  margin-left: 6px;
  font-size: 0.7rem;
  opacity: 0.6;
}
@media (max-width: 720px) {
  .news-teaser__items { max-width: 60vw; }
  /* the nowrap label plus the rotating headline must fit the phone column:
     let both flex items shrink instead of pushing the page 9px wider */
  .news-teaser { max-width: 100%; min-width: 0; }
  .news-teaser__label {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .news-teaser__items { flex: 1 1 auto; min-width: 0; max-width: none; }
}


/* phone / tablet: the header bar keeps only music + theme + menu;
   languages live inside the nav panel */
/* language switcher stays visible at every width */
@media (display-mode: standalone) {
  .lang-switch { display: none; }
}


/* contact reveal gate */
/* masked contact values: keep the page's own typography, just dashed */
.gate-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  letter-spacing: 0.06em;
  cursor: default;
}
.gate.is-open .gate-val {
  color: var(--text);
  border-bottom-color: transparent;
  letter-spacing: 0;
  cursor: pointer;
}
.gate.is-open .gate-val:hover { color: var(--accent); }
.gate { margin: 26px 0 0; }
.gate__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.gate__hint { margin: 0; font-size: 0.78rem; color: var(--muted); }
.gate__challenge { margin-top: 16px; }
.gate.is-checking .gate__btn { opacity: 0.6; pointer-events: none; }
.gate.is-done .gate__btn { display: none; }
/* the revealed value is a real link now, so it has to look like body text */
.gate.is-open .gate-val a { color: inherit; text-decoration: none; }
.gate.is-open .gate-val a:hover { color: var(--accent); text-decoration: underline; }
/* last-resort route when the challenge itself is unavailable */
.gate__fallback { display: inline-block; margin-top: 10px; font-size: 0.78rem; color: var(--accent); }
.gate__fallback:hover { text-decoration: underline; }
.gate.is-open .gate__fallback { display: none; }


/* language pill glides instead of jumping */
.lang { transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }

/* the "coming soon" placeholder reads at a normal size */
.qr-void span {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
@media (max-width: 560px) {
  .qr-void span { font-size: 1.05rem !important; }
}


/* the note pulses while the track is still downloading */
.music-btn.is-buffering { animation: music-pulse 1.1s ease-in-out infinite; }
@keyframes music-pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }


/* ============================================================
   LIGHT THEME · editorial layout
   Dark mode is a full-bleed cinematic scroll. Light mode reframes the
   same photographs as rounded panels on a paper-white page, so toggling
   the theme changes the composition itself — not just the button colours.
   ============================================================ */

/* the home header becomes a solid light bar and stops borrowing on-image
   colours, because it no longer floats over a photograph */
[data-theme="light"] .page-home .site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 40px -38px rgba(15, 23, 42, 0.5);
}
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .brand-text strong { color: var(--text); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .brand-text span { color: var(--muted); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .brand-mark {
  color: var(--accent);
  border-color: var(--line-strong);
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.12), rgba(67, 56, 202, 0.14));
}
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .nav-link { color: var(--text-soft); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .nav-link:hover,
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .nav-link.is-active { color: var(--text); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .lang { color: var(--muted); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .lang.is-active { color: var(--text); background: var(--line); }
[data-theme="light"] .page-home .site-header:not(.is-scrolled) .icon-btn { color: var(--text-soft); border-color: var(--line); }
[data-theme="light"] .page-home .site-header.is-scrolled { box-shadow: 0 14px 36px -34px rgba(15, 23, 42, 0.5); }

/* ---------- hero: editorial split — a framed photograph beside the copy ---------- */
[data-theme="light"] .hero-full {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(28px, 3.4vw, 64px);
  min-height: 0;
  padding: 118px calc((100vw - var(--container)) / 2) 92px;
  overflow: visible;
}
[data-theme="light"] .hero-full__bg {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: min(64svh, 620px);
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 48px 90px -58px rgba(15, 23, 42, 0.6);
}
[data-theme="light"] .hero-full__veil { display: none; }
[data-theme="light"] .hero-full__inner {
  grid-row: 1;
  grid-column: 2;
  padding: 0 24px;
}
[data-theme="light"] .hero-full__scroll { display: none; }
/* the copy sits in half the page, so the display title gets its own scale:
   it must never spill out of the column on long words (Портфолио, Portfolio) */
[data-theme="light"] .hero-full__title {
  font-size: clamp(2.5rem, min(6.2vw, 9.6vh), 5.2rem);
}

/* ---------- feature bands: same treatment, one shared photo frame ---------- */
[data-theme="light"] .feature {
  display: grid;
  grid-template-rows: min(54svh, 520px) auto;
  align-items: stretch;
  min-height: 0;
  padding: 36px 0 96px;
  overflow: visible;
}
[data-theme="light"] .feature__bg {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  width: var(--container);
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 48px 90px -58px rgba(15, 23, 42, 0.55);
}
[data-theme="light"] .feature__veil { display: none; }
[data-theme="light"] .feature__inner {
  grid-row: 2;
  grid-column: 1;
  padding-top: 40px;
}
[data-theme="light"] .hero-full__title,
[data-theme="light"] .feature__title { text-shadow: none; }

/* the panels are static in light mode: no parallax drift inside a frame */
[data-theme="light"] .hero-full__bg img,
[data-theme="light"] .hero-full__bg .hero-full__video,
[data-theme="light"] .feature__bg img,
[data-theme="light"] .feature__bg .feature__video {
  transform: scale(1.05) !important;
}

/* copy that used to sit on a photo now sits on paper: use the page palette */
[data-theme="light"] .hero-full .btn-ghost { color: var(--text); border-color: var(--line-strong); }
[data-theme="light"] .hero-full .btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
[data-theme="light"] .feature__tags .tag {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--text-soft);
}
[data-theme="light"] .feature__cta { border-color: var(--line-strong); color: var(--text); }
[data-theme="light"] .feature__cta:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
[data-theme="light"] .feature__index { border-color: var(--line-strong); color: var(--text-soft); }

@media (max-width: 980px) {
  [data-theme="light"] .feature { grid-template-rows: min(44svh, 400px) auto; padding: 28px 0 80px; }
}
/* stacked hero on tablets: photograph first, copy underneath */
@media (max-width: 1150px) {
  [data-theme="light"] .hero-full {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 108px calc((100vw - var(--container)) / 2) 80px;
  }
  [data-theme="light"] .hero-full__bg { height: min(46svh, 430px); }
  [data-theme="light"] .hero-full__inner {
    grid-row: 2;
    grid-column: 1;
    padding: 34px 24px 0;
  }
}
@media (max-width: 640px) {
  [data-theme="light"] .hero-full { padding: 96px calc((100vw - var(--container)) / 2) 64px; }
  [data-theme="light"] .hero-full__bg { height: 44svh; border-radius: 18px; }
  [data-theme="light"] .hero-full__inner { padding: 28px 18px 0; }
  [data-theme="light"] .feature { grid-template-rows: 38svh auto; padding: 24px 0 64px; }
  [data-theme="light"] .feature__bg { border-radius: 18px; }
  [data-theme="light"] .feature__inner { padding-top: 28px; }
}

/* grid items default to min-width:auto, so a <video> inside the about band can
   stretch the single mobile column past the viewport (9px horizontal scroll) */
.about-band__media,
.about-band__copy { min-width: 0; }
.about-band__video { max-width: 100%; }

/* light-mode legibility touch-ups for the smaller secondary text */
[data-theme="light"] .footer-disclaimer { opacity: 1; }
[data-theme="light"] .news-teaser__src { opacity: 0.8; }
[data-theme="light"] .project-credit { opacity: 1; }

/* ---------- about band: a fixed frame for a changing source ----------
   the reel swaps clips every few minutes; without a fixed ratio the band grew
   or shrank whenever a taller or squarer clip arrived */
.about-band__media {
  aspect-ratio: 16 / 10;
  max-height: 520px;
}
.about-band__media img,
.about-band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
