/* ==========================================================================
   Daoyi Asset Management — replica of daoyiam.com + Recognition section
   Theme: dark / corporate. Type: Poppins (300/400/600), Adamina (cookie bar)
   Scroll: hero dims to black + content parallax; sections reveal on scroll
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Adamina';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/adamina-400.woff2') format('woff2');
}

:root {
  --bg: #060607;
  --ink: #f4f5f7;
  --muted: #a1a8b3;
  --faint: #737b87;
  --hairline: rgba(255, 255, 255, 0.09);
  --purple: #a78bff;          /* lightened official #6c2cff for text on black */
  --footer-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
}

img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Hero — full-screen Hong Kong skyline; dims to black as the page scrolls
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* mobile: fill the visible screen, not the URL-bar viewport */
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* copy sits in the sky, above the skyline */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

/* scroll-driven dim layer (opacity driven by --dim from main.js) */
.hero-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim, 0);
}

/* baked-in fade so the hand-off to the black section is smooth without JS */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) 24px 0;
  text-align: center;
  color: #fff;
  will-change: opacity, transform;
}

.hero h1 {
  /* firm lockup: heavy brand wordmark + letterspaced legal line below —
     the standard institutional treatment (mirrors the .eyebrow language) */
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-brand {
  display: block;
  font-size: clamp(58px, 7.2vw, 100px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.hero-legal {
  display: block;
  margin-top: 20px;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-indent: 0.4em; /* re-center: letter-spacing leaves a trailing gap */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-sub {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   Recognition · Industry Awards — dark corporate, fits one viewport
   -------------------------------------------------------------------------- */

.awards {
  background: transparent;
  min-height: calc(100vh - var(--footer-h));
  min-height: calc(100svh - var(--footer-h)); /* keeps the page exactly 2 viewports incl. footer */
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.46);
}

.awards h2 {
  margin: 18px auto 0;
  max-width: 780px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
}

.awards-quote {
  margin: 18px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.awarded-by {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.awarded-by-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.42);
}

.awarded-by-logo {
  height: 40px;
  width: auto;
}

/* Honors — two accolades of one ceremony, side by side, no timeline */

.honors {
  margin: 72px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.honor {
  text-align: center;
  padding: 10px 32px;
}

.honor + .honor {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.award-tag {
  display: inline-block;
  padding: 5px 14px 4px;
  border-radius: 999px;
  background: #6c2cff; /* official Winner-pill purple */
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: #fff;
}

.honor-name {
  margin-top: 16px;
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
}

.honor-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.award-date {
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Footer — identical copy to daoyiam.com
   -------------------------------------------------------------------------- */

.site-footer {
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-top: 1px solid var(--hairline);
  color: #fff;
}

.site-footer p {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-dim { display: none; }
  .hero-inner { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Cookie notice — same copy and palette as the original banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 12px;
  z-index: 50;
  width: min(1010px, calc(100vw - 48px));
  background: #486a5d;
  color: #fff;
  padding: 26px 30px 28px;
}

.cookie-banner h4 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cookie-banner p {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}

.cookie-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cookie-actions button {
  height: 40px;
  border: 0;
  background: #fff;
  color: #1c2b25;
  font-family: 'Adamina', serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-actions button:hover { background: #f3f4f2; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .awards { min-height: 0; padding: 64px 0; }
  .awarded-by { margin-top: 30px; }
  .awarded-by-logo { height: 34px; }
  .honors { margin-top: 48px; grid-template-columns: 1fr; }
  .honor { padding: 0; }
  .honor + .honor { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 36px; padding-top: 36px; }
  .honor-name { font-size: 21px; }
}

@media (max-width: 640px) {
  .hero-legal { font-size: 11px; letter-spacing: 0.3em; text-indent: 0.3em; }
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 22px 20px 24px;
  }
  .cookie-actions { grid-template-columns: 1fr; gap: 12px; }
}
