/* ============================================================
   Asia Press Centre Group — landing page
   Editorial luxury. Midnight ink + champagne gold + porcelain.
   Display: Playfair Display (Didone). UI: Mulish.
   ============================================================ */

:root {
  /* Ink / dark */
  --ink:        #0a1424;
  --navy:       #0c1d38;
  --navy-2:     #11294a;

  /* Light */
  --paper:      #fffefb;
  --paper-tint: #f3efe7;   /* porcelain band */
  --porcelain:  #f6f3ec;

  /* Gold */
  --gold:       #bf9d57;
  --gold-lite:  #ddc488;
  --gold-deep:  #9c7e3f;

  /* Text */
  --ink-strong: #111c2e;
  --ink-body:   #36404f;
  --ink-muted:  #6a7283;
  --light-body: rgba(246,243,236,0.80);
  --light-muted:rgba(246,243,236,0.55);

  /* Lines */
  --line-light: rgba(12,29,56,0.12);
  --line-dark:  rgba(246,243,236,0.14);

  --serif: "Playfair Display", "Hoefler Text", Georgia, serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 100;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.svg-sprite { position: absolute; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }

/* ---------- Shared type ---------- */
.overline {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.overline::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.overline--gold { color: var(--gold-lite); }
.overline--gold::before { background: var(--gold); }

.display-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 0;
  text-wrap: balance;
}
.section--dark .display-title { color: var(--porcelain); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  padding: 15px 30px; border: 1px solid transparent; cursor: pointer; border-radius: 2px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-lite); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--porcelain); border-color: rgba(246,243,236,0.35); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-lite); transform: translateY(-2px); }
.btn--lg { padding: 18px 42px; font-size: 0.82rem; }

/* ---------- Logo / emblem ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__emblem { width: 38px; height: 38px; flex: none; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: 0.005em; color: var(--porcelain); }
.brand__sub { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(10,20,36,0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(246,243,236,0.08);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(8,16,30,0.94); border-bottom-color: rgba(246,243,236,0.12); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--porcelain); font-size: 0.84rem;
  letter-spacing: 0.04em; font-weight: 500; opacity: 0.82; padding: 6px 0; position: relative;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav a:hover { opacity: 1; color: var(--gold-lite); }
.nav a:hover::after { width: 100%; }
.header__cta { padding: 11px 24px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--porcelain); transition: .3s; }

.mobile-nav { display: none; flex-direction: column; padding: 0 32px; max-height: 0; overflow: hidden; background: rgba(8,16,30,0.98); transition: max-height .5s var(--ease), padding .4s var(--ease); }
.mobile-nav.is-open { max-height: 440px; padding: 8px 32px 28px; }
.mobile-nav a { text-decoration: none; color: var(--porcelain); padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
.mobile-nav .btn { margin-top: 18px; border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--porcelain); overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 82% -20%, rgba(191,157,87,0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 120%, rgba(17,41,74,0.9), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0b1830 60%, var(--navy) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,243,236,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,243,236,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
}
.hero__emblem {
  position: absolute; right: -8vw; bottom: -18vh; width: 78vh; height: 78vh;
  color: var(--gold); opacity: 0.045; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top left, #000 22%, rgba(0,0,0,0.7) 55%, transparent 95%);
          mask-image: linear-gradient(to top left, #000 22%, rgba(0,0,0,0.7) 55%, transparent 95%);
}
.hero__inner { position: relative; padding: 130px 32px 120px; max-width: 980px; margin-right: auto; margin-left: max(32px, calc((100% - 1200px) / 2)); }

.hero__dateline {
  display: inline-flex; align-items: center; gap: 16px; margin: 0 0 30px;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-lite); flex-wrap: wrap;
}
.hero__dateline > span { white-space: nowrap; }
.hero__dateline-sep { width: 46px; height: 1px; background: rgba(221,196,136,0.5); }

.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 6.2vw, 5.2rem); line-height: 1.06;
  letter-spacing: -0.012em; margin: 0 0 32px; color: #fff; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold-lite); }

.hero__lede { font-size: clamp(1.04rem, 1.5vw, 1.24rem); line-height: 1.78; color: var(--light-body); max-width: 620px; margin: 0 0 42px; font-weight: 400; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(80px, 11vh, 138px) 0; }
.section--tint { background: var(--paper-tint); }
.section--dark { background: var(--navy); color: var(--porcelain); }

.section__head { max-width: 680px; margin: 0 0 64px; }
.section__head .section__lede { margin: 20px 0 0; color: var(--ink-muted); font-size: 1.1rem; max-width: 56ch; }
.section--dark .section__lede, .section__head--dark .section__lede { color: var(--light-muted); }

.verticals .section__head, .why .section__head, .titles .section__head {
  max-width: 720px; margin-left: auto; margin-right: auto; text-align: center;
}
.verticals .section__head .section__lede, .why .section__head .section__lede,
.titles .section__head .section__lede { margin-left: auto; margin-right: auto; }
.titles .overline { justify-content: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about.section { padding-block: clamp(72px, 9vh, 112px); }
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(48px, 7vw, 110px); align-items: end; }
.about__lead { padding-bottom: 2px; }
.ledger { margin-bottom: 11px; }
.about__lead .display-title { margin: 22px 0 0; }
.about__para { margin: 24px 0 0; font-size: 1.08rem; line-height: 1.78; color: var(--ink-body); max-width: 50ch; text-wrap: pretty; }

.ledger { display: flex; flex-direction: column; }
.ledger__row { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line-light); }
.ledger__row:last-child { border-bottom: 1px solid var(--line-light); }
.ledger__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold-deep); border: 1px solid rgba(156,126,63,0.4); border-radius: 50%; }
.ledger__icon svg { width: 23px; height: 23px; }
.ledger__body { display: flex; flex-direction: column; gap: 4px; }
.ledger__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink-strong); line-height: 1.2; }
.ledger__desc { color: var(--ink-muted); font-size: 1rem; }

/* ============================================================
   TRUST (credibility for readers)
   ============================================================ */
.trust__intro { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.trust__intro .overline { justify-content: center; }
.trust__intro .display-title { margin: 0 auto; }
.trust__lede { margin: 22px auto 0; color: var(--ink-body); font-size: 1.12rem; line-height: 1.8; max-width: 60ch; text-wrap: pretty; }

.trust__panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line-light);
  box-shadow: 0 40px 80px -50px rgba(11,28,46,0.4);
}
.trust__cell { padding: 44px 34px; border-right: 1px solid var(--line-light); }
.trust__cell:last-child { border-right: 0; }
.trust__rule { display: block; width: 30px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.trust__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink-strong); margin: 0 0 10px; line-height: 1.15; }
.trust__desc { margin: 0; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.6; }

/* ============================================================
   VERTICALS
   ============================================================ */
.verticals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.vertical-card {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  padding: 32px 30px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  position: relative; transition: background .4s var(--ease);
}
.vertical-card::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); transition: width .45s var(--ease); }
.vertical-card:hover { background: rgba(191,157,87,0.07); }
.vertical-card:hover::after { width: 100%; }
.vertical-card__count { font-family: var(--serif); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--gold-deep); flex: none; font-feature-settings: "lnum"; }
.vertical-card__name { font-size: 1.06rem; font-weight: 500; color: var(--ink-strong); }
.vertical-card__arrow { margin-left: auto; align-self: center; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); font-size: 1.1rem; }
.vertical-card:hover .vertical-card__arrow { opacity: 1; transform: none; }

/* ============================================================
   TITLES (dark directory, the showpiece)
   ============================================================ */
.titles.section--dark {
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(191,157,87,0.10), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--navy) 50%, var(--ink));
}
.titles__groups { display: flex; flex-direction: column; gap: 56px; }
.title-group__name {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--porcelain);
  letter-spacing: 0.005em; margin: 0 0 24px;
}
.title-group__name::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.title-group__name .count { font-size: 0.7rem; font-family: var(--sans); letter-spacing: 0.12em; color: var(--gold-lite); border: 1px solid rgba(221,196,136,0.35); border-radius: 999px; padding: 3px 11px; font-weight: 700; }
.title-group__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.title-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 28px 28px 24px; min-height: 154px; text-decoration: none;
  border-radius: 3px;
  transition: transform .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.title-card__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--porcelain); line-height: 1.15; }
.title-card__host { font-size: 0.76rem; letter-spacing: 0.03em; color: var(--light-muted); font-weight: 500; }
.title-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; }

/* Live: brighter, with a Visit affordance */
.title-card--live { cursor: pointer; background: rgba(191,157,87,0.08); border: 1px solid rgba(221,196,136,0.34); }
.title-card--live:hover {
  transform: translateY(-5px);
  background: rgba(191,157,87,0.14);
  border-color: rgba(221,196,136,0.7);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7), 0 0 0 1px rgba(221,196,136,0.18) inset;
}
.title-card__action { display: inline-flex; align-items: center; gap: 9px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-lite); }
.title-card__arrow { transition: transform .45s var(--ease); }
.title-card--live:hover .title-card__arrow { transform: translateX(6px); }

/* Coming soon: quieter, dashed */
.title-card--soon { cursor: default; background: rgba(246,243,236,0.02); border: 1px dashed rgba(246,243,236,0.16); }
.title-card--soon .title-card__name { color: rgba(246,243,236,0.6); }
.title-card__badge { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light-muted); }

.titles__note { margin: 56px 0 0; text-align: center; font-size: 0.86rem; color: var(--light-muted); }

/* ============================================================
   WHY
   ============================================================ */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 56px; row-gap: 0; }
.reason { padding: 40px 0; border-top: 1px solid var(--line-light); }
.reason__num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.reason__title { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ink-strong); margin: 14px 0 10px; line-height: 1.18; }
.reason__desc { margin: 0; color: var(--ink-muted); font-size: 1.01rem; max-width: 32ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 168px) 0; background: var(--ink); }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 110% at 50% -10%, rgba(191,157,87,0.18), transparent 60%);
}
.contact__emblem { position: absolute; right: -2vw; bottom: -14vh; width: 58vh; height: 58vh; color: var(--gold); opacity: 0.05; pointer-events: none; -webkit-mask-image: linear-gradient(to top left, #000 22%, rgba(0,0,0,0.7) 55%, transparent 95%); mask-image: linear-gradient(to top left, #000 22%, rgba(0,0,0,0.7) 55%, transparent 95%); }
.contact__inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact__inner .overline { justify-content: center; }
.contact__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.14; letter-spacing: -0.01em; color: #fff; margin: 18px 0 0; text-wrap: balance; }
.contact__lede { font-size: 1.16rem; color: var(--light-body); margin: 22px 0 0; }
.contact__cta { margin-top: 40px; }
.contact__meta { margin-top: 40px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 0.92rem; color: var(--light-muted); }
.contact__meta a { color: var(--gold-lite); text-decoration: none; }
.contact__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--light-muted); padding: 64px 0 34px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 48px; align-items: start; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__emblem { width: 40px; height: 40px; flex: none; color: var(--gold); }
.footer__name { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--porcelain); font-weight: 600; }
.footer__tag { display: block; margin-top: 8px; font-size: 0.88rem; max-width: 34ch; color: var(--light-muted); }
.footer__label { display: block; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer__domains { display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { text-decoration: none; font-size: 0.92rem; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--gold-lite); }
.footer__copy { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__copy p { margin: 0; font-size: 0.82rem; color: rgba(246,243,236,0.42); }

/* ============================================================
   REVEAL (progressive — only when .js present)
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav, .header__cta { display: none; }
  .nav-toggle, .mobile-nav { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .trust__panel { grid-template-columns: repeat(2, 1fr); }
  .trust__cell:nth-child(2) { border-right: 0; }
  .trust__cell:nth-child(1), .trust__cell:nth-child(2) { border-bottom: 1px solid var(--line-light); }
  .verticals__grid { grid-template-columns: repeat(2, 1fr); }
  .title-group__cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .hero { min-height: 88vh; }
  .hero__inner { padding: 112px 22px 100px; }
  .hero__emblem { width: 60vh; height: 60vh; right: -22vw; }
  .trust__panel { grid-template-columns: 1fr; }
  .trust__cell { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .trust__cell:last-child { border-bottom: 0; }
  .verticals__grid, .title-group__cards, .why__grid { grid-template-columns: 1fr; }
  .vertical-card { padding: 26px 12px; }
  .why__grid { column-gap: 0; }
  .reason { padding: 30px 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .btn { width: 100%; }
  .hero__cta, .contact__cta { width: 100%; flex-direction: column; }
}
