/* ══════════════════════════════════════════
   HOME PAGE — Apple Liquid Glass
   Hero · Gallery · About · Contact
══════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  height: 920px;
  min-height: 580px;
  width: calc(100% - 32px);
  max-width: 1920px;
  margin: 16px auto 0;
  border-radius: 24px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.04),
    0 16px 48px rgba(0,0,0,0.08),
    0 40px 80px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 60px;
  overflow: hidden;
  background-color: var(--off-white);
  background-image: url('../assets/new_bg_2.webp');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

/* The hole fades in once on load, over the intact wall (base background) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  animation: hero-fade 3s var(--ease-out) 0.3s forwards;
}

@keyframes hero-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-name {
  position: absolute; top: 36px; left: 60px;
  font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--text);
}

/* Text stays on the empty left half of the wall — the hole starts at the centre */
.hero-text {
  max-width: min(42%, 540px);
  display: flex; flex-direction: column; gap: 22px;
}
.hero-h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 650; letter-spacing: -.045em; line-height: .98;
  color: var(--text);
  text-wrap: balance;
}
.hero-sub {
  max-width: 36ch;
  font-size: 1rem; font-weight: 300; line-height: 1.7;
  color: var(--text-2);
}
.hero-link {
  align-self: flex-start;
  font-size: .92rem; font-weight: 500; color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s;
}
.hero-link:hover { text-underline-offset: 3px; }

/* ─── GALLERY / BENTO ────────────────────── */
.section-inner { max-width: 1400px; margin: 0 auto; padding: 104px 60px; }

.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 44px;
}
.section-head-left { display: flex; flex-direction: column; gap: 8px; }

.section-more {
  font-size: .76rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; letter-spacing: .03em;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s, gap 0.2s;
}
.section-more:hover { color: var(--text); gap: 9px; }
.section-more::after { content: '→'; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bento .gc {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.gc {
  position: relative; overflow: hidden;
  display: block; border-radius: 20px; background: #eef0f3;
  cursor: pointer; color: inherit; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.05);
  isolation: isolate;
  transition:
    opacity 0.85s var(--ease-smooth),
    transform 0.85s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}

.bento .gc.reveal { transition-delay: var(--delay, 0ms); }

.gc:hover,
.gc:focus-visible {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 22px 50px rgba(0,0,0,0.12), 0 6px 14px rgba(0,0,0,0.06);
  z-index: 10;
}
.gc img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.65s var(--ease-smooth);
  object-position: center;
}
.gc:hover img,
.gc:focus-visible img { transform: scale(1.03); }
.gc:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.gc-over {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.54) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.26s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 22px;
}
.gc:hover .gc-over,
.gc:focus-visible .gc-over { opacity: 1; }
.gc.img-missing { background: #111; }
.gc.img-missing img { visibility: hidden; }
.gc.img-missing .gc-over { opacity: 1; }
.gc-title { color: #fff; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.gc-cat   { color: rgba(255,255,255,0.65); font-size: .68rem; margin-top: 4px; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento .gc { aspect-ratio: 16 / 10; }
}

/* ─── ABOUT ──────────────────────────────── */
.about-wrap { position: relative; z-index: 1; }
.about-inner { max-width: 1400px; margin: 0 auto; padding: 104px 60px; }
.about-header { margin-bottom: 56px; }
.about-header .section-title { margin-top: 10px; }

.members-grid {
  display: grid; grid-template-columns: 2fr; gap: 20px;
  margin-bottom: 20px;
}
.member-card { display: flex; flex-direction: column; gap: 12px; }

.stats-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  border-radius: 24px;
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Bio card ── */
.about-card-label {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-3);
}

.about-bio {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-2);
  flex: 1;
}

/* ── Stats + Tools card ── */
.about-numbers {
  display: flex;
  align-items: flex-start;
}

.about-num-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.about-num {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 200;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
}

.about-num-lbl {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-3);
}

.about-num-div {
  width: 1px;
  height: 38px;
  background: rgba(0,0,0,0.09);
  margin: 0 22px;
  flex-shrink: 0;
}

.about-card-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
}

.tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .02em;
}

.member-portrait {
  position: relative; border-radius: 22px; overflow: hidden; height: 700px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 32px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
}

.parallax-container {
  perspective: 1000px;
}

.parallax-back,
.parallax-front {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.parallax-back {
  z-index: 1;
  transform: scale(1.12);
}

.parallax-front {
  z-index: 2;
  transform: scale(1.06);
}

.member-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.85);
  font-size: .64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-2);
}

/* ─── CONTACT ─────────────────────────────── */
.contact-wrap { padding: 80px 60px 110px; position: relative; z-index: 1; }
.contact-card {
  max-width: 820px; margin: 0 auto; border-radius: 36px; padding: 84px 72px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px;
  overflow: hidden;
}
.contact-pixel-art {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.032;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(0,0,0,0.6) 15px, rgba(0,0,0,0.6) 16px),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(0,0,0,0.6) 15px, rgba(0,0,0,0.6) 16px);
}
.contact-tag {
  font-size: .67rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--text-3);
}
.contact-h {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 200; letter-spacing: -.04em; line-height: 1.04;
}
.contact-sub { font-size: .88rem; color: var(--text-2); line-height: 1.76; max-width: 360px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.soc {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.065);
  font-size: .74rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.soc:hover { background: rgba(0,0,0,0.08); color: var(--text); transform: translateY(-2px); }
.soc svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1100px) {
  .hero { padding: 0 40px; }
  .hero-name { left: 40px; }
  .section-inner   { padding: 80px 40px; }
  .about-inner     { padding: 80px 40px; }
  .contact-wrap    { padding: 64px 40px 90px; }
}

@media (max-width: 900px) {
  /* Characters leave the frame here: text on the plain wall up top,
     the scene anchored at the bottom */
  .hero {
    height: auto; min-height: 0; justify-content: flex-start;
    padding: 96px 24px 440px;
    width: calc(100% - 16px); margin: 8px auto 0; border-radius: 16px;
  }
  .hero::after {
    background-size: auto 500px;
    background-position: 80% bottom;
    /* fade the image's top edge into the wall (image box = bottom 500px) */
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 500px), #000 calc(100% - 400px));
            mask-image: linear-gradient(to bottom, transparent calc(100% - 500px), #000 calc(100% - 400px));
  }
  .hero-name { position: static; margin-bottom: 28px; }
  .hero-text { max-width: none; }

  .section-inner { padding: 64px 24px; }
  .about-inner   { padding: 64px 24px; }
  .contact-wrap  { padding: 48px 24px 72px; }
  .contact-card  { padding: 52px 28px; }

  .members-grid  { grid-template-columns: 1fr; }
  .member-portrait { height: 440px; }
  .stats-cards   { grid-template-columns: 1fr; }
  .stat-card     { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .member-portrait { height: 320px; }
  .about-num-div { margin: 0 14px; }
}
