/* ============================================================
   GPF Hong Kong · Section styles
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh;
  padding: clamp(140px, 20vh, 200px) var(--gutter) clamp(60px, 8vh, 110px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
/* editorial scrim: clears the left for the headline, lets the video show in the middle.
   On load it fades IN after the video has had a moment on screen (cinematic intro). */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-scrim); pointer-events: none;
  opacity: 0; animation: heroScrimIn 1.1s var(--ease) 1.0s both;
}
.hero__top, .hero__main, .hero__bottom { position: relative; z-index: 1; }

.hero__top {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-1);
  animation: heroFade 0.9s var(--ease) 1.15s both;
}

/* ---- hero intro choreography ---- */
@keyframes heroScrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes heroSide { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero__top, .hero__title .l1, .hero__title .l2, .hero__title .l3,
  .hero__side, .hero__bottom { animation: none !important; opacity: 1 !important; transform: none !important; }
}
.hero__top span { display: flex; align-items: center; gap: 10px; }
.hero__top span::before {
  content: ""; width: 5px; height: 5px; background: var(--brand-cyan-bright); border-radius: 50%;
}
.hero__main { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: end; margin: auto 0; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 300; font-size: var(--fs-display); line-height: 0.94;
  letter-spacing: -0.02em;
  /* brushed-metal text uses background-clip:text — selecting it would paint a solid
     block (transparent glyphs). It's a brand wordmark, so make it non-selectable. */
  user-select: none; -webkit-user-select: none;
}
/* brushed-metal wordmark with a slow travelling sheen */
.hero__title span {
  display: block;
  background: var(--metallic-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title .l1 { font-weight: 300; animation: heroUp 0.95s var(--ease) 1.20s both, sheen 7s linear 2.2s infinite; }
.hero__title .l2 { font-weight: 600; animation: heroUp 0.95s var(--ease) 1.36s both, sheen 7s linear 2.4s infinite; }
.hero__title .l3 { font-style: normal; font-weight: 400; animation: heroUp 0.95s var(--ease) 1.52s both, sheen 7s linear 2.6s infinite; }

.hero__side {
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px 30px; border-radius: var(--radius);
  border: 1px solid var(--border-1); border-left: 2px solid var(--accent-line);
  background: linear-gradient(155deg, rgba(9, 20, 33, 0.74), rgba(7, 16, 27, 0.58));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: heroSide 1s var(--ease) 1.5s both;
}
[data-theme="light"] .hero__side {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.90), rgba(250, 249, 245, 0.78));
  box-shadow: 0 24px 60px rgba(20, 40, 60, 0.14);
}
.hero__lede { font-size: 15px; line-height: 1.7; color: var(--text-1); max-width: 42ch; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__stat-v { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); color: var(--brand-cyan-bright); line-height: 1; }
.hero__stat-l { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 8px; max-width: 16ch; }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  flex-wrap: wrap; margin-top: 40px;
  animation: heroFade 0.9s var(--ease) 1.85s both;
}
.hero__caption { font-family: var(--font-sans); font-style: normal; font-size: 14.5px; color: var(--text-1); max-width: 44ch; }
.hero__caption::before { content: "—"; display: inline-block; margin-right: 10px; color: var(--brand-cyan-bright); }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--brand-cyan), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--brand-cyan-bright); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------------- PROFILE ---------------- */
.profile__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); }
.profile__copy p { color: var(--text-1); margin-bottom: 18px; max-width: 56ch; }
.profile__values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-card { padding: 26px; }
.value-card__idx { font-family: var(--font-serif); font-style: normal; font-size: 13px; color: var(--brand-cyan-bright); margin-bottom: 14px; }
.value-card h3 { font-size: 17px; font-weight: 600; color: var(--text-0); margin-bottom: 10px; letter-spacing: -0.01em; }
.value-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------------- PRODUCTS ---------------- */
.tabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--border-1); border-radius: 999px; margin-bottom: 40px; background: var(--panel-glass); backdrop-filter: blur(8px); }
.tab {
  padding: 11px 24px; border-radius: 999px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--text-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.tab[aria-selected="true"] { color: #F5FAFE; background: var(--brand-cyan); }

.product-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.product-panel[hidden] { display: none; }
.product-panel__head h3 { font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: var(--fs-h3); color: var(--text-0); margin-bottom: 16px; }
.product-panel__head p { color: var(--text-2); max-width: 44ch; }
.metal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.metal-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-1); background: var(--panel-glass);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.metal-chip:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
/* metallic bead — silver/platinum (precious), steel (base) */
.metal-chip__dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d8dfe6 38%, #97a4b1 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.metal-chip.base .metal-chip__dot {
  background: radial-gradient(circle at 32% 28%, #eaf2f8 0%, #aebfcc 44%, #6c8493 100%);
}
.metal-chip span { font-size: 14px; font-weight: 500; color: var(--text-1); white-space: nowrap; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.service-card { padding: 28px; }
.service-card__icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--brand-cyan-bright); }
.service-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text-0); }
.service-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------------- LEADERSHIP ---------------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.leader { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.leader__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  display: block; overflow: hidden; position: relative; flex: none;
  background: radial-gradient(circle at 30% 30%, rgba(0, 163, 224, 0.25), rgba(7, 15, 28, 0.5));
  border: 1px solid var(--border-2);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(91, 209, 250, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.leader__avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.leader__avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(91, 209, 250, 0.28);
  pointer-events: none;
}
[data-theme="light"] .leader__avatar {
  border-color: rgba(0, 107, 149, 0.34);
  box-shadow:
    0 16px 34px rgba(20, 40, 60, 0.14),
    0 0 0 4px rgba(0, 107, 149, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.leader__name { font-size: 18px; font-weight: 600; color: var(--text-0); }
.leader__role { font-family: var(--font-serif); font-style: normal; font-size: 14px; color: var(--brand-cyan-bright); }
.leader__bio { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------------- SHAREHOLDERS ---------------- */
.share__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.share__copy p { color: var(--text-1); margin-bottom: 18px; max-width: 54ch; }
.share__note { font-size: 14px; color: var(--text-3); font-style: normal; font-family: var(--font-serif); border-left: 1px solid var(--border-2); padding-left: 18px; margin-top: 28px; }
.facts { display: grid; gap: 16px; }
.fact { padding: 26px 28px; display: flex; align-items: baseline; gap: 22px; }
.fact__v { font-family: var(--font-serif); font-style: normal; font-size: clamp(34px, 4vw, 52px); color: var(--brand-cyan-bright); line-height: 1; flex: none; min-width: 2.4ch; }
.fact__l { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------------- DOCUMENTS ---------------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 44px; }
.doc {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  border: 1px solid var(--border-1); border-radius: var(--radius);
  background: var(--panel-glass); backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.doc:hover { border-color: var(--brand-cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.doc__icon { width: 40px; height: 48px; flex: none; color: var(--brand-cyan-bright); }
.doc__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc__title { font-size: 15px; font-weight: 600; color: var(--text-0); line-height: 1.25; }
.doc__meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.doc__arrow { margin-left: auto; color: var(--text-3); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.doc:hover .doc__arrow { color: var(--brand-cyan-bright); transform: translate(3px, -3px); }

/* ---------------- CONTACTS ---------------- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-card { padding: 28px; }
.contact-card__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-cyan-bright); margin-bottom: 12px; }
.contact-card__icon { width: 24px; height: 24px; color: var(--brand-cyan-bright); margin-bottom: 16px; }
.contact-card__value { font-size: 16px; color: var(--text-0); line-height: 1.6; }
.contact-card__value a:hover { color: var(--brand-cyan-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__main { grid-template-columns: 1fr; gap: 36px; }
  .hero__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-2); padding-top: 24px; }
  .profile__grid, .share__grid, .product-panel { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  /* on mobile the video is a banner above the hero, not behind it — drop the scrim */
  .hero::before { display: none; }
  .hero__title span { background: none; -webkit-text-fill-color: currentColor; color: var(--text-0); }
  .hero__title .l2 { color: var(--brand-cyan-bright); }

  /* video: fixed background → relative 16:9 hero-banner (no portrait cropping) */
  .bg-stage {
    position: relative; inset: auto;
    width: 100%; aspect-ratio: 16 / 9; z-index: 0;
  }
  .bg-stage video { object-fit: contain; transform: none; background: #000; opacity: 1; }
  .bg-stage::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bg-grain { position: absolute; top: 0; left: 0; right: 0; height: 56.25vw; z-index: 1; }

  .section, .foot { background: var(--bg-0); }

  .hero {
    min-height: auto;
    padding: 28px var(--gutter) 48px;
    margin-top: -36px; position: relative; z-index: 2;
    background: linear-gradient(180deg, transparent 0%, var(--bg-0) 46%);
  }
  .hero__top { font-size: 10px; gap: 16px; }
  .hero__main { margin: 28px 0; }
  .profile__values, .services, .contact__grid { grid-template-columns: 1fr; }
  .nav { padding: 14px var(--gutter); }
}
