/* FOUNDCO UNITED — brand: jet black, charcoal, off-white, champagne gold */
:root {
  --ink: #0D0D0D;
  --charcoal: #1E1E1E;
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --gold: #C8A56B;
  --gold-deep: #8A6A3A;
  --line: #E4E4E4;
  --line-dark: #333333;
  --text: #141414;
  --text-2: #4A4A4A;
  --text-dark: #F5F5F5;
  --text-dark-2: #C8C8C8;
  --kufi: 'Noto Kufi Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  --sans: 'Noto Sans Arabic', Tahoma, sans-serif;
  --latin: 'Jost', Arial, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 10vw, 120px);
  --nav-h: 72px;
}
html[lang="en"] { --kufi: 'Jost', 'Noto Kufi Arabic', Arial, sans-serif; --sans: 'Jost', 'Noto Sans Arabic', Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.8; color: var(--text); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--kufi); font-weight: 700; }
h1 { font-size: clamp(30px, 5.2vw, 58px); line-height: 1.45; }
h2 { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.5; }
h3 { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.label { font-family: var(--latin); font-size: 14px; letter-spacing: 4px; color: var(--gold-deep); direction: ltr; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .label { text-align: right; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.95; color: var(--text-2); }
.t { font-size: 16px; line-height: 1.8; color: var(--text-2); }
.gold { color: var(--gold); }
.big { display: block; font-family: var(--latin); font-weight: 300; font-size: clamp(56px, 7vw, 84px); line-height: 1.05; color: var(--gold-deep); direction: ltr; text-align: start; }
html[dir="rtl"] .big { text-align: right; }
.big.sm { font-size: clamp(40px, 5vw, 56px); }
.num { font-family: var(--latin); font-weight: 300; font-size: 30px; color: var(--gold-deep); direction: ltr; }
.i { width: 24px; height: 24px; flex: none; }
.i-md { width: 32px; height: 32px; color: var(--gold-deep); }
.i-lg { width: 44px; height: 44px; color: var(--gold-deep); }

/* sections */
.sec { padding-block: var(--sec); }
.sec.alt { background: var(--white); }
.sec.dark { background: var(--ink); color: var(--text-dark); }
.dark .lead, .dark .t { color: var(--text-dark-2); }
.dark .label { color: var(--gold); }
.dark .big, .dark .num, .dark .i-md, .dark .i-lg { color: var(--gold); }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }
.sec-head + .lead { margin-top: -24px; }
.lead.reveal + .lead { margin-top: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; font-family: var(--kufi); font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid var(--gold); cursor: pointer; transition: background .25s, color .25s, transform .25s; min-height: 50px; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #d8b67c; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text-dark); }
.btn.ghost:hover { background: rgba(200, 165, 107, .15); }

/* header */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(13, 13, 13, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 #2a2a2a; }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); font-family: var(--latin); letter-spacing: 4px; font-size: 18px; direction: ltr; }
.brand img { width: 30px; height: auto; }
.brand span { white-space: nowrap; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.menu a { color: var(--text-dark); text-decoration: none; font-size: 15px; font-weight: 700; padding-block: 8px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a.on { color: var(--gold); border-color: var(--gold); }
.menu .menu-cta { border: 2px solid var(--gold); color: var(--gold); padding: 6px 18px; }
.menu .menu-cta:hover { background: var(--gold); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { font-family: var(--latin), 'Noto Sans Arabic', sans-serif; background: none; border: 1px solid #555; color: var(--text-dark); padding: 6px 12px; cursor: pointer; font-family: var(--latin); font-size: 14px; letter-spacing: 1px; min-height: 40px; min-width: 52px; }
.lang:hover { border-color: var(--gold); color: var(--gold); }
.burger { display: none; background: none; border: 0; color: var(--text-dark); cursor: pointer; width: 44px; height: 44px; padding: 8px; }
.burger .i { width: 28px; height: 28px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: var(--text-dark); overflow: hidden; padding-top: var(--nav-h); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 13, .35) 0%, rgba(13, 13, 13, .82) 50%, rgba(13, 13, 13, .96) 100%); }
html[dir="ltr"] .hero::after { background: linear-gradient(270deg, rgba(13, 13, 13, .35) 0%, rgba(13, 13, 13, .82) 50%, rgba(13, 13, 13, .96) 100%); }
.hero-in { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; text-align: start; padding-block: 48px 24px; }
.hero-logo { width: clamp(220px, 34vw, 400px); }
.hero h1 { max-width: 18em; text-wrap: balance; }
.hero .lead { color: var(--text-dark-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 24px 40px; }
.hero-stats li { border-top: 2px solid var(--gold); padding-top: 12px; display: grid; gap: 2px; }
.hero-stats .big { color: var(--gold); }
.hero-stats span:not(.big) { font-size: 15px; color: var(--text-dark-2); line-height: 1.5; }
.scroll { position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 50%; translate: -50% 0; color: var(--gold); opacity: .7; animation: bob 2.4s ease-in-out infinite; display: none; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* layout helpers */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 6fr 6fr; }
.photo img { width: 100%; max-height: 640px; object-fit: cover; aspect-ratio: 4 / 5; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 2px solid var(--line); padding: 24px 26px; display: grid; gap: 8px; align-content: start; transition: transform .3s, border-color .3s, box-shadow .3s; }
.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0, 0, 0, .06); }
.card .row { display: flex; align-items: center; gap: 16px; }
.big-card { padding: 30px 32px; gap: 14px; }
.svc-top, .why-top { display: flex; align-items: center; justify-content: space-between; }
.featured { background: var(--ink) !important; border-color: var(--ink); align-content: center; }
.featured h3 { color: var(--gold); }
.featured .t { color: #E8E8E8; }
.featured:hover { border-color: var(--gold); }
.why-grid { margin-bottom: 36px; }
.closing { max-width: 920px; }

/* about / numbers */
.numbers { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--paper); border: 2px solid var(--line); padding: 20px; display: grid; gap: 8px; align-content: center; }
.tile h3 { font-size: 17px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-start; }
.dots i { width: 14px; height: 14px; background: var(--gold); display: block; }
html[dir="rtl"] .dots { justify-content: flex-end; }
.donut-card { background: var(--paper); border: 2px solid var(--line); padding: 24px; display: grid; gap: 14px; justify-items: center; }
.donut { position: relative; width: min(100%, 300px); }
.donut svg { width: 100%; height: auto; display: block; }
.seg { stroke-dasharray: 0 1000; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1); }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0; }
.donut-mid .big { text-align: center; font-size: 64px; }
.donut-mid span:last-child { color: var(--text-2); font-size: 15px; }
.legend { display: grid; gap: 8px; width: 100%; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.legend i { width: 18px; height: 18px; flex: none; }
.legend span { flex: 1; }
.legend b { font-family: var(--latin); font-weight: 400; font-size: 20px; color: var(--gold-deep); }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.value { display: grid; justify-items: center; text-align: center; gap: 8px; }
.ring { width: 88px; height: 88px; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); flex: none; }
.ring.sm { width: 72px; height: 72px; }
.value p, .value h3 { text-align: center; }
.concept { margin-top: 48px; border-top: 2px solid var(--gold); padding-top: 18px; display: grid; gap: 6px; max-width: 760px; }

/* development hub */
.hub { display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
.hub-col { display: grid; gap: 18px; }
.node { position: relative; display: flex; align-items: center; gap: 18px; background: var(--charcoal); border: 2px solid #333; padding: 18px 22px; color: var(--text-dark); }
.node p { color: var(--text-dark); font-size: 16px; line-height: 1.7; }
.hub-col:first-child .node::after, .hub-col:last-child .node::after { content: ""; position: absolute; top: 50%; width: 56px; height: 2px; background: var(--gold); }
.hub-col:first-child .node::after { inset-inline-start: 100%; }
.hub-col:last-child .node::after { inset-inline-end: 100%; }
.hub-core { width: 230px; height: 230px; border-radius: 50%; background: var(--ink); border: 2px dashed var(--gold); outline: 14px solid #161616; display: grid; place-content: center; text-align: center; gap: 2px; padding: 18px; }
.dark .hub-core { background: #000; }
.hub-core .big { text-align: center; color: var(--gold); font-size: 76px; }
.hub-core p { color: var(--text-dark); font-weight: 700; font-family: var(--kufi); font-size: 16px; line-height: 1.4; }

/* method */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 44px; inset-inline: 12.5%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.step { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; align-content: start; }
.step .ring { background: var(--paper); width: 88px; height: 88px; z-index: 1; }
.step .big { text-align: center; }
.step h3, .step p { text-align: center; }

/* alliance */
.alliance { display: grid; grid-template-columns: 1fr auto auto auto 1fr; gap: 24px; align-items: center; }
.alliance .hub-core { outline-color: var(--paper); }
.alliance .hub-core { width: 220px; height: 220px; background: var(--ink); color: var(--text-dark); }
.brandmark { font-family: var(--latin); letter-spacing: 3px; font-size: 24px; line-height: 1.4; color: var(--gold); }
.party { display: flex; align-items: center; gap: 18px; background: var(--paper); border: 2px solid var(--line); padding: 20px 22px; }
.alt .party { background: var(--paper); }
.parties { display: grid; gap: 14px; }
.swap { color: var(--gold); }

/* experience */
.map { position: relative; background: var(--charcoal); padding: 8px; }
.map svg { width: 100%; height: auto; display: block; direction: ltr; }
.map .city { font-family: var(--kufi); font-weight: 700; font-size: 30px; fill: #F5F5F5; }
html[lang="en"] .map .city { font-family: var(--latin); font-weight: 500; }
.map .line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease .3s; }
.map.in .line { stroke-dashoffset: 0; }
.map .note { position: absolute; inset-inline-end: 18px; bottom: 12px; color: #aaa; font-size: 14px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.chip { display: flex; align-items: center; gap: 14px; background: var(--white); border: 2px solid var(--line); padding: 16px 18px; }
.chip h3 { font-size: 17px; }

/* international */
.list { display: grid; }
.item { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 2px solid #2e2e2e; font-size: 18px; }
.dark .item { color: var(--text-dark); }

/* contact */
.contact-logo { display: grid; justify-items: center; gap: 22px; }
.contact-logo img { width: min(100%, 460px); }
.tag { font-family: var(--latin); letter-spacing: 5px; color: var(--gold); text-align: center; font-size: 15px; line-height: 1.7; }
.contacts { display: grid; margin-bottom: 28px; }
.contacts li { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #2e2e2e; padding: 14px 0; flex-wrap: wrap; }
.contacts li > span:first-of-type { flex: 1; color: var(--text-dark-2); font-size: 16px; }
.contacts a, .contacts .ltr, .contacts .gold { color: var(--gold); font-size: 20px; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--text-dark-2); }
.form input, .form textarea { background: var(--charcoal); border: 2px solid #3a3a3a; color: var(--text-dark); padding: 12px 14px; width: 100%; font-size: 16px; border-radius: 0; }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form .btn { justify-self: start; }
.note { font-size: 14px; color: #8A8A8A; line-height: 1.7; }
.dark .note { color: #9a9a9a; }
.form .err { color: #E7A3A3; }

/* footer */
.foot { background: var(--ink); color: var(--text-dark-2); border-top: 1px solid #2a2a2a; padding-block: 36px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .note { max-width: 640px; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .seg, .map .line { transition: none; }
  .scroll { animation: none; }
}

/* tablets */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hub { gap: 36px; }
  .hub-col:first-child .node::after, .hub-col:last-child .node::after { width: 36px; }
  .hub-core { width: 190px; height: 190px; }
  .alliance { grid-template-columns: 1fr; justify-items: stretch; }
  .alliance .hub-core { justify-self: center; }
  .swap { justify-self: center; rotate: 90deg; }
}
/* phones */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .menu { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(13, 13, 13, .98); padding: 8px var(--pad) 24px; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; border-bottom: 1px solid #2a2a2a; }
  .menu.open { transform: none; visibility: visible; }
  .menu a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid #262626; }
  .menu .menu-cta { margin-top: 16px; text-align: center; border: 2px solid var(--gold); }
  .nav { background: rgba(13, 13, 13, .94); }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero-in { padding-block: 24px 8px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 28px; }
  .hero-stats span:not(.big) { font-size: 13px; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .map { order: 2; }
  .photo img { aspect-ratio: 4 / 3; max-height: 420px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hub { grid-template-columns: 1fr; gap: 18px; }
  .hub > .hub-core { order: -1; justify-self: center; width: 200px; height: 200px; outline-width: 10px; }
  .brand { font-size: 14px; letter-spacing: 2px; gap: 8px; }
  .brand span { white-space: nowrap; }
  .dots i { width: 10px; height: 10px; }
  .dots { gap: 4px; }
  .hub-col:first-child .node::after, .hub-col:last-child .node::after { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 43px; width: 2px; height: auto; background: var(--gold); }
  .step { grid-template-columns: 88px 1fr; justify-items: start; text-align: start; column-gap: 20px; align-items: start; }
  .step .ring { grid-row: 1 / span 3; }
  .step .big { display: none; }
  .step h3, .step p { text-align: start; }
  .chips { grid-template-columns: 1fr; }
  .contacts li { gap: 10px; }
  .contacts a, .contacts .ltr, .contacts .gold { font-size: 18px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .form .btn { justify-self: stretch; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .cta { width: 100%; }
  .values { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { padding: 16px; }
}
