@font-face {
  font-family: 'HeadingCustom';
  src: url('assets/fonts/heading-custom.woff2') format('woff2');
  font-display: swap;
}

:root {
  --header: #BE2929;
  --red: #EB2224;
  --purple: #322139;
  --purple-light: #412743;
  --slate: #242E37;
  --orange: #ED5829;
  --footer: #E8E6E6;
  --accent: #B40707;
  --accent-2: #B20708;
  --black: #000;
  --white: #fff;

  --f-brandon: 'Outfit', sans-serif;
  --f-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-futura: 'Jost', sans-serif;
  --f-proxima: 'Montserrat', sans-serif;
  --f-poppins: 'Poppins', sans-serif;
  --f-avenir: 'Nunito Sans', sans-serif;
  --f-heading: 'HeadingCustom', 'Courier New', monospace;

  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--white);
  color: var(--black);
  font-family: var(--f-helvetica);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; font-weight: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { display: block; width: 100%; height: 100%; }
.white svg path { fill: var(--white); }

section { position: relative; overflow: hidden; }
.wrap { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--header);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; height: 100%; margin: 0 auto;
  padding: 10px 100px 0 134px;
}
.logo { display: block; width: 260px; height: 47px; }
.logo svg { fill: var(--white); filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .7)); }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font: 400 14px/1 var(--f-brandon);
  letter-spacing: .04em;
  color: var(--white);
  transition: opacity .2s;
}
.site-nav a:hover { opacity: .8; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  height: 773px;
  background:
    linear-gradient(rgba(180, 7, 7, .85), rgba(180, 7, 7, .85)),
    url('assets/hero-typing.jpg') 50% 86% / max(122.5%, 1760px) auto no-repeat;
  color: var(--white);
}
.hero h1 {
  position: absolute; left: 7.99%; top: 283px;
  font: 300 63.5px/1.19 var(--f-brandon);
  text-transform: uppercase;
}
.hero-tagline {
  position: absolute; left: 62.29%; top: 422px; width: 330px;
  font: 300 32px/1.56 var(--f-brandon); letter-spacing: -.01em;
}

/* ---------- What ---------- */
.what { height: 603px; }
.what-col { position: absolute; top: 83px; width: 302px; }
.what-col:nth-child(1) { left: 6.25%; }
.what-col:nth-child(2) { left: 40.69%; }
.what-col:nth-child(3) { left: 72.92%; }
.what-icon { width: 54px; height: 52px; }
.what-col:nth-child(1) .what-icon { margin-left: 18px; }
.what-col:nth-child(2) .what-icon { margin-left: -4px; }
.what-col:nth-child(3) .what-icon { margin-left: 26px; }
.what-icon svg path { fill: var(--accent); }
.what h3 { margin: 34px 0 0 4px; font: 300 38px/1.25 var(--f-brandon); text-transform: uppercase; }
.what-col:not(:first-child) h3 { margin-left: 0; }
.what p { margin-top: 18px; font: 300 18.5px/1.52 var(--f-brandon); letter-spacing: -.02em; }

/* ---------- Focus ---------- */
.focus { height: 603px; color: var(--white); }
.focus-intro { background: var(--purple); padding: 166px 0 0 16%; }
.focus-intro h2 { font: 700 80px/1.1 var(--f-helvetica); }
.focus-intro p { margin-top: 13px; width: 400px; font: 400 22px/1.4 var(--f-helvetica); }
.focus-slider { position: relative; background: var(--red); }
.focus-slide {
  position: absolute; left: 28.9%; top: 140px; width: 340px;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.focus-slide.is-active { opacity: 1; visibility: visible; }
.focus-slide h3 { font: 400 37px/1.3 var(--f-futura); color: #F6EBE4; }
.focus-slide p { margin-top: 56px; width: 340px; font: 400 19px/1.6 var(--f-futura); letter-spacing: .035em; }
.focus .dots {
  position: absolute; left: 50%; top: 555px; transform: translateX(-50%);
  display: flex; gap: 19px;
}
.focus .dots button { width: 6px; height: 6px; background: rgba(232, 230, 230, .6); }
.focus .dots button.is-active { background: rgba(255, 255, 255, .24); }

/* Shared slideshow arrows */
.arrow { position: absolute; display: grid; place-items: center; transition: opacity .3s; }
.arrow::before {
  content: ''; width: 9px; height: 9px;
  border: solid var(--white); border-width: 0 0 1.5px 1.5px;
  transform: translateX(2px) rotate(45deg);
}
.arrow-next::before { transform: translateX(-2px) rotate(-135deg); }
.focus .arrow { top: 263px; width: 40px; height: 40px; background: rgba(255, 255, 255, .18); opacity: 0; }
.focus .arrow-prev { left: 20.4%; }
.focus .arrow-next { right: 20.4%; }
.focus-slider:hover .arrow, .focus .arrow:focus-visible { opacity: 1; }

/* ---------- Advertisers ---------- */
.advertisers { height: 832px; background: var(--slate); color: var(--white); }
.adv-text { position: absolute; left: 9.51%; top: 0; width: 437px; }
.adv-text h2 { margin-top: 202px; font: 300 62px/1.15 var(--f-helvetica); letter-spacing: .04em; }
.adv-lead { margin-top: 74px; font: 300 28px/1.5 var(--f-brandon); letter-spacing: -.015em; }
.adv-stat {
  margin: 36px 0 0 13px; width: 410px;
  font: 700 30px/1.45 var(--f-helvetica); text-align: center;
}
.hl { color: var(--accent); }
.btn-orange {
  display: grid; place-items: center;
  width: 142px; height: 40px; margin: 41px 0 0 147px;
  background: var(--orange); color: var(--white);
  font: 400 15px/1 var(--f-avenir); letter-spacing: .1em;
  transition: opacity .2s;
}
.btn-orange:hover { opacity: .85; }
.adv-logos > * { position: absolute; }
.l-crypto { left: calc(50% + 184px); top: 43px; width: 333px; height: 63px; }
.l-zomato { left: calc(50% + 140px); top: 130px; width: 179px; height: 38px; }
.l-flipkart { left: calc(50% + 369px); top: 123px; width: 200px; height: 53px; }
.l-lazada { left: calc(50% + 130px); top: 211px; width: 200px; height: 52px; }
.l-tokopedia { left: calc(50% + 369px); top: 216px; width: 200px; height: 43px; }
.l-amazon { left: calc(50% + 285px); top: 306px; width: 149px; height: 45px; }
.l-amazon path:not([fill="#ff9900"]) { fill: var(--white); }
.adv-illustration { position: absolute; left: calc(50% + 70px); top: 282px; width: 650px; height: 550px; }

/* ---------- Products ---------- */
.products {
  --bg: #EB2224; --tab: #D31F20;
  height: 1224px; background: var(--bg); color: var(--white);
  transition: background-color .4s ease;
}
.products::after { /* diagonal edge of the purple publishers section */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--purple);
  clip-path: polygon(0 1183px, 100% 933px, 100% 100%, 0 100%);
}
.products-title {
  position: absolute; left: 60px; top: 50px; z-index: 1;
  font: 400 54px/1.45 var(--f-proxima); white-space: nowrap;
}
.tabs { position: absolute; left: 492px; top: 66px; z-index: 1; display: flex; gap: 45px; }
.tabs button {
  width: 114px; height: 53px;
  background: var(--tab); border: 2px solid transparent;
  font: 600 26px/1 var(--f-poppins);
  transition: background-color .4s ease;
}
.tabs button:nth-child(n+3) { width: 170px; }
.tabs button.is-active { background: transparent; border-color: var(--white); }
.product-slide { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.product-slide.is-active { opacity: 1; visibility: visible; }
.product-copy { position: absolute; right: calc(50% - 32px); top: 303px; width: 500px; text-align: right; }
.product-copy h3 { margin-right: 6px; font: 400 80px/1.3 var(--f-heading); }
.product-copy p { margin-top: 23px; font: 400 32px/1.4 var(--f-helvetica); }
.product-media { position: absolute; left: calc(50% + 55px); right: 0; top: 134px; height: 846px; background: var(--white); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.products .arrow { top: 585px; z-index: 1; width: 50px; height: 50px; background: rgba(199, 199, 199, .69); }
.products .arrow::before { width: 11px; height: 11px; border-width: 0 0 1px 1px; }
.products .arrow-prev { left: 100px; }
.products .arrow-next { left: calc(50% + 570px); }
.bolt { position: absolute; z-index: 3; }
.bolt-products { left: calc(50% - 88px); top: 980px; width: 175px; height: 155px; }

/* ---------- Publishers ---------- */
.publishers { height: 896px; background: var(--purple); color: var(--white); }
.publishers::before {
  content: ''; position: absolute; inset: 0;
  background: var(--purple-light);
  clip-path: polygon(0 849px, 100% 487px, 100% 100%, 0 100%);
}
.publishers h2 {
  position: relative; padding-top: 24px;
  font: 300 51px/1.25 var(--f-brandon); text-align: center;
}
.pub-logos > * { position: absolute; height: 51px; }
.p-vivo { left: calc(50% - 445px); top: 126px; width: 200px; }
.p-taboola { left: calc(50% - 96px); top: 126px; width: 190px; }
.p-unity { left: calc(50% + 186px); top: 126px; width: 250px; }
.p-oppo { left: calc(50% - 445px); top: 226px; width: 200px; }
.p-samsung { left: calc(50% - 151px); top: 231px; width: 300px; height: 40px !important; }
.p-shareit { left: calc(50% + 214px); top: 226px; width: 193px; }
.p-truecaller { left: calc(50% - 107px); top: 326px; width: 212px; }
.p-snapchat { left: calc(50% + 260px); top: 326px; width: 103px; height: 70px !important; }
.pub-megaphone { position: absolute; left: calc(50% - 708px); top: 376px; width: 587px; height: auto; transform: rotate(-23.4deg); }
.pub-stat {
  position: absolute; left: calc(50% - 66px); top: 430px; width: 429px;
  font: 700 40px/1.4 var(--f-helvetica); text-align: center;
}
.hl2 { color: var(--accent-2); }
.bolt-publishers { left: calc(50% - 79px); top: 616px; width: 157px; height: 139px; }

/* ---------- Careers ---------- */
.careers { height: 840px; }
.careers-text { background: var(--red); color: var(--white); }
.careers-text p {
  width: 473px; margin: 222px 17.4% 0 auto;
  font: 300 32px/1.53 var(--f-brandon); letter-spacing: -.015em; text-align: right;
}
.careers-image {
  background:
    linear-gradient(rgba(89, 89, 89, .55), rgba(89, 89, 89, .55)),
    url('assets/jobs.jpg') center bottom / cover no-repeat;
}

/* ---------- Contact ---------- */
.contact { height: 800px; }
.contact-text { background: var(--red); color: var(--white); text-align: right; padding-right: 120px; }
.contact-text h2 { margin-top: 178px; font: 300 52px/1.3 var(--f-brandon); }
.contact-text p { width: 440px; margin: 38px 5px 0 auto; font: 300 28px/1.5 var(--f-brandon); letter-spacing: -.025em; }
.contact-form-wrap { padding: 210px 0 0 141px; }
.contact-form { display: flex; flex-direction: column; width: 450px; font-family: var(--f-futura); }
.contact-form label { display: block; font: 400 14px/1.3 var(--f-futura); }
.form-row { display: flex; gap: 30px; }
.form-row label { width: 210px; }
.contact-form > label + label, .form-row + label { margin-top: 27px; }
.contact-form > label + label + label { margin-top: 33px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; height: 40px; margin-top: 0; padding: 0 12px;
  border: 0; border-bottom: 2px solid var(--black); border-radius: 0;
  background: transparent; font: 400 16px var(--f-futura); color: var(--black);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--red); }
.contact-form input::placeholder { color: #6E7C96; font-size: 17px; }
.contact-form .label-message { margin: 37px 0 0 -3px; }
.contact-form textarea { height: 84px; padding-top: 6px; resize: none; }
.btn-submit {
  width: 147px; height: 42px; margin: 48px 0 0 -5px;
  border-radius: 21px; background: var(--black); color: var(--white);
  font: 400 16px/1 var(--f-futura);
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .8; }
.form-thanks { margin-top: 24px; font: 400 16px var(--f-futura); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; height: 161px; max-width: 1440px; margin: 0 auto;
  font: 400 15px/1.4 var(--f-helvetica);
}
.site-footer::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--footer); }
.footer-contact { position: absolute; left: 40.07%; top: 70px; }
.footer-label { font-weight: 300; }
.footer-address { position: absolute; left: 73.33%; top: 47px; width: 286px; font-weight: 300; }
.site-footer a:hover { text-decoration: underline; }

/* ================= Mobile ================= */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 16px; }
  .logo { width: 180px; height: 33px; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 8px;
  }
  .menu-toggle span { height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    background: var(--header);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 24px; font-size: 16px; }

  section, .what, .focus, .advertisers, .products, .publishers, .careers, .contact { height: auto; }
  .split { grid-template-columns: 1fr; }
  .wrap > *, .adv-logos > *, .pub-logos > * { position: static; }

  .hero { min-height: 80vh; display: flex; align-items: center; background-size: auto, cover; background-position: 0 0, center; }
  .hero h1, .hero-tagline { position: static; }
  .hero .wrap { padding: 48px 24px; width: 100%; }
  .hero h1 { font-size: 42px; }
  .hero-tagline { margin-top: 40px; width: auto; font-size: 24px; }

  .what .wrap { padding: 48px 24px; display: grid; gap: 48px; }
  .what-col { position: static; width: auto; max-width: 340px; margin: 0 auto; text-align: center; }
  .what-col .what-icon { margin: 0 auto !important; }
  .what h3 { margin: 20px 0 0 !important; font-size: 32px; }
  .what p { font-size: 18px; }

  .focus-intro, .focus-slider { padding: 48px; }
  .focus-intro h2 { font-size: 56px; }
  .focus-intro p { width: auto; font-size: 20px; }
  .focus-slider { display: grid; min-height: 380px; padding-bottom: 72px; }
  .focus-slide { position: static; grid-area: 1 / 1; width: auto; }
  .focus-slide p { width: auto; margin-top: 24px; }
  .focus .dots { top: auto; bottom: 36px; }
  .focus .arrow { display: none; }

  .advertisers .wrap { padding: 56px 24px; text-align: center; }
  .adv-text { position: static; width: auto; }
  .adv-text h2 { margin: 0; font-size: 44px; }
  .adv-lead { margin-top: 24px; font-size: 22px; }
  .adv-stat { width: auto; margin: 32px 0 0; font-size: 24px; }
  .btn-orange { margin: 24px auto 0; }
  .adv-logos {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 20px 24px; margin-top: 48px;
  }
  .adv-logos > * { width: 130px !important; height: 36px !important; object-fit: contain; }
  .adv-illustration { width: 100%; height: auto; margin-top: 32px; }

  .products .wrap { padding: 48px 24px 120px; text-align: center; }
  .products::after { clip-path: polygon(0 calc(100% - 40px), 100% calc(100% - 110px), 100% 100%, 0 100%); }
  .products-title { font-size: 44px; white-space: normal; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .tabs button, .tabs button:nth-child(n+3) { width: auto; height: 48px; font-size: 20px; }
  .product-slides { display: grid; margin-top: 32px; }
  .product-slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 24px; }
  .product-media { order: -1; }
  .product-media { position: static; height: auto; aspect-ratio: 4 / 3; }
  .product-copy { position: static; width: auto; text-align: center; }
  .product-copy h3 { margin: 0; font-size: 56px; }
  .product-copy p { margin-top: 12px; font-size: 20px; }
  .products .arrow { display: none; }
  .bolt-products { position: absolute !important; left: calc(50% - 50px); top: auto; bottom: 8px; width: 100px; height: 89px; }

  .publishers .wrap { padding: 32px 24px 48px; text-align: center; }
  .publishers::before { clip-path: polygon(0 calc(100% - 60px), 100% calc(100% - 160px), 100% 100%, 0 100%); }
  .publishers h2 { padding: 0; font-size: 40px; }
  .pub-logos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px;
    justify-items: center; align-items: center; margin-top: 32px;
  }
  .pub-logos > * { width: 100% !important; max-width: 150px; height: 40px !important; object-fit: contain; }
  .pub-logos .p-samsung { height: 24px !important; }
  .pub-logos .p-snapchat { width: 44px !important; height: 42px !important; }
  .pub-megaphone { width: 100%; height: auto; margin-top: 32px; }
  .pub-stat { position: relative; width: auto; margin-top: 24px; font-size: 28px; }
  .bolt-publishers { position: relative !important; display: block; left: 0; top: 0; width: 100px; height: 89px; margin: 24px auto 0; }

  .careers-text { padding: 48px 24px; }
  .careers-text p { width: auto; margin: 0; font-size: 28px; text-align: center; }
  .careers-image { height: 60vw; }

  .contact-text { padding: 48px 24px; text-align: center; }
  .contact-text h2 { margin: 0; font-size: 40px; }
  .contact-text p { width: auto; margin: 20px 0 0; font-size: 22px; }
  .contact-form-wrap { padding: 40px 24px 56px; }
  .contact-form { width: 100%; }
  .form-row { flex-direction: column; gap: 33px; }
  .form-row label { width: auto; }
  .contact-form .label-message { margin-left: 0; }
  .btn-submit { align-self: center; margin-left: 0; }

  .site-footer { height: auto; padding: 32px 24px; text-align: center; }
  .footer-contact, .footer-address { position: static; }
  .footer-address { width: auto; margin-top: 24px; }
}
