/* ==========================================================================
   Elvrona Group — Stylesheet
   Palette: ink, bone, grey
   ========================================================================== */

/* Local font files (latin subset), no third-party requests */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-regular.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.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: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/inter-tight.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono.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: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/noto-sans-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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,
    U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF,
    U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32,
    U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B,
    U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D,
    U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77,
    U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3,
    U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

:root {
  --ink: #09090a;
  --ink-2: #0d0d0f;
  --ink-3: #121214;
  --bone: #f2f2f0;
  --bone-dim: #d3d3d0;
  --muted: #989894;
  --accent: #b3b3ae;
  --accent-strong: #dededb;
  --line: rgba(242, 242, 240, 0.1);
  --line-strong: rgba(242, 242, 240, 0.18);

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(84px, 11vw, 150px);

  --font-sans: "Inter Tight", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Noto Sans Arabic", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "JetBrains Mono", "Noto Sans Arabic", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 720px at 84% -10%, rgba(222, 222, 219, 0.1), transparent 62%),
    radial-gradient(880px 620px at -8% 26%, rgba(200, 200, 198, 0.04), transparent 60%),
    var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.eyebrow,
.section-label,
.card-label,
.org-tag,
.contact-link-label,
.footer-col h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-dim);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.eyebrow span {
  color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--bone);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
}

.btn-ghost:hover {
  border-color: rgba(222, 222, 219, 0.55);
  color: var(--accent-strong);
}

.btn-quiet {
  padding: 10px 16px;
  border-color: var(--line);
  color: var(--bone-dim);
  font-size: 0.78rem;
}

.btn-quiet:hover {
  border-color: rgba(222, 222, 219, 0.5);
  color: var(--bone);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-strong);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.brand:hover .brand-mark {
  border-color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin-inline-start: auto;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.83rem;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--bone);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-cta {
  margin-inline-start: 4px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bar:nth-child(1) {
  top: 18px;
}

.nav-toggle-bar:nth-child(2) {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}


/* Language switch */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.lang-switch a {
  padding: 4px 1px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--bone);
}

.lang-switch a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  background: rgba(9, 10, 12, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: menuIn 0.32s var(--ease) both;
}

.mobile-menu[hidden] {
  display: none;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  line-height: 1.1;
}

.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.mobile-menu-foot a:hover {
  color: var(--accent-strong);
}

.mobile-menu .lang-switch {
  padding-inline-start: 0;
  border-inline-start: 0;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 132px;
  padding-bottom: 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: min(760px, 80vw);
  height: min(760px, 80vw);
  background: radial-gradient(circle, rgba(222, 222, 219, 0.13), transparent 66%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(242, 242, 240, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  opacity: 0.75;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  flex: 1;
  width: 100%;
}

.hero-copy {
  padding-block: 24px;
}

.hero h1 {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  max-width: 44ch;
  margin-top: 30px;
  color: var(--bone-dim);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.constellation {
  width: 100%;
  max-width: 540px;
  height: auto;
  overflow: visible;
  transform: translateX(2%);
}

.node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  fill: #c2c2bf;
}

.core-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  fill: var(--bone);
}

.core-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  fill: var(--accent);
}

.node-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 4.5s ease-in-out infinite;
}

.node:nth-of-type(2) .node-dot {
  animation-delay: 1.2s;
}

.node:nth-of-type(3) .node-dot {
  animation-delay: 2.4s;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.flows path {
  stroke-dasharray: 2 30;
  animation: flow var(--flow-dur, 8s) linear infinite;
  animation-delay: var(--flow-delay, 0s);
}

@keyframes flow {
  to {
    stroke-dashoffset: -96;
  }
}

/* Hero entities */

.hero-entities {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.entity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  padding-inline: 0 24px;
  border-inline-end: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}

.entity:not(:first-child) {
  padding-inline-start: 24px;
}

.entity:last-child {
  border-inline-end: 0;
}

.entity:hover {
  background: rgba(242, 242, 240, 0.025);
}

.entity-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.entity-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.entity-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.1;
}

.entity-meta {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-arrow {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.entity:hover .entity-arrow {
  color: var(--accent-strong);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.6);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  color: rgba(242, 242, 240, 0.62);
  white-space: nowrap;
}

.ticker-track i {
  font-style: normal;
  font-size: 0.55rem;
  color: var(--accent);
  opacity: 0.8;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-pad);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
}

.section-head {
  max-width: 30ch;
}

.section-head-wide {
  max-width: 62ch;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.section-label span {
  color: var(--accent);
}

.section-label::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.section h2 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  padding-top: 6px;
}

.section-lead {
  max-width: 52ch;
  color: var(--bone-dim);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  font-weight: 300;
  line-height: 1.68;
}

.section-text {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.section-intro {
  max-width: 48ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Profile list */

.profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.profile > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile dd {
  font-size: 0.9rem;
  color: var(--bone);
  text-align: end;
}

/* --------------------------------------------------------------------------
   Brand cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(44px, 6vw, 68px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(165deg, rgba(242, 242, 240, 0.045), rgba(242, 242, 240, 0) 56%);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.card:hover {
  border-color: rgba(222, 222, 219, 0.34);
  background-color: rgba(242, 242, 240, 0.018);
  transform: translateY(-5px);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(222, 222, 219, 0.85);
}

.card h3 {
  margin: 34px 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.66;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 28px;
}

.chips li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}

.card-arrow {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.card-link:hover {
  color: var(--accent-strong);
}

.card-link:hover .card-arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Org structure
   -------------------------------------------------------------------------- */

.org {
  padding-top: 8px;
}

.org-head {
  position: relative;
  padding-bottom: 28px;
}

.org-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

.org-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.org-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

.org-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--line-strong);
}

.org-branch {
  position: relative;
  padding-top: 56px;
}

.org-branch::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

.org-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(165deg, rgba(242, 242, 240, 0.04), rgba(242, 242, 240, 0) 62%);
  transition: border-color 0.35s var(--ease);
}

.org-card:hover {
  border-color: rgba(222, 222, 219, 0.32);
}

.org-root {
  border-color: rgba(222, 222, 219, 0.3);
  background: linear-gradient(140deg, rgba(222, 222, 219, 0.09), rgba(242, 242, 240, 0.015) 70%);
}

.org-tag {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.org-card strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
}

.org-card a {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.org-card a:hover {
  color: var(--accent-strong);
}

.org-note {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.org-leaf {
  position: relative;
  margin: 14px 0 0;
  margin-inline-start: 26px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
}

.org-leaf::before {
  content: "";
  position: absolute;
  top: 34px;
  inset-inline-start: 0;
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.org-card-small {
  padding: 15px 18px;
  gap: 5px;
}

.org-card-small strong {
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(44px, 6vw, 64px);
}

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.principle-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.principle h3 {
  margin: 20px 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.principle p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.section-contact {
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: "";
  position: absolute;
  bottom: -55%;
  left: 50%;
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(222, 222, 219, 0.12), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 900px;
}

.section-contact h2 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.99;
}

.contact-text {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-mail svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.contact-mail:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.contact-mail:hover svg {
  transform: translateX(4px);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin-top: clamp(44px, 6vw, 68px);
}

.contact-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 18px;
  padding-inline: 20px 46px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.contact-links a > span:last-child {
  position: absolute;
  top: 50%;
  inset-inline-end: 20px;
  transform: translateY(-50%);
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.contact-links a:hover {
  border-color: rgba(222, 222, 219, 0.4);
  background: rgba(242, 242, 240, 0.02);
}

.contact-links a:hover > span:last-child {
  transform: translate(2px, -50%);
}

.contact-link-label {
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(56px, 7vw, 80px);
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--bone-dim);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--bone-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 20px;
  }

  .header-inner {
    gap: 24px;
  }
}

@media (max-width: 1000px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header .lang-switch {
    margin-inline-start: auto;
  }

  .nav-toggle {
    display: block;
    margin-inline-start: 0;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 8px;
  }

  .constellation {
    max-width: 420px;
    transform: none;
  }

  .hero-entities {
    margin-top: 40px;
  }
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .section-head {
    max-width: 34ch;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    min-height: 0;
  }

  .card h3 {
    margin-top: 22px;
  }

  .card-link {
    margin-top: 8px;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .principle p {
    max-width: 46ch;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hero-entities {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .entity,
  .entity:not(:first-child) {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .entity-meta {
    white-space: normal;
  }

  .org-head {
    padding-bottom: 0;
  }

  .org-head::after,
  .org-row::after,
  .org-row::before,
  .org-branch::before {
    display: none;
  }

  .org-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .org-branch {
    padding-top: 0;
  }

  .org-leaf {
    margin-left: 20px;
  }

  .contact-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-header .lang-switch {
    display: none;
  }

  .nav-toggle {
    margin-inline-start: auto;
  }

  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .profile > div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .contact-mail {
    word-break: break-word;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .node-dot,
  .flows path,
  .ticker-track {
    animation: none !important;
  }

  .ticker-track {
    transform: none;
  }

  .btn,
  .card,
  .entity-arrow,
  .card-arrow {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   RTL & Arabic typography
   -------------------------------------------------------------------------- */

[dir="rtl"] .card::after {
  transform-origin: right;
}

[dir="rtl"] .btn:hover svg,
[dir="rtl"] .contact-mail:hover svg {
  transform: translateX(-4px);
}

[dir="rtl"] .entity:hover .entity-arrow,
[dir="rtl"] .card-link:hover .card-arrow {
  transform: translate(-2px, -2px);
}

[dir="rtl"] .contact-links a:hover > span:last-child {
  transform: translate(-2px, -50%);
}

[dir="rtl"] .btn svg,
[dir="rtl"] .contact-mail svg {
  rotate: 180deg;
}

[dir="rtl"] .ticker-track {
  animation-direction: reverse;
}

html[lang="ar"] body {
  line-height: 1.85;
}

html[lang="ar"] em {
  font-style: normal;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.3;
  letter-spacing: 0;
}

html[lang="ar"] .section h2,
html[lang="ar"] .section-contact h2,
html[lang="ar"] .card h3,
html[lang="ar"] .principle h3,
html[lang="ar"] .legal-head h1 {
  line-height: 1.4;
  letter-spacing: 0;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .section-label,
html[lang="ar"] .card-label,
html[lang="ar"] .org-tag,
html[lang="ar"] .contact-link-label,
html[lang="ar"] .footer-col h3,
html[lang="ar"] .card-index,
html[lang="ar"] .principle-index,
html[lang="ar"] .entity-meta,
html[lang="ar"] .entity-index,
html[lang="ar"] .legal-updated,
html[lang="ar"] .footer-bottom {
  letter-spacing: 0.01em;
}

html[lang="ar"] .entity-meta,
html[lang="ar"] .footer-bottom {
  line-height: 1.8;
}

/* Legal page */

.legal-main {
  padding-top: clamp(56px, 8vw, 96px);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.legal-back {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.legal-back:hover {
  color: var(--accent-strong);
}

.legal-head {
  max-width: 760px;
}

.legal-head h1 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.legal-head p {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.notice {
  max-width: 760px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(222, 222, 219, 0.32);
  background: rgba(222, 222, 219, 0.06);
  color: var(--bone-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

.notice strong {
  color: var(--accent-strong);
  font-weight: 500;
}

.legal-content {
  max-width: 760px;
  margin-top: clamp(48px, 7vw, 78px);
}

.legal-content section {
  margin-bottom: 56px;
  scroll-margin-top: 110px;
}

.legal-content h2 {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 0.98rem;
  font-weight: 500;
}

.legal-content p,
.legal-content li {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-content ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.legal-content li {
  margin-top: 4px;
}

.legal-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.placeholder {
  color: var(--accent-strong);
  border-bottom: 1px dashed rgba(222, 222, 219, 0.55);
}

.legal-updated {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 560px) {
  .legal-header .shell {
    height: 68px;
  }

  .legal-header .brand-sub {
    display: none;
  }
}
