/* nieo.tech: Nieo DevOps LLC.
   Brand: the violet N ribbon. The one bold move is the hero: the mark set large beside a
   wide-set headline, crossed by a single diagonal ribbon in the brand's two violets.
   Everything below it stays quiet: one column, plain rows, generous air. */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-full-normal.woff2) format("woff2");
  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: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic-full-normal.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;
}

:root {
  /* Sampled from the logo. */
  --violet: #5010c0;
  --violet-deep: #300080;
  --lilac: #a070f0;

  --paper: #f8f6fc;
  --ink: #1c1530;
  --ink-soft: #5a5373;
  --rule: #e2dbf1;
  --link: #5010c0;
  --ribbon-a: #a070f0;
  --ribbon-b: #5010c0;

  --gutter: clamp(1rem, 5vw, 3rem);
  --measure: 40rem;
  --space: 1.75rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120c22;
    --ink: #ede9f8;
    --ink-soft: #aaa2c4;
    --rule: #2a2244;
    --link: #bfa3ff;
    --ribbon-a: #7d4fd6;
    --ribbon-b: #3a0d96;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #120c22;
  --ink: #ede9f8;
  --ink-soft: #aaa2c4;
  --rule: #2a2244;
  --link: #bfa3ff;
  --ribbon-a: #7d4fd6;
  --ribbon-b: #3a0d96;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", sans-serif;
  font-size: 1.0625rem;
  font-weight: 330;
  line-height: 1.65;
}

/* The hero ribbon bleeds past the viewport; clip it without creating a scroll container. */
html,
body {
  overflow-x: clip;
}

.page {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 0 calc(var(--space) * 2);
}

/* ── Top bar ─────────────────────────────────────────────── */

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "HEXP" 45;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2rem;
  height: auto;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.bar nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--link);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 4rem;
  padding-block: clamp(3rem, 10vw, 7rem) clamp(3rem, 9vw, 6rem);
}

/* The ribbon: one diagonal band in the logo's two violets, running behind the hero. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -40vw;
  width: 150vw;
  height: clamp(5rem, 14vw, 10rem);
  background: linear-gradient(90deg, var(--ribbon-a), var(--ribbon-b));
  transform: rotate(-24deg);
  transform-origin: right center;
  opacity: 0.14;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  line-height: 1.02;
  font-weight: 640;
  font-variation-settings: "HEXP" 22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero .lede {
  margin: 1.75rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}

.hero .mark {
  width: clamp(9rem, 22vw, 16.5rem);
  height: auto;
  filter: drop-shadow(0 1.5rem 2rem rgb(80 16 192 / 0.22));
}

.cta {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.cta:hover {
  background: var(--violet-deep);
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .mark {
    order: -1;
    width: 7rem;
  }
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  display: grid;
  grid-template-columns: 14rem minmax(0, var(--measure));
  gap: 0.5rem 3rem;
  padding-block: calc(var(--space) * 2);
  border-top: 1px solid var(--rule);
}

.section > h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 580;
  font-variation-settings: "HEXP" 18;
}

.section > .body > :first-child {
  margin-top: 0;
}

@media (max-width: 52rem) {
  .section {
    grid-template-columns: 1fr;
  }
}

p,
ul {
  margin: 0 0 1.1rem;
}

ul {
  padding-inline-start: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

strong {
  font-weight: 560;
}

code {
  font-size: 0.92em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Services and projects: a name and what it's for, one row each. */
.rows {
  margin: 0;
}

.row {
  padding-block: 0 1.25rem;
}

.row + .row {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.row dt {
  font-weight: 560;
}

.row dd {
  margin: 0.2rem 0 0;
}

.row .tools {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.founder-ar {
  font-weight: 420;
  color: var(--ink-soft);
}

/* ── Policy pages ────────────────────────────────────────── */

.doc {
  max-width: var(--measure);
  padding-block: clamp(2rem, 7vw, 4.5rem) 0;
}

.doc h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.08;
  font-weight: 620;
  font-variation-settings: "HEXP" 20;
  letter-spacing: -0.02em;
}

.doc .date {
  margin: 0.75rem 0 2.5rem;
  color: var(--ink-soft);
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 580;
  font-variation-settings: "HEXP" 12;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 580;
}

/* ── Footer ──────────────────────────────────────────────── */

.foot {
  margin-top: calc(var(--space) * 2);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.foot a {
  color: var(--ink-soft);
}

.foot a:hover {
  color: var(--link);
}

/* One orchestrated moment: the ribbon draws in on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: ribbon 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes ribbon {
    from {
      clip-path: inset(0 0 0 100%);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}
