/* ============================================================
   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) ---------- */
.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;
}
.page-home .site-header .brand-text strong { color: var(--on-image); }
.page-home .site-header .brand-text span { color: var(--on-image-dim); }
.page-home .site-header .brand-mark { color: var(--on-image); border-color: var(--on-image-line); background: var(--on-image-fill); }
.page-home .site-header .nav-link { color: var(--on-image-soft); }
.page-home .site-header .nav-link:hover,
.page-home .site-header .nav-link.is-active { color: var(--on-image); }
.page-home .site-header .lang { color: var(--on-image-dim); }
.page-home .site-header .lang.is-active { color: var(--on-image); background: var(--on-image-fill); }
.page-home .site-header .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;
}
.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__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; }
}

