/* affla.io styles. Sections follow page order; breakpoints sit next to the rules they change. */

/* ========== fonts ========== */

@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-latin.052df745.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-latin-ext.14e7d307.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.68e5e01d.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic.ce85091f.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jbmono-latin.cb182fee.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212;
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jbmono-cyrillic.26c9ed51.woff2) format("woff2");
  unicode-range: U+0400-045F;
}

/* ========== tokens ========== */

:root {
  --void: #06030C;
  --ink: #0D0720;
  --deep: #150B30;
  --violet: #7C4DFF;
  --violet-light: #A88BFF;
  --pale: #EDE7FF;
  --soft: #CFC6EE;
  --muted: #9A8FBF;
  --placeholder: #6F6590;
  --gold: #FFC24A;
  --red: #FF5C7A;
  --green: #4BE3A1;
  --line: rgba(237, 231, 255, .12);

  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 64px);
  --radius: 18px;
  --header-offset: 110px;

  --sans: "Onest", "Noto Sans Arabic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ========== base ========== */

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
  scrollbar-color: #3B1F7A var(--void);
  caret-color: var(--violet-light);
}

::selection {
  background: rgba(124, 77, 255, .55);
  color: #FFF;
}

body {
  margin: 0;
  color: var(--pale);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .92;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--void);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.page {
  position: relative;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Small list bullet shared by deals and the job card. */
.bullets li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 10px var(--violet);
}

/* Bordered card shared by rules, deals and the job card. */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(237, 231, 255, .025);
}
.card--lift {
  transition: transform .3s var(--ease), border-color .3s;
}
.card--lift:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 231, 255, .3);
}

/* ========== 3D scene behind the page ========== */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--scene-opacity, 1);
  transition: opacity .2s linear;
}

/* Shown when WebGL is not available. */
.scene-fallback {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 45%, #2A1660 0 17%, transparent 17.3%),
    radial-gradient(circle at 70% 45%, rgba(124, 77, 255, .45), transparent 30%),
    radial-gradient(60% 50% at 80% 10%, rgba(124, 77, 255, .25), transparent 70%),
    var(--void);
}

/* ========== buttons and links ========== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(.97);
}

.btn--primary {
  background: var(--pale);
  color: var(--void);
}
.btn--primary:hover {
  background: #FFF;
  box-shadow: 0 12px 40px -10px rgba(168, 139, 255, .8);
}

.btn--ghost {
  border-color: rgba(237, 231, 255, .28);
  background: rgba(13, 7, 32, .35);
  color: var(--pale);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--pale);
  background: rgba(237, 231, 255, .08);
}

.btn__arrow {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
[dir="rtl"] .btn__arrow {
  transform: scaleX(-1);
}
[dir="rtl"] .btn:hover .btn__arrow {
  transform: scaleX(-1) translateX(4px);
}

.link {
  position: relative;
  display: inline-block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.link:hover::after {
  transform: scaleX(1);
}
[dir="rtl"] .link::after {
  transform-origin: right;
}

/* ========== header ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-solid {
  border-color: var(--line);
  background: rgba(6, 3, 12, .72);
  backdrop-filter: blur(16px);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.logo img {
  display: block;
  width: auto;
  height: 36px;
}

.site-header nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.site-header nav a:hover {
  color: var(--pale);
  background: rgba(237, 231, 255, .06);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__actions > .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  white-space: nowrap;
}

.menu-btn {
  position: relative;
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--pale);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 1px);
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-btn span:first-child {
  transform: translateY(-3px);
}
.menu-btn span:last-child {
  transform: translateY(3px);
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Long nav labels (de, pt) no longer fit next to the logo and CTA below this width. */
@media (max-width: 1100px) {
  .site-header nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}
@media (max-width: 900px) {
  .site-header__actions > .btn {
    display: none;
  }
}

/* ========== language picker ========== */

.lang-picker {
  position: relative;
}
.lang-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pale);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.lang-picker summary::-webkit-details-marker {
  display: none;
}
.lang-picker summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.lang-picker[open] summary {
  background: rgba(237, 231, 255, .08);
}
.lang-picker ul {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 7, 32, .96);
  list-style: none;
  backdrop-filter: blur(14px);
}
.lang-picker a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.lang-picker a:hover,
.lang-picker a[aria-current] {
  background: rgba(124, 77, 255, .22);
  color: var(--pale);
}
.lang-picker a span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* ========== mobile menu ========== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: var(--gut);
  background: rgba(6, 3, 12, .97);
  backdrop-filter: blur(20px);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu > a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.mobile-menu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.mobile-menu__langs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}
.mobile-menu__langs a[aria-current] {
  background: var(--pale);
  color: var(--void);
}

/* ========== hero ========== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: var(--header-offset);
  padding-bottom: clamp(40px, 7vh, 80px);
}
.hero h1 {
  max-width: 9.5ch;
  font-size: clamp(52px, 10.4vw, 168px);
}
[dir="rtl"] .hero h1 {
  line-height: 1.1;
}
.hero__line--accent {
  display: block;
  background: linear-gradient(95deg, #FFF 0%, var(--violet-light) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.is-scrambling {
  font-variant-ligatures: none;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--gut);
  margin-top: 36px;
}
.hero__lede {
  max-width: 34em;
  color: var(--soft);
  font-size: clamp(18px, 1.5vw, 21px);
}
.hero__lede b {
  color: #FFF;
  font-weight: 600;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hud {
  position: absolute;
  top: var(--header-offset);
  right: var(--gut);
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}
[dir="rtl"] .hud {
  right: auto;
  left: var(--gut);
  justify-items: start;
  text-align: left;
}
.hud__key {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.hud__value {
  color: var(--pale);
  font-size: 15px;
  font-weight: 700;
}
.hud__value--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Blinking green dot: the hero HUD and the dashboard LIVE pill. */
.hud__value--live::before,
.live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: ping 2.8s infinite;
}
@keyframes ping {
  50% {
    opacity: .35;
  }
}

@media (max-width: 900px) {
  .hero__row {
    grid-template-columns: 1fr;
  }
  .hud {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero__ctas .btn {
    width: 100%;
  }
}

/* Hero entrance. `js` is set in <head>, `is-ready` by main.js two frames later. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] > * {
    opacity: 0;
    transform: translateY(24px);
  }
  .js.is-ready [data-enter] > * {
    opacity: 1;
    transform: none;
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  }
  .js.is-ready [data-enter] > :nth-child(2) {
    transition-delay: .25s;
  }
  .js.is-ready [data-enter] > :nth-child(3) {
    transition-delay: .45s;
  }
}

/* ========== statement: the scene shows through the letters ========== */

/* Two identical layouts on top of each other: the in-flow one (invisible copy of the words + the real foot)
   gives the section its height, so the words never spill out on short windows; the absolutely positioned
   mask repeats it with visible words and a ghost of the foot, and blends with the scene behind the page. */
.statement,
.statement__mask {
  display: flex;
  flex-direction: column;
}
.statement {
  position: relative;
}
.statement__mask {
  position: absolute;
  inset: 0;
  background: #000;
  mix-blend-mode: multiply;
  pointer-events: none;
  /* Safari blends only against composited layers when the element is composited itself;
     the scene is a WebGL canvas in its own layer, so promote the mask too. */
  transform: translateZ(0);
}
.statement__stage {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
}
.statement__stage > .wrap {
  width: 100%;
}
.statement__spacer,
.statement__ghost {
  visibility: hidden;
}
.statement__words {
  display: block;
  color: #FFF;
  font-size: clamp(64px, 15.5vw, 250px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .84;
  /* The tight line-height lets glyphs poke out of the lines; keep them on the black. */
  padding-block: .12em .16em;
}
/* Sized by statement.js: each phrase on one line, the longest one fills the column. */
.statement.is-fitted .statement__words {
  font-size: var(--statement-size);
  white-space: nowrap;
}
[dir="rtl"] .statement__words {
  letter-spacing: 0;
  line-height: 1.05;
}
.statement__words span {
  display: block;
}
.statement__words span:nth-child(2) {
  padding-inline-start: 12%;
}
.statement__words span:nth-child(3) {
  padding-inline-start: 24%;
}

/* Positioned, so it paints above the absolutely positioned mask that comes before it. */
.statement__foot {
  position: relative;
  padding-bottom: clamp(24px, 3vw, 40px);
}
.statement__foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--gut);
}
.statement__title {
  text-wrap: balance;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.statement__foot p {
  max-width: 30em;
  color: var(--soft);
}

@media (max-width: 900px) {
  .statement__foot .wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .statement__words {
    font-size: 19vw;
    line-height: .9;
  }
  .statement__words span:nth-child(2) {
    padding-inline-start: 6%;
  }
  .statement__words span:nth-child(3) {
    padding-inline-start: 12%;
  }
}

/* ========== content sections ========== */

.section {
  position: relative;
  padding: clamp(100px, 13vh, 150px) 0;
  background: linear-gradient(180deg, rgba(6, 3, 12, .88), rgba(6, 3, 12, .94));
}
.section--clear {
  background: transparent;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--gut);
  margin-bottom: clamp(40px, 6vh, 64px);
}
.section-head h2 {
  font-size: clamp(44px, 6.4vw, 104px);
}
.section-head p {
  max-width: 30em;
  color: var(--soft);
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========== dashboard (sample tracker) ========== */

.dashboard {
  overflow: hidden;
  border: 1px solid rgba(237, 231, 255, .16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 11, 48, .92), rgba(10, 5, 24, .96));
  box-shadow: 0 40px 120px -40px rgba(124, 77, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.dashboard__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dashboard__dots {
  display: flex;
  gap: 7px;
}
.dashboard__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(237, 231, 255, .18);
}
.dashboard__tabs {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.dashboard__tabs span {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
}
.dashboard__tabs .is-active {
  background: rgba(124, 77, 255, .22);
  color: var(--pale);
}
.dashboard__status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}
.live-pill::before {
  box-shadow: 0 0 10px var(--green);
}

.dashboard__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
}
.dashboard__main {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(237, 231, 255, .03);
}
.kpi__value {
  margin-top: 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.kpi--roi .kpi__value {
  color: var(--gold);
}
.kpi__delta {
  margin-top: 2px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.dashboard table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}
.dashboard th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.dashboard td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(237, 231, 255, .06);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dashboard td svg {
  display: block;
}
.campaign__name {
  font-weight: 600;
}
.campaign__geo {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(124, 77, 255, .2);
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: 12px;
}
.is-up {
  color: var(--green);
}
.is-down {
  color: var(--red);
}
.campaign.is-flash td {
  animation: flash 1.2s var(--ease);
}
@keyframes flash {
  0% {
    background: rgba(124, 77, 255, .28);
  }
  100% {
    background: transparent;
  }
}

.feed {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}
.pilot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pilot__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #3B1F7A, var(--deep));
}
.pilot__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pilot b {
  display: block;
  font-size: 15px;
}
.pilot span {
  color: var(--muted);
  font-size: 13px;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 430px;
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  list-style: none;
  mask-image: linear-gradient(#000 75%, transparent);
}
.event {
  display: grid;
  grid-template-columns: 62px 44px 30px 1fr;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--soft);
  animation: event-in .5s var(--ease);
}
.event__time {
  color: var(--muted);
}
.event__type {
  font-weight: 700;
}
.event--reg .event__type {
  color: var(--violet-light);
}
.event--ftd {
  background: rgba(255, 194, 74, .08);
}
.event--ftd .event__type {
  color: var(--gold);
}
.event--dep .event__type {
  color: var(--green);
}
@keyframes event-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.dashboard-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1080px) {
  .dashboard__body {
    grid-template-columns: 1fr;
  }
  .dashboard__main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .events {
    height: 240px;
  }
}
@media (max-width: 900px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .table-scroll {
    overflow-x: auto;
  }
}
@media (max-width: 560px) {
  .dashboard__tabs span:not(.is-active) {
    display: none;
  }
}

/* ========== verticals ========== */

.verticals {
  position: relative;
}
.verticals__list {
  position: relative;
  z-index: 1; /* rows and their text sit above the orb */
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.vertical {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
  align-items: center;
  gap: var(--gut);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.vertical::before {
  content: "";
  position: absolute;
  /* Bleed past the text so the highlighted row has breathing room, on phones up to the screen edge. */
  inset: 0 calc(-1 * min(var(--gut), 28px));
  z-index: -1;
  /* Violet tint over an almost opaque base, so the orb behind barely shows through the text. */
  background: linear-gradient(90deg, rgba(124, 77, 255, .28), rgba(124, 77, 255, .04)), rgba(13, 7, 32, .94);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
[dir="rtl"] .vertical::before {
  transform-origin: right;
}
@media (hover: hover) {
  .vertical:hover::before {
    transform: scaleX(1);
  }
}
.vertical:focus-within::before {
  transform: scaleX(1);
}

.vertical__name {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  transition: transform .4s var(--ease);
}
@media (hover: hover) {
  .vertical:hover .vertical__name {
    transform: translateX(14px);
  }
  [dir="rtl"] .vertical:hover .vertical__name {
    transform: translateX(-14px);
  }
}
.vertical__name sup {
  margin-inline-start: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
}
.vertical__text {
  color: var(--soft);
  font-size: 16px;
}
.vertical__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.vertical__tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* Planet that follows the hovered row, behind the list. Background comes from data-orb. */
.orb {
  position: absolute;
  right: 28%;
  top: 0;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: inset -18px -22px 40px rgba(0, 0, 0, .65), inset 10px 10px 30px rgba(255, 255, 255, .25), 0 0 80px rgba(124, 77, 255, .6);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -50%) scale(.6);
  transition: opacity .3s, transform .5s var(--ease), top .45s var(--ease), background .4s;
}
.orb.is-visible {
  opacity: 1;
  transform: translate(50%, -50%) scale(1);
}
[dir="rtl"] .orb {
  right: auto;
  left: 28%;
  transform: translate(-50%, -50%) scale(.6);
}
[dir="rtl"] .orb.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
  .vertical {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vertical__tags {
    justify-content: flex-start;
  }
  .orb {
    display: none;
  }
}

/* ========== countdown (warp) ========== */

.countdown {
  position: relative;
  height: 420vh;
  background: var(--void);
}
.countdown__pin {
  --edge: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.countdown canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.countdown h2 {
  position: absolute;
  top: var(--header-offset);
  left: 0;
  right: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
}

.countdown__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gut);
  text-align: center;
}
.countdown__timer {
  background: linear-gradient(180deg, #FFF, var(--violet-light) 70%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(110px, 22vw, 340px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: .85;
}
.countdown__step h3 {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: -.035em;
  text-shadow: 0 2px 18px rgba(6, 3, 12, .9), 0 0 4px rgba(6, 3, 12, .8);
}
.countdown__step p {
  min-height: 3.2em;
  max-width: 36em;
  margin-top: 16px;
  color: var(--soft);
  font-size: clamp(16px, 1.4vw, 19px);
  text-shadow: 0 2px 18px rgba(6, 3, 12, .9), 0 0 4px rgba(6, 3, 12, .8);
}
.is-swapping {
  animation: swap-in .5s var(--ease);
}
@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(10px);
  }
}

.countdown__ticks {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 52px;
  display: flex;
  justify-content: space-between;
}
.countdown__ticks span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  transition: color .3s;
}
.countdown__ticks .is-active {
  color: var(--pale);
}
.countdown__bar {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.countdown__bar i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

/* ========== fuel: sources marquee and rules ========== */

.marquee {
  margin-bottom: clamp(50px, 8vh, 80px);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
[dir="rtl"] .marquee {
  direction: ltr;
}
.marquee__row {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__row {
  animation-play-state: paused;
}
.marquee__row--reverse {
  margin-top: 6px;
  animation-direction: reverse;
  animation-duration: 44s;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee b {
  padding: 0 .45em;
  color: rgba(237, 231, 255, .22);
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 800;
  letter-spacing: -.05em;
  white-space: nowrap;
  transition: color .25s;
}
[dir="rtl"] .marquee b {
  letter-spacing: 0;
}
.marquee b:hover {
  color: var(--pale);
}
.marquee__row--reverse b {
  color: rgba(255, 194, 74, .2);
}
.marquee__row--reverse b:hover {
  color: var(--gold);
}
.marquee em {
  color: var(--violet);
  font-style: normal;
}

.rules {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.rule {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}
.rule h3 {
  font-size: 20px;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.rule p {
  color: var(--soft);
  font-size: 15px;
}
.rule__joke {
  margin-top: auto;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
  .rule:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .rules {
    grid-template-columns: 1fr;
  }
}

/* ========== deals ========== */

.deals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.deal {
  display: flex;
  flex-direction: column;
  padding: 30px;
}
/* Double class so it also wins over .card--lift:hover. */
.deal.deal--featured {
  border-color: rgba(168, 139, 255, .4);
  background: linear-gradient(160deg, rgba(124, 77, 255, .35), rgba(21, 11, 48, .6) 70%);
}
.deal__who {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
}
.deal h3 {
  margin-top: 12px;
  font-size: clamp(30px, 2.8vw, 40px);
}
.deal ul {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}
/* Button or link: pinned to the bottom so the three CTAs line up. */
.deal > :last-child {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 900px) {
  .deals {
    grid-template-columns: 1fr;
  }
}

/* ========== crew ========== */

.crew {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: stretch;
  gap: var(--gut);
}

.job {
  padding: clamp(24px, 3vw, 36px);
}
.job__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.job h3 {
  font-size: clamp(32px, 3.4vw, 52px);
}
.job__tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
}
.job__text {
  max-width: 36em;
  margin-top: 14px;
  color: var(--soft);
}
.job__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gut);
  margin: 26px 0 30px;
}
.job h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.job ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.job .bullets li {
  padding: 10px 0;
}

.crew-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(124, 77, 255, .22), rgba(21, 11, 48, .5));
}
.crew-badge__mascot {
  width: min(260px, 80%);
  margin: 0 auto 10px;
}
.crew-badge__mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
.crew-badge h3 {
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.crew-badge p {
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
}

@media (max-width: 1080px) {
  .crew {
    grid-template-columns: 1fr;
  }
  .crew-badge {
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .crew-badge p {
    max-width: 36em;
  }
}
@media (max-width: 900px) {
  .crew-badge__mascot {
    width: 140px;
  }
}
@media (max-width: 700px) {
  .job__cols {
    grid-template-columns: 1fr;
  }
}

/* ========== contact ========== */

.contact {
  display: flex;
  align-items: center;
  min-height: 100svh;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--gut);
  width: 100%;
}
.contact__rocket {
  width: min(420px, 80%);
  margin-block: 0 10px;
  margin-inline: -4% 0;
  pointer-events: none;
}
.contact__rocket img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(124, 77, 255, .45));
  animation: fly 7s ease-in-out infinite;
}
@keyframes fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-3deg);
  }
  50% {
    transform: translate(10px, -18px) rotate(2deg);
  }
}
.contact h2 {
  font-size: clamp(52px, 7.2vw, 120px);
  letter-spacing: -.06em;
}
.contact__text {
  max-width: 26em;
  margin-top: 22px;
  color: var(--soft);
}
.contact__direct {
  margin-top: 26px;
  color: var(--muted);
  font-size: 16px;
}
.contact__direct a {
  color: var(--pale);
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__rocket {
    width: min(300px, 70%);
  }
}

/* ========== lead form ========== */

.form-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(237, 231, 255, .16);
  border-radius: 22px;
  background: rgba(13, 7, 32, .75);
  backdrop-filter: blur(14px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-card fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.form-card label,
.form-card legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(237, 231, 255, .18);
  border-radius: 12px;
  background: rgba(6, 3, 12, .6);
  color: var(--pale);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s;
}
.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--placeholder);
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--violet-light);
}
.form-card textarea {
  min-height: 110px;
  resize: vertical;
}
.field {
  margin-bottom: 14px;
}
.field__error {
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
}

/* Radio buttons drawn as a pill switch. */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-card .segmented label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(237, 231, 255, .22);
  border-radius: 999px;
  color: var(--pale);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.segmented input:checked + label {
  background: var(--pale);
  color: var(--void);
}
.segmented input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* The prepared request, shown after submit. */
.request {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(237, 231, 255, .2);
  border-radius: 14px;
}
.request.is-visible {
  display: block;
}
.request pre {
  margin: 10px 0 14px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
}
.request__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== footer ========== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--void);
}
.site-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
  opacity: .9;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

/* ========== right-to-left ========== */

/* Arabic has no tight tracking and needs taller lines. Keep this after every heading rule. */
[dir="rtl"] :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.15;
}
[dir="rtl"] .hero h1 {
  line-height: 1.1;
}

/* ========== reduced motion ========== */

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