/* IBM Plex Sans Arabic (SIL OFL 1.1، الترخيص بـ fonts/IBM-Plex-Sans-Arabic-OFL.txt). */

/* "IBM Plex Sans Arabic" للنص، و"AWAPHs Arabic" للحروف العربية بس داخل العناوين اللي تبقى Arial. */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  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: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  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: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "AWAPHs Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "AWAPHs Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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: "AWAPHs Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  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: "AWAPHs Arabic";
  src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  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;
}

:root {
  --paper: #f5f1e7;
  --ink: #19212b;
  --red: #ef4640;
  --blue: #284dbb;
  --yellow: #ffe16a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "IBM Plex Sans Arabic",
    Tahoma,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  line-height: 2.1;
}

.shell {
  max-width: 1280px;
  padding-inline: 40px;
  margin-inline: auto;
}

.topbar {
  max-width: 1400px;
  margin: auto;
  padding: 21px 5%;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 53px;
  height: 53px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}

.brand b {
  display: block;
  font: 900 27px "AWAPHs Arabic", Arial;
  letter-spacing: -1px;
}

.brand-dot {
  color: var(--red);
}

.brand small {
  font-size: 8px;
  letter-spacing: 0.5px;
}

.topbar nav {
  display: flex;
  gap: 32px;
  font-size: 11px;
  font-weight: 700;
}

.topbar nav a:hover,
footer a:hover {
  color: var(--red);
}

.channel-link {
  color: var(--blue);
}

.edition {
  font: 10px monospace;
  letter-spacing: 1px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 65px;
  padding-bottom: 85px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 13px;
}

.eyebrow i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 7px;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.8;
  letter-spacing: -2px;
  font-weight: 900;
  margin-bottom: 20px;
}

.underlined {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.underlined:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5px;
  right: -5px;
  bottom: 10px;
  height: 20px;
  background: var(--yellow);
  transform: rotate(-3deg);
}

.hero p {
  font-size: 14px;
  color: #59616b;
  margin-bottom: 26px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px var(--ink);
  padding: 13px 21px;
  font-weight: 700;
  font-size: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px var(--ink);
}

.primary span {
  font-size: 24px;
  line-height: 1;
}

.hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  font-size: 9px;
  color: #61666a;
}

.hero-meta span:before {
  content: "✦";
  color: var(--red);
  margin-left: 6px;
}

.hero-art {
  aspect-ratio: 1.05;
  background: #c4d8ec;
  border: 3px solid var(--ink);
  box-shadow: 9px 9px var(--ink);
  position: relative;
  transform: rotate(2deg);
  overflow: hidden;
  background-image: radial-gradient(#658ab940 1px, transparent 1px);
  background-size: 7px 7px;
}

.panel-corner {
  position: absolute;
  top: 0;
  left: 0;
  font: 9px monospace;
  letter-spacing: 1px;
  padding: 12px;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  z-index: 2;
}

.hero-flask {
  position: absolute;
  inset: 30px 0 0;
  width: 100%;
  height: 90%;
  filter: drop-shadow(9px 10px 0 #23427726);
}

.orbit {
  position: absolute;
  border: 1px solid #264d6d33;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  top: 7%;
  left: 5%;
}

.o2 {
  transform: scale(0.75);
}

.star {
  position: absolute;
  font-size: 40px;
}

.s1 {
  left: 35px;
  bottom: 50px;
}

.s2 {
  right: 40px;
  top: 70px;
  font-size: 28px;
}

.bubble-label {
  position: absolute;
  right: 25px;
  top: 35px;
  z-index: 2;
  font-size: 13px;
  background: #fffef8;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.pow {
  position: absolute;
  left: 22px;
  bottom: 42px;
  font: italic 900 29px/0.9 "AWAPHs Arabic", Arial;
  transform: rotate(-13deg);
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 3px 3px var(--ink);
}

.art-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 7px 13px;
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  font-size: 10px;
}

.hero-liquid {
  animation: wave 3s ease-in-out infinite;
  transform-origin: center;
}

.hero-bubble {
  animation: rise 3s infinite;
}

.hero-bubble.delay {
  animation-delay: 1s;
}

@keyframes wave {
  50% {
    transform: translateY(6px) rotate(2deg);
  }
}

@keyframes rise {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-45px);
    opacity: 0;
  }
}

.explore {
  scroll-margin-top: 30px;
  padding-bottom: 50px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 27px;
  margin: 0 0 2px;
}

.section-title p {
  color: #626970;
  font-size: 11px;
  margin: 0;
}

.count {
  font: 13px monospace;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 8px 11px;
  transform: rotate(-3deg);
}

.feature-card {
  display: grid;
  grid-template-columns: 45% 55%;
  background: #fffdf6;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px var(--ink);
  min-height: 350px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 10px var(--ink);
}

.feature-card + .feature-card {
  margin-top: 30px;
}

.theory-feature .feature-art {
  background-color: #c9dcef;
}

.theory-word {
  position: absolute;
  top: 100px;
  left: 10%;
  z-index: 1;
  font:
    italic 900 clamp(30px, 4.8vw, 60px)/0.98 "AWAPHs Arabic", Arial,
    sans-serif;
  color: var(--blue);
  text-shadow: 3px 3px #fffdf6;
  transform: rotate(-8deg);
}

.feature-art {
  border-left: 2px solid var(--ink);
  background: #f49a8c;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background-image: radial-gradient(#19212b30 1px, transparent 1px);
  background-size: 7px 7px;
}

.feature-art:before,
.feature-art:after {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  border: 2px solid #19212b38;
  border-radius: 50%;
  top: 15px;
  left: 15%;
  transform: rotate(-20deg);
}

.feature-art:after {
  width: 240px;
  height: 240px;
  top: 80px;
  left: 28%;
}

.feature-issue {
  position: absolute;
  top: 22px;
  right: 20px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 6px 11px;
  font: 10px "IBM Plex Sans Arabic";
  z-index: 2;
}

.lab-symbol {
  position: absolute;
  top: 52px;
  left: 55px;
  font-size: 85px;
  color: var(--yellow);
  text-shadow: 5px 5px var(--ink);
  transform: rotate(-15deg);
}

.mini-flasks {
  position: absolute;
  left: 23%;
  top: 110px;
  display: flex;
  gap: 18px;
  transform: rotate(-7deg);
}

.mini-flasks span {
  display: grid;
  place-items: end center;
  width: 63px;
  height: 136px;
  background: linear-gradient(to top, #e7edf1 0 34%, #fffdf4 35%);
  border: 5px solid var(--ink);
  border-radius: 14px 14px 38px 38px;
  font: bold 60px "AWAPHs Arabic", Arial;
  line-height: 1;
  color: #ed4540;
  box-shadow: 5px 6px var(--ink);
}

.mini-flasks span:nth-child(2) {
  transform: translateY(-33px);
  background: linear-gradient(to top, #8dbed8 0 45%, #fffdf4 46%);
}

.mini-flasks span:nth-child(3) {
  background: linear-gradient(to top, #f5d369 0 28%, #fffdf4 29%);
}

.feature-tag {
  position: absolute;
  bottom: 25px;
  left: 20px;
  background: #fffdf6;
  border: 2px solid var(--ink);
  padding: 5px 16px;
  font: bold 20px "AWAPHs Arabic", Arial;
  transform: rotate(4deg);
}

.feature-copy {
  padding: 55px 48px 32px;
  display: flex;
  flex-direction: column;
}

.feature-copy h3 {
  font-size: 38px;
  margin: 0 0 12px;
  font-weight: 900;
}

.feature-copy h3 span {
  color: var(--red);
}

.feature-copy p {
  font-size: 13px;
  color: #59616b;
  max-width: 390px;
}

.feature-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #b9b8af;
  padding-top: 15px;
  font-size: 12px;
  font-weight: 700;
}

.arrow {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: var(--red);
  border: 2px solid var(--ink);
  color: white;
  font: 26px "AWAPHs Arabic", Arial;
}

.manifesto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #ede8dc;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-top: 25px;
  padding-bottom: 25px;
  margin-bottom: 55px;
  font-size: 17px;
  font-weight: 900;
}

.manifesto b {
  font-size: 42px;
  color: var(--red);
  line-height: 1;
}

footer {
  border-top: 1px solid #19212b40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px !important;
  padding-bottom: 22px !important;
  font-size: 10px;
  color: #555;
}

footer a {
  font-weight: 700;
  color: var(--blue);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font: bold 17px "AWAPHs Arabic", Arial;
}

.footer-brand img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

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

@media (max-width: 1000px) {
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 41px;
  }
  .edition {
    display: none;
  }
  .feature-copy {
    padding: 35px;
  }
}

@media (max-width: 730px) {
  .shell {
    padding-inline: 20px;
  }
  .topbar {
    padding: 15px 20px;
  }
  .brand img {
    width: 43px;
    height: 43px;
  }
  .brand b {
    font-size: 22px;
  }
  .brand small {
    font-size: 7px;
  }
  .topbar nav {
    gap: 12px;
    font-size: 10px;
  }
  .topbar nav a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 43px;
    padding-bottom: 67px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero h1 {
    font-size: 39px;
    line-height: 1.8;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-meta {
    justify-content: center;
    font-size: 8px;
  }
  .hero-art {
    width: 90%;
    max-width: 430px;
    justify-self: center;
  }
  .section-title h2 {
    font-size: 23px;
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-art {
    min-height: 245px;
    border-left: 0;
    border-bottom: 2px solid var(--ink);
  }
  .mini-flasks {
    top: 80px;
    left: 24%;
  }
  .mini-flasks span {
    width: 48px;
    height: 96px;
    font-size: 45px;
    border-width: 3px;
  }
  .lab-symbol {
    font-size: 55px;
  }
  .feature-copy {
    padding: 25px;
  }
  .feature-copy h3 {
    font-size: 31px;
  }
  .feature-copy p {
    font-size: 11px;
  }
  .feature-bottom {
    margin-top: 25px;
  }
  .manifesto {
    font-size: 11px;
    margin-bottom: 30px;
  }
  .manifesto b {
    font-size: 27px;
  }
  footer {
    flex-wrap: wrap;
    gap: 13px;
  }
  footer > span {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 34px;
  }
  .topbar nav {
    font-size: 9px;
  }
  .brand {
    gap: 7px;
  }
  .brand b {
    font-size: 19px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
}
