/* =========================================================
   Billion Corp (Pvt) Ltd — website styles
   ========================================================= */
:root {
  --gold: #c9a063;
  --gold-light: #e0c08a;
  --gold-dark: #a8823f;
  --gold-sand: #d4b27a;
  --ink: #0d0d0e;
  --bg: #121213;
  --bg-2: #18181a;
  --navy: #0e1724;
  --line: rgba(201, 160, 99, 0.35);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3efe8;
  --muted: #b5b0a7;
  --paper: #efeeec;
  --paper-ink: #1d1d1f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--text); }
.eyebrow--ink { color: #4a3a22; }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.005em;
}
.h2--dark { color: var(--paper-ink); }
.rule { display: block; width: 44px; height: 2px; background: var(--gold); margin: 26px 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn svg, .link-arrow svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease);
}
.btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
.header__cta:hover svg { transform: translateY(2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-sand), var(--gold-dark)); color: #fff; }
.btn--gold:hover { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.btn--dark { background: rgba(5, 8, 12, .75); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn--dark:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--outline { color: var(--gold); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--ink); }
.btn--sm { padding: 12px 22px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.link-arrow:hover { color: var(--gold-light); }
.link-arrow--sm { font-size: 11px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: linear-gradient(180deg, rgba(10, 16, 26, .85), rgba(10, 16, 26, .55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .3s;
}
.header.is-scrolled { background: rgba(12, 14, 18, .96); }
.header__inner { display: flex; align-items: center; height: 84px; gap: 32px; width: min(1440px, 100% - 64px); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__name { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .04em; color: var(--gold); }
.logo__sub { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 38px; margin-left: auto; margin-right: auto; }
.nav a {
  position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: #e9e6e0; padding: 32px 0; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--gold); }
.nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 680px; height: 92vh; max-height: 860px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy);
}
.hero__media {
  position: absolute; inset: 0 0 0 30%;
  background: url("assets/hero.jpg") center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(14, 23, 36, .96) 28%, rgba(14, 23, 36, .55) 50%, rgba(14, 23, 36, 0) 75%),
    linear-gradient(0deg, rgba(10, 12, 16, .6), rgba(10, 12, 16, 0) 30%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); z-index: 2; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
.hero__content { position: relative; z-index: 2; padding-top: 84px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.12; letter-spacing: -.01em;
}
.hero__text { max-width: 470px; margin-top: 30px; font-size: 16px; color: #dcd8d0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero__pager {
  position: absolute; z-index: 2; right: 7%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero__pager::before { content: ""; position: absolute; top: 34px; bottom: 6px; width: 1px; background: rgba(201, 160, 99, .5); }
.hero__pager-num { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.hero__pager .dot { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: var(--navy); }
.hero__pager .dot.is-active { border-color: var(--gold); background: var(--gold); }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: stretch; }
.about__copy { padding: 72px 64px 72px 0; }
.about__copy p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 440px; }
.about__copy .link-arrow { margin-top: 10px; }
.about__media { position: relative; min-height: 460px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marble texture ---------- */
.marble {
  position: relative;
  background-color: #111112;
  background-image:
    radial-gradient(ellipse at 70% 0%, rgba(255, 255, 255, .05), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'><filter id='m' x='0' y='0'><feTurbulence type='turbulence' baseFrequency='0.0035 0.009' numOctaves='4' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  -3 0 0 0 0.9'/><feComponentTransfer><feFuncA type='gamma' exponent='5' amplitude='1'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23m)' opacity='0.16'/></svg>");
  background-size: cover, 1200px 800px;
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 64px 0 70px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head .h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head--tight { align-items: center; margin-bottom: 26px; }
.section-head--tight .eyebrow { margin: 0; font-size: 14px; }

.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.brand {
  display: flex; flex-direction: column;
  border: 1px solid rgba(201, 160, 99, .45); border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, #1c1a17, #0f0f10);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.brand:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px -18px rgba(201, 160, 99, .45); }
.brand__art { position: relative; aspect-ratio: 200 / 175; overflow: hidden; }
.brand__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.brand:hover .brand__art img { transform: scale(1.06); }
.brand__art::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(0deg, #141312, transparent); }
.brand__body { position: relative; flex: 1; padding: 4px 22px 46px; background: #141312; }
.brand h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.brand p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.brand__arrow { position: absolute; right: 22px; bottom: 16px; color: var(--gold); font-size: 18px; transition: transform .3s var(--ease); }
.brand:hover .brand__arrow { transform: translateX(4px); }

/* ---------- At a glance ---------- */
.glance { padding: 34px 0 40px; background-color: #0e0e0f; }
.glance .eyebrow { font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2px 10px; border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat svg { width: 50px; height: 50px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.stat strong { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; color: #fff; }
.stat > span { font-size: 15px; color: #dedad3; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.founder__copy {
  padding: 56px clamp(24px, 4vw, 64px) 48px max(24px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(135deg, #f5f4f2, #e7e6e3);
}
.founder .eyebrow { color: var(--gold-dark); }
.quote-mark { display: block; font-family: var(--serif); font-size: 72px; line-height: .8; color: var(--gold); margin: 22px 0 6px; height: 40px; }
.founder blockquote { margin: 0; max-width: 520px; }
.founder blockquote p { color: #46464a; font-size: 15px; line-height: 1.65; margin-bottom: 14px; font-weight: 400; }
.signoff { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.signoff__sig { width: 190px; mix-blend-mode: multiply; filter: grayscale(1) brightness(1.25) contrast(2.2); }
.signoff__who { padding-left: 24px; border-left: 1px solid rgba(168, 130, 63, .5); line-height: 1.5; }
.signoff__who strong { display: block; color: var(--gold-dark); font-size: 17px; font-weight: 600; }
.signoff__who span { color: #555; font-size: 15px; font-weight: 400; }
.founder__media { position: relative; min-height: 480px; border-left: 4px solid #1a1a1a; }
.founder__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }

/* ---------- News ---------- */
.news { padding: 36px 0 26px; background: #121213; border-bottom: 1px solid var(--line); }
.news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; background: #141415;
  transition: border-color .35s, transform .35s var(--ease);
}
.post:hover { border-color: var(--gold); transform: translateY(-4px); }
.post__img { position: relative; aspect-ratio: 318 / 117; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__date {
  position: absolute; left: 2.5%; bottom: 0; width: 18%; height: 60%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0f0f10; border: 1px solid rgba(255, 255, 255, .15); border-bottom: 0;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #fff; line-height: 1.2;
}
.post__date b { font-family: var(--sans); font-weight: 400; font-size: 20px; letter-spacing: 0; }
.post__body { padding: 18px 22px 22px; }
.post h3 { font-size: 17px; font-weight: 400; line-height: 1.45; color: #fff; margin-bottom: 18px; min-height: 50px; }

/* ---------- Careers + Contact ---------- */
.cta { display: grid; grid-template-columns: 740fr 860fr; border-bottom: 1px solid var(--line); }
.cta__inner { position: relative; z-index: 1; }
.cta__careers {
  position: relative; padding: 40px 48px 46px max(24px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, #121212 0%, rgba(18, 18, 18, .92) 55%, rgba(18, 18, 18, .4) 100%),
    url("assets/careers.jpg") right center / auto 100% no-repeat, #121212;
}
.cta__careers .h2 { margin-bottom: 18px; }
.cta__careers .muted { max-width: 380px; font-size: 14px; margin-bottom: 30px; }
.cta__contact {
  position: relative; overflow: hidden; padding: 40px 48px 46px 60px;
  background: linear-gradient(110deg, #dcbd85, #c9a464 60%, #b99050);
}
.cta__building {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
  background: url("assets/contact.jpg") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.contact-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: #2c2414; font-size: 15px; font-weight: 400; line-height: 1.6; }
.contact-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: #3b2f1a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #111112; padding: 40px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 40px; }
.footer__logo { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.footer__mono { font-family: var(--serif); font-size: 76px; line-height: .8; color: var(--gold); padding-right: 16px; border-right: 1px solid var(--line); }
.footer__word { display: flex; flex-direction: column; font-family: var(--serif); color: var(--gold); line-height: 1.05; }
.footer__word b { font-weight: 500; font-size: 38px; letter-spacing: .03em; }
.footer__word small { font-size: 19px; letter-spacing: .08em; }
.footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer h4 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__cols { display: grid; grid-template-columns: auto auto 1fr; gap: 0 56px; }
.footer__cols li { margin-bottom: 6px; }
.footer__cols a { font-size: 13px; color: var(--muted); transition: color .25s; }
.footer__cols a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 14px; margin-bottom: 30px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .3s, border-color .3s;
}
.socials svg { width: 20px; height: 20px; fill: none; stroke: #ddd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: #ddd; stroke: none; }
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials a:hover svg { stroke: var(--ink); }
.socials a:hover .fill { fill: var(--ink); }
.footer__copy { font-size: 13px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .stat:nth-child(4) { border-left: 0; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .header__cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--gold); transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(12, 14, 18, .98); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .about__grid, .founder, .cta { grid-template-columns: 1fr; }
  .about__copy { padding: 56px 0; }
  .about__media { min-height: 340px; margin-inline: -24px; }
  .founder__copy { padding: 52px 24px; }
  .founder__media { min-height: 420px; border-left: 0; }
  .cta__careers, .cta__contact { padding: 48px 24px; }
  .cta__building { width: 50%; opacity: .55; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__pager { display: none; }
  .hero__media { left: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(14, 23, 36, .95), rgba(14, 23, 36, .55)); }
}
@media (max-width: 640px) {
  .logo__name { font-size: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--tight { flex-direction: row; align-items: center; }
  .brands { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .brand__body { padding: 4px 14px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--line); }
  .news__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .footer__cols ul:last-child { grid-column: 1 / -1; margin-top: 10px; }
  .signoff { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}
